Internet protocol (IP) address allocation method and communication device
By implementing the method of assigning IP addresses to the first device according to the location information of the second device in the cloud base station, the conflict problem of assigning IP addresses to the RRU by multiple BBU devices is solved, which improves efficiency and reduces maintenance costs.
Patent Information
- Application Number
- CN202311329094.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-13
- Publication Date
- 2025-04-15
AI Technical Summary
In the scenario of cloud-based base stations, how multiple BBU devices can effectively allocate the IP addresses of RRUs to avoid the problem of multiple DHCP servers assigning IP addresses to the same RRU.
The first device receives the message from the second device, parses the message to obtain the location information of the second device. If the location information of the second device is within the jurisdiction of the first device, the IP address is assigned to the second device and the IP address is fed back to the second device.
This method avoids the case of repeatedly allocating IP addresses to RRU devices, reduces manual maintenance costs, and improves data processing efficiency.
Smart Images

Figure CN119835249A_ABST
Abstract
Description
Background Art
[0002] The fifth generation mobile communication technology (5G) cloud base station is a new wireless communication base station networking method. This technology migrates the 5G protocol stack running on a dedicated board in a traditional base station to a general-purpose server, deploys a telecom-grade cloud platform on the general-purpose server, and runs the base station BBU software on the cloud platform after container encapsulation. Cloud base stations can improve the utilization of wireless resources, reduce the cost of network generation upgrades, support edge services, automatically scale, and enhance the reliability of the entire network.
[0003] In the fronthaul network connection topology of cloud-based base stations, the indoor baseband processing units (BBU) of multiple sites are centrally deployed in the data center computer room, and connected to the remote radio unit (RRU) through the fronthaul switching network. Regarding the Internet protocol (IP) address allocation problem of RRU, it is stipulated in the open radio access network (O-RAN) protocol that the connection between the RRU and BBU of the cloud-based base station is established based on the transmission control protocol (TCP) / IP protocol, and the IP address of the RRU is allocated by the dynamic host configuration protocol (DHCP) server in the BBU. However, in the scenario of cloud-based base stations, a problem arises: all RRUs are connected to a fronthaul network, and there are multiple BBUs in the network, that is, there are multiple DHCP servers. How can each BBU find the RRU of the "local station" to allocate an IP, and how to avoid multiple DHCP servers allocating an IP to the same RRU. Summary of the invention
[0004] The present application provides an IP address allocation method and a communication device to avoid the situation where multiple BBU devices are allocated IP addresses to the same RRU device.
[0005] In a first aspect, the present application provides an IP address allocation method, which is applied to a first device. The first device may be a BBU, a hardware device co-deployed by a centralized unit (English: centralized unit, abbreviated as CU) and a distributed unit (English: distributed unit, abbreviated as DU), or a chip of a BBU, or a chip of a device co-deployed by a CU and a DU. The present application is not specifically limited here, and is executed as follows:
[0006] Receive a message from a second device, the message carrying the location information of the second device; parse the message to obtain the location information of the second device; if the location information of the second device is within the jurisdiction of the first device, allocate an IP address to the second device; send a message response message to the second device, the message response message carrying the IP address of the second device.
[0007] In the present application, the first device receives a message carrying the location information of the second device from the second device, obtains the location information of the second device by parsing the message, and if it is determined that the location information of the second device is within the jurisdiction of the first device, allocates an IP address to the second device, and feeds back the IP address to the corresponding second device. The first device only allocates an IP address to the second device within its jurisdiction, and does not allocate an IP address to the second device that is not within its jurisdiction. In this way, it is possible to avoid the situation where IP addresses are repeatedly allocated to RRU devices.
[0008] In an optional manner, the jurisdiction of the first device is indicated by a regular expression based on the jurisdiction encoding.
[0009] In the present application, the jurisdiction of the first device is indicated by a regular expression based on the jurisdiction encoding. After parsing the location information of the second device, the regular expression is matched with the location information of the second device. This method can improve data processing efficiency.
[0010] In an optional manner, the location information of the second device carried in the message is location coding information of the second device.
[0011] In the present application, the location information of the second device carried by the message is the location coding information of the second device, and the location coding information of the second device may be an encrypted code. When the location coding information of the second device is an encrypted code, the security of the location information of the second device can be guaranteed, and the message can be prevented from being intercepted by other devices to steal the location information of the second device.
[0012] In an optional manner, if the location information of the second device is within the jurisdiction of the second device, allocating an IP address to the second device includes:
[0013] If the location coding information of the second device conforms to the regular expression, an IP address is allocated to the second device.
[0014] In the present application, if the location coding information of the second device conforms to the regular expression, it is determined that the location information of the second device is within the jurisdiction of the first device, and the first device can directly assign an IP address to the second device. By matching the location information of the second device in this way, data processing efficiency can be improved.
[0015] In an optional manner, the location coding information of the second device also includes: the manufacturer name and device model of the second device.
[0016] In the present application, the location coding information of the second device may also include the manufacturer name and device model of the second device, so as to further distinguish different second devices at the same location.
[0017] In a second aspect, the present application provides an IP address allocation method, which is applied to a second device, where the second device may be an RRU, an active antenna unit (English: active antenna unit, abbreviated as AAU), or a chip of the RRU, or a chip of the AAU. The present application is not specifically limited here, and is executed as follows:
[0018] Obtain the location information of the second device, where the location information of the second device is determined by identifying the tag information; send a message to the first device, where the message carries the location information of the second device; receive a message response message from the first device, where the message response message carries the IP address assigned by the first device to the second device, and the location information of the second device is within the jurisdiction of the first device.
[0019] In this application, the second device determines the location information of the second device by identifying the tag information, and then sends a message carrying the location information of the second device to the first device. If it is determined that the location information of the second device is within the jurisdiction of the first device, an IP address is allocated to the second device. The first device only allocates an IP address to the second device within its jurisdiction, and does not allocate an IP address to the second device that is not within its jurisdiction. In this way, repeated allocation of IP addresses to RRU devices can be avoided.
[0020] In an optional manner, the tag information is a location tag sticker based on radio frequency identification (English: radio frequency identification, abbreviated as RFID).
[0021] The present application indicates label information through RFID-based location label stickers to facilitate migration, and the second device can quickly obtain location information by identifying the sticker information.
[0022] In an optional manner, the location information of the second device carried in the message is location coding information of the second device.
[0023] In an optional manner, the location coding information of the second device also includes: the manufacturer name and device model of the second device.
[0024] In an optional manner, the jurisdiction of the first device is indicated by a regular expression based on the jurisdiction encoding; if the location encoding information of the second device conforms to the regular expression, then the location information of the second device is within the jurisdiction of the first device.
[0025] In a third aspect, an embodiment of the present application provides a communication device, which may be a first device or a chip disposed inside the first device, or a second device or a chip disposed inside the second device. The communication device has the function of implementing the first aspect or the second aspect, for example, the communication device includes a module or unit or means corresponding to the steps involved in any aspect of the first aspect or a module or unit or means corresponding to the steps involved in any aspect of the second aspect, and the function or unit or means may be implemented by software, or by hardware, or by hardware executing the corresponding software implementation.
[0026] In one possible design, the communication device includes a processing unit and a transceiver unit, wherein the transceiver unit can be used to send and receive signals to realize communication between the communication device and other devices, for example, the transceiver unit is used to receive reference information from a receiving device; the processing unit can be used to perform some internal operations of the communication device. The transceiver unit can be called an input-output unit, a communication unit, etc., and the transceiver unit can be a transceiver; the processing unit can be a processor. When the communication device is a module (such as a chip) in a communication device, the transceiver unit can be an input-output interface, an input-output circuit or an input-output pin, etc., and can also be called an interface, a communication interface or an interface circuit, etc.; the processing unit can be a processor, a processing circuit or a logic circuit, etc.
[0027] The transceiver unit is used to receive a message from the second device, the message carrying the location information of the second device; the processing unit is used to parse the message and obtain the location information of the second device; the processing unit is also used to allocate an IP address to the second device if the location information of the second device is within the jurisdiction of the communication device; the transceiver unit is also used to send a message response message to the second device, the message response message carrying the IP address of the second device.
[0028] In an optional manner, the jurisdiction of the first device is indicated by a regular expression based on the jurisdiction encoding.
[0029] In an optional manner, the location information of the second device carried in the message is location coding information of the second device.
[0030] In an optional manner, the processing unit is specifically used to: if the location coding information of the second device conforms to a regular expression, allocate an IP address to the second device.
[0031] In an optional manner, the location coding information of the second device also includes: the manufacturer name and device model of the second device.
[0032] In another possible design, the transceiver unit is used to obtain the location information of the communication device, and the location information of the communication device is determined by identifying the tag information; the transceiver unit is also used to send a message to the first device, and the message carries the location information of the second device; the transceiver unit is also used to receive a message response message from the first device, and the message response message carries the IP address assigned by the first device to the communication device, and the location information of the communication device is within the jurisdiction of the first device.
[0033] In an optional manner, the tag information is a location tag sticker based on radio frequency identification RFID.
[0034] In an optional manner, the location information of the second device carried in the message is location coding information of the second device.
[0035] In an optional manner, the location coding information of the communication device also includes: the manufacturer name and device model of the communication device.
[0036] In an optional manner, the jurisdiction of the first device is indicated by a regular expression based on the jurisdiction encoding; if the location encoding information of the communication device conforms to the regular expression, then the location information of the communication device is within the jurisdiction of the first device.
[0037] In another possible design, the communication device includes a processor and may also include a transceiver, the transceiver is used to send and receive signals, and the processor executes program instructions to complete the method in any possible design or implementation of the first aspect or the second aspect above. The communication device may also include one or more memories, the memory is used to couple with the processor, and the memory may store the necessary computer programs or instructions for implementing the functions involved in the first aspect or the second aspect above. The processor may execute the computer program or instructions stored in the memory, and when the computer program or instructions are executed, the communication device implements the method in any possible design or implementation of the first aspect or the second aspect above.
[0038] In another possible design, the communication device includes a processor, which can be used to couple with a memory. The memory can store necessary computer programs or instructions for implementing the functions involved in the first aspect or the second aspect. The processor can execute the computer program or instructions stored in the memory, and when the computer program or instructions are executed, the communication device implements the method in any possible design or implementation of the first aspect or the second aspect.
[0039] In another possible design, the communication device includes a processor and an interface circuit, wherein the processor is used to communicate with other devices through the interface circuit and execute the method in any possible design or implementation of the first aspect or the second aspect above.
[0040] It can be understood that in the third aspect above, the processor can be implemented by hardware or by software. When implemented by hardware, the processor can be a logic circuit, an integrated circuit, etc.; when implemented by software, the processor can be a general-purpose processor, which is implemented by reading the software code stored in the memory. In addition, the above processors may include one or more, and the memory may include one or more. The memory may be integrated with the processor, or the memory and the processor may be separately arranged. In the specific implementation process, the memory may be integrated with the processor on the same chip, or may be respectively arranged on different chips. The embodiment of the present application does not limit the type of memory and the setting method of the memory and the processor.
[0041] In a fourth aspect, the present application provides a chip system, which includes a processor and may also include a memory, for implementing the method described in any possible design of the first aspect or the second aspect. The chip system may be composed of a chip, or may include a chip and other discrete devices.
[0042] In a fifth aspect, the present application also provides a computer-readable storage medium, in which computer-readable instructions are stored. When the computer-readable instructions are executed on a computer, the computer executes a method in any possible design of the first aspect or the second aspect.
[0043] In a sixth aspect, the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the methods of the various embodiments of the first aspect or the second aspect described above.
[0044] For the technical effects that can be achieved in the above-mentioned second to sixth aspects, please refer to the description of the technical effects that can be achieved by the corresponding possible design schemes in the above-mentioned first aspect, and this application will not repeat them here.
[0045] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0047] Figure 1 A schematic diagram of a communication system is shown;
[0048] Figure 2A A schematic diagram showing the structure of a base station network topology;
[0049] Figure 2B A schematic diagram showing the structure of a network topology of a cloud-based base station is shown;
[0050] Figure 3 A schematic diagram of a flow chart of an IP address allocation method provided in an embodiment of the present application is shown;
[0051] Figure 4 A schematic diagram of a flow chart of an IP address allocation method provided in an embodiment of the present application is shown;
[0052] Figure 5 A schematic diagram of the structure of a communication device provided in an embodiment of the present application is shown;
[0053] Figure 6 A schematic diagram of the structure of a communication device provided in an embodiment of the present application is shown;
[0054] Figure 7 A schematic structural diagram of a communication device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0055] To make the purpose, technical solution and advantages of the embodiments of the present invention more clear, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0056] In the following embodiments of the present application, "and / or" describes the association relationship of the associated objects, indicating that there may be three relationships, for example, A and / or B, which can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " is generally used to indicate that the associated objects before and after are in an "or" relationship. "At least one of the following (individuals) or similar expressions refer to any combination of these items, including any combination of single items (individuals) or plural items (individuals). For example, at least one of a, b or c (individuals) can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple. The singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include expressions such as "one or more", unless there is a clear indication to the contrary in the context. And, unless otherwise indicated, the ordinal numbers such as "first" and "second" mentioned in the embodiments of the present application are used to distinguish multiple objects, and are not used to limit the order, timing, priority or importance of multiple objects.
[0057] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0058] Figure 1A communication system 100 applicable to the present application is shown. The communication system 100 includes a network device 110 and a terminal device 120, and the network device 110 communicates with the terminal device 120 through a wireless network. The above communication system applicable to the present application is only an example, and the communication system applicable to the present application is not limited thereto. For example, the number of network devices and terminal devices included in the communication system can also be other numbers, or a single base station, multi-carrier aggregation scenario, a dual link scenario or a device-to-device (D2D) communication scenario, a multi-point coordinated transmission CoMP scenario is adopted. Among them, CoMP can be one or more scenarios of non-coherent joint transmission (NCJT), coherent joint transmission (CJT), joint transmission (JT), etc.
[0059] The embodiments of the present application can also be applied to other communication systems, such as: global system of mobile communication (GSM) system, code division multiple access (CDMA) system, wideband code division multiple access (WCDMA) system, general packet radio service (GPRS), long term evolution (LTE) system, LTE frequency division duplex (FDD) system, LTE time division duplex (TDD), universal mobile telecommunication system (UMTS), worldwide interoperability for microwave access (WiMAX) communication system, and the future fifth generation (5th generation) system. The 5G mobile communication system described in this application includes a non-standalone (NSA) 5G mobile communication system and / or a standalone (SA) 5G mobile communication system. The technical solution provided in this application can also be applied to future communication systems, such as the sixth generation mobile communication system. The communication system can also be a PLMN network, a device-to-device D2D network, a machine-to-machine (M2M) network, an IoT network or other networks.
[0060] The network device may also be referred to as a base station, or a RAN node, or a RAN device. A network device is an entity on the network side for transmitting and / or receiving signals, acting as a router between a terminal and the rest of the access network, where the rest of the access network may include an IP network, etc. The network device may also coordinate the attribute management of the air interface. For example, the network device may be an evolved base station (eNB or e-NodeB) in LTE. An eNB is a device deployed in a wireless access network that meets 4G standards and provides wireless communication functions for terminals. The network device may also be a new radio controller (new radio controller, abbreviated as NR controller), a gNode B (gNB) in a 5G system, a centralized unit, a new wireless base station, a radio frequency remote module, a micro base station (also called a small station), a relay, a distributed unit, various forms of macro base stations, a transmission reception point (TRP), a transmission measurement function (TMF) or a transmission point (TP) or any other wireless access device, or a base station in the next generation of communications, but the embodiments of the present application are not limited thereto.
[0061] Network equipment can be composed of BBU and RRU, and can also be composed of other equipment. For example, in the 5G communication system, the network equipment may include CU, DU and AAU. Compared with the network equipment in the LTE communication system, which consists of one or more radio frequency units, such as RRU and one or more BBU:
[0062] The non-real-time part of the original BBU will be separated and redefined as CU, which is responsible for processing non-real-time protocols and services. Some physical layer processing functions of BBU will be merged with the original RRU and passive antenna into AAU. The remaining functions of BBU will be redefined as DU, which is responsible for processing physical layer protocols and real-time services. In short, CU and DU are distinguished by the real-time nature of the processing content, and AAU is a combination of RRU and antenna.
[0063] CU, DU, and AAU can be separated or co-located, so there will be a variety of network deployment forms. One possible deployment form is consistent with traditional 4G network equipment, and CU and DU are deployed with the same hardware. For example, the deployment form can also be DU deployed in the BBU room, CU centralized deployment or DU centralized deployment, CU higher-level centralized, etc. This application does not specifically limit the device form of the network device.
[0064] Figure 2A A topological connection diagram of a traditional base station is shown. Different sites can manage different RRUs. Figure 2A In the example, three sites are used for illustration. The BBU of site 1 governs the two RRUs under site 1, the BBU of site 2 governs the two RRUs under site 2, and the BBU of site 3 governs the two RRUs under site 3. Traditional wireless network construction deploys BBU and cell resources based on physical base stations according to peak performance requirements, and the utilization rate is very low. Traditional base station topology is prone to the "tidal effect" phenomenon (referring to the phenomenon that people gather in large numbers in the CBD area during working hours and migrate to residential areas in large numbers after get off work). This phenomenon triggers the flow of traffic in the mobile communication system, causing sudden large traffic in hot spots at specific times, resulting in network congestion and inaccessibility; it also brings certain difficulties to capacity planning in the early stage of network construction.
[0065] Figure 2BThe topological connection diagram of a cloud-based base station is shown. The BBUs of multiple sites (BBU of site 1, BBU of site 2, and BBU of site 3) are centrally deployed in the data center computer room and connected to the RRUs (RRU of site 1 of building A, RRU of site 2 of building B, and RRU of site 3 of building C) through the fronthaul network switch. Cloud-based base stations can make full use of cloud technology to overcome the tidal effect. After adopting the cloud-based base station architecture, the wireless network can be planned and constructed directly according to the average demand of the wireless coverage area. After cloudification, planning can be carried out based on each area, and the peak and valley can be filled within the deployment area demand, which improves the utilization rate of wireless resources as a whole. The cloud-based base station adopts a hardware architecture based on general-purpose servers. When the wireless network is upgraded from generation to generation, the software image version is mainly updated, and the general-purpose servers with the highest hardware cost can be fully reused. Therefore, cloud-based base stations can reduce the types and number of equipment replacements, upgrade smoothly, and reduce the operating costs of operators. Generally, the computing power specifications of general-purpose servers are very high. After deploying cloud-based small base stations, most of the remaining computing power can be managed by the cloud platform. This part of computing power can be allocated on demand according to the specific edge business. Many edge businesses that originally ran on public clouds and self-built clouds can be seamlessly migrated to the cloud-based small base station computing power platform. At the same time, in the trough stage of the wireless network, by dynamically reducing the number of cloud-based small base station instances, more computing power can be reserved to run some non-emergency offline services during specific periods (such as early morning), and cloud-based base stations can further improve resource utilization. In addition, after adopting cloud-based small base stations, when new cell needs are added, the data center resource pool can be used to quickly expand and shrink capacity. Based on the existing network and cloud data center technology, the reliability of the entire network is achieved.
[0066] The O-RAN protocol stipulates that the connection between the RRU and BBU of the cloud base station is established based on the TCP / IP protocol, and the IP address of the RRU is allocated by the DHCP server in the BBU. However, in the scenario of cloud base stations, a problem arises: all RRUs are connected to a fronthaul network, and there are multiple BBUs in the network, that is, there are multiple DHCP servers. How can each BBU find the RRU of the "local station" to allocate an IP?
[0067] After the RRU is powered on, it sends a DHCP Discovery / Request message. In the message, the identity information of the RRU is published to the DHCP Server through Option 60 / 124 (DHCPv4) or Option 16 (DHCPv6). The identity information of the RRU includes fields such as vendor, product-code, and serial-number. The BBU presets the list of RRUs managed by this BBU. When receiving the DHCP Discovery / Request message from the RRU, it checks the RRU identity information in the message to confirm whether the RRU is in the list of RRUs managed by this BBU. If it matches the list, it replies with a DHCP Offer / Ack to the RRU and includes this RRU in the management of this BBU.
[0068] The essence of BBU's management of RRUs is to manage RRUs at designated locations. The vendor, product-code, and serial-number-based management agreed upon in O-RAN is only a means of indexing RRUs. For example, if BBU wants to manage the third RRU from south to north on the 15th floor of Building A, it will include the vendor, product-code, and serial-number of the RRU at this location in the "RRU list managed by this BBU". Therefore, it is necessary to manually maintain an additional mapping table between the RRU's vendor, product-code, and serial-number information and the location information.
[0069] Under the existing process agreed upon by O-RAN, the relevant technology proposes the following solution for RRU IP address allocation in cloud-based base stations:
[0070] After the RRU is installed, record the manufacturer name, equipment model, and SN number of each RRU. "Manufacturer name, equipment model, and SN number" are combined into the identity information of the RRU, and the mapping relationship between the identity information and the deployment location is recorded. The configuration personnel determine the location information of the RRU to be managed by the specified BBU, and then index the identity information of the RRU. Based on the identity information configuration, configure on the BBU which RRUs are the RRUs that need to be managed by this station. The identity information of the managed RRUs is recorded in the "List of RRUs managed by this BBU". When the RRU accesses the network, the DHCP Offer message sent carries the identity information of the RRU through DHCP option60. The format is:
[0071] ran-ru2 / <vendor> / <product-code> / <serial-number>
[0072] For example: o-ran-ru2 / ruijie / RU520 / G1QH5UK00082C
[0073] The DHCP Server in the BBU receives this DHCP offer message and parses the RRU identity information in Option 60. If it matches the "list of RRUs managed by this BBU", it allocates an IP address to it and puts it under management; if it is an RRU not managed by this station, it ignores this DHCP request.
[0074] The essence of BBU's management of RRU is to manage RRUs at designated locations. The vendor, product-code, and serial-number-based management agreed upon in O-RAN is only an indexing method for RRUs. The mapping relationship between the location and identity information of RRUs needs to be maintained manually. In the case of RRU replacement, addition, or reduction, the configuration needs to be modified on the BBU, the RRU list needs to be reconfigured, and the mapping relationship between RRU SN and location needs to be reorganized. The work of manually maintaining the corresponding relationship is cumbersome.
[0075] Based on this, the present application provides an IP address allocation method to avoid the situation where multiple BBU devices allocate IP addresses to the same RRU device, and further reduce manual maintenance costs. Figure 3 The present application provides an IP address allocation method process, which can be executed by a first device and a second device, or by interaction between the first device and the second device, which is not specifically limited in this application. Among them, the first device can be a BBU, a hardware device co-deployed by a CU and a DU, or a chip of a BBU, or a chip of a device co-deployed by a CU and a DU, and the second device can be an RRU, an AAU, or a chip of an RRU, or a chip of an AAU, which is not specifically limited in this application, such as the first device is a BBU, and the second device is an RRU; the first device is a CU and a DU, and the second device is an AAU, etc. Figure 3 In the example, the first device is a BBU and the second device is an RRU. In actual application, the number of the first device and the second device is not limited. Execute as follows:
[0076] Step 301: The RRU obtains the location information of the RRU, and the location information of the RRU is determined by identifying tag information.
[0077] It should be noted that the label information can directly show the location information of the RRU, such as the label information shows that the location of the RRU is 135 degrees east longitude and 45 degrees north latitude, then the RRU can directly obtain the location information of the RRU by identifying the label information; the label information can also implicitly indicate the location information of the RRU, such as the label information is a QR code, the RRU can obtain the location information of the RRU by identifying the QR code and parsing it, which is not specifically limited here. For example, in a company's park, a label that directly shows the location information can be posted in the RRU; in an open space, a label that implicitly indicates the location information can be posted in the RRU, which can be flexibly set according to the needs of actual applications, and this application does not specifically limit it here. In addition, the label information can also be a barcode, an image composed of a string of numbers, and can also be encoded based on preset rules, such as: the label information is ★◆▲*, ★◆▲* indicates No. **, ** Street, Dongcheng District, Beijing. The specific form of the label information is not specifically limited in this application.
[0078] Optionally, the tag information is an RFID-based location tag sticker. The RFID system mainly consists of three parts: a transponder, a reader, and an application software. The transponder is also called a "tag" and can provide tracking data of the target; the reader collects information from the tag; and the application software processes or forwards data based on the information read by the reader. Transponders are generally divided into two categories: 1) Active tags: Active RFIDs are powered by an external power supply and actively send signals to the RFID reader. 2) Passive tags: Tags receive microwave signals transmitted from the RFID reader and obtain energy through electromagnetic induction coils to briefly power themselves, thereby completing information exchange. In this application, the reader and application software can be integrated into the RRU, and the transponder is integrated into the location tag sticker, using passive tag technology.
[0079] Of course, in actual applications, the label information may also be a label sticker based on ultra wide band (UWB), etc. This application does not specifically limit this, and the label sticker can be flexibly selected according to the actual application.
[0080] Step 302: The RRU sends a message to the BBU, the message carrying the location information of the RRU. Correspondingly, the BBU receives the message.
[0081] It should be noted that the RRU can send a DHCP Discover message to the BBU, and send the location information of the RRU to the BBU through Option 60 / 124 (DHCPv4) or Option 16 (DHCPv6). The location information of the RRU carried in the message is determined by the RRU through the identification tag information, and the location information of the RRU can be plain text location information, and the DHCPOption content carried is: China_Fujian Province_Fuzhou City_Minhou County_High-tech Zone_Starnet Ruijie Technology Park_Building B_11th Floor_South to North 5; of course, the location information of the RRU can also be implicit location information, that is, the location coding information of the RRU, for example, o-ran-ru2 / ruijie / oru520 / , which indicates the above plain text location information China_Fujian Province_Fuzhou City_Minhou County_High-tech Zone_Starnet Ruijie Technology Park_Building B_11th Floor_South to North 5. In addition, in actual application, the location information of the RRU can also be encrypted and encoded. The encryption rule can be determined by negotiation between the BBU and the RRU. After the RRU encrypts the location information, the encryption key identifier can be carried in the message so that the BBU can know which specific key to use for decryption to obtain the location information of the RRU. This application does not specifically limit how the BBU location information is encrypted and encoded, and can be flexibly set according to the actual needs of the user. After encrypting the RRU location, the security of the RRU location information can be guaranteed to prevent the message from being intercepted by other devices to steal the RRU location information.
[0082] Of course, in the actual application process, the location coding information of the RRU can be encoded step by step based on the range of the geographical location, and the location coding format is designed as: country_province_city_district_{park_road_}building_{floor_area within the floor_number within the area}; the location coding information of the RRU can also be encoded based on the base station service area, and the location coding format is designed as cell information (CELL ID) / tracking area (TA); the location coding information of the RRU can also be encoded based on longitude and latitude, and the location coding format is designed as longitude**latitude**, etc. The location coding rules of the RRU are not specifically limited here, and can be flexibly set according to actual needs.
[0083] In addition, the RRU location coding information may also include the RRU manufacturer name, device model, etc., so as to further distinguish different RRUs with the same location. For example, the DHCP Option content is: o-ran-ru2 / <vendor>(Manufacturer Name) / <product-code>(Product Model) / <location>. In addition, the RRU position coding information may also include usage cycle information, such as August 10, 2023 to October 3, 2023, that is, the RRU position coding information obtained between August 10, 2023 and October 3, 2023 is valid. If the RRU obtains the RRU position coding information on October 4, 2023, then the RRU position coding information is considered invalid. In addition, the RRU position coding information may also include other information, and the working status of the equipment (normal operation, downtime, etc.) does not specifically limit the specific content of the RRU position coding information.
[0084] Step 303: The BBU parses the message in step 302 to obtain the location information of the RRU.
[0085] If the RRU location information carried in the message is uncoded location information, the BBU can obtain it directly. If the RRU location information is coded location information, the BBU can pre-agree on the coding rules with the RRU and decode the coded location information based on the same coding and decoding rules to obtain the RRU location information.
[0086] Step 304 , the BBU determines whether the location information of the RRU is within the jurisdiction of the BBU, if so, execute step 305 , if not, execute step 306 .
[0087] It should be noted that the jurisdiction of the BBU is associated with the location of the BBU. For example, if the BBU is located at the Zhangjiang Hi-Tech Subway Station in Pudong New District, Shanghai, the jurisdiction of the BBU may be the area within 200 meters of the Zhangjiang Hi-Tech Subway Station. If the location information of the RRU happens to fall within the jurisdiction of the BBU, it is determined that the RRU has management authority over the BBU. If the location information of the RRU is not within the jurisdiction of the BBU, it is determined that the RRU does not have management authority over the BBU.
[0088] Optionally, the jurisdiction of the BBU can be indicated by a regular expression based on the jurisdiction coding, such as China_Fujian Province_Fuzhou City_Minhou County_High-tech Zone_StarNet Ruijie Technology Park_.*, then all RRUs located in China_Fujian Province_Fuzhou City_Minhou County_High-tech Zone_StarNet Ruijie Technology Park can be governed by the BBU. In addition, the regular expression based on the jurisdiction coding can be set in a unified format with the position coding information of the RRU. For example, if the position coding information of the RRU is 100 degrees east longitude and 65 degrees north latitude, the regular expression based on the jurisdiction coding can be 100 degrees east longitude to 110 degrees east longitude, 45 degrees north latitude to 70 degrees north latitude, etc. This is only an example, and the regular expression based on the jurisdiction coding is not specifically limited. Indicating the jurisdiction of the BBU through a regular expression facilitates matching the position coding information of the RRU with the jurisdiction of the BBU, which can improve data processing efficiency.
[0089] Step 305: The BBU allocates an IP address to the RRU and sends a message response to the RRU. The message response message carries the IP address of the RRU.
[0090] Step 306: No operation is performed.
[0091] Specifically, if the position coding information of the RRU conforms to the regular expression, an IP address is allocated to the RRU. If the position coding information of the RRU does not conform to the regular expression, an IP address is not allocated to the RRU, that is, no processing operation is performed after receiving the message from the RRU. Of course, in actual application, step 306 can also be that the BBU sends a message response message to the RRU, and the message response message indicates that the BBU does not have jurisdiction over the RRU, and please send messages to other BBUs, etc. This is only an example. In actual application, if the BBU does not have jurisdiction over the RRU, sending a message to the RRU may increase the signaling overhead. Therefore, usually in actual application, if the BBU does not have jurisdiction over the RRU, no processing operation is performed.
[0092] In the present application, the first device receives a message carrying the location information of the second device from the second device, obtains the location information of the second device by parsing the message, and if it is determined that the location information of the second device is within the jurisdiction of the first device, an IP address is allocated to the second device, and the IP address is fed back to the corresponding second device. The first device only allocates an IP address to the second device within its jurisdiction, and does not allocate an IP address to the second device that is not within its jurisdiction. This method can avoid the situation where IP addresses are repeatedly allocated to RRU devices. In addition, when the RRU is replaced (added or reduced), the label information of the RRU can be updated, and the BBU side does not need to update the RRU list information. By judging whether the location information of the RRU is within the jurisdiction of the BBU, it is determined whether to allocate an IP address to the RRU. This method can automatically manage the RRU, reduce manual operations, and improve data processing efficiency.
[0093] In order to understand the solution of this application more clearly, Figure 4 To introduce, each BBU in the room configures the BBU jurisdiction, which can be indicated by regular expressions. An RFID location label is attached to the RRU. After the RRU is powered on, the RRU location information is read through RFID. The RRU sends a DHCP Discover message and sends the RRU location information to the BBU in the room through Option 60 / 124 (DHCPv4) or Option 16 (DHCPv6). The DHCP Option content carried is: o-ran-ru2 / <vendor> / <product-code> / <location>. The BBU in the computer room receives the DHCP Discover message, parses the location information of the RRU, and matches the information with the jurisdiction of the local configuration. If it matches, it means that it is an RRU within the management scope of the BBU, and returns a DHCP Offer message. The IP address assigned by the BBU to the RRU can be carried in the DHCP Offer message. Of course, the IP address assigned by the BBU to the RRU can also be carried in other messages, but this application does not specifically limit this. If there is no match, it means that the RRU is not within the management scope of the BBU, and the RRU's message is ignored. In addition, the RRU can subsequently exchange data with the BBU by sending a Request message, and the BBU can reply with an acknowledgement character (English: acknowledge character, abbreviated as Ack) message, which is not limited in this application. The data processing flow after the BBU assigns an IP address to the RRU can be understood with reference to the existing protocol, and this application does not specifically limit it.
[0094] In addition, when there is no match, the RRU can continue to wait until it receives the IP address location assigned to the RRU by other BBUs. Of course, due to the cloud-based base stations, the BBUs are deployed in the computer room. After any BBU receives the DHCP Discover message sent by the RRU, it obtains the location information of the RRU through parsing. If the location information of the RRU is within its jurisdiction, a message message can be sent directly to the RRU, and the message message can carry the IP address assigned to the RRU. For example, RRU1 sends a DHCP Discover message to the BBU in site 1. The BBU of site 1 determines that the location information of RRU1 is not included in the jurisdiction of the BBU, and ignores the DHCP Discover message. If the BBU of site 2 determines that the location information of RRU1 is within its jurisdiction, it can allocate an IP address to RRU1 and send a message carrying the IP address of RRU1 to RRU1. In actual application, how to execute this application is not specifically limited here, and can be flexibly set based on the needs of actual applications.
[0095] Figure 4 In the figure, only BBU and RRU are taken as examples. In actual application, BBU can also be replaced by CU and DU, and RRU can also be replaced by AAU and other equipment. AAU can read the location information of AAU through RFID, and send the location information of AAU to CU and DU through messages. CU and DU determine whether the location information of AAU is within the jurisdiction of CU and DU. If so, an IP address is allocated to AAU, otherwise it is ignored. Please refer to the description of BBU and RRU above for understanding, which will not be elaborated here.
[0096] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of device interaction. It is understandable that, in order to implement the above functions, each device may include a hardware structure and / or software module corresponding to each function. It should be easily appreciated by those skilled in the art that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0097] The embodiment of the present application can divide the functional units of the device according to the above method example, for example, each functional unit can be divided according to each function, or two or more functions can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units.
[0098] In the case of an integrated unit, Figure 5 FIG. 1 shows a possible exemplary block diagram of a communication device involved in an embodiment of the present application. Figure 5 As shown, the communication device 500 may include: a processing unit 501 and a transceiver unit 502. The processing unit 501 is used to control and manage the actions of the communication device 500. The transceiver unit 502 is used to support the communication between the communication device 500 and other devices. Optionally, the transceiver unit 502 may include a receiving unit and / or a sending unit, which are respectively used to perform receiving and sending operations. Optionally, the communication device 500 may also include a storage unit for storing program code and / or data of the communication device 500. The transceiver unit may be called an input-output unit, a communication unit, etc., and the transceiver unit may be a transceiver; the processing unit may be a processor. When the communication device is a module (such as a chip) in a communication device, the transceiver unit may be an input-output interface, an input-output circuit or an input-output pin, etc., and may also be called an interface, a communication interface or an interface circuit, etc.; the processing unit may be a processor, a processing circuit or a logic circuit, etc. Specifically, the device may be the above-mentioned first device, second device, etc.
[0099] In one example, the communication device can be a first device, that is, a BBU, or a chip of a BBU, or a device jointly provided by a CU and a DU, or a chip of a CU and a DU, which is not specifically limited herein, wherein a transceiver unit 502 is used to receive a message from a second device, the message carrying location information of the second device; a processing unit 501 is used to parse the message to obtain location information of the second device; the processing unit 501 is also used to allocate an IP address to the second device if the location information of the second device is within the jurisdiction of the communication device; the transceiver unit 502 is also used to send a message response message to the second device, the message response message carrying the IP address of the second device.
[0100] In the present application, the first device receives a message carrying the location information of the second device from the second device, obtains the location information of the second device by parsing the message, and if it is determined that the location information of the second device is within the jurisdiction of the first device, allocates an IP address to the second device, and feeds back the IP address to the corresponding second device. The first device only allocates an IP address to the second device within its jurisdiction, and does not allocate an IP address to the second device that is not within its jurisdiction. In this way, it is possible to avoid the situation where IP addresses are repeatedly allocated to RRU devices.
[0101] In an optional manner, the jurisdiction of the first device is indicated by a regular expression based on the jurisdiction encoding.
[0102] In the present application, the jurisdiction of the first device is indicated by a regular expression based on the jurisdiction encoding. After parsing the location information of the second device, the regular expression is matched with the location information of the second device. This method can improve data processing efficiency.
[0103] In an optional manner, the location information of the second device carried in the message is location coding information of the second device.
[0104] In the present application, the location information of the second device carried by the message is the location coding information of the second device, and the location coding information of the second device may be an encrypted code. When the location coding information of the second device is an encrypted code, the security of the location information of the second device can be guaranteed, and the message can be prevented from being intercepted by other devices to steal the location information of the second device.
[0105] In an optional manner, the processing unit 501 is specifically configured to: if the location coding information of the second device conforms to a regular expression, allocate an IP address to the second device.
[0106] In the present application, if the location coding information of the second device conforms to the regular expression, it is determined that the location information of the second device is within the jurisdiction of the first device, and the first device can directly assign an IP address to the second device. By matching the location information of the second device in this way, data processing efficiency can be improved.
[0107] In an optional manner, the location coding information of the second device also includes: the manufacturer name and device model of the second device.
[0108] In the present application, the location coding information of the second device may also include the manufacturer name and device model of the second device, so as to further distinguish different second devices at the same location.
[0109] In another embodiment, the communication device may be a second device, namely, an RRU, or a chip of an RRU, or an AAU, or a chip of an AAU, which is not specifically limited herein, wherein the transceiver unit 502 is used to obtain the location information of the communication device, and the location information of the communication device is determined by identifying the tag information; the transceiver unit 502 is also used to send a message to the first device, and the message carries the location information of the second device; the transceiver unit 501 is also used to receive a message response message from the first device, and the message response message carries the IP address assigned by the first device to the communication device, and the location information of the communication device is within the jurisdiction of the first device.
[0110] In this application, the second device determines the location information of the second device by identifying the tag information, and then sends a message carrying the location information of the second device to the first device. If it is determined that the location information of the second device is within the jurisdiction of the first device, an IP address is allocated to the second device. The first device only allocates an IP address to the second device within its jurisdiction, and does not allocate an IP address to the second device that is not within its jurisdiction. In this way, repeated allocation of IP addresses to RRU devices can be avoided.
[0111] In an optional manner, the tag information is a location tag sticker based on radio frequency identification RFID.
[0112] The present application indicates label information through RFID-based location label stickers to facilitate migration, and the second device can quickly obtain location information by identifying the sticker information.
[0113] In an optional manner, the location information of the second device carried in the message is location coding information of the second device.
[0114] In the present application, the location information of the second device carried by the message is the location coding information of the second device, and the location coding information of the second device may be an encrypted code. When the location coding information of the second device is an encrypted code, the security of the location information of the second device can be guaranteed, and the message can be prevented from being intercepted by other devices to steal the location information of the second device.
[0115] In an optional manner, the location coding information of the communication device also includes: the manufacturer name and device model of the communication device.
[0116] In the present application, the location coding information of the second device may also include the manufacturer name and device model of the second device, so as to further distinguish different second devices at the same location.
[0117] In an optional manner, the jurisdiction of the first device is indicated by a regular expression based on the jurisdiction encoding; if the location encoding information of the communication device conforms to the regular expression, then the location information of the communication device is within the jurisdiction of the first device.
[0118] In the present application, if the location coding information of the second device conforms to the regular expression, it is determined that the location information of the second device is within the jurisdiction of the first device, and the first device can directly assign an IP address to the second device. By matching the location information of the second device in this way, data processing efficiency can be improved.
[0119] Those skilled in the art will appreciate that various aspects of the present application may be implemented as a system, method or program product. Therefore, various aspects of the present application may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to as "circuit", "module" or "system".
[0120] like Figure 6 As shown, a communication device 600 is also provided in the present application. The communication device 600 may be a chip or a chip system. The communication device may be located in a device involved in any of the above method embodiments, such as an access network device, or an SMF, etc., to perform actions corresponding to the device.
[0121] Optionally, the chip system may consist of the chip, or may include the chip and other discrete devices.
[0122] The communication device 600 includes a processor 610 .
[0123] The processor 610 is used to execute the computer program stored in the memory 620 to implement the actions of each device in any of the above method embodiments.
[0124] The communication device 600 may further include a memory 620 for storing computer programs.
[0125] Optionally, the memory 620 is coupled to the processor 610. Coupling is an indirect coupling or communication connection between devices, units or modules, which can be electrical, mechanical or other forms, for information exchange between devices, units or modules. Optionally, the memory 620 is integrated with the processor 610.
[0126] The processor 610 and the memory 620 may be one or more and are not limited.
[0127] Optionally, in practical applications, the communication device 600 may include a transceiver 630 or may not include the transceiver 630, which is illustrated by a dotted box in the figure, and the communication device 600 may exchange information with other devices through the transceiver 630. The transceiver 630 may be a circuit, a bus, a transceiver, or any other device that can be used for information exchange.
[0128] In a possible implementation, the communication device 600 may be the first device or the second device in the implementation of the above methods.
[0129] The specific connection medium between the transceiver 630, the processor 610 and the memory 620 is not limited in the embodiment of the present application. Figure 6 The memory 620, the processor 610 and the transceiver 630 are connected by a bus. Figure 6 The connections between the other components are shown in bold lines, which are only for illustration and are not intended to be limiting. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one thick line is used to represent it, but it does not mean that there is only one bus or one type of bus. In the embodiment of the present application, the processor can be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, and can implement or execute the methods, steps and logic block diagrams disclosed in the embodiment of the present application. The general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware processor for execution, or can be executed by a combination of hardware and software modules in the processor.
[0130] In the embodiments of the present application, the memory may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), etc., or a volatile memory, such as a random access memory (RAM). The memory may also be any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory in the embodiments of the present application may also be a circuit or any other device that can implement a storage function, for storing computer programs, program instructions and / or data.
[0131] Based on the above embodiments, see Figure 7 The embodiment of the present application also provides another communication device 700, including: an interface circuit 710 and a logic circuit 720; the interface circuit 710 can be understood as an input and output interface, which can be used to execute the sending and receiving steps of each device in any of the above method embodiments, such as the above step 302, the step of sending a message from the RRU to the BBU; the logic circuit 720 can be used to run code or instructions to execute the method executed by each device in any of the above embodiments, which will not be repeated.
[0132] Based on the above embodiments, the embodiments of the present application further provide a computer-readable storage medium, which stores instructions. When the instructions are executed, the method executed by each device in any of the above method embodiments is implemented, for example, Figure 3 The method executed by the BBU or RRU in the illustrated embodiment is implemented. The computer-readable storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory, a random access memory, a magnetic disk or an optical disk, and other media that can store program codes.
[0133] Based on the above embodiments, an embodiment of the present application provides a communication system, which includes the first device or the second device mentioned in any of the above method embodiments, and can be used to execute the method executed by each device in any of the above method embodiments.
[0134] In addition, the above-mentioned communication system may further include a terminal device (eg, UE, which may perform data interaction with the first device and the second device to execute the relevant method in any of the above-mentioned method embodiments.
[0135] The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0136] The program product for time domain noise processing of the embodiment of the present application may adopt a portable compact disk read-only memory (CD-ROM) and include a computer program, and can be run on an intelligent terminal. However, the program product of the present application is not limited thereto. In this document, a readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device.
[0137] A readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, in which a readable computer program is carried. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium other than a readable storage medium that can transmit, propagate, or transfer a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0138] It should be noted that, although several units or subunits of the device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more units described above can be embodied in one unit. Conversely, the features and functions of one unit described above can be further divided into multiple units to be embodied.
[0139] In addition, although the operations of the method of the present application are described in a specific order in the drawings, this does not require or imply that the operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.
[0140] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable access frequency prediction device to produce a machine, so that the instructions executed by the processor of the computer or other programmable access frequency prediction device generate instructions for implementing the process in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0141] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable access frequency prediction device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0142] These computer program instructions may also be loaded onto a computer or other programmable device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0143] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0144] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.< / location> < / product-code> < / vendor> < / location> < / vendor> < / product-code> < / vendor>
Claims
1. A method for allocating an Internet Protocol (IP) address, applied to a first device, characterized in that: include: receiving a message from a second device, wherein the message carries location information of the second device; Parsing the message to obtain location information of the second device; If the location information of the second device is within the jurisdiction of the first device, assigning an IP address to the second device; The message response message is sent to the second device, where the message response message carries the IP address of the second device.
2. The method according to claim 1, characterized in that The jurisdiction of the first device is indicated by a regular expression encoded based on the jurisdiction.
3. The method according to claim 1 or 2, characterized in that: The location information of the second device carried in the message is the location coding information of the second device.
4. The method according to claim 3, characterized in that If the location information of the second device is within the jurisdiction of the second device, allocating an IP address to the second device includes: If the location coding information of the second device conforms to the regular expression, an IP address is allocated to the second device.
5. The method according to claim 3, characterized in that: The location coding information of the second device also includes: the manufacturer name and device model of the second device.
6. A method for allocating an Internet Protocol (IP) address, applied to a second device, characterized in that: include: Acquire location information of the second device, where the location information of the second device is determined by identifying tag information; Sending a message to the first device, where the message carries the location information of the second device; The message response message is received from the first device, where the message response message carries the IP address allocated by the first device to the second device, and the location information of the second device is within the jurisdiction of the first device.
7. The method according to claim 6, characterized in that The label information is a location label sticker based on radio frequency identification RFID.
8. The method according to claim 6 or 7, characterized in that: The location information of the second device carried in the message is the location coding information of the second device; the jurisdiction of the first device is indicated by a regular expression based on the jurisdiction coding; If the location coding information of the second device conforms to the regular expression, the location information of the second device is within the jurisdiction of the first device.
9. A communication device, characterized in that: include: a transceiver unit, configured to receive a message from a second device, wherein the message carries location information of the second device; a processing unit, configured to parse the message and obtain location information of the second device; The processing unit is further configured to allocate an IP address to the second device if the location information of the second device is within the jurisdiction of the communication device; The transceiver unit is further used to send the message response message to the second device, and the message response message carries the IP address of the second device.
10. A communication device, characterized in that: include: a transceiver unit, configured to obtain location information of the communication device, wherein the location information of the communication device is determined by identifying tag information; The transceiver unit is further used to send a message to the first device, where the message carries the location information of the second device; The transceiver unit is further used to receive the message response message from the first device, the message response message carries the IP address allocated by the first device to the communication device, and the location information of the communication device is within the jurisdiction of the first device.
11. A communication device, characterized in that: include: at least one processor and memory; The memory is used to store computer programs or instructions; The at least one processor is configured to execute the computer program or instruction so that the method according to any one of claims 1 to 8 is performed.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed by a computer, the method according to any one of claims 1 to 8 is executed.