CN102904977B - Network address allocation method, server and node - Google Patents
Network address allocation method, server and node Download PDFInfo
- Publication number
- CN102904977B CN102904977B CN201210409906.XA CN201210409906A CN102904977B CN 102904977 B CN102904977 B CN 102904977B CN 201210409906 A CN201210409906 A CN 201210409906A CN 102904977 B CN102904977 B CN 102904977B
- Authority
- CN
- China
- Prior art keywords
- network address
- hardware identifier
- node
- server
- hardware
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Computer And Data Communications (AREA)
- Small-Scale Networks (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention relates to a network address allocation method, a server and a node. The method comprises the following steps: receiving a network address request sent by a node, wherein the network address request carries a hardware identifier of the node; extracting the hardware identification of the node from the network address request, and inquiring the hardware identification from a network address list; when the hardware identification is inquired from the network address list, extracting the network address corresponding to the hardware identification; and sending the corresponding network address to the node.
Description
Technical field
The present invention relates to the communications field, particularly relate to a kind of network address assignment method, server and node.
Background technology
In the distributed cluster system of magnanimity, usual number of nodes is numerous.In order to avoid the IP(Internet Protocol because of challenging changes, procotol) address increases unnecessary complexity to system, all wishes that clustered node adopts fixing IP to distribute.Therefore, how to be the node automatic IP address allocation of One's name is legion, and to be managed and become an important difficult problem.
In the prior art, conventional way is by DHCP(Dynamic Host ConfigurationProtocol, DynamicHost arranges agreement) Server(server) principle, server is according to the MAC(Medium/Media AccessControl sending request parts entrained in the request of node transmission, medium access control) address remembers node, and distributes specific IP address for it.As shown in Figure 1, it is the flow chart of distributing IP address in prior art.First, the I P address request with MAC Address that DHCP Server receiving node sends, this MAC Address is for sending the MAC Address of the parts of IP Address requests in node.Then, DHCP Server to IP address corresponding to MAC Address, and records both corresponding relations according to certain rule searching, and generate list as shown in table 1, after ensureing, every minor node can be assigned to and IP address identical first after restarting.Finally, the IP address return node that will inquire of DHCP Server.
Table 1
Existing IP address assignment method will be used for MAC Address and the IP address binding of the parts sending IP Address requests in node, so, after this part replacement, such as break down or renewal of the equipment time, this node also changes for the MAC Address of the parts sending IP Address requests, causes utilizing the artificial MAC Address of new parts being updated in DHCP Server in the list being used for recording MAC Address and IP address corresponding relation.Therefore, time cost and Financial cost are all very high.
Summary of the invention
Embodiments provide a kind of network address assignment method, server and node, utilize the multiple hardware identifier of node to obtain the network address, thus reduce the complexity of supervising the network address assignment.
First aspect, embodiments provides a kind of network address assignment method, and described method comprises:
The network address request that receiving node sends, carries the hardware identifier of this node in described network address request;
From described network address request, extract the hardware identifier of described node, from network address list, inquire about described hardware identifier;
When inquiring described hardware identifier from described network address list, extract the network address that this hardware identifier is corresponding;
The network address of described correspondence is sent to described node.
Second aspect, embodiments provides another kind of network address assignment method, and described method comprises:
To the network address request of server sending node, in described network address request, carry the hardware identifier of this node, to inquire about from network address list according to described hardware identifier in order to described server and extract the network address corresponding to described hardware identifier;
Receive the response message of the described network address request message that described server sends, in described response message, carry the network address of this node.
The third aspect, embodiments provides a kind of server, and described server comprises:
First receiving element, for the network address request that receiving node sends, carries the hardware identifier of this node in described network address request;
Query unit, for extracting the hardware identifier of described node from described network address request, inquires about described hardware identifier from network address list;
Extraction unit, for when inquiring described hardware identifier from described network address list, extracts the network address that this hardware identifier is corresponding;
Transmitting element, for sending to described node by the network address of described correspondence.
Fourth aspect, embodiments provides a kind of node, and described node comprises:
First transmitting element, for the network address request to server sending node, carry the hardware identifier of this node in described network address request, to inquire about from network address list according to described hardware identifier in order to described server and extract the network address corresponding to described hardware identifier;
Receiving element, for receiving the response message of the described network address request message that described server sends, carries the network address of this node in described response message.
5th aspect, embodiments provide a kind of network address distribution system, described system comprises:
The server that the embodiment of the present invention provides and at least one node.
6th aspect, the invention provides a kind of server, it is characterized in that, described server comprises:
Network interface;
Processor;
Memory;
Physical store application program in which memory, described application program comprises and can be used for making described processor and described device perform the instruction of following process:
The network address request that receiving node sends, carries the hardware identifier of this node in described network address request;
From described network address request, extract the hardware identifier of described node, from network address list, inquire about described hardware identifier;
When inquiring described hardware identifier from described network address list, extract the network address that this hardware identifier is corresponding;
The network address of described correspondence is sent to described node.
The distribution method of the network address provided by utilizing the embodiment of the present invention, server and node, after the individual part changing node, when not carrying out any attended operation to server, ring server more enough normal to this peer distribution network address, thus effectively reduce time cost and the Financial cost of distribution network address.
Accompanying drawing explanation
Fig. 1 is the flow chart of distributing IP address in prior art;
The application scenarios schematic diagram of the network address assignment method that Fig. 2 provides for the embodiment of the present invention;
The network address assignment method flow chart that Fig. 3 provides for the embodiment of the present invention one;
The network address assignment method flow chart that Fig. 4 provides for the embodiment of the present invention two;
A kind of server architecture schematic diagram for realizing embodiment one that Fig. 5 provides for the embodiment of the present invention;
The another kind of server architecture schematic diagram for realizing embodiment one that Fig. 6 provides for the embodiment of the present invention;
A kind of node structure schematic diagram for realizing embodiment two that Fig. 7 provides for the embodiment of the present invention;
The another kind of node structure schematic diagram for realizing embodiment two that Fig. 8 provides for the embodiment of the present invention;
A kind of network address distribution system schematic diagram that Fig. 9 provides for the embodiment of the present invention three;
Figure 10 is the schematic diagram of a kind of server of the embodiment of the present invention.
Embodiment
In below describing, in order to illustrate instead of in order to limit, propose the detail of such as particular system structure, interface, technology and so on, understand the present invention thoroughly to cut.But, it will be clear to one skilled in the art that and also can realize the present invention in other embodiment not having these details.In other situation, omit the detailed description to well-known device, circuit and method, in order to avoid unnecessary details hinders description of the invention.
The network address assignment method that the embodiment of the present invention provides is applied between server and multiple node.As shown in Figure 2, the application scenarios schematic diagram of its network address assignment method provided for the embodiment of the present invention, comprises server and multiple node.
When after node start, for being linked on network, need the network address obtaining this node.Therefore, node sends network address request to server, carries the hardware identifier of this node in this network address request.Then, server, according to receiving the hardware identifier carried in network address request, inquires about this hardware identifier from network address list.When server inquires this hardware identifier from network address list, extract the network address that this hardware identifier is corresponding.Finally, server sends the network address corresponding with it to node.Utilize network address assignment method provided by the invention, after the individual part changing node, when not carrying out updating maintenance to server, still can normally to the peer distribution network address.
Below for the network address assignment method that Fig. 3 detailed description embodiment of the present invention provides, the network address assignment method flow chart that Fig. 3 provides for the embodiment of the present invention one, subject of implementation is server in embodiments of the present invention.
Step 310, the network address request that receiving node sends, carries the hardware identifier of this node in network address request.
Because when node is connected to network, node must know the network address oneself be assigned with, so before node is connected to network, needs the network address distributing self to server request.In order to server can be learnt and identify this node, so carry the hardware identifier of this node in network address request, thus server can be identified to this node.
Preferably, the hardware identifier carried in network address request can a hardware identifier or more than one hardware identifier.
It should be noted that, hardware identifier can be the mark of the parts can independently changed in node.Such as, the MAC(Medium/Media Access Control of network interface card, medium access control) address, the sequence number of the MAC Address of IPMI interface (Intelligent Platform Management Interface, the parts such as intelligent platform management interface), the MAC Address of switch, the sequence number of hard disk, the production sequence number of main frame and printed circuit board.
Preferably, the network address is IP address.
Step 320, extracts the hardware identifier of node from the network address request received;
Server extracts at least one hardware identifier of node from the network address request that node sends, and can characterize and identify this node by these hardware identifiers;
Step 330, inquires about described hardware identifier from network address list.
Preferably, network address list sets up in advance and generates.
Concrete, first, at least one hardware identifier of this node that server receiving node sends, these hardware identifiers are exactly the mark that can characterize and identify described node in described network address list, such as, sequence number of sequence number and printed circuit board etc. produced by MAC Address of Network Card, IPMI interface mac address, switch mac address, hard disk serial number, main frame.These hardware identifiers all may be used for characterizing and identifying this node.Then, by corresponding with the network address distributing to this node for the hardware identifier of all the nodes received, when each node hardware identifier and distribute to this node network address correspondence after generating network address list, in network address list, the network address of this node is inquired about by the hardware identifier of node, to the network address that this peer distribution is fixing in order to server.
Step 340, when inquiring the hardware identifier of reception from network address list, extracts the network address that this hardware identifier is corresponding.
Preferably, because corresponding with the network address of node in network address list is the hardware identifier of at least one this node, so when inquiring at least one hardware identifier in network address list, the network address of this node just can be extracted according at least one hardware identifier inquired.
Server from network address list inquire-receive to network address request in each hardware identifier of carrying, then extract the network address, have several situation:
First, if the individual components that hardware identifier entrained in the network address request that this node sends is corresponding was not all changed, then entrained in this network address request all hardware mark all can inquire from network address list, thus extracts the network address of this node according to the corresponding relation of these hardware identifiers and the network address.
Second, if the individual components that hardware identifier entrained in the network address request that this node sends is corresponding was replaced a bit, as long as when inquiring at least one hardware identifier in the hardware identifier be not replaced in network address list, in the hardware identifier be not replaced that just can inquire according to this, the corresponding relation of at least one hardware identifier and the network address extracts the network address of this node.
3rd, if individual components corresponding to hardware identifier entrained in the network address request that sends of this node was all replaced, then this node is regarded as new node, network address list gave this peer distribution network address again.When server is this peer distribution network address first, at least one hardware identifier that this node sends can be received, then by corresponding with the newly assigned network address for all hardware of this node mark, a new corresponding relation is formed, to be the network address that this peer distribution is fixed afterwards in network address list.
This shows, server only needs at least one hardware identifier in multiple hardware identifier just can extract the network address of node from network address list.Therefore, when causing because of more new node that in multiple hardware identifier, part hardware identifier is replaced, as long as inquire at least one hardware identifier in the hardware identifier be not replaced in network address list, in the hardware identifier be not replaced that just can inquire according to this, at least one hardware identifier extracts the network address of node, does not need to carry out real-time update to server.
Step 350, sends to node by the network address of extraction.
Server sends the response message of network address request message to node, carry the network address of this node that server extracts according at least one hardware identifier of node from network address list in this response message, make node that this network address can be utilized to realize interconnection network.
Real-time update need not be carried out to network address list in the network address assignment method provided in the present embodiment.Therefore, after the individual part changing node, when not carrying out updating maintenance to server, still normally to the peer distribution network address, time cost and the Financial cost of distribution network address can be effectively reduced.
Below for the network address assignment method that Fig. 4 detailed description embodiment of the present invention provides, the distribution method flow chart of the network address that Fig. 4 provides for the embodiment of the present invention two.
Step 410, to the network address request of server sending node, carries the hardware identifier of this node in this network address request, to inquire about and extract the network address corresponding to this hardware identifier in order to server according to this hardware identifier from network address list.
Because be connected to network constantly at node, node must know the network address oneself be assigned with, so before node is connected to network, needs the network address distributing self to server request.In order to server can be learnt and identify this node, so carry the hardware identifier of this node in network address request, thus server can be identified to this node.
Preferably, the hardware identifier carried in network address request can a hardware identifier or more than one hardware identifier.
It should be noted that, hardware identifier can be the mark of the parts can independently changed in node.Such as, the MAC(Medium/Media Access Control of network interface card, medium access control) address, the sequence number of the MAC Address of IPMI interface (Intelligent Platform Management Interface, the parts such as intelligent platform management interface), the MAC Address of switch, the sequence number of hard disk, the production sequence number of main frame and printed circuit board.
Preferably, the network address is IP address.
Preferably, network address list is set up by server in advance and generates.
Concrete, first, at least one hardware identifier of this node that server receiving node sends, these hardware identifiers are exactly the mark that can characterize and identify described node in described network address list, such as, sequence number of sequence number and printed circuit board etc. produced by MAC Address of Network Card, IPMI interface mac address, switch mac address, hard disk serial number, main frame.These hardware identifiers all may be used for characterizing and identifying this node.Then, by corresponding with the network address distributing to this node for the hardware identifier of all the nodes received, when each node hardware identifier and distribute to this node network address correspondence after generating network address list, in network address list, the network address of this node is inquired about by the hardware identifier of node, to the network address that this peer distribution is fixing in order to server.
Preferably, because corresponding with the network address of node in network address list is the hardware identifier of at least one this node, so when inquiring at least one hardware identifier in network address list, the network address of this node just can be extracted according at least one hardware identifier inquired.
Server from network address list inquire-receive to network address request in each hardware identifier of carrying, then extract the network address, have several situation:
First, if the individual components that hardware identifier entrained in the network address request that this node sends is corresponding was not all changed, then entrained in this network address request all hardware mark all can inquire from network address list, thus extracts the network address of this node according to the corresponding relation of these hardware identifiers and the network address.
Second, if the individual components that hardware identifier entrained in the network address request that this node sends is corresponding was replaced a bit, as long as when inquiring at least one hardware identifier in the hardware identifier be not replaced in network address list, in the hardware identifier be not replaced that just can inquire according to this, the corresponding relation of at least one hardware identifier and the network address extracts the network address of this node.
3rd, if individual components corresponding to hardware identifier entrained in the network address request that sends of this node was all replaced, then this node is regarded as new node, network address list gave this peer distribution network address again.When server is this peer distribution network address first, at least one hardware identifier that this node sends can be received, then by corresponding with the newly assigned network address for all hardware of this node mark, a new corresponding relation is formed, to be the network address that this peer distribution is fixed afterwards in network address list.
This shows, server only needs at least one hardware identifier in multiple hardware identifier just can extract the network address of node from network address list.Therefore, when causing because of more new node that in multiple hardware identifier, part hardware identifier is replaced, as long as inquire at least one hardware identifier in the hardware identifier be not replaced in network address list, in the hardware identifier be not replaced that just can inquire according to this, at least one hardware identifier extracts the network address of node, does not need to carry out real-time update to server.
Step 420, the response message of the network address request message that reception server sends, carries the network address of this node in this response message.
Node receives the response message of the network address request message sent from server, carry the network address of this node that server extracts according at least one hardware identifier of node from network address list in this response message, make node that this network address can be utilized to realize interconnection network.
Real-time update need not be carried out to network address list in the network address assignment method provided in the present embodiment.Therefore, after the individual part changing node, when not carrying out updating maintenance to server, still normally to the peer distribution network address, time cost and the Financial cost of distribution network address can be effectively reduced.
Correspondingly, the embodiment of the present invention additionally provides a kind of server, in order to realize the distribution method of the network address in embodiment one.As shown in Figure 5, be a kind of server architecture schematic diagram for realizing embodiment one that the embodiment of the present invention provides.The server provided in the present embodiment comprises: the first receiving element 501, query unit 502, extraction unit 503 and transmitting element 504.
The network address request that first receiving element 501 sends for receiving node, carries the hardware identifier of this node in this network address request; Query unit 502, for extracting the hardware identifier of node in the network address request that receives from the first receiving element 501, inquires about this hardware identifier from network address list; Extraction unit 503, for when inquiring this hardware identifier from network address list, extracts the network address that this hardware identifier is corresponding; Transmitting element 504 sends to node for the network address of the correspondence extracted by extraction unit 503.
Preferably, the hardware identifier carried in network address request can a hardware identifier or more than one hardware identifier.
It should be noted that, hardware identifier is the MAC Address of the parts that can independently change, sequence number that switch mac address, hard disk SN sequence number, main frame produce sequence number and printed circuit board.
Preferably, the network address is IP address.
Wherein, when extraction unit 503 specifically for inquiring at least one hardware identifier in hardware identifier from network address list, the network address that this hardware identifier is corresponding is extracted.
Extraction unit 503 from network address list inquire-receive to network address request in each hardware identifier of carrying, then extract the network address, have several situation:
First, if the individual components that hardware identifier entrained in the network address request that this node sends is corresponding was not all changed, then entrained in this network address request all hardware mark all can inquire from network address list, thus extracts the network address of this node according to the corresponding relation of these hardware identifiers and the network address.
Second, if the individual components that hardware identifier entrained in the network address request that this node sends is corresponding was replaced a bit, as long as when inquiring at least one hardware identifier in the hardware identifier be not replaced in network address list, in the hardware identifier be not replaced that just can inquire according to this, the corresponding relation of at least one hardware identifier and the network address extracts the network address of this node.
3rd, if individual components corresponding to hardware identifier entrained in the network address request that sends of this node was all replaced, then this node is regarded as new node, network address list gave this peer distribution network address again.When server is this peer distribution network address first, at least one hardware identifier that this node sends can be received, then by corresponding with the newly assigned network address for all hardware of this node mark, a new corresponding relation is formed, to be the network address that this peer distribution is fixed afterwards in network address list.
This shows, server only needs at least one hardware identifier in multiple hardware identifier just can extract the network address of node from network address list.Therefore, when causing because of more new node that in multiple hardware identifier, part hardware identifier is replaced, as long as inquire at least one hardware identifier in the hardware identifier be not replaced in network address list, in the hardware identifier be not replaced that just can inquire according to this, at least one hardware identifier extracts the network address of node, does not need to carry out real-time update to server.
Its another kind of server architecture schematic diagram for realizing embodiment one provided for the embodiment of the present invention of Fig. 6.Preferably, as shown in Figure 6, server also comprises the second receiving element 505 and generation unit 506.
At least one hardware identifier of this node that second receiving element 505 sends for receiving node.Concrete, at least one hardware identifier of this node that the second receiving element 505 sends for receiving node, these hardware identifiers are exactly the mark that can characterize and identify described node in described network address list, such as, sequence number of sequence number and printed circuit board etc. produced by MAC Address of Network Card, IPMI interface mac address, switch mac address, hard disk serial number, main frame.These hardware identifiers all may be used for characterizing and identifying this node.
Generation unit 506 is for corresponding with the network address distributing to this node by least one hardware identifier, thus generating network address list.Concrete, generation unit 506 is by corresponding with the network address distributing to this node for the hardware identifier of all the nodes received, when each node hardware identifier and distribute to this node network address correspondence after generating network address list, in network address list, the network address of this node is inquired about by the hardware identifier of node, to the network address that this peer distribution is fixing in order to server.
The server provided in the present embodiment need not carry out real-time update to network address list.Therefore, after the individual part changing node, this server does not need to upgrade, and still normally to the peer distribution network address, can effectively reduce time cost and the Financial cost of distribution network address.
Correspondingly, the embodiment of the present invention additionally provides a kind of node, in order to realize the distribution method of the network address in embodiment two.As shown in Figure 7, be a kind of node structure schematic diagram for realizing embodiment two that the embodiment of the present invention provides.The node provided in the present embodiment comprises: the first transmitting element 701 and receiving element 702.
First transmitting element 701 is for the network address request to server sending node, carry the hardware identifier of this node in this network address request, to inquire about from network address list according to this hardware identifier in order to described server and extract the network address corresponding to this hardware identifier; Receiving element 702, for receiving the response message of the described network address request message of described server transmission, carries the network address of this node in this response message.
Preferably, the hardware identifier carried in network address request can a hardware identifier or more than one hardware identifier.
It should be noted that, hardware identifier is the MAC Address of the parts that can independently change, sequence number that switch mac address, hard disk SN sequence number, main frame produce sequence number and printed circuit board.
Preferably, the network address is IP address.
Wherein, when server inquires at least one hardware identifier in hardware identifier from network address list, the network address that this hardware identifier is corresponding is extracted.
Server from network address list inquire-receive to network address request in each hardware identifier of carrying, then extract the network address, have several situation:
First, if the individual components that hardware identifier entrained in the network address request that this node sends is corresponding was not all changed, then entrained in this network address request all hardware mark all can inquire from network address list, thus extracts the network address of this node according to the corresponding relation of these hardware identifiers and the network address.
Second, if the individual components that hardware identifier entrained in the network address request that this node sends is corresponding was replaced a bit, as long as when inquiring at least one hardware identifier in the hardware identifier be not replaced in network address list, in the hardware identifier be not replaced that just can inquire according to this, the corresponding relation of at least one hardware identifier and the network address extracts the network address of this node.
3rd, if individual components corresponding to hardware identifier entrained in the network address request that sends of this node was all replaced, then this node is regarded as new node, network address list gave this peer distribution network address again.When server is this peer distribution network address first, at least one hardware identifier that this node sends can be received, then by corresponding with the newly assigned network address for all hardware of this node mark, a new corresponding relation is formed, to be the network address that this peer distribution is fixed afterwards in network address list.
This shows, server only needs at least one hardware identifier in multiple hardware identifier just can extract the network address of node from network address list.Therefore, when causing because of more new node that in multiple hardware identifier, part hardware identifier is replaced, as long as inquire at least one hardware identifier in the hardware identifier be not replaced in network address list, in the hardware identifier be not replaced that just can inquire according to this, at least one hardware identifier extracts the network address of node, does not need to carry out real-time update to server.
Preferably, node also comprises the second transmitting element 703.As shown in Figure 8, its another kind of node structure schematic diagram for realizing embodiment two provided for the embodiment of the present invention.
Second transmitting element 703 is for sending at least one hardware identifier of this node to server, in order to server, at least one hardware identifier is corresponding with the network address distributing to this node, generating network address list.
Concrete, second transmitting element sends at least one hardware identifier of this node to server, these hardware identifiers are exactly the mark that can characterize and identify described node in described network address list, such as, sequence number of sequence number and printed circuit board etc. produced by MAC Address of Network Card, IPMI interface mac address, switch mac address, hard disk serial number, main frame.These hardware identifiers all may be used for characterizing and identifying this node.Then, server is by corresponding with the network address distributing to this node for the hardware identifier of all the nodes received, when each node hardware identifier and distribute to this node network address correspondence after generating network address list, in network address list, the network address of this node is inquired about by the hardware identifier of node, to the network address that this peer distribution is fixing in order to server.
The node provided in the present embodiment sends the hardware identifier of at least one this node to server.Therefore after the individual part changing node, do not need to carry out updating maintenance to server, node still can obtain the network address to distributing normally, effectively reduces time cost and the Financial cost of distribution network address.
The embodiment of the present invention three additionally provides a kind of system, in order to realize network address assignment method in above-described embodiment and corresponding server and node, as shown in Figure 9, and its a kind of system schematic provided for the embodiment of the present invention three.The system provided in the present embodiment comprises server 910 and at least one node 921-92n.
The network address request that server 910 sends for the node received respectively at least one node 921-92n, the hardware identifier of this node is carried in this network address request, the hardware identifier of node is extracted from this network address request, described hardware identifier is inquired about from network address list, when inquiring this hardware identifier from network address list, extract the network address that this this hardware identifier is corresponding, the network address of this correspondence is sent to this node;
Each node at least one node 921-92n is used for the network address request to server 910 sending node, the hardware identifier of this node is carried in this network address request, from network address list, the network address corresponding to this hardware identifier is inquired about according to described hardware identifier in order to server, the response message of this network address request that reception server 910 sends, this answers in message the network address carrying this node.
The system provided in the present embodiment utilizes server to be that multiple node carries out network address distribution.After the individual part changing node, do not need to carry out updating maintenance to server, node still can obtain the network address that server distributes to it normally, effectively reduces time cost and the Financial cost of distribution network address.
As shown in Figure 10, it is the schematic diagram of a kind of server of the embodiment of the present invention.This device comprises network interface 1010, processor 1020 and memory 1030.System bus 1040 is for interconnection network interface 1010, processor 1020 and memory 1030.
Network interface 1010 for internet-of-things terminal, access gateway of internet of things, bearer network, Internet of Things gateway and application server communication.
Memory 1030 can be permanent memory, and such as hard disk drive and flash memory have software module and device driver in memory 1030.Software module can perform the various functional modules of said method of the present invention; Device driver can be network and interface drive program.
When starting, these component softwares are loaded in memory 1030, are then accessed by processor 1020 and perform as given an order:
The network address request that receiving node sends, carries the hardware identifier of this node in network address request;
From network address request, extract the hardware identifier of node, from network address list, inquire about hardware identifier;
When inquiring hardware identifier from network address list, extract the network address that this hardware identifier is corresponding;
The network address of correspondence is sent to described node.
Preferably, hardware identifier is at least one hardware identifier.
The server of the present embodiment instructs distribution network address, utilizes at least one hardware identifier of node just can inquire the network address corresponding to node in network address list.
Further, after the component software of processor access memory 1030, perform the instruction of following process:
At least one hardware identifier of the described node that receiving node sends, at least one hardware identifier is corresponding with the network address distributing to node, generating network address list.
Above-mentioned instruction process is exactly be applied in before server carries out the process of network address distribution, the network address that the hardware identifier of node is corresponding to this node is corresponding, generating network address list, so that carry out the network address obtaining node when the network address is distributed from network address list.
Those of ordinary skill in the art can recognize, in conjunction with unit and the algorithm steps of each example of embodiment disclosed herein description, can realize with the combination of electronic hardware or computer software and electronic hardware.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can use distinct methods to realize described function to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
In several embodiments that the application provides, should be understood that disclosed system, apparatus and method can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.
If described function using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. various can be program code stored medium.
Above-described embodiment; object of the present invention, technical scheme and beneficial effect are further described; be understood that; the foregoing is only the specific embodiment of the present invention; the protection range be not intended to limit the present invention; within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (16)
1. a network address assignment method, is characterized in that, described method comprises:
The network address request that receiving node sends, carries more than one hardware identifier of this node in described network address request;
From described network address request, extract the hardware identifier of described node, from network address list, inquire about described hardware identifier;
When inquiring described hardware identifier from described network address list, extract the network address that this hardware identifier is corresponding;
The network address of described correspondence is sent to described node;
When causing because of more new node that in multiple hardware identifier, part hardware identifier is replaced, as long as inquire at least one hardware identifier in the hardware identifier be not replaced in network address list, extract the network address of node according at least one hardware identifier in the hardware identifier be not replaced that this inquires.
2. method according to claim 1, is characterized in that, also comprises before the network address request that described receiving node sends:
Receive at least one hardware identifier of the described node that described node sends, by corresponding with the network address distributing to described node at least one hardware identifier described, generate described network address list.
3. method according to claim 2, is characterized in that, is describedly specially when inquiring described hardware identifier from described network address list, when inquiring at least one hardware identifier in described hardware identifier from described network address list.
4. according to method described arbitrarily in claim 1-3, it is characterized in that, described hardware identifier is the mark of at least one following parts that can independently change: the sequence number of sequence number and printed circuit board produced by MAC Address of Network Card, IPMI interface mac address, switch mac address, hard disk serial number, main frame.
5. a network address assignment method, is characterized in that, described method comprises:
To the network address request of server sending node, more than one hardware identifier of this node is carried in described network address request, to inquire about from network address list according to described hardware identifier in order to described server and extract the network address corresponding to described hardware identifier, and in order to described server when causing because of more new node that in multiple hardware identifier, part hardware identifier is replaced, as long as inquire at least one hardware identifier in the hardware identifier be not replaced in network address list, the network address of node is extracted according at least one hardware identifier in the hardware identifier be not replaced that this inquires,
Receive the response message of the described network address request message that described server sends, in described response message, carry the network address of this node.
6. method according to claim 5, is characterized in that, described send the network address request of this node to server before also comprise:
Send at least one hardware identifier of this node to described server, in order to described server by corresponding with the network address distributing to this node at least one hardware identifier described, generate described network address list.
7. method according to claim 6, it is characterized in that, the network address that described server is inquired about corresponding to described hardware identifier according to described hardware identifier from network address list is specially, and described server inquires about the network address corresponding to described hardware identifier according at least one hardware identifier in described hardware identifier from network address list.
8. according to method described arbitrarily in claim 5-7, it is characterized in that, described hardware identifier is the mark of at least one following parts that can independently change: the sequence number of sequence number and printed circuit board produced by MAC Address of Network Card, IPMI interface mac address, switch mac address, hard disk serial number, main frame.
9. a server, is characterized in that, described server comprises:
First receiving element, for the network address request that receiving node sends, carries more than one hardware identifier of this node in described network address request;
Query unit, for extracting the hardware identifier of described node from described network address request, inquires about described hardware identifier from network address list;
Extraction unit, for when inquiring described hardware identifier from described network address list, extracts the network address that this hardware identifier is corresponding;
Transmitting element, for sending to described node by the network address of described correspondence;
Described extraction unit also for: when causing because of more new node that in multiple hardware identifier, part hardware identifier is replaced, as long as inquire at least one hardware identifier in the hardware identifier be not replaced in network address list, extract the network address of node according at least one hardware identifier in the hardware identifier be not replaced that this inquires.
10. server according to claim 9, is characterized in that, described server also comprises:
Second receiving element, for receiving at least one hardware identifier of the described node that described node sends;
Generation unit, for by corresponding with the network address distributing to described node at least one hardware identifier described, generates described network address list.
11. servers according to claim 10, is characterized in that, when described extraction unit specifically for inquiring at least one hardware identifier in described hardware identifier from described network address list, extract the network address that this hardware identifier is corresponding.
12. according to server described arbitrarily in claim 9-11, it is characterized in that, described hardware identifier is the mark of at least one following parts that can independently change: the sequence number of sequence number and printed circuit board produced by MAC Address of Network Card, IPMI interface mac address, switch mac address, hard disk serial number, main frame.
13. 1 kinds of nodes, is characterized in that, described node comprises:
First transmitting element, for the network address request to server sending node, more than one hardware identifier of this node is carried in described network address request, to inquire about from network address list according to described hardware identifier in order to described server and extract the network address corresponding to described hardware identifier, and in order to described server when causing because of more new node that in multiple hardware identifier, part hardware identifier is replaced, as long as inquire at least one hardware identifier in the hardware identifier be not replaced in network address list, the network address of node is extracted according at least one hardware identifier in the hardware identifier be not replaced that this inquires,
Receiving element, for receiving the response message of the described network address request message that described server sends, carries the network address of this node in described response message.
14. nodes according to claim 13, is characterized in that, described node also comprises:
Second transmitting element, for sending at least one hardware identifier of this node to described server, in order to described server by corresponding with the network address distributing to this node at least one hardware identifier described, generates described network address list.
15. nodes according to claim 14, it is characterized in that, the network address that described server is inquired about corresponding to described hardware identifier according to described hardware identifier from network address list is specially, and described server inquires about the network address corresponding to described hardware identifier according at least one hardware identifier in described hardware identifier from network address list.
16. according to node described arbitrarily in claim 13-15, it is characterized in that, described hardware identifier is the mark of at least one following parts that can independently change: the sequence number of sequence number and printed circuit board produced by MAC Address of Network Card, IPMI interface mac address, switch mac address, hard disk serial number, main frame.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210409906.XA CN102904977B (en) | 2012-10-24 | 2012-10-24 | Network address allocation method, server and node |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210409906.XA CN102904977B (en) | 2012-10-24 | 2012-10-24 | Network address allocation method, server and node |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102904977A CN102904977A (en) | 2013-01-30 |
CN102904977B true CN102904977B (en) | 2015-07-08 |
Family
ID=47577011
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210409906.XA Active CN102904977B (en) | 2012-10-24 | 2012-10-24 | Network address allocation method, server and node |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102904977B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104066083B (en) * | 2013-03-18 | 2020-02-21 | 华为终端(深圳)有限公司 | Method and device for accessing wireless local area network |
CN103327136A (en) * | 2013-07-01 | 2013-09-25 | 浪潮电子信息产业股份有限公司 | Method for managing ip address of server management network card under dhcp network |
CN110071983A (en) * | 2018-01-22 | 2019-07-30 | 西安中兴新软件有限责任公司 | A kind of retransmission method and device |
CN108810192A (en) * | 2018-07-20 | 2018-11-13 | 郑州云海信息技术有限公司 | A kind of static IP configuration method, device, equipment and readable storage medium storing program for executing |
CN111405075B (en) * | 2019-01-02 | 2023-03-28 | 中国移动通信有限公司研究院 | Network address allocation method, device and storage medium |
TWI698101B (en) * | 2019-06-04 | 2020-07-01 | 鴻齡科技股份有限公司 | Server management method and server management device |
CN113132503B (en) * | 2019-12-31 | 2022-05-24 | 华为技术有限公司 | Address allocation method and device |
CN111885214B (en) * | 2020-06-15 | 2021-07-02 | 北京交通大学 | Industrial heterogeneous network equipment-oriented address uniform distribution method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102098354A (en) * | 2011-02-28 | 2011-06-15 | 北京星网锐捷网络技术有限公司 | Method and server for allocating dynamic host configuration protocol (DHCP) addresses |
CN102143247A (en) * | 2010-12-31 | 2011-08-03 | 华为技术有限公司 | Method for allocating and configuring address, address allocation server and host machine |
CN102164188A (en) * | 2011-03-31 | 2011-08-24 | 华为技术有限公司 | Network address allocation method, device and system |
CN102739821A (en) * | 2012-07-03 | 2012-10-17 | 大唐移动通信设备有限公司 | Method and system for allocating IP addresses |
-
2012
- 2012-10-24 CN CN201210409906.XA patent/CN102904977B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102143247A (en) * | 2010-12-31 | 2011-08-03 | 华为技术有限公司 | Method for allocating and configuring address, address allocation server and host machine |
CN102098354A (en) * | 2011-02-28 | 2011-06-15 | 北京星网锐捷网络技术有限公司 | Method and server for allocating dynamic host configuration protocol (DHCP) addresses |
CN102164188A (en) * | 2011-03-31 | 2011-08-24 | 华为技术有限公司 | Network address allocation method, device and system |
CN102739821A (en) * | 2012-07-03 | 2012-10-17 | 大唐移动通信设备有限公司 | Method and system for allocating IP addresses |
Also Published As
Publication number | Publication date |
---|---|
CN102904977A (en) | 2013-01-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102904977B (en) | Network address allocation method, server and node | |
CN102098354B (en) | Method and server for allocating dynamic host configuration protocol (DHCP) addresses | |
CN102843436B (en) | A kind of device management method, equipment, server and system | |
CN103138972B (en) | Server cabinet system | |
EP3905598A1 (en) | Message processing method and apparatus, control plane device, and computer storage medium | |
CN102202087B (en) | Method for identifying storage equipment and system thereof | |
CN105577420A (en) | Method and system for automatic generation of server network topology | |
CN104486445A (en) | Distributed extendable resource monitoring system and method based on cloud platform | |
CN102137007B (en) | Method and system for generating network topology as well as coordinator | |
CN101447895A (en) | Collocation method for synchronizing network management and network element and device thereof | |
CN103997414A (en) | Configuration information generation method and network control unit | |
CN104717314A (en) | IP management method and system, client-side and server | |
CN104486103A (en) | Message transmission method and equipment | |
CN101772920A (en) | Method and apparatus for discovering universal plug and play device using resource information | |
CN104468201A (en) | Automatic deleting method and device for offline network equipment | |
CN103312708A (en) | Lease file based IP (internet protocol) setting method and system | |
CN103326887A (en) | Interface management method and system | |
CN107070719B (en) | Equipment management method and device | |
CN102024040A (en) | Database synchronization method, device and system | |
CN101860452A (en) | Network element management method and system | |
CN108011870B (en) | A kind of remote software online upgrading information automatic identification management method | |
CN105227422A (en) | A kind of method of transmitting video data based on polymerization network interface and device | |
CN104780120A (en) | Method and device for transmitting files in local area network | |
CN101873232A (en) | Judgment method of equipment uniqueness and IP network discovery server | |
CN105281944B (en) | Method for setting network protocol address and service management system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220525 Address after: No. 1899 Xiyuan Avenue, high tech Zone (West District), Chengdu, Sichuan 610041 Patentee after: Chengdu Huawei Technologies Co.,Ltd. Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd. |