Method for determining network address and related equipment

By determining its IP address according to the location of the node in the data center, and transmitting location identification information and IP addresses using the DHCP protocol, the problems of low efficiency and difficulty of IP address allocation in the prior art are solved, and more efficient network address management and Less manual maintenance.

CN119182755APending Publication Date: 2024-12-24HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310749398.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-21
Publication Date
2024-12-24

AI Technical Summary

Technical Problem

The prior art is inefficient and difficult to assign Internet Protocol (IP) addresses to management units, computing nodes and switching nodes in data centers, especially when equipment integration is improved and node replacements require a lot of manual configuration and maintenance.

Method used

The operation and maintenance unit determines its IP address based on the location identification information of the node, and directly determines the IP address based on the location after the node is replaced, reducing manual configuration and maintenance, and using the discover and offer packets in the DHCP protocol to transmit the location identification information and IP address , avoid remodeling of existing agreements.

Benefits of technology

It reduces the difficulty of determining network addresses and manual configuration and maintenance requirements, improves efficiency, saves storage and communication resources, and maintains business consistency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119182755A_ABST
    Figure CN119182755A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a method for determining a network address and related equipment. The method comprises the following steps: determining an internet protocol IP address of a first node according to position identification information of a first position where the first node is located; and sending the IP address of the first node to the first node. The difficulty of acquiring the position identification information of the position of each node is low, so that the difficulty of determining the network address of the node can be reduced. In addition, resources needed for storing the position identification information are few. Meanwhile, after the node at each position is replaced, the IP address of the newly replaced node at the position can be directly determined according to the position because the corresponding relationship exists between the IP address and the position, and manual configuration or maintenance is not needed, so that the difficulty of determining the IP address of the node can be reduced, and the efficiency of determining the IP address of the node can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present application relate to the computer field, and more specifically, to a method for determining a network address, a device for determining a network address, a system for determining a network address, a chip system, and a computer-readable storage medium. Background Art

[0002] Generally, a data center includes a large number of management units, computing nodes, and switching nodes, and an Internet Protocol (IP) address needs to be allocated to each management unit, computing node, or switching node for management or network communication. The current methods for allocating IP addresses include manual allocation or automatic allocation through the dynamic host configuration protocol (DHCP). The manual allocation method requires manual allocation of IP addresses for each node. The method of automatic allocation through DHCP requires obtaining the serial number (SN) and / or media access control (MAC) address of each node, so as to allocate an IP address to each node through a device deployed with a DHCP server. However, the manual allocation method requires a lot of manpower and the efficiency of determining the IP address is low. The method of automatic allocation through DHCP requires querying the SN and / or MAC address of each node. Since the SN and / or MAC address of each node is an unordered number of more than 12 or 20 digits, the acquisition process is relatively cumbersome and requires a large amount of storage resources. In addition, with the improvement of the integration of equipment, the difficulty of obtaining the SN and / or MAC address of the node is also gradually increasing. Meanwhile, after the node is replaced, the IP address of the new node needs to be manually configured, or the mapping relationship between the SN and / or MAC address of the new node and the IP address needs to be manually modified and maintained on the DHCP server, which is inefficient.

[0003] Therefore, how to determine the network address of a node and reduce the difficulty of determining the network address of a node becomes an urgent problem to be solved. Summary of the invention

[0004] Embodiments of the present application provide a method for determining a network address, a device for determining a network address, a system for determining a network address, a chip system, and a computer-readable storage medium, which can determine the network address of a node and reduce the difficulty of determining the network address of a node.

[0005] In a first aspect, a method for determining a network address is provided. The method is performed by an operation and maintenance unit, and includes: determining an Internet Protocol IP address of a first node according to location identification information of a first location where a first node is located; and sending the IP address of the first node to the first node.

[0006] The first node is managed by a first management unit. The operation and maintenance unit and the first management unit are located in the same device or in different devices.

[0007] In an embodiment of the present application, the operation and maintenance unit can determine the IP address of each node according to the location of each node. Since it is relatively easy to obtain the location identification information of each node, the difficulty of determining the network address of the node can be reduced. In addition, fewer resources are required to store the location identification information. At the same time, after the node at each location is replaced, since there is a corresponding relationship between the IP address and the location, the newly replaced node at the location can directly determine the IP address according to the location without manual configuration or maintenance, thereby reducing the difficulty of determining the IP address of the newly replaced node and improving the efficiency of determining the IP address of the newly replaced node.

[0008] In combination with the first aspect, in some implementations of the first aspect, the IP address of the first management unit is determined according to location identification information of the second location where the first management unit is located.

[0009] In the embodiment of the present application, the IP address of the management unit can be determined according to the location identification information of the location where the management unit is located, thereby reducing the difficulty of determining the network address of the management unit. In addition, since there is a corresponding relationship between the location of the management unit and the IP address, after replacing the management unit at the location, there is no need to manually configure the IP address or perform maintenance, thereby reducing the difficulty of determining the IP address of the newly replaced management unit.

[0010] In combination with the first aspect, in some implementations of the first aspect, location identification information of the second location is determined based on device identification information of the first management unit, where the device identification information of the first management unit is used to identify the first management unit.

[0011] In an embodiment of the present application, the location identification information of the location of the management unit can be determined based on the device identification information of the management unit, thereby facilitating the determination of the location identification information of each node in the area managed by the management unit based on the management unit.

[0012] In combination with the first aspect, in some implementations of the first aspect, the device identification information of the first management unit includes: a serial number SN of the first management unit and / or a media access control MAC address of the first management unit.

[0013] In combination with the first aspect, in some implementations of the first aspect, according to the location identification information of the first location and / or the IP address of the first node, configuration information is sent to the first node, and the configuration information is used to configure the first node; or, the location identification information of the first location and / or the IP address of the first node is sent to the configuration unit, and the location identification information of the first location and / or the IP address of the first node is used for the configuration unit to send configuration information to the first node, and the configuration information is used to configure the first node. The configuration unit and the operation and maintenance unit are located in the same device or different devices.

[0014] In the embodiment of the present application, the configuration information corresponding to each node can be determined according to the location identification information of each node and / or the IP address of the node, so as to configure the node. In addition, since there is a corresponding relationship between the configuration information and the location, the newly replaced node at the location can directly determine the configuration information according to the location without manual configuration, so that the configuration of the node at the location can be kept consistent, thereby maintaining the consistency of the service.

[0015] In combination with the first aspect, in some implementations of the first aspect, the location identification information of the first location is carried in a discover message of DHCP.

[0016] In the embodiment of the present application, the location identification information can be transmitted through the discover message in the DHCP protocol, thereby eliminating the need to modify the existing protocol or protocol message or use additional signaling, making the transmission of the location identification information more convenient and saving communication overhead.

[0017] In combination with the first aspect, in some implementations of the first aspect, the IP address of the first node is carried in an offer message and / or an acknowledgment ack message of the DHCP.

[0018] In the embodiment of the present application, the IP address can be transmitted through the offer message and / or ack message in the DHCP protocol, so there is no need to modify the existing protocol or protocol message or use additional signaling, which makes the transmission of the IP address more convenient and can save communication overhead.

[0019] In combination with the first aspect, in certain implementations of the first aspect, the operation and maintenance unit, the first management unit, and the first node are located in the same data center; or, the first management unit and the first node are located in the same data center, and the operation and maintenance unit is remotely connected to the data center.

[0020] In an embodiment of the present application, regardless of whether the operation and maintenance unit, the first management unit and the first node are located in the same data center, the IP address of the node can be determined through the location identification information of the node's location, thereby reducing the difficulty of determining the IP address of the node.

[0021] In a second aspect, a method for determining a network address is provided. The method is performed by a first unit and includes: sending location identification information of a third location where the first unit is located, the location identification information of the third location is used to determine an Internet Protocol IP address of the first unit; and receiving the IP address of the first unit.

[0022] In the embodiment of the present application, the IP address of each unit can be determined according to the location of each unit. Since it is relatively easy to obtain the location identification information of the location of each unit, the difficulty of determining the network address of each unit can be reduced. In addition, fewer resources are required to store the location identification information. At the same time, after the unit at each location is replaced, since there is a corresponding relationship between the IP address and the location, the newly replaced unit at the location can directly determine the IP address according to the location without manual configuration or maintenance, thereby reducing the difficulty of determining the IP address of the newly replaced unit and improving the efficiency of determining the IP address of the newly replaced unit.

[0023] In combination with the second aspect, in certain implementations of the second aspect, when the first unit is a first management unit, the method also includes: determining location identification information of the first location based on the location indication information, the location indication information being used to indicate that the first node is located at the first location and the first node is managed by the first unit; and sending the location identification information of the first location to the first node.

[0024] In the embodiment of the present application, the first node can send location indication information to the first management unit, thereby obtaining the location identification information of the first location. Moreover, after the node at the first location is replaced, the newly replaced node can obtain the location identification information of the first location from the management unit, thereby determining the IP address, thereby reducing the difficulty of determining the IP address and improving the efficiency of determining the IP address.

[0025] In combination with the second aspect, in some implementations of the second aspect, when the first unit is a first management unit, device identification information of the first unit is sent, and the device identification information of the first unit is used to determine location identification information of the third location.

[0026] In an embodiment of the present application, the location identification information of the location of the management unit can be determined based on the device identification information of the management unit, thereby facilitating the determination of the location identification information of each node in the area managed by the management unit based on the management unit.

[0027] In combination with the second aspect, in some implementations of the second aspect, the device identification information of the first unit includes: a serial number SN of the first unit and / or a media access control MAC address of the first unit.

[0028] In combination with the second aspect, in certain implementations of the second aspect, when the first unit is managed by a first management unit, the method also includes: sending location indication information to the first management unit, the location indication information indicating that the first unit is located at a third location; and receiving location identification information of the third location from the first management unit.

[0029] In the embodiment of the present application, the first unit can send location indication information to the first management unit, thereby obtaining the location identification information of the first location. Moreover, after the unit at the first location is replaced, the newly replaced unit can obtain the location identification information of the first location from the management unit, thereby determining the IP address, thereby reducing the difficulty of determining the IP address and improving the efficiency of determining the IP address.

[0030] In combination with the second aspect, in certain implementations of the second aspect, configuration is performed according to configuration information, where the configuration information is determined according to location identification information of the third location and / or the IP address of the first unit.

[0031] In the embodiment of the present application, the configuration information corresponding to each unit can be determined according to the location identification information of the location of each unit and / or the IP address of the node, so as to perform configuration. In addition, since there is a corresponding relationship between the configuration information and the location, the newly replaced unit at the location can directly determine the configuration information according to the location without manual configuration, so that the configuration of the unit at the location can be kept consistent, thereby maintaining the consistency of the service.

[0032] In combination with the second aspect, in some implementations of the second aspect, the location identification information of the third location is carried in a discover message of DHCP.

[0033] In the embodiment of the present application, the location identification information can be transmitted through the discover message in the DHCP protocol, thereby eliminating the need to modify the existing protocol or protocol message or use additional signaling, making the transmission of the location identification information more convenient and saving communication overhead.

[0034] In combination with the second aspect, in some implementations of the second aspect, the IP address of the first unit is carried in an offer message and / or an acknowledgment ack message of the DHCP.

[0035] In the embodiment of the present application, the IP address can be transmitted through the offer message and / or ack message in the DHCP protocol, so there is no need to modify the existing protocol or protocol message or use additional signaling, which makes the transmission of the IP address more convenient and can save communication overhead.

[0036] In combination with the second aspect, in certain implementations of the second aspect, location identification information of a third location is sent to an operation and maintenance unit, the first unit is a first management unit or a first node, the first node is managed by the first management unit, and the operation and maintenance unit, the first management unit, and the first node are located in the same data center; or, the first management unit and the first node are located in the same data center, and the operation and maintenance unit is remotely connected to the data center.

[0037] In an embodiment of the present application, regardless of whether the operation and maintenance unit, the first management unit and the first node are located in the same data center, the IP address of the first unit can be determined through the location identification information of the location of the first unit, thereby reducing the difficulty of determining the IP address of the first unit.

[0038] According to a third aspect, a device for determining a network address is provided, the device comprising a processor and a memory, the processor being configured to execute instructions stored in the memory so that the device executes the method described in the first aspect or any possible implementation of the first aspect.

[0039] In a fourth aspect, a device for determining a network address is provided, the device comprising a processor and a memory, the processor being configured to execute instructions stored in the memory so that the device executes the method described in the second aspect or any possible implementation of the second aspect.

[0040] In a fifth aspect, a system for determining a network address is provided, the system comprising the device for determining a network address as described in the third aspect and the device for determining a network address as described in the fourth aspect.

[0041] In a sixth aspect, a chip system is provided, which includes a logic circuit, which is used to couple with an input / output interface and transmit data through the input / output interface to execute the first aspect, the second aspect, any possible implementation of the first aspect, or any possible implementation of the second aspect.

[0042] In the seventh aspect, a computer-readable storage medium is provided, which stores program instructions. When the program instructions are run on a computer, the computer executes the first aspect, the second aspect, any possible implementation of the first aspect, or any possible implementation of the second aspect.

[0043] In an eighth aspect, an embodiment of the present application provides a computer program product, which includes: a computer program code, which, when executed on a computer, enables the computer to execute the first aspect, the second aspect, any possible implementation of the first aspect, or any possible implementation of the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 It is a schematic architecture diagram of a system for determining a network address according to an embodiment of the present application.

[0045] Figure 2 is a schematic architecture diagram of a system for determining a network address according to another embodiment of the present application.

[0046] Figure 3 It is a schematic flowchart of a method for determining a network address according to an embodiment of the present application.

[0047] Figure 4 is a schematic diagram of multiple nodes according to an embodiment of the present application.

[0048] Figure 5 This is a schematic diagram of the format of an element in a discovery message according to an embodiment of the present application.

[0049] Figure 6 is a schematic flowchart of a method for determining a network address according to another embodiment of the present application.

[0050] Figure 7 It is a schematic diagram of the format of a cell in a message provided according to an embodiment of the present application.

[0051] Figure 8 It is a schematic structural diagram of a device for determining a network address according to an embodiment of the present application.

[0052] Fig. 9 It is a schematic structural diagram of a device for determining a network address according to another embodiment of the present application.

[0053] Fig.10 It is a schematic structural diagram of a device for determining a network address according to an embodiment of the present application. DETAILED DESCRIPTION

[0054] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0055] The embodiments of the present application will present various aspects, embodiments or features around a system including multiple devices, components, modules, etc. It should be understood and appreciated that each system may include additional devices, components, modules, etc., and / or may not include all devices, components, modules, etc. discussed in conjunction with the figures. In addition, combinations of these schemes may also be used.

[0056] In addition, in the embodiments of the present application, words such as "exemplary" and "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of the word "exemplary" is intended to present concepts in a concrete way.

[0057] The business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Ordinary technicians in this field can know that with the evolution of technology and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0058] References to "one embodiment" or "some embodiments" etc. described in this specification mean that a particular feature, structure or characteristic described in conjunction with the embodiment is included in one or more embodiments of the present application. Thus, the phrases "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear at 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.

[0059] In the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can be represented by: including the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and subsequent associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can be represented by: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.

[0060] The technical solution of the embodiment of the present application can be applied to a local area network, such as a campus network, a government network, or an industrial manufacturing network, etc. The management unit in the embodiment of the present application can be used to manage at least one computing node and / or at least one switching node. For example, the management unit can be a computing device, a management board of a cabinet in a data center, etc., or can be deployed in a computing device or a management board. The computing node in the embodiment of the present application is a device with computing capabilities, or can be deployed in a device with computing capabilities. The device with computing capabilities can be, for example, a server, a host, a desktop, a laptop, a terminal device, etc. The switching node in the embodiment of the present application can be a network device for forwarding signals, such as a switch, etc., or can be a gateway device for forwarding data, such as a router, etc. Alternatively, the switching node can be deployed in a network device or a gateway device. The switch can be an Ethernet switch, a fiber distributed data interface (FDDI), etc. The network forwarding device can also be a server or a proxy server that has started a routing protocol, etc., which is not limited by the embodiment of the present application.

[0061] Figure 1 It is a possible schematic architecture diagram of a system for determining a network address provided in an embodiment of the present application. Figure 1 The system for determining a network address in the embodiment includes an operation and maintenance unit 110, a first management unit 121, and a first node 131. The operation and maintenance unit 110, the first management unit 121, and the first node 131 are all located in a data center 100.

[0062] The data center 100 may include at least one computing device, that is, the data center 100 may be a computing device cluster. The operation and maintenance unit 110, the first management unit 121, or the first node 131 may be deployed in a computing device of the data center 100. In some embodiments, the data center 100 may also include at least one switching device, and the first node 131 may be deployed in a computing device or a switching device of the data center 100. Alternatively, the first node 131 may be a computing device or a switching device of the data center 100.

[0063] In some embodiments, the data center 100 may further include a second management unit 122, that is, the data center 100 may include multiple management units. The data center 100 may further include a second node 132, a third node 133, and a fourth node 134, that is, the data center 100 may include multiple nodes. The second node 132, the third node 133, and the fourth node 134 are similar to the first node 131. When the data center 100 includes multiple management units, each management unit may manage one or more nodes, for example, the first management unit 121 may manage the first node 131 and the second node 132, and the second management unit may manage the third node 133 and the fourth node 134.

[0064] In some embodiments, the operation and maintenance unit 110 and the first management unit 121 may be located in the same device or in different devices. The device where the operation and maintenance unit 110 is located may be a device for allocating network addresses, such as a DHCP server or a device with a DHCP server deployed, etc., which is not limited in the embodiments of the present application. Similarly, the operation and maintenance unit 110 and the second management unit 122 may be located in the same device or in different devices.

[0065] In some embodiments, the first management unit 121 and the second management unit 122 may be located in the same device or in different devices. The first management unit 121 and the first node 131 may be located in the same device or in different devices. Similarly, the second management unit 122 and the third node 133 may be located in the same device or in different devices.

[0066] Figure 2 This is another possible schematic architecture diagram of the system for determining a network address provided in an embodiment of the present application. Figure 2 The system for determining a network address in the embodiment includes an operation and maintenance unit 210, a first management unit 221, and a first node 231. The first management unit 221 and the first node 231 are located in a data center 200, and the operation and maintenance unit 210 is remotely connected to the data center 200. In other words, the first management unit 221 and the first node 231 are located in the same data center, and the operation and maintenance unit 210 and the first management unit 221 are located in different data centers.

[0067] and Figure 1 Similar to the data center 100 in FIG. 1 , the data center 200 may include at least one computing device, that is, the data center 200 may be a computing device cluster. The first management unit 221 or the first node 231 may be deployed in a computing device of the data center 200. The data center 200 may also include at least one switching device, and the first node 231 may be deployed in a computing device or a switching device of the data center 200. Alternatively, the first node 231 may be a computing device or a switching device of the data center 200.

[0068] and Figure 1 Similar to the system in FIG. 2 , the data center 200 may further include a second management unit 222, that is, the data center 200 may include multiple management units. The data center 200 may further include a second node 232, a third node 233, and a fourth node 234, that is, the data center 200 may include multiple nodes. The second node 232, the third node 233, and the fourth node 234 are similar to the first node 231. When the data center 200 includes multiple management units, each management unit may manage one or more nodes, for example, the first management unit 221 may manage the first node 231 and the second node 232, and the second management unit may manage the third node 233 and the fourth node 234.

[0069] exist Figure 2 In the system shown, the operation and maintenance unit 210 and the first management unit 221 are located in different devices, and the operation and maintenance unit 210 and the first management unit 221 are remotely connected. Similarly, the operation and maintenance unit 210 and the second management unit 222 are located in different devices, and the operation and maintenance unit 210 and the second management unit 222 are remotely connected.

[0070] and Figure 1 Similar to the system in, the first management unit 221 and the second management unit 222 can be located in the same device or different devices. The first management unit 221 and the first node 231 can be located in the same device or different devices. Similarly, the second management unit 222 and the third node 233 can be located in the same device or different devices.

[0071] It should be understood that Figure 1 and Figure 2 This is only a schematic architecture diagram of a possible system for determining a network address provided in an embodiment of the present application. The system for determining a network address provided in an embodiment of the present application may also be in other forms.

[0072] For example, the operation and maintenance unit and the first management unit may be located in the same data center, and the first node may be remotely connected to the data center. In other words, the operation and maintenance unit and the first management unit may be located in the same data center, and the first node and the first management unit may be located in different data centers.

[0073] For another example, the operation and maintenance unit and the first node may be located in the same data center, and the first management unit may be remotely connected to the data center. In other words, the operation and maintenance unit and the first node may be located in the same data center, and the first node and the first management unit may be located in different data centers.

[0074] For another example, the operation and maintenance unit, the first management unit and the first node are all connected remotely, or in other words, the operation and maintenance unit, the first management unit and the first node are located in three different data centers.

[0075] In the system for determining a network address provided in an embodiment of the present application, an operation and maintenance unit (e.g., operation and maintenance unit 110 or operation and maintenance unit 210) may be used to determine an IP address of a first node (e.g., first node 131 or first node 231) according to location identification information of a first location where the first node is located. The first node may be managed by a first management unit (e.g., first management unit 121 or first management unit 221). The operation and maintenance unit may also send the IP address of the first node to the first node.

[0076] The embodiments of the present application do not limit the specific form of the IP address. For example, the IP address can be an Internet Protocol version 4 (IPv4) address, an Internet Protocol version 6 (IPv6) address, or a flexible Internet Protocol (Flex IP) address.

[0077] In some embodiments, the operation and maintenance unit may also determine the IP address of the first management unit according to the location identification information of the second location where the first management unit is located. The location identification information of the second location is used to identify the second location, and the IP address of the first management unit is the address for the first management unit to perform network communication.

[0078] In some embodiments, the operation and maintenance unit may send the IP address of the first node or the IP address of the first management unit through a DHCP offer message and / or an acknowledgment message. That is, the IP address of the first node or the IP address of the first management unit may be carried in the DHCP offer message and / or the ack message.

[0079] In some embodiments, the operation and maintenance unit may also determine the location identification information of the second location where the first management unit is located based on the device identification information of the first management unit. The device identification information of the first management unit is used to identify the first management unit. Exemplarily, the operation and maintenance unit may send the location identification information of the second location through a DHCP offer message and / or an acknowledgment (ack) message. That is, the location identification information of the second location may be carried in the DHCP offer message and / or ack message.

[0080] In some embodiments, the device identification information of the first management unit includes the SN of the first management unit and / or the MAC address of the first management unit.

[0081] In some embodiments, the operation and maintenance unit may determine the configuration information based on the location identification information of the first location and / or the IP address of the first node. The operation and maintenance unit may also send the configuration information to the first node, and the configuration information is used to configure the first node. Alternatively, the operation and maintenance unit may also send the location identification information of the first location and / or the IP address of the first node to the configuration unit. The configuration unit may determine the configuration information based on the location identification information of the first location and / or the IP address of the first node. The configuration unit may also send the configuration information to the first node, and the configuration information is used to configure the first node. The configuration unit may be located on the same device or on a different device as the operation and maintenance unit. When the configuration unit and the operation and maintenance unit are located on different devices, the configuration unit may be connected to the operation and maintenance unit. The embodiments of the present application do not limit the specific connection method between the configuration unit and the operation and maintenance unit, for example, it may be a physical direct connection or a remote connection.

[0082] Exemplarily, the configuration information can be used to configure any one or more of the baseboard management controller (BMC), basic input output system (BIOS), time information, operating system, redundant array of independent disks (RAID), network card, etc. of the first node.

[0083] In the system for determining the network address provided in the embodiment of the present application, the first unit may be a first management unit, or the first unit may be managed by the first management unit. When the first unit is managed by the first management unit, the first unit may be, for example, a first node. The first unit may be used to send location identification information of a third location where the first unit is located to the operation and maintenance unit, and the first unit may also receive the IP address of the first unit. The location identification information of the third location is used to identify the third location. The IP address of the first unit is the address of the first unit for network communication.

[0084] For example, when the first unit is a first node, the first node can be used to send location identification information of a first location where the first node is located to the operation and maintenance unit, and the first node can also receive the IP address of the first node. Alternatively, when the first unit is a first management unit, the first management unit can be used to send location identification information of a second location where the first management unit is located to the operation and maintenance unit, and the first management unit can also receive the IP address of the first management unit.

[0085] In some embodiments, the first unit may send the location identification information of the third location via a DHCP discover message, that is, the location identification information of the third location may be carried in the DHCP discover message.

[0086] When the first unit is a first management unit, the first unit may also determine the location identification information of the first location according to the location indication information. The location indication information is used to indicate that the first node is located at the first location and the first node is managed by the first unit. The first unit may also send the location identification information of the first location to the first node, and the location identification information of the first location is used to determine the IP address of the first node.

[0087] Correspondingly, when the first unit is managed by the first management unit, the first unit may send location indication information to the first management unit. The location indication information indicates that the first unit is located at the third location. The first unit may also receive location identification information of the third location from the first management unit.

[0088] When the first unit is the first management unit, the first unit may also send the device identification information of the first unit to the operation and maintenance unit, thereby determining the location identification information of the third location. Alternatively, the first unit may also send the device identification information of the first unit to the operation and maintenance unit, thereby determining the location identification information of the third location and the IP address of the first unit. The device identification information of the first unit is used to identify the first unit. The device identification information of the first unit may include: the SN of the first unit and / or the MAC address of the first unit.

[0089] In some embodiments, the first unit may also receive configuration information and perform configuration according to the configuration information. The configuration information is determined according to the location identification information of the third location and / or the IP address of the first unit. Exemplarily, the configuration information is used to configure one or more of BMC, BIOS, time information, operating system, RAID, network card, etc.

[0090] The operation and maintenance unit can determine the IP address of each node or management unit according to the location of each node or management unit. Since it is relatively easy to obtain the location identification information of each node or management unit, the difficulty of determining the network address of the node or management unit can be reduced. In addition, fewer resources are required to store the location identification information. At the same time, after the node or management unit at each location is replaced, since there is a corresponding relationship between the IP address and the location, the newly replaced node or management unit at the location can directly determine the IP address according to the location without manual configuration or maintenance, thereby reducing the difficulty of determining the IP address of the newly replaced node or management unit and improving the efficiency of determining the IP address of the newly replaced node or management unit.

[0091] Figure 3 It is a schematic flowchart of a method for determining a network address provided in an embodiment of the present application. Figure 3 The method in can be applied to the system for determining the network address provided in the embodiment of the present application, for example Figure 1 or Figure 2 The system in. Figure 3 The method comprises the following steps.

[0092] S310: Determine an IP address of the first node according to location identification information of a first location where the first node is located.

[0093] The operation and maintenance unit may determine the IP address of the first node according to the location identification information of the first location where the first node is located. The first node is managed by the first management unit. In other words, the first location may be located in the area managed by the first management unit. The identification information of the first location is used to identify the first location. The IP address of the first node is the address of the first node for network communication.

[0094] In some embodiments, the data center may include at least one management unit, each of which may manage at least one computing node and / or at least one switching node. The first management unit is any one of the at least one management unit. The first node is any one of the at least one computing node and / or switching node managed by the first management unit.

[0095] For example, suppose a diagram of multiple nodes is as follows Figure 4 shown. Figure 4 It is a schematic diagram of multiple nodes provided in an embodiment of the present application. Figure 4 The management unit 1 includes management unit 1, management unit 2, computing node 1, computing node 2, computing node 3, computing node 4, computing node 5, and switching node 1. Among them, management unit 1 can manage switching node 1, computing node 1, and computing node 2. The area managed by management unit 1 is area 1. That is, the locations of switching node 1, computing node 1, and computing node 2 are all located in area 1. Management unit 2 can manage computing node 3, computing node 4, and computing node 5. The area managed by management unit 2 is area 2. That is, the locations of computing node 3, computing node 4, and computing node 5 are all located in area 2.

[0096] In some embodiments, the operation and maintenance unit and the first management unit may be located in the same device or in different devices.

[0097] For example, suppose a diagram of nodes included in a data center is as follows Figure 4 Step S310 may be performed by management unit 1 or management unit 2. Alternatively, step S310 may be performed by Figure 4The first node may be any one of computing node 1, computing node 2, computing node 3, computing node 4, computing node 5, and switching node 1.

[0098] Optionally, the operation and maintenance unit may determine the IP address of the first node at the first location according to the location identification information of the first location and a first mapping relationship. The first mapping relationship is used to indicate a mapping relationship between the location identification information and the IP address.

[0099] In some embodiments, the operation and maintenance unit may determine the first mapping relationship by itself. Alternatively, the operation and maintenance unit may receive the first mapping relationship from other devices connected to the operation and maintenance unit. The embodiment of the present application does not limit the specific storage form of the first mapping relationship. For example, the first mapping relationship may be stored in a table, array, matrix, function, etc.

[0100] For example, suppose a diagram of nodes included in a data center is as follows Figure 4 As shown, the first mapping relationship may be as shown in Table 1.

[0101] Table 1 First mapping relationship table

[0102] Location identification information IP address 1-1 10.0.1.1 1-2 10.0.1.2 1-3 10.0.1.3

[0103] In Table 1, the position with the position identification information of 1-1 is the first position in area 1, for example, it may be the position where the switching node 1 is located. Similarly, the position with the position identification information of 1-2 is the second position in area 1, for example, it may be the position where the computing node 1 is located. The position with the position identification information of 1-3 is the third position in area 1, for example, it may be the position where the computing node 2 is located. It should be understood that the embodiments of the present application do not limit the ordering method or numbering method of the positions in the area managed by the management unit.

[0104] As shown in Table 1, when the location identification information is 1-1, the operation and maintenance unit can determine that the IP address of the node at the location corresponding to the location identification information is 10.0.1.1 based on the location identification information 1-1 of the location where the computing node 1 is located and the first mapping relationship. That is, the operation and maintenance unit can determine that the IP address of the computing node 1 is 10.0.1.1 based on the location identification information 1-1 of the location where the computing node 1 is located and the first mapping relationship.

[0105] It should be understood that the method of expressing the location identification information in Table 1 is only an example, and the embodiments of the present application do not limit the specific method of expressing the location identification information, and the information that can be used to identify the location can be regarded as the location identification information in the embodiments of the present application. For example, the location identification information can also be expressed in various forms such as 1.1, 1_1, 11, 0101, A-1, A1, a-1, a1, etc. It should also be understood that the embodiments of the present application do not limit the specific method of determining the location identification information. For example, the location identification information of each location can be determined based on the distance between each location in the area managed by the management unit and the management unit. Alternatively, the location identification information of each location in the area managed by the management unit can be determined according to preset rules. The method of determining the location identification information of the locations in the areas managed by different management units may be the same or different, and the embodiments of the present application do not limit this.

[0106] Exemplarily, the location identification information of the location of the node can be used to identify at least one of the computer room area where the node is located, the location coordinates of the node, the cabinet where the node is located, or the slot where the node is located, and the embodiments of the present application do not limit this. In other words, the location of the node can be at least one of the computer room area where the node is located, the coordinates of the node, the cabinet where the node is located, or the slot where the node is located, and the embodiments of the present application do not limit this.

[0107] In some embodiments, the first mapping relationship may only indicate the mapping relationship between the location identification information of the location within the area managed by one management unit and the IP address, as shown in Table 1. Alternatively, the first mapping relationship may indicate the mapping relationship between the location identification information of the location within the area managed by multiple management units and the IP address, as shown in Table 2.

[0108] For example, suppose a diagram of nodes included in a data center is as follows Figure 4 As shown, the first mapping relationship can be as shown in Table 2.

[0109] Table 2 First mapping relationship table

[0110] Location identification information IP address 1-1 10.0.1.1 1-2 10.0.1.2 1-3 10.0.1.3 2-1 10.0.2.1 2-2 10.0.2.2 2-3 10.0.2.3

[0111] In Table 2, the location with location identification information 2-1 is the first location in area 2, for example, it may be the location where computing node 3 is located. Similarly, the location with location identification information 2-2 is the second location in area 2, for example, it may be the location where computing node 4 is located. The location with location identification information 2-3 is the third location in area 2, for example, it may be the location where computing node 5 is located. The first mapping relationship shown in Table 1 may only indicate the mapping relationship between the location identification information of the location in area 1 and the IP address. The first mapping relationship shown in Table 2 may indicate the mapping relationship between the location identification information of the location in area 1 and area 2 and the IP address.

[0112] Optionally, the operation and maintenance unit may directly determine the IP address of the first node according to the location identification information of the first location where the first node is located.

[0113] Exemplarily, the operation and maintenance unit can directly generate the IP address of the first node after obtaining the location identification information of the first location. The operation and maintenance unit can also record the correspondence between the location identification information of the first location and the IP address after generating the IP address of the first node, that is, the operation and maintenance unit can record the first mapping relationship. In other words, the operation and maintenance unit can directly generate the IP address of the node at each location after obtaining the location identification information of each location, and the IP address of each node is different.

[0114] Exemplarily, the operation and maintenance unit may determine the IP address of the first node from an IP address database after obtaining the location identification information of the first location. The IP address database includes at least one unallocated IP address. The operation and maintenance unit may also record the first mapping relationship after determining the IP address of the first node. The operation and maintenance unit may also delete the IP address of the first node from the IP address database after determining the IP address of the first node, or mark the IP address of the first node as allocated.

[0115] Exemplarily, the operation and maintenance unit may determine the IP address database by itself, or receive the IP address database from other devices connected to the operation and maintenance unit, but this embodiment of the present application is not limited to this.

[0116] Optionally, before step S310, the operation and maintenance unit may also receive location identification information of a first location where the first node is located. Correspondingly, the first node may execute step S301.

[0117] S301, sending location identification information of a first location where a first node is located.

[0118] The first node may send location identification information of the current first location to the operation and maintenance unit.

[0119] Optionally, the first node may determine the location identification information of the current first location by itself. Alternatively, the first node may receive the location identification information of the first location from the first management unit.

[0120] In some embodiments, the first node may send location indication information to the first management unit, where the location indication information is used to indicate that the first node is located at the first location. After sending the location indication information to the first management unit, the first node may receive location identification information of the first location.

[0121] Optionally, the first node may send the location identification information of the first location to the operation and maintenance unit through a DHCP discovery message. The discover message may include at least one cell, and each cell may include at least one field. At least one field in the cell may be used to carry the location identification information of the first location. For example, the location identification information of the first location may be carried by a field in the cell. Alternatively, the location identification information of the first location may be carried jointly by multiple fields in the cell, that is, the data in the multiple fields are combined to form the location identification information of the first location. Alternatively, the location identification information of the first location may be repeatedly carried by multiple fields in the cell, that is, each of the multiple fields carries the complete location identification information of the first location, which is not limited in the embodiments of the present application.

[0122] For example, a possible format of a cell in a discover message is Figure 5 shown. Figure 5 It is a schematic diagram of the format of a cell in the discovery message 500 provided in an embodiment of the present application. Figure 5 The information element in the message includes 4 fields, namely, a T field, an L field, an area coordinate field, and a position coordinate field. The T field is a class tag field, and the data in the T field is used to indicate configuration information or identification information, which can be defined according to actual needs. The L field is a length field, and the data in the L field is used to indicate the length of the information element. The area coordinate field is used to indicate the identification information of the area where the first position is located, and the position coordinate field is used to indicate the identification information of the first position in the area. The embodiment of the present application does not limit the length of each field in the information element, and can be set according to actual needs.

[0123] For example, assuming that the location identification information of the first location is 1-2, the data in the area coordinate field in the information element may be 1, and the data in the location coordinate field may be 2.

[0124] It should be understood that the first node may carry the location identification information of the first location through information elements of other formats. Alternatively, the first node may carry the location identification information of the first location through messages of other protocols, which is not limited in the embodiments of the present application.

[0125] S320: Send the IP address of the first node to the first node.

[0126] After determining the IP address of the first node, the operation and maintenance unit may send the IP address to the first node. The IP address of the first node is the address for the first node to perform network communication.

[0127] Optionally, the operation and maintenance unit may send the IP address of the first node to the first node through an ACK message or an offer message of DHCP. The ACK message or the offer message may include at least one cell, and each cell may include at least one field. At least one field in the cell may be used to carry the IP address of the first node. For example, the IP address of the first node may be carried by a field in the cell. Alternatively, the IP address of the first node may be carried jointly by multiple fields in the cell, that is, the data in the multiple fields are combined to form the IP address of the first node. Alternatively, the IP address of the first node may be repeatedly carried by multiple fields in the cell, that is, each of the multiple fields carries the complete IP address of the first node, and the embodiments of the present application are not limited to this.

[0128] It should be understood that the operation and maintenance unit may carry the IP address of the first node through messages of other protocols, and the embodiments of the present application are not limited to this.

[0129] Optionally, after determining the location identification information of the first location and / or the IP address of the first node, the operation and maintenance unit may also determine configuration information. The configuration information is used to configure the first node. For example, the configuration information may be used to configure any one or more of the BMC, BIOS, time information, operating system, RAID, network card, etc. of the first node.

[0130] In some embodiments, the operation and maintenance unit may determine the configuration information according to the location identification information of the first location where the first node is located and the second mapping relationship, wherein the second mapping relationship is used to indicate the mapping relationship between the location identification information and the configuration information.

[0131] In some embodiments, the operation and maintenance unit may determine the second mapping relationship by itself. Alternatively, the operation and maintenance unit may receive the second mapping relationship from other devices connected to the operation and maintenance unit. The embodiment of the present application does not limit the specific storage form of the second mapping relationship. For example, the second mapping relationship may be stored in a table, array, matrix, function, etc.

[0132] For example, suppose a diagram of nodes included in a data center is as follows Figure 4 As shown, Figure 4 If the location identification information of the locations of some nodes in is shown in Table 1, then the second mapping relationship can be shown in Table 3.

[0133] Table 3 Second mapping relationship table

[0134] Location identification information Configuration Information 1-1 Configuration information 1 1-2 Configuration information 2 1-3 Configuration information 3

[0135] In Table 3, configuration information 1, configuration information 2, and configuration information 3 may be the same configuration information. Alternatively, at least two of the configuration information 1, configuration information 2, and configuration information 3 may be different configuration information, which is not limited in the embodiment of the present application.

[0136] As shown in Table 3, when the location identification information is 1-1, the operation and maintenance unit can determine, based on the location identification information and the second mapping relationship, that the configuration information of the node at the location corresponding to the location identification information is configuration information 1. That is, the operation and maintenance unit can determine, based on the location identification information 1-1 of the location where the computing node 1 is located and the second mapping relationship, that the configuration information corresponding to the computing node 1 is configuration information 1.

[0137] In some embodiments, similar to the first mapping relationship, the second mapping relationship may only indicate the mapping relationship between the location identification information and the configuration information of the location within the area managed by one management unit, as shown in Table 3. Alternatively, the second mapping relationship may indicate the mapping relationship between the location identification information and the configuration information of the location within the area managed by multiple management units.

[0138] In some embodiments, the operation and maintenance unit may directly determine the configuration information corresponding to the node at the first position after obtaining the location identification information of the first position. The operation and maintenance unit may also record the mapping relationship between the location identification information of the first position and the configuration information after determining the configuration information of the node at the first position, that is, the operation and maintenance unit may record the second mapping relationship.

[0139] In some embodiments, the operation and maintenance unit may determine the configuration information according to the IP address of the first node and a third mapping relationship, wherein the third mapping relationship is used to indicate a mapping relationship between the IP address and the configuration information.

[0140] In some embodiments, the operation and maintenance unit may determine the third mapping relationship by itself. Alternatively, the operation and maintenance unit may receive the third mapping relationship from other devices connected to the operation and maintenance unit. The embodiment of the present application does not limit the specific storage form of the third mapping relationship. For example, the third mapping relationship may be stored in a table, array, matrix, function, etc.

[0141] For example, suppose a diagram of nodes included in a data center is as follows Figure 4 As shown, Figure 4 The IP addresses of some nodes in are shown in Table 1, and the third mapping relationship can be shown in Table 4.

[0142] Table 4 The third mapping relationship table

[0143] IP address Configuration Information 10.0.1.1 Configuration information 1 10.0.1.2 Configuration information 2 10.0.1.3 Configuration information 3

[0144] As shown in Table 4, when the IP address is 10.0.1.1, the operation and maintenance unit can determine, based on the IP address and the third mapping relationship, that the configuration information corresponding to the IP address is configuration information 1. That is, the operation and maintenance unit can determine, based on the IP address 10.0.1.1 of computing node 1 and the third mapping relationship, that the configuration information corresponding to computing node 1 is configuration information 1.

[0145] In some embodiments, similar to the first mapping relationship, the third mapping relationship may only indicate the mapping relationship between IP addresses and configuration information in an area managed by one management unit, as shown in Table 4. Alternatively, the third mapping relationship may indicate the mapping relationship between IP addresses and configuration information in areas managed by multiple management units.

[0146] In some embodiments, the operation and maintenance unit may directly determine the configuration information corresponding to the node at the first position after obtaining the IP address of the first node. The operation and maintenance unit may also record the mapping relationship between the IP address of the first node and the configuration information after determining the configuration information of the node at the first position, that is, the operation and maintenance unit may record the third mapping relationship.

[0147] In some embodiments, the operation and maintenance unit may determine the configuration information according to the location identification information of the first location, the IP address of the first node, and a fourth mapping relationship, wherein the fourth mapping relationship is used to indicate a mapping relationship between the location identification information, the IP address, and the configuration information.

[0148] In some embodiments, the operation and maintenance unit may determine the fourth mapping relationship by itself. Alternatively, the operation and maintenance unit may receive the fourth mapping relationship from other devices connected to the operation and maintenance unit. The embodiment of the present application does not limit the specific storage form of the fourth mapping relationship. For example, the fourth mapping relationship may be stored in a table, an array, a matrix, a function, etc.

[0149] For example, suppose a diagram of nodes included in a data center is as follows Figure 4 As shown, Figure 4 The location identification information and IP addresses of the locations of some nodes in are shown in Table 1, and the fourth mapping relationship can be shown in Table 5.

[0150] Table 5 Fourth mapping relationship table

[0151] Location identification information IP address Configuration Information 1-1 10.0.1.1 Configuration information 1 1-2 10.0.1.2 Configuration information 2 1-3 10.0.1.3 Configuration information 3

[0152] As shown in Table 5, when the location identification information is 1-1 and the IP address is 10.0.1.1, the operation and maintenance unit can determine, based on the location identification information, the IP address, and the fourth mapping relationship, that the configuration information corresponding to the location identification information and the IP address is configuration information 1. That is, the operation and maintenance unit can determine, based on the location identification information 1-1 of the location where the computing node 1 is located, the IP address 10.0.1.1 of the computing node 1, and the fourth mapping relationship, that the configuration information corresponding to the computing node 1 is configuration information 1.

[0153] In some embodiments, similar to the first mapping relationship, the fourth mapping relationship may only indicate the mapping relationship between the location identification information, the IP address, and the configuration information in the area managed by one management unit, as shown in Table 5. Alternatively, the fourth mapping relationship may indicate the mapping relationship between the location identification information, the IP address, and the configuration information in the areas managed by multiple management units.

[0154] In some embodiments, the operation and maintenance unit may directly determine the configuration information of the node at the first location after obtaining the location identification information of the first location and / or the IP address of the first node. The operation and maintenance unit may also record the mapping relationship between the location identification information of the first location, the IP address of the first node, and the configuration information after determining the configuration information of the node at the first location, that is, the operation and maintenance unit may record the fourth mapping relationship.

[0155] Optionally, after determining the location identification information of the first location and / or the IP address of the first node, the operation and maintenance unit may also send the location identification information of the first location and / or the IP address of the first node to the configuration unit. The configuration unit may be located on the same device or on different devices as the operation and maintenance unit. When the configuration unit and the operation and maintenance unit are located on different devices, the configuration unit may be connected to the operation and maintenance unit. The embodiment of the present application does not limit the location of the configuration unit, for example, the configuration unit may be located within or outside the area managed by the first management unit. After obtaining the location identification information of the first location and / or the IP address of the first node, the configuration unit may determine the configuration information according to the location identification information of the first location and / or the IP address of the first node. The configuration information is used to configure the first node. For example, the configuration information may be used to configure any one or more of the BMC, BIOS, time information, operating system, RAID, network card, etc. of the first node. The configuration unit determines the configuration information in a manner similar to the operation and maintenance unit, which will not be repeated here.

[0156] Optionally, after the operation and maintenance unit determines the configuration information, the configuration information may be sent to the first node. Alternatively, after the configuration unit determines the configuration information, the configuration information may be sent to the first node. Correspondingly, the first node may receive the configuration information and configure according to the configuration information. The configuration information is determined according to the location identification information of the first location and / or the IP address of the first node.

[0157] The operation and maintenance unit can determine the IP address of each node according to the location of each node without querying the SN and / or MAC address of each node, thereby reducing the difficulty of determining the network address of the node. In addition, the resources required to store the location identification information are less than the resources to store the SN / MAC address, so storage resources can be saved. At the same time, after the node at each location is replaced, since there is a corresponding relationship between the IP address and the location, the newly replaced node at the location can directly determine the IP address according to the location without manual configuration or maintenance, thereby reducing the difficulty of determining the IP address of the newly replaced node and improving the efficiency of determining the IP address of the newly replaced node. The operation and maintenance unit or the configuration unit can also determine the configuration information of the node at the first location according to the location identification information of the first location or the IP address corresponding to the first location, thereby configuring the node at the first location. Even if the node or device at the first location is replaced, the configuration of the node or device at the location can still be kept consistent, thereby maintaining the consistency of the business.

[0158] Figure 6 It is a schematic flowchart of a method for determining a network address provided in an embodiment of the present application. Figure 6 The method in can be applied to the system for determining the network address provided in the embodiment of the present application, for example Figure 1 or Figure 2 in the system. Figure 6 The method comprises the following steps.

[0159] S610: Send location identification information of a second location where a first management unit is located.

[0160] When the first management unit and the operation and maintenance unit are located in different devices, the first management unit may send the location identification information of the second location where the first management unit is located to the operation and maintenance unit. The location identification information of the second location is used to identify the second location. Correspondingly, the operation and maintenance unit may receive the location identification information of the second location from the first management unit.

[0161] When the first management unit and the operation and maintenance unit are located in the same device, the operation and maintenance unit (or the first management unit) may directly determine the location identification information of the second location, that is, step S610 may not be executed.

[0162] Optionally, the first management unit may determine the location identification information of the second location by itself. Alternatively, the first management unit may receive the location identification information of the second location from other nodes or devices connected to the first management unit.

[0163] In some embodiments, the first management unit may send the device identification information of the first management unit to the operation and maintenance unit, thereby determining the location identification information of the second location. The device identification information of the first management unit is used to identify the first management unit. For example, the device identification information of the first management unit may include the SN and / or MAC address of the first management unit. Alternatively, the device identification information of the first management unit may be customized data.

[0164] S620: Determine the IP address of the first management unit according to the location identification information of the second location.

[0165] After determining the location identification information of the second location, the operation and maintenance unit can determine the IP address of the first management unit according to the location identification information of the second location. The IP address of the first management unit is the address for the first management unit to perform network communication.

[0166] Optionally, the operation and maintenance unit may directly determine the IP address of the first management unit after determining the location identification information of the second location. Alternatively, the operation and maintenance unit may determine the IP address of the first management unit based on the location identification information of the second location and the fifth mapping relationship. The fifth mapping relationship is used to indicate the correspondence between the location identification information of the second location and the IP address of the first management unit. The fifth mapping relationship may be similar to the first mapping relationship. The manner in which the operation and maintenance unit determines the corresponding IP address based on the location identification information of the second location is similar to the manner described in step S310 and will not be repeated here.

[0167] Optionally, the operation and maintenance unit may receive device identification information from the first management unit before step S620. The operation and maintenance unit may also determine the location identification information of the second location where the first management unit is located and / or the IP address of the first management unit according to the device identification information of the first management unit.

[0168] In some embodiments, the operation and maintenance unit may determine the location identification information of the second location according to the device identification information of the first management unit and a sixth mapping relationship, wherein the sixth mapping relationship is used to indicate a mapping relationship between the location identification information and the device identification information.

[0169] In some embodiments, the operation and maintenance unit may determine the sixth mapping relationship by itself. Alternatively, the operation and maintenance unit may receive the sixth mapping relationship from other devices connected to the operation and maintenance unit. The embodiment of the present application does not limit the specific storage form of the sixth mapping relationship. For example, the sixth mapping relationship may be stored in a table, an array, a matrix, a function, etc.

[0170] For example, suppose a diagram of nodes included in a data center is as follows Figure 4 As shown, the sixth mapping relationship can be as shown in Table 6.

[0171] Table 6 Sixth mapping relationship table

[0172] Device identification information Location identification information SN1 1-0 SN2 2-0

[0173] In Table 6, SN1 is the device identification information of management unit 1, and SN2 is the device identification information of management unit 2. As shown in Table 6, when the device identification information is SN1, the operation and maintenance unit can determine that the location identification information at the location corresponding to the device identification information is 1-0 based on the device identification information and the sixth mapping relationship. That is, the operation and maintenance unit can determine that the location identification information of the location where the management unit 1 is located is 1-0 based on the device identification information SN1 of the management unit 1 and the sixth mapping relationship.

[0174] In some embodiments, the operation and maintenance unit may directly determine the location identification information of the second location based on the device identification information of the first management unit.

[0175] Exemplarily, the operation and maintenance unit can directly generate the location identification information of the second location after obtaining the device identification information of the first management unit. The operation and maintenance unit can also record the correspondence between the location identification information of the second location and the device identification information of the first management unit after generating the location identification information of the second location, that is, the operation and maintenance unit can record the sixth mapping relationship. In other words, the operation and maintenance unit can directly generate the location identification information of the location where each management unit is located after obtaining the device identification information of each management unit, and the location identification information of each location is different.

[0176] Exemplarily, the operation and maintenance unit may determine the location identification information of the second location from the regional identification database after obtaining the device identification information of the first management unit. The regional identification database includes at least one unallocated location identification information. The operation and maintenance unit may also record the sixth mapping relationship after determining the location identification information of the second location. The operation and maintenance unit may also delete the location identification information of the second location from the regional identification database after determining the location identification information of the second location, or mark the location identification information of the second location as allocated.

[0177] Exemplarily, the operation and maintenance unit may determine the region identification database by itself, or receive the region identification database from other devices connected to the operation and maintenance unit, which is not limited in this embodiment of the present application.

[0178] Optionally, the operation and maintenance unit may send the location identification information of the second location where the first management unit is located to the first management unit through an ack message or an offer message of DHCP. The ack message or the offer message may include at least one information element, and each information element may include at least one field. At least one field in the information element may be used to carry the location identification information of the second location. For example, the location identification information of the second location may be carried through a field in the information element. Alternatively, the location identification information of the second location may be carried jointly through multiple fields in the information element, that is, the data in the multiple fields are combined to form the location identification information of the second location. Alternatively, the location identification information of the second location may be repeatedly carried through multiple fields in the information element, that is, each of the multiple fields carries the complete location identification information of the second location, which is not limited in the embodiments of the present application.

[0179] For example, a possible format of a cell in an offer message is Figure 7 shown. Figure 7 It is a schematic diagram of the format of a cell in the message 700 provided in an embodiment of the present application. Figure 7 The information element in the message includes three fields, namely, a T field, an L field, and an area coordinate field. The T field is a class tag field, and the data in the T field is used to indicate configuration information or identification information, which can be defined according to actual needs. The L field is a length field, and the data in the L field is used to indicate the length of the information element. The area coordinate field is used to indicate the identification information of the area where the second position is located. The embodiment of the present application does not limit the length of each field in the information element, and can be set according to actual needs. In some examples, the information element may also include a location coordinate field, which is used to indicate the identification information of the second position in the area.

[0180] For example, assuming that the location identification information of the second location is 1-0, the data of the area coordinate field in the information element may be 1. When the location coordinate field is included in the information element, the data of the location coordinate field may be 0.

[0181] It should be understood that the way in which the ack message carries the location identification information of the second location is similar to that of the offer message, and will not be repeated here. It should also be understood that the operation and maintenance unit can carry the location identification information of the second location through other formats of information elements. Alternatively, the operation and maintenance unit can carry the location identification information of the second location through messages of other protocols, which is not limited in the embodiments of the present application.

[0182] In some embodiments, the operation and maintenance unit may determine the IP address of the first management unit according to the device identification information of the first management unit and a seventh mapping relationship. The seventh mapping relationship is used to indicate a mapping relationship between the device identification information and the IP address.

[0183] In some embodiments, the operation and maintenance unit may determine the seventh mapping relationship by itself. Alternatively, the operation and maintenance unit may receive the seventh mapping relationship from other devices connected to the operation and maintenance unit. The embodiment of the present application does not limit the specific storage form of the seventh mapping relationship. For example, the seventh mapping relationship may be stored in a table, an array, a matrix, a function, etc.

[0184] For example, suppose a diagram of nodes included in a data center is as follows Figure 4 As shown, the seventh mapping relationship can be as shown in Table 7.

[0185] Table 7 Seventh mapping relationship table

[0186] Device identification information IP address SN1 10.0.1.0 SN2 10.0.2.0

[0187] As shown in Table 7, when the device identification information is SN1, the operation and maintenance unit can determine that the IP address of the node or device corresponding to the device identification information is 10.0.1.0 based on the device identification information SN1 of the management unit 1 and the seventh mapping relationship. That is, the operation and maintenance unit can determine that the IP address of the management unit 1 is 10.0.1.0 based on the device identification information SN1 of the management unit 1 and the seventh mapping relationship.

[0188] In some embodiments, the operation and maintenance unit may directly determine the IP address of the first management unit based on the device identification information of the first management unit.

[0189] Exemplarily, the operation and maintenance unit can directly generate the IP address of the first management unit after obtaining the device identification information of the first management unit. The operation and maintenance unit can also record the correspondence between the IP address of the first management unit and the device identification information of the first management unit after generating the IP address of the first management unit, that is, the operation and maintenance unit can record the seventh mapping relationship. In other words, the operation and maintenance unit can directly generate the IP address of each management unit after obtaining the device identification information of each management unit, and the IP address of each management unit is different.

[0190] Exemplarily, the operation and maintenance unit may determine the IP address of the first management unit from an IP address database after obtaining the device identification information of the first management unit. The IP address database includes at least one unallocated IP address. The operation and maintenance unit may also record the seventh mapping relationship after determining the IP address of the first management unit. The operation and maintenance unit may also delete the IP address of the first management unit from the IP address database after determining the IP address of the first management unit, or mark the IP address of the first management unit as allocated.

[0191] Exemplarily, the operation and maintenance unit may determine the IP address database by itself, or receive the IP address database from other devices connected to the operation and maintenance unit, but this embodiment of the present application is not limited to this.

[0192] In some embodiments, the operation and maintenance unit may determine the location identification information of the second location and the IP address of the first management unit according to the device identification information of the first management unit and an eighth mapping relationship. The eighth mapping relationship is used to indicate the mapping relationship between the device identification information, the location identification information and the IP address.

[0193] In some embodiments, the operation and maintenance unit may determine the eighth mapping relationship by itself. Alternatively, the operation and maintenance unit may receive the eighth mapping relationship from other devices connected to the operation and maintenance unit. The embodiment of the present application does not limit the specific storage form of the eighth mapping relationship. For example, the eighth mapping relationship may be stored in a table, an array, a matrix, a function, etc.

[0194] For example, suppose a diagram of nodes included in a data center is as follows Figure 4 As shown, the eighth mapping relationship can be as shown in Table 8.

[0195] Table 8 Eighth mapping relationship table

[0196] Device identification information Location identification information IP address SN1 1-0 10.0.1.0 SN2 2-0 10.0.2.0

[0197] As shown in Table 8, when the device identification information is SN1, the operation and maintenance unit can determine that the location identification information of the node or device with the device identification information is 1-0 based on the device identification information and the eighth mapping relationship, and the IP address of the node or device is 10.0.1.0. That is, the operation and maintenance unit can determine that the location identification information of the location of the management unit 1 is 1-0 based on the device identification information SN1 of the management unit 1 and the eighth mapping relationship, and the IP address of the management unit 1 is 10.0.1.0.

[0198] In some embodiments, the operation and maintenance unit may directly determine the location identification information of the second location and the IP address of the first management unit based on the device identification information of the first management unit.

[0199] Exemplarily, the operation and maintenance unit can directly generate the location identification information of the second location and the IP address of the first management unit after obtaining the device identification information of the first management unit. The operation and maintenance unit can also record the correspondence between the location identification information of the second location, the IP address of the first management unit and the device identification information of the first management unit after generating the location identification information of the second location and the IP address of the first management unit, that is, the operation and maintenance unit can record the eighth mapping relationship. In other words, after obtaining the device identification information of each management unit, the operation and maintenance unit can directly generate the location identification information of the location where each management unit is located and the IP address of each management unit, and the location identification information of each location is different, and the IP address of each management unit is different.

[0200] Exemplarily, after obtaining the device identification information of the first management unit, the operation and maintenance unit may determine the location identification information of the second location from the regional identification database, and determine the IP address of the first management unit from the IP address database. The regional identification database includes at least one unallocated location identification information. The IP address database includes at least one unallocated IP address. The operation and maintenance unit may also record the eighth mapping relationship after determining the location identification information of the second location and the IP address of the first management unit. The operation and maintenance unit may also delete the location identification information of the second location from the regional identification database after determining the location identification information of the second location, or mark the location identification information of the second location as allocated. The operation and maintenance unit may also delete the IP address of the first management unit from the IP address database after determining the IP address of the first management unit, or mark the IP address of the first management unit as allocated.

[0201] Exemplarily, the operation and maintenance unit may determine the regional identification database and the IP address database by itself, or receive the regional identification database and the IP address database from other devices connected to the operation and maintenance unit, which is not limited in this embodiment of the present application.

[0202] Optionally, after determining the location identification information of the second location and / or the IP address of the first management unit, the operation and maintenance unit may also determine the configuration information of the first management unit. The configuration information is used to configure the first management unit. For example, the configuration information may be used to configure any one or more of the BMC, BIOS, time information, operating system, RAID, network card, etc. of the first management unit. The manner in which the operation and maintenance unit determines the configuration information of the first management unit is similar to the manner in which the configuration information is determined in step S320, and will not be repeated here.

[0203] Optionally, after determining the location identification information of the second location and / or the IP address of the first management unit, the operation and maintenance unit may also send the location identification information of the second location and / or the IP address of the first management unit to the configuration unit. The configuration unit and the operation and maintenance unit are located on the same device or different devices. When the configuration unit and the operation and maintenance unit are located on different devices, the configuration unit is connected to the operation and maintenance unit. The embodiment of the present application does not limit the location of the configuration unit. For example, the configuration unit may be located within or outside the area managed by the first management unit. After obtaining the location identification information of the second location and / or the IP address of the first management unit, the configuration unit may determine the configuration information of the first management unit according to the location identification information of the second location and / or the IP address of the first management unit. The configuration information is used to configure the first management unit. For example, the configuration information may be used to configure any one or more of the BMC, BIOS, time information, operating system, RAID, network card, etc. of the first management unit. The way in which the configuration unit determines the configuration information of the first management unit is similar to the way in which the operation and maintenance unit determines the configuration information, which will not be repeated here.

[0204] Optionally, after the operation and maintenance unit determines the configuration information, it can send the configuration information to the first management unit. Alternatively, after the configuration unit determines the configuration information, it can send the configuration information to the first management unit. Correspondingly, the first management unit can receive the configuration information and perform configuration according to the configuration information. The configuration information is determined according to the location identification information of the second location and / or the IP address of the first management unit.

[0205] S630: Send the IP address of the first management unit.

[0206] When the first management unit and the operation and maintenance unit are located in different devices, the operation and maintenance unit can send the IP address of the first management unit to the first management unit after determining the IP address of the first management unit. Correspondingly, the first management unit can receive the IP address of the first management unit from the operation and maintenance unit.

[0207] When the first management unit and the operation and maintenance unit are located in different devices, step S610 is similar to step S301, step S620 is similar to step S310, and step S630 is similar to step S320.

[0208] When the first management unit and the operation and maintenance unit are located in the same device, the operation and maintenance unit (or the first management unit) may directly determine the IP address of the first management unit, that is, steps S610 and S630 may not be performed.

[0209] S640, sending location indication information.

[0210] The first node may send location indication information to the first management unit, where the location indication information is used to indicate that the first node is located at a first location. The first location is located within an area managed by the first management unit. The first node is managed by the first management unit.

[0211] Correspondingly, the first management unit may receive location indication information from the first node.

[0212] S650: Determine location identification information of the first location according to the location indication information.

[0213] After receiving the position indication information, the first management unit may determine the position identification information of the first position according to the position indication information. The position identification information of the first position is used to identify the first position.

[0214] Optionally, the first management unit may directly determine the location identification information of the first location after receiving the location indication information. For example, the first management unit may directly generate the location identification information of the first location. Alternatively, the first management unit may determine the location identification information of the first location from a location identification database. The location identification database includes at least one unallocated location identification information. The first management unit may also delete the location identification information of the first location from the location identification database after determining the location identification information of the first location, or mark the location identification information of the first location as allocated. The first management unit may also record the mapping relationship between the first location and the location identification information.

[0215] Optionally, after receiving the location indication information, the first management unit may determine the location identification information of the first location according to the location indication information and the ninth mapping relationship. The ninth mapping relationship is used to indicate the mapping relationship between the first location and the location identification. The first management unit may determine the ninth mapping relationship by itself. Alternatively, the first management unit may receive the ninth mapping relationship from other nodes or devices connected to the first management unit. The embodiment of the present application does not limit the specific storage form of the ninth mapping relationship. For example, the ninth mapping relationship may be stored in the form of a table, an array, a matrix, a function, etc.

[0216] S660: Send location identification information of the first location.

[0217] After determining the location identification information of the first location, the first management unit may send the location identification information of the first location to the first node. Correspondingly, the first node may receive the location identification information of the first location from the first management unit.

[0218] Optionally, the first management unit may directly send the location identification information of the first location to the first node. That is, steps S640 and S650 may not be performed.

[0219] Optionally, after step S660, the following steps may be continued: Figure 3 The method in .

[0220] Optionally, after step S620, the operation and maintenance unit may send a first IP address set or a first IP address range to the first management unit. The first IP address set or the first IP address range includes at least one IP address. After the first management unit obtains the first IP address set, it may determine the IP address of the node at each location from the first IP address set according to the location identification information of each location within the area managed by the first management unit. The IP address of the node at each location belongs to the first IP address set. Alternatively, after the first management unit obtains the first IP address range, it may determine the IP address of the node at each location from the first IP address range according to the location identification information of each location within the area managed by the first management unit. The IP address of the node at each location belongs to the first IP address range. The first management unit may also send the IP address of the node to the node at each location. The IP address of each node is the address for each node to perform network communication.

[0221] Figure 8 It is a schematic structural diagram of a device for determining a network address provided in an embodiment of the present application. Figure 8 The device 800 includes a processing module 810 and a sending module 820. Figure 8 The device 800 may be Figure 3 or Figure 6 The operation and maintenance unit in the system, or the device where the operation and maintenance unit is located.

[0222] The processing module 810 may be configured to determine the IP address of the first node according to the location identification information of the first location where the first node is located. The processing module 810 may execute Figure 3 Step S310 in .

[0223] In some embodiments, the processing module 810 may also be used to determine the IP address of the first management unit according to the location identification information of the second location where the first management unit is located, and execute Figure 6 Step S620 in .

[0224] In some embodiments, the processing module 810 may also be configured to determine location identification information of the second location according to the device identification information of the first management unit.

[0225] The sending module 820 can be used to send the IP address of the first node to the first node, and execute Figure 3 Step S320 in .

[0226] In some embodiments, the sending module 820 can also be used to send the IP address of the first management unit to execute Figure 6 Step S630 in .

[0227] In some embodiments, the sending module 820 may also be used to send configuration information to the first node according to the location identification information of the first location and / or the IP address of the first node. Alternatively, the sending module 820 may also be used to send the location identification information of the first location and / or the IP address of the first node to the configuration unit.

[0228] In some embodiments, the apparatus 800 may further include a receiving module (not shown in the figure). The receiving module may receive location identification information of a first location where the first node is located, and may also receive location identification information of a second location where the first management unit is located.

[0229] Fig. 9 It is a schematic structural diagram of a device for determining a network address provided in an embodiment of the present application. Fig. 9 The device 900 includes a sending module 910 and a receiving module 920. Fig. 9 The device 900 in may be Figure 3 or Figure 6 The first node in the apparatus 900 may be a first node in the apparatus 900, or may be a device where the first node is located. Figure 6 The first management unit in the system, or the device where the first management unit is located.

[0230] The sending module 910 can be used to send the location identification information of the third location where the device 900 is located, and execute Figure 3 Step S301 in Figure 6 The receiving module can be used to receive the IP address of the device 900 and execute Figure 3 Step S320 in Figure 6 Step S630 in .

[0231] When the device 900 is a first management unit, the device 900 further includes a processing module (not shown in the figure). The processing module can be used to determine the location identification information of the first location according to the location indication information, and execute Figure 6 The sending module 910 can also be used to send the location identification information of the first location to the first node, and perform Figure 6 Step S660 in .

[0232] When the apparatus 900 is a first management unit, the sending module 910 may also be used to send device identification information of the apparatus 900 .

[0233] When the device 900 is a first node, the sending module 910 can also be used to send location indication information to the first management unit to execute Figure 6 The receiving module 920 may also be configured to receive location identification information of a third location from the first management unit.

[0234] In some embodiments, the apparatus 900 further includes a processing module (not shown in the figure). The processing module can also be used to perform configuration according to the configuration information.

[0235] Fig.10 1 is a schematic structural block diagram of a device 1000 for determining a network address according to an embodiment of the present application. The device 1000 for determining a network address may be an operation and maintenance unit or a device where the operation and maintenance unit is located. Alternatively, the device 1000 for determining a network address may be a first unit or a device where the first unit is located. Fig.10 The device 1000 for determining a network address shown includes: a processor 1001, a memory 1002, and a communication interface 1003, wherein the processor 1001, the memory 1002, and the communication interface 1003 communicate with each other via a bus 1004. The receiver 1005 is used to receive information or data from other devices or nodes, and the transmitter 1006 is used to send the information or data stored in the memory 1002 to other devices or nodes. The other devices or nodes are devices or nodes connected to the device 1000 for determining a network address.

[0236] The method disclosed in the above embodiment of the present invention can be applied to the processor 1001, or implemented by the processor 1001. The processor 1001 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor, etc. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 1001 or the instruction in the form of software. The processor 1001 can implement or execute the methods, steps and logic block diagrams disclosed in the embodiment of the present invention. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present invention can be directly embodied as a hardware decoding processor to execute, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in the memory 1002. The processor 1001 reads the instructions in the memory 1002 and completes the steps of the above method in combination with its hardware.

[0237] The memory 1002 may store instructions for executing the method executed by the computing device in the above-mentioned embodiment. The memory 1002 may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct rambus DRAM (DRDRAM). It should be noted that the memory of the system and method described herein is intended to include but is not limited to these and any other suitable types of memory. The processor 1001 can execute the instructions stored in the memory 1002, and in combination with other hardware (such as the receiver 1005 and the transmitter 1006) complete the steps of the computing device in the above embodiment, and the specific working process and beneficial effects can refer to the description in the above embodiment.

[0238] In addition to the data bus, the bus 1004 may also include a power bus, a control bus, a status signal bus, etc. However, for the sake of clarity, various buses are labeled as the bus 1004 in the figure.

[0239] The embodiment of the present application also provides a system for determining a network address. The system for determining a network address may include Figure 8 and Fig. 9 For example, the system for determining the network address may include: Figure 3 Alternatively, the system for determining a network address may include the operation and maintenance unit and the first unit in the above-mentioned application embodiment. Alternatively, the system for determining a network address may include Figure 6Alternatively, the system for determining the network address may be as follows: Figure 1 or Figure 2 shown.

[0240] The embodiment of the present application also provides a computer-readable storage medium, in which program instructions are stored. When the program instructions are executed on a computer, the computer executes part or all of the steps of the method in the embodiment of the application.

[0241] An embodiment of the present application also provides a chip system, which includes a logic circuit, which is used to couple with an input / output interface and transmit data through the input / output interface to execute the various steps included in the above-mentioned application embodiment.

[0242] According to the method provided in the embodiment of the present application, the present application also provides a computer program product, which includes: computer program code, when the computer program code is run on a computer, the computer executes each step in the above-mentioned application embodiment.

[0243] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software 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 be beyond the scope of this application.

[0244] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0245] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0246] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0247] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0248] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0249] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for determining a network address, characterized in that: The method is performed by an operation and maintenance unit and includes: Determine, according to location identification information of a first location where a first node is located, an Internet Protocol IP address of the first node, wherein the first node is managed by a first management unit, and the operation and maintenance unit and the first management unit are located in the same device or in different devices; The IP address of the first node is sent to the first node.

2. The method according to claim 1, characterized in that The method further comprises: The IP address of the first management unit is determined according to the location identification information of the second location where the first management unit is located.

3. The method according to claim 2, characterized in that The method further comprises: The location identification information of the second location is determined according to the device identification information of the first management unit, where the device identification information of the first management unit is used to identify the first management unit.

4. The method according to claim 3, characterized in that The device identification information of the first management unit includes: a serial number SN of the first management unit and / or a media access control MAC address of the first management unit.

5. The method according to any one of claims 1 to 4, characterized in that The method further comprises: Sending configuration information to the first node according to the location identification information of the first location and / or the IP address of the first node, wherein the configuration information is used to configure the first node; or, Send the location identification information of the first location and / or the IP address of the first node to the configuration unit, the location identification information of the first location and / or the IP address of the first node is used by the configuration unit to send configuration information to the first node, the configuration information is used to configure the first node, and the configuration unit and the operation and maintenance unit are located in the same device or different devices.

6. The method according to any one of claims 1 to 5, characterized in that The location identification information of the first location is carried in a discovery message of the Dynamic Host Configuration Protocol DHCP.

7. The method according to any one of claims 1 to 6, characterized in that The IP address of the first node is carried in an offer message and / or an acknowledgment ack message of a dynamic host configuration protocol DHCP.

8. The method according to any one of claims 1 to 7, characterized in that The operation and maintenance unit, the first management unit, and the first node are located in the same data center; or, The first management unit and the first node are located in the same data center, and the operation and maintenance unit is remotely connected to the data center.

9. A method for determining a network address, characterized in that: The method is performed by a first unit and includes: Sending location identification information of a third location where the first unit is located, wherein the location identification information of the third location is used to determine an Internet Protocol IP address of the first unit; An IP address of the first unit is received.

10. The method according to claim 9, characterized in that When the first unit is a first management unit, the method further includes: Determine, according to the location indication information, location identification information of the first location, wherein the location indication information is used to indicate that the first node is located at the first location, and the first node is managed by the first unit; Sending location identification information of the first location to the first node, where the location identification information of the first location is used to determine the IP address of the first node.

11. The method according to claim 9 or 10, characterized in that: When the first unit is a first management unit, the method further includes: The device identification information of the first unit is sent, where the device identification information of the first unit is used to determine the location identification information of the third location.

12. The method according to claim 11, characterized in that The device identification information of the first unit includes: a serial number SN of the first unit and / or a media access control MAC address of the first unit.

13. The method according to claim 9, characterized in that When the first unit is managed by a first management unit, the method further includes: Sending position indication information to the first management unit, wherein the position indication information indicates that the first unit is located at the third position; Receive location identification information of the third location from the first management unit.

14. The method according to any one of claims 9 to 13, characterized in that The method further comprises: Configuration is performed according to configuration information, where the configuration information is determined according to the location identification information of the third location and / or the IP address of the first unit.

15. The method according to any one of claims 9 to 14, characterized in that The location identification information of the third location is carried in a discover message of the Dynamic Host Configuration Protocol DHCP.

16. The method according to any one of claims 9 to 15, characterized in that The IP address of the first unit is carried in an offer message and / or an acknowledgment ack message of a dynamic host configuration protocol DHCP.

17. The method according to any one of claims 9 to 16, characterized in that The sending of the location identification information of the third location where the first unit is located includes: Sending the location identification information of the third location to the operation and maintenance unit, where the first unit is a first management unit or a first node, the first node is managed by the first management unit, and the operation and maintenance unit, the first management unit, and the first node are located in the same data center; or The first management unit and the first node are located in the same data center, and the operation and maintenance unit is remotely connected to the data center.

18. A device for determining a network address, characterized in that The device comprises a processor and a memory, wherein the processor is configured to execute instructions stored in the memory, so that the device executes the method according to any one of claims 1 to 8.

19. A device for determining a network address, characterized in that The device comprises a processor and a memory, wherein the processor is configured to execute instructions stored in the memory, so that the device performs the method according to any one of claims 9 to 17.

20. A system for determining a network address, characterized in that: The system comprises the apparatus of claim 18 and the apparatus of claim 19.

21. A chip system, characterized in that: include: A logic circuit, the logic circuit is used to be coupled to an input / output interface, and transmit data through the input / output interface to execute the method according to any one of claims 1 to 17.

22. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program instructions, and when the program instructions are executed on a computer, the computer is caused to perform the method according to any one of claims 1 to 17.