CN102904977A - Network address allocation method, server and node - Google Patents

Network address allocation method, server and node Download PDF

Info

Publication number
CN102904977A
CN102904977A CN201210409906XA CN201210409906A CN102904977A CN 102904977 A CN102904977 A CN 102904977A CN 201210409906X A CN201210409906X A CN 201210409906XA CN 201210409906 A CN201210409906 A CN 201210409906A CN 102904977 A CN102904977 A CN 102904977A
Authority
CN
China
Prior art keywords
network address
node
hardware identifier
server
request
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.)
Granted
Application number
CN201210409906XA
Other languages
Chinese (zh)
Other versions
CN102904977B (en
Inventor
刘清华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Huawei Technology Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201210409906.XA priority Critical patent/CN102904977B/en
Publication of CN102904977A publication Critical patent/CN102904977A/en
Application granted granted Critical
Publication of CN102904977B publication Critical patent/CN102904977B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (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

Network address assignment method, server and node
Technical field
The present invention relates to the communications field, relate in particular to a kind of network address assignment method, server and node.
Background technology
In the distributed cluster system of magnanimity, number of nodes is numerous usually.For fear of in response to the IP(Internet Protocol to changing, procotol) address increases unnecessary complexity to system, wishes that all clustered node adopts fixedly IP distribution.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, way commonly used is by DHCP(Dynamic Host ConfigurationProtocol, DynamicHost arranges agreement) the Server(server) principle, the MAC(Medium/Media AccessControl of entrained transmission request parts in the request of server according to the node transmission, medium access control) node is remembered in the address, and distributes specific IP address for it.As shown in Figure 1, it is the flow chart of distributing IP address in the prior art.At first, the I P address request with MAC Address that DHCP Server receiving node sends, this MAC Address is the MAC Address that is used for the parts of transmission IP Address requests in the node.Then, DHCP Server arrives IP address corresponding to MAC Address according to certain rule searching, and records both corresponding relations, generates tabulation as shown in table 1, can both be assigned to and identical first IP address after every minor node is restarted after guaranteeing.At last, DHCP Server is with the IP address return node that inquires.
Figure BDA00002300680700011
Table 1
Existing IP address assignment method will be used for MAC Address and the IP address binding of the parts of transmission IP Address requests in the node, so, after this part replacement, for example break down or when renewal of the equipment, the MAC Address that this node is used for the parts of transmission IP Address requests also changes, and causes utilizing artificial MAC Address with new parts to be updated to the tabulation that is used for record MAC Address and IP address corresponding relation among the DHCP Server.Therefore, time cost and Financial cost are all very high.
Summary of the invention
The embodiment of the invention provides a kind of network address assignment method, server and node, utilizes a plurality of hardware identifiers of node to obtain the network address, thereby has reduced the complexity of supervising the network address assignment.
First aspect, the embodiment of the invention provide 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 the request of the described network address;
From the request of the described network address, extract the hardware identifier of described node, the described hardware identifier of inquiry from network address list;
When from described network address list, inquiring described hardware identifier, extract the network address corresponding to this hardware identifier;
The network address of described correspondence is sent to described node.
Second aspect, the embodiment of the invention provide another kind of network address assignment method, and described method comprises:
To the network address request of server sending node, carry the hardware identifier of this node in the request of the described network address, from network address list, inquire about and extract the corresponding network address of described hardware identifier according to described hardware identifier in order to described server;
Receive the response message of the described network address request message of described server transmission, carry the network address of this node in the described response message.
The third aspect, the embodiment of the invention provide a kind of server, and described server comprises:
The first receiving element is used for the network address request that receiving node sends, and carries the hardware identifier of this node in the request of the described network address;
Query unit is used for from the hardware identifier of the described node of described network address request extraction, the described hardware identifier of inquiry from network address list;
Extraction unit is used for extracting the network address corresponding to this hardware identifier when inquiring described hardware identifier from described network address list;
Transmitting element is used for the network address of described correspondence is sent to described node.
Fourth aspect, the embodiment of the invention provide a kind of node, and described node comprises:
The first transmitting element, be used for the network address request to the server sending node, carry the hardware identifier of this node in the request of the described network address, from network address list, inquire about and extract the corresponding network address of described hardware identifier according to described hardware identifier in order to described server;
Receiving element for the response message of the described network address request message that receives described server transmission, carries the network address of this node in the described response message.
The 5th aspect, the embodiment of the invention provide a kind of network address distribution system, and described system comprises:
The server that the embodiment of the invention provides and at least one node.
The 6th aspect the invention provides a kind of server, it is characterized in that, described server comprises:
Network interface;
Processor;
Memory;
The application program of physical store in described memory, described application program comprise and can be used for making described processor and described device to carry out the instruction of following process:
The network address request that receiving node sends carries the hardware identifier of this node in the request of the described network address;
From the request of the described network address, extract the hardware identifier of described node, the described hardware identifier of inquiry from network address list;
When from described network address list, inquiring described hardware identifier, extract the network address corresponding to this hardware identifier;
The network address of described correspondence is sent to described node.
By utilizing distribution method, server and the node of the network address that the embodiment of the invention provides, after the individual component of changing node, server is not being carried out in the situation of any attended operation, it is more enough normally to this node distribution network address to ring server, thereby effectively reduces time cost and the Financial cost of distribution network address.
Description of drawings
Fig. 1 is the flow chart of distributing IP address in the prior art;
The application scenarios schematic diagram of the network address assignment method that Fig. 2 provides for the embodiment of the invention;
The network address assignment method flow chart that Fig. 3 provides for the embodiment of the invention one;
The network address assignment method flow chart that Fig. 4 provides for the embodiment of the invention two;
A kind of server architecture schematic diagram that is used for realizing embodiment one that Fig. 5 provides for the embodiment of the invention;
The another kind of server architecture schematic diagram that is used for realizing embodiment one that Fig. 6 provides for the embodiment of the invention;
A kind of node structure schematic diagram that is used for realizing embodiment two that Fig. 7 provides for the embodiment of the invention;
The another kind of node structure schematic diagram that is used for realizing embodiment two that Fig. 8 provides for the embodiment of the invention;
A kind of network address distribution system schematic diagram that Fig. 9 provides for the embodiment of the invention three;
Figure 10 is the schematic diagram of a kind of server of the embodiment of the invention.
Embodiment
In below describing, in order to illustrate rather than in order limiting, to have proposed the detail such as particular system structure, interface, technology, understand the present invention in order to thoroughly cut.Yet, not it will be clear to one skilled in the art that in having other embodiment of these details and can realize the present invention yet.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 invention provides is applied between server and a plurality of node.As shown in Figure 2, the application scenarios schematic diagram of the network address assignment method that it provides for the embodiment of the invention comprises server and a plurality of node.
After the node start, for being linked on the network, need to obtain the network address of this node.Therefore, node sends network address request to server, carries the hardware identifier of this node in this network address request.Then, server is according to receiving the hardware identifier that carries in the request of the network address, this hardware identifier of inquiry from network address list.When server inquires this hardware identifier from network address list, extract the network address corresponding to this hardware identifier.At last, server sends the network address corresponding with it to node.Utilize network address assignment method provided by the invention, after the individual component of changing node, server is not being carried out in the situation of updating maintenance, still can be normally to node distribution network address.
The below describes the network address assignment method that the embodiment of the invention provides in detail as an example of Fig. 3 example, the network address assignment method flow chart that Fig. 3 provides for the embodiment of the invention one, and subject of implementation is server in embodiments of the present invention.
The network address request that step 310, receiving node send carries the hardware identifier of this node in the request of the network address.
Because when node is connected to network, node must be known the network address that oneself is assigned with, so before node is connected to network, need to distribute to server request the network address of self.In order to allow server can learn and identify this node, thus in the request of the network address, carry the hardware identifier of this node, thereby so that server can identify this node.
Preferably, the hardware identifier that carries in the request of the network address can a hardware identifier or an above hardware identifier.
Need to prove that hardware identifier can be the sign of the parts that can independently change in the node.For example, the MAC(Medium/Media Access Control of network interface card, medium access control) address, MAC Address, the MAC Address of switch, the sequence number of hard disk, the production sequence number of main frame and the sequence number of printed circuit board of IPMI interface (Intelligent Platform Management Interface, the parts such as intelligent platform management interface).
Preferably, the network address is the IP address.
Step 320, the hardware identifier of extraction node from the network address request that receives;
Server extracts at least one hardware identifier of node from the network address request that node sends, can characterize and identify this node by these hardware identifiers;
Step 330, the described hardware identifier of inquiry from network address list.
Preferably, network address list is to set up in advance and generate.
Concrete, at first, at least one hardware identifier of this node that the server receiving node sends, these hardware identifiers are exactly the sign that can characterize and identify described node in described network address list, for example, MAC Address of Network Card, IPMI interface mac address, switch mac address, hard disk sequence number, main frame are produced sequence number of sequence number and printed circuit board etc.These hardware identifiers all can be used for characterizing and identifying this node.Then, the hardware identifier of all these nodes of receiving is corresponding with the network address of distributing to this node, generating network address list when the hardware identifier of each node and after distributing to the network address correspondence of this node, in network address list, inquire about the network address of this node by the hardware identifier of node in order to server, distribute the fixing network address for this node.
Step 340 when inquiring the hardware identifier of reception from network address list, is extracted the network address corresponding to this hardware identifier.
Preferably, because corresponding with the network address of node in the network address list is the hardware identifier of at least one this node, so when in network address list, inquiring at least one hardware identifier, just can extract according at least one hardware identifier that inquires the network address of this node.
Server from network address list inquire-receive to network address request in each hardware identifier of carrying, extract again the network address, have several situations:
First, if entrained individual components corresponding to hardware identifier all do not changed in the network address request that this node sends, then entrained all hardware sign all can inquire from network address list in this network address request, thus the network address of extracting this node according to the corresponding relation of these hardware identifiers and the network address.
Second, if entrained individual components corresponding to hardware identifier was replaced a bit in the network address request that this node sends, as long as when in network address list, inquiring in the hardware identifier that is not replaced at least one hardware identifier, the network address that just can extract this node according to the corresponding relation of at least one hardware identifier and the network address in this hardware identifier that is not replaced that inquires.
The 3rd, if entrained individual components corresponding to hardware identifier all was replaced in the network address request that this node sends, then this node is regarded as new node, network address list is given this node distribution network address again.When server is this node distribution network address first, can receive at least one hardware identifier that this node sends, then all hardware sign of this node is corresponding with the newly assigned network address, in network address list, form a new corresponding relation, in order to distribute the fixing network address for this node afterwards.
This shows the network address that server only needs at least one hardware identifier in a plurality of hardware identifiers just can extract node from network address list.Therefore, when causing because of new node more that the part hardware identifier is replaced in a plurality of hardware identifiers, as long as in network address list, inquire at least one hardware identifier in the hardware identifier that is not replaced, just can according to the network address of at least one hardware identifier extraction node in this hardware identifier that is not replaced that inquires, not need server is carried out real-time update.
Step 350 sends to node with the network address of extracting.
Server sends the response message of network address request message to node, node carries the network address of this node that server extracts according at least one hardware identifier of node in this response message from network address list, so that can utilize this network address to realize interconnection network.
Need not carry out real-time update to network address list in the network address assignment method that provides in the present embodiment.Therefore after the individual component of changing node, server is not being carried out in the situation of updating maintenance, still can normally to node distribution network address, effectively reduce time cost and the Financial cost of distribution network address.
The below describes the network address assignment method that the embodiment of the invention provides in detail as an example of Fig. 4 example, the distribution method flow chart of the network address that Fig. 4 provides for the embodiment of the 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, inquire about and extract the corresponding network address of this hardware identifier according to this hardware identifier in order to server from network address list.
Because be connected to network constantly at node, node must be known the network address that oneself is assigned with, so before node is connected to network, need to distribute to server request the network address of self.In order to allow server can learn and identify this node, thus in the request of the network address, carry the hardware identifier of this node, thereby so that server can identify this node.
Preferably, the hardware identifier that carries in the request of the network address can a hardware identifier or an above hardware identifier.
Need to prove that hardware identifier can be the sign of the parts that can independently change in the node.For example, the MAC(Medium/Media Access Control of network interface card, medium access control) address, MAC Address, the MAC Address of switch, the sequence number of hard disk, the production sequence number of main frame and the sequence number of printed circuit board of IPMI interface (Intelligent Platform Management Interface, the parts such as intelligent platform management interface).
Preferably, the network address is the IP address.
Preferably, network address list is to be set up and generated by server in advance.
Concrete, at first, at least one hardware identifier of this node that the server receiving node sends, these hardware identifiers are exactly the sign that can characterize and identify described node in described network address list, for example, MAC Address of Network Card, IPMI interface mac address, switch mac address, hard disk sequence number, main frame are produced sequence number of sequence number and printed circuit board etc.These hardware identifiers all can be used for characterizing and identifying this node.Then, the hardware identifier of all these nodes of receiving is corresponding with the network address of distributing to this node, generating network address list when the hardware identifier of each node and after distributing to the network address correspondence of this node, in network address list, inquire about the network address of this node by the hardware identifier of node in order to server, distribute the fixing network address for this node.
Preferably, because corresponding with the network address of node in the network address list is the hardware identifier of at least one this node, so when in network address list, inquiring at least one hardware identifier, just can extract according at least one hardware identifier that inquires the network address of this node.
Server from network address list inquire-receive to network address request in each hardware identifier of carrying, extract again the network address, have several situations:
First, if entrained individual components corresponding to hardware identifier all do not changed in the network address request that this node sends, then entrained all hardware sign all can inquire from network address list in this network address request, thus the network address of extracting this node according to the corresponding relation of these hardware identifiers and the network address.
Second, if entrained individual components corresponding to hardware identifier was replaced a bit in the network address request that this node sends, as long as when in network address list, inquiring in the hardware identifier that is not replaced at least one hardware identifier, the network address that just can extract this node according to the corresponding relation of at least one hardware identifier and the network address in this hardware identifier that is not replaced that inquires.
The 3rd, if entrained individual components corresponding to hardware identifier all was replaced in the network address request that this node sends, then this node is regarded as new node, network address list is given this node distribution network address again.When server is this node distribution network address first, can receive at least one hardware identifier that this node sends, then all hardware sign of this node is corresponding with the newly assigned network address, in network address list, form a new corresponding relation, in order to distribute the fixing network address for this node afterwards.
This shows the network address that server only needs at least one hardware identifier in a plurality of hardware identifiers just can extract node from network address list.Therefore, when causing because of new node more that the part hardware identifier is replaced in a plurality of hardware identifiers, as long as in network address list, inquire at least one hardware identifier in the hardware identifier that is not replaced, just can according to the network address of at least one hardware identifier extraction node in this hardware identifier that is not replaced that inquires, not need server is carried out real-time update.
The response message of the network address request message that step 420, reception server send carries the network address of this node in this response message.
Node receives from the response message of the network address request message of server transmission, node carries the network address of this node that server extracts according at least one hardware identifier of node in this response message from network address list, so that can utilize this network address to realize interconnection network.
Need not carry out real-time update to network address list in the network address assignment method that provides in the present embodiment.Therefore after the individual component of changing node, server is not being carried out in the situation of updating maintenance, still can normally to node distribution network address, effectively reduce time cost and the Financial cost of distribution network address.
Correspondingly, the embodiment of the invention also provides a kind of server, in order to realize the distribution method of the network address among the embodiment one.As shown in Figure 5, a kind of server architecture schematic diagram that is used for realizing embodiment one that provides for the embodiment of the invention.The server that provides in the present embodiment comprises: the first receiving element 501, query unit 502, extraction unit 503 and transmitting element 504.
The first receiving element 501 is used for the network address request that receiving node sends, and carries the hardware identifier of this node in this network address request; Query unit 502 is used for extracting from the network address request that the first receiving element 501 receives the hardware identifier of node, this hardware identifier of inquiry from network address list; Extraction unit 503 is used for extracting the network address corresponding to this hardware identifier when inquiring this hardware identifier from network address list; Transmitting element 504 is used for the network address of the correspondence of extraction unit 503 extractions is sent to node.
Preferably, the hardware identifier that carries in the request of the network address can a hardware identifier or an above hardware identifier.
Need to prove that hardware identifier is produced the sequence number of sequence number and printed circuit board for MAC Address, switch mac address, hard disk SN sequence number, the main frame of the parts that can independently change.
Preferably, the network address is the IP address.
Wherein, extraction unit 503 is concrete is used for extracting the network address corresponding to this hardware identifier when network address list inquires at least one hardware identifier the hardware identifier.
Extraction unit 503 from network address list inquire-receive to network address request in each hardware identifier of carrying, extract again the network address, have several situations:
First, if entrained individual components corresponding to hardware identifier all do not changed in the network address request that this node sends, then entrained all hardware sign all can inquire from network address list in this network address request, thus the network address of extracting this node according to the corresponding relation of these hardware identifiers and the network address.
Second, if entrained individual components corresponding to hardware identifier was replaced a bit in the network address request that this node sends, as long as when in network address list, inquiring in the hardware identifier that is not replaced at least one hardware identifier, the network address that just can extract this node according to the corresponding relation of at least one hardware identifier and the network address in this hardware identifier that is not replaced that inquires.
The 3rd, if entrained individual components corresponding to hardware identifier all was replaced in the network address request that this node sends, then this node is regarded as new node, network address list is given this node distribution network address again.When server is this node distribution network address first, can receive at least one hardware identifier that this node sends, then all hardware sign of this node is corresponding with the newly assigned network address, in network address list, form a new corresponding relation, in order to distribute the fixing network address for this node afterwards.
This shows the network address that server only needs at least one hardware identifier in a plurality of hardware identifiers just can extract node from network address list.Therefore, when causing because of new node more that the part hardware identifier is replaced in a plurality of hardware identifiers, as long as in network address list, inquire at least one hardware identifier in the hardware identifier that is not replaced, just can according to the network address of at least one hardware identifier extraction node in this hardware identifier that is not replaced that inquires, not need server is carried out real-time update.
Its another kind of server architecture schematic diagram that is used for realizing embodiment one that provides for the embodiment of the invention of Fig. 6.Preferably, as shown in Figure 6, server also comprises the second receiving element 505 and generation unit 506.
The second receiving element 505 is used at least one hardware identifier of this node of receiving node transmission.Concrete, the second receiving element 505 is used at least one hardware identifier of this node of receiving node transmission, these hardware identifiers are exactly the sign that can characterize and identify described node in described network address list, for example, MAC Address of Network Card, IPMI interface mac address, switch mac address, hard disk sequence number, main frame are produced sequence number of sequence number and printed circuit board etc.These hardware identifiers all can be used for characterizing and identifying this node.
Generation unit 506 is used at least one hardware identifier is corresponding with the network address of distributing to this node, thus the generating network address list.Concrete, the hardware identifier of all these nodes that generation unit 506 will receive is corresponding with the network address of distributing to this node, generating network address list when the hardware identifier of each node and after distributing to the network address correspondence of this node, in network address list, inquire about the network address of this node by the hardware identifier of node in order to server, distribute the fixing network address for this node.
The server that provides in the present embodiment need not carry out real-time update to network address list.Therefore after the individual component of changing node, this server does not need to upgrade, and still can normally to node distribution network address, effectively reduce time cost and the Financial cost of distribution network address.
Correspondingly, the embodiment of the invention also provides a kind of node, in order to realize the distribution method of the network address among the embodiment two.As shown in Figure 7, a kind of node structure schematic diagram that is used for realizing embodiment two that provides for the embodiment of the invention.The node that provides in the present embodiment comprises: the first transmitting element 701 and receiving element 702.
The network address request that the first transmitting element 701 is used for to the server sending node, carry the hardware identifier of this node in this network address request, from network address list, inquire about and extract the corresponding network address of this hardware identifier according to this hardware identifier in order to described server; Receiving element 702 carries the network address of this node for the response message of the described network address request message that receives described server transmission in this response message.
Preferably, the hardware identifier that carries in the request of the network address can a hardware identifier or an above hardware identifier.
Need to prove that hardware identifier is produced the sequence number of sequence number and printed circuit board for MAC Address, switch mac address, hard disk SN sequence number, the main frame of the parts that can independently change.
Preferably, the network address is the IP address.
Wherein, when server inquires at least one hardware identifier in the hardware identifier from network address list, extract the network address corresponding to this hardware identifier.
Server from network address list inquire-receive to network address request in each hardware identifier of carrying, extract again the network address, have several situations:
First, if entrained individual components corresponding to hardware identifier all do not changed in the network address request that this node sends, then entrained all hardware sign all can inquire from network address list in this network address request, thus the network address of extracting this node according to the corresponding relation of these hardware identifiers and the network address.
Second, if entrained individual components corresponding to hardware identifier was replaced a bit in the network address request that this node sends, as long as when in network address list, inquiring in the hardware identifier that is not replaced at least one hardware identifier, the network address that just can extract this node according to the corresponding relation of at least one hardware identifier and the network address in this hardware identifier that is not replaced that inquires.
The 3rd, if entrained individual components corresponding to hardware identifier all was replaced in the network address request that this node sends, then this node is regarded as new node, network address list is given this node distribution network address again.When server is this node distribution network address first, can receive at least one hardware identifier that this node sends, then all hardware sign of this node is corresponding with the newly assigned network address, in network address list, form a new corresponding relation, in order to distribute the fixing network address for this node afterwards.
This shows the network address that server only needs at least one hardware identifier in a plurality of hardware identifiers just can extract node from network address list.Therefore, when causing because of new node more that the part hardware identifier is replaced in a plurality of hardware identifiers, as long as in network address list, inquire at least one hardware identifier in the hardware identifier that is not replaced, just can according to the network address of at least one hardware identifier extraction node in this hardware identifier that is not replaced that inquires, not need server is carried out real-time update.
Preferably, node also comprises the second transmitting element 703.As shown in Figure 8, its another kind of node structure schematic diagram that is used for realizing embodiment two that provides for the embodiment of the invention.
The second transmitting element 703 is used for sending to server at least one hardware identifier of this node, and is in order to server that at least one hardware identifier is corresponding with the network address of distributing to this node, the generating network address list.
Concrete, the second transmitting element sends at least one hardware identifier of this node to server, these hardware identifiers are exactly the sign that can characterize and identify described node in described network address list, for example, MAC Address of Network Card, IPMI interface mac address, switch mac address, hard disk sequence number, main frame are produced sequence number of sequence number and printed circuit board etc.These hardware identifiers all can be used for characterizing and identifying this node.Then, the hardware identifier of all these nodes that server will receive is corresponding with the network address of distributing to this node, generating network address list when the hardware identifier of each node and after distributing to the network address correspondence of this node, in network address list, inquire about the network address of this node by the hardware identifier of node in order to server, distribute the fixing network address for this node.
The node that provides in the present embodiment sends the hardware identifier of at least one this node to server.Therefore after the individual component of changing node, do not need server is carried out updating maintenance, node still can obtain normally to the network address of distributing, and effectively reduces time cost and the Financial cost of distribution network address.
The embodiment of the invention three also provides a kind of system, in order to realize network address assignment method and corresponding server and the node in above-described embodiment, as shown in Figure 9, a kind of system schematic that it provides for the embodiment of the invention three.The system that provides 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 that receives respectively at least one node 921-92n, carry the hardware identifier of this node in this network address request, from this network address request, extract the hardware identifier of node, the described hardware identifier of inquiry from network address list, when from network address list, inquiring this hardware identifier, extract the network address corresponding to this this hardware identifier, the network address that this is corresponding sends to this node;
Each node among at least one node 921-92n is used for the network address request to server 910 sending nodes, carry the hardware identifier of this node in this network address request, from network address list, inquire about the corresponding network address of this hardware identifier in order to server according to described hardware identifier, the response message of this network address request that reception server 910 sends, this answers the network address that carries this node in the message.
It is that a plurality of nodes carry out network address distribution that the system that provides in the present embodiment utilizes server.After the individual component of changing node, do not need server is carried out updating maintenance, node still can obtain server normally to the network address of its distribution, 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 invention.This device comprises network interface 1010, processor 1020 and memory 1030.System bus 1040 is used for interconnection network interface 1010, processor 1020 and memory 1030.
Network interface 1010 is used for and 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 for example hard disk drive and flash memory have software module and device driver in the memory 1030.Software module can be carried out 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 the memory 1030, are then accessed and carry out as giving an order by processor 1020:
The network address request that receiving node sends carries the hardware identifier of this node in the request of the network address;
From the request of the network address, extract the hardware identifier of node, from network address list, inquire about hardware identifier;
When from network address list, inquiring hardware identifier, extract the network address corresponding to this hardware identifier;
The network address of correspondence is sent to described node.
Preferably, hardware identifier is at least one hardware identifier.
The server of present embodiment instructs the distribution network address, utilizes at least one hardware identifier of node just can inquire the corresponding network address of node in network address list.
Further, behind the component software of processor access memory 1030, carry out 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 of distributing to node, the generating network address list.
Above-mentioned instruction process is exactly to be applied in before the process that server carries out distributing the network address, the hardware identifier of node is corresponding with the corresponding network address of this node, the generating network address list divides timing to obtain the network address of node from network address list so that carry out the network address.
Those of ordinary skills can recognize, unit and the algorithm steps of each example of describing in conjunction with embodiment disclosed herein can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are carried out with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.The professional and technical personnel can specifically should be used for realizing described function with distinct methods to each, but this realization should not thought and exceeds scope of the present invention.
In several embodiment that the application provides, should be understood that disclosed system, apparatus and method can realize by another way.For example, device embodiment described above only is schematic, for example, the division of described unit, only be that a kind of logic function is divided, during actual the realization other dividing mode can be arranged, for example a plurality of unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, the shown or coupling each other discussed or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or unit can be electrically, machinery or other form.
Described unit as separating component explanation can or can not be physically to separate also, and the parts that show as the unit can be or can not be physical locations also, namely can be positioned at a place, perhaps also can be distributed on a plurality of network element.Can select according to the actual needs wherein some or all of unit to realize the purpose of present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in the processing unit, also can be that the independent physics of unit exists, and also can be integrated in the unit two or more unit.
If described function realizes with the form of SFU software functional unit and during as independently production marketing or use, can be stored in the computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or the part of this technical scheme can embody with the form of software product, this computer software product is stored in the storage medium, comprise that some instructions are with so that a computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out all or part of step of the described method of each embodiment of the present invention.And aforesaid storage medium comprises: the various media that can be program code stored such as USB flash disk, portable hard drive, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD.
Above-described embodiment; purpose of the present invention, technical scheme and beneficial effect are further described; institute is understood that; the above only is the specific embodiment of the present invention; the protection range that is not intended to limit the present invention; within the spirit and principles in the present invention all, any modification of making, be equal to 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 the hardware identifier of this node in the request of the described network address;
From the request of the described network address, extract the hardware identifier of described node, the described hardware identifier of inquiry from network address list;
When from described network address list, inquiring described hardware identifier, extract the network address corresponding to this hardware identifier;
The network address of described correspondence is sent to described node.
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 of described node transmission, described at least one hardware identifier is corresponding with the network address of distributing to described node, generate described network address list.
3. method according to claim 2 is characterized in that, describedly is specially when inquiring described hardware identifier from described network address list, when inquiring at least one hardware identifier in the described hardware identifier from described network address list.
4. any described method according to claim 1-3, it is characterized in that described hardware identifier is the sign of the parts that can independently change at least one below: the sequence number of MAC Address of Network Card, IPMI interface mac address, switch mac address, hard disk sequence number, main frame production sequence number and printed circuit board.
5. a network address assignment method is characterized in that, described method comprises:
To the network address request of server sending node, carry the hardware identifier of this node in the request of the described network address, from network address list, inquire about and extract the corresponding network address of described hardware identifier according to described hardware identifier in order to described server;
Receive the response message of the described network address request message of described server transmission, carry the network address of this node in the described response message.
6. method according to claim 5 is characterized in that, describedly also comprises before server sends the network address request of this node:
Send at least one hardware identifier of this node to described server, in order to described server that described at least one hardware identifier is corresponding with the network address of distributing to this node, generate described network address list.
7. method according to claim 6, it is characterized in that, described server is inquired about the corresponding network address of described hardware identifier according to described hardware identifier and is specially from network address list, described server is inquired about the corresponding network address of described hardware identifier according at least one hardware identifier in the described hardware identifier from network address list.
8. any described method according to claim 5-7, it is characterized in that described hardware identifier is the sign of the parts that can independently change at least one below: the sequence number of MAC Address of Network Card, IPMI interface mac address, switch mac address, hard disk sequence number, main frame production sequence number and printed circuit board.
9. a server is characterized in that, described server comprises:
The first receiving element is used for the network address request that receiving node sends, and carries the hardware identifier of this node in the request of the described network address;
Query unit is used for from the hardware identifier of the described node of described network address request extraction, the described hardware identifier of inquiry from network address list;
Extraction unit is used for extracting the network address corresponding to this hardware identifier when inquiring described hardware identifier from described network address list;
Transmitting element is used for the network address of described correspondence is sent to described node.
10. server according to claim 9 is characterized in that, described server also comprises:
The second receiving element is at least one hardware identifier of the described node that receives described node transmission;
Generation unit for described at least one hardware identifier is corresponding with the network address of distributing to described node, generates described network address list.
11. server according to claim 10 is characterized in that, described extraction unit specifically is used for extracting the network address corresponding to this hardware identifier when described network address list inquires at least one hardware identifier the described hardware identifier.
12. any described server according to claim 9-11, it is characterized in that described hardware identifier is the sign of the parts that can independently change at least one below: the sequence number of MAC Address of Network Card, IPMI interface mac address, switch mac address, hard disk sequence number, main frame production sequence number and printed circuit board.
13. a node is characterized in that, described node comprises:
The first transmitting element, be used for the network address request to the server sending node, carry the hardware identifier of this node in the request of the described network address, from network address list, inquire about and extract the corresponding network address of described hardware identifier according to described hardware identifier in order to described server;
Receiving element for the response message of the described network address request message that receives described server transmission, carries the network address of this node in the described response message.
14. node according to claim 13 is characterized in that, described node also comprises:
The second transmitting element, in order to described server that described at least one hardware identifier is corresponding with the network address of distributing to this node at least one hardware identifier that sends this node to described server, generate described network address list.
15. node according to claim 14, it is characterized in that, described server is inquired about the corresponding network address of described hardware identifier according to described hardware identifier and is specially from network address list, described server is inquired about the corresponding network address of described hardware identifier according at least one hardware identifier in the described hardware identifier from network address list.
16. any described node according to claim 13-15, it is characterized in that described hardware identifier is the sign of the parts that can independently change at least one below: the sequence number of MAC Address of Network Card, IPMI interface mac address, switch mac address, hard disk sequence number, main frame production sequence number and printed circuit board.
CN201210409906.XA 2012-10-24 2012-10-24 Network address allocation method, server and node Active CN102904977B (en)

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 true CN102904977A (en) 2013-01-30
CN102904977B 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)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103327136A (en) * 2013-07-01 2013-09-25 浪潮电子信息产业股份有限公司 Method for managing ip address of server management network card under dhcp network
CN104066083A (en) * 2013-03-18 2014-09-24 华为终端有限公司 Method and device used for accessing wireless local area network
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
WO2019140958A1 (en) * 2018-01-22 2019-07-25 西安中兴新软件有限责任公司 Forwarding method and device, electronic device and storage medium
TWI698101B (en) * 2019-06-04 2020-07-01 鴻齡科技股份有限公司 Server management method and server management device
CN111405075A (en) * 2019-01-02 2020-07-10 中国移动通信有限公司研究院 Network address allocation method, device and storage medium
CN111885214A (en) * 2020-06-15 2020-11-03 北京交通大学 Industrial heterogeneous network equipment-oriented address uniform distribution method and device
CN113132503A (en) * 2019-12-31 2021-07-16 华为技术有限公司 Address allocation method and device

Citations (4)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104066083A (en) * 2013-03-18 2014-09-24 华为终端有限公司 Method and device used for accessing wireless local area network
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
WO2019140958A1 (en) * 2018-01-22 2019-07-25 西安中兴新软件有限责任公司 Forwarding method and device, electronic device and storage medium
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
CN111405075A (en) * 2019-01-02 2020-07-10 中国移动通信有限公司研究院 Network address allocation method, device and storage medium
TWI698101B (en) * 2019-06-04 2020-07-01 鴻齡科技股份有限公司 Server management method and server management device
CN113132503A (en) * 2019-12-31 2021-07-16 华为技术有限公司 Address allocation method and device
CN113132503B (en) * 2019-12-31 2022-05-24 华为技术有限公司 Address allocation method and device
CN111885214A (en) * 2020-06-15 2020-11-03 北京交通大学 Industrial heterogeneous network equipment-oriented address uniform distribution method and device
CN111885214B (en) * 2020-06-15 2021-07-02 北京交通大学 Industrial heterogeneous network equipment-oriented address uniform distribution method and device

Also Published As

Publication number Publication date
CN102904977B (en) 2015-07-08

Similar Documents

Publication Publication Date Title
CN102904977B (en) Network address allocation method, server and node
US11586673B2 (en) Data writing and reading method and apparatus, and cloud storage system
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
CN102202087B (en) Method for identifying storage equipment and system thereof
CN105577420A (en) Method and system for automatic generation of server network topology
CN103795602A (en) Network strategy configuration method and device of virtual network
CN104486103A (en) Message transmission method and equipment
CN102137007A (en) Method and system for generating network topology as well as coordinator
CN104717314A (en) IP management method and system, client-side and server
CN104113435A (en) Method and device for generating identifier
CN102148715A (en) Method and device for virtual network configuration migration
CN101521606B (en) Log information processing method, log server and communication system
CN103326887A (en) Interface management method and system
CN102024040A (en) Database synchronization method, device and system
CN106686117B (en) Data storage processing system and method of distributed computing cluster
CN102708063A (en) Method and device for managing disk space
CN104424316A (en) Data storage method, data searching method, related device and system
CN103051478A (en) Large-capacity telecommunication network management system as well as setting and application methods thereof
CN101873232A (en) Judgment method of equipment uniqueness and IP network discovery server
CN104038566A (en) Virtual switching device address learning method, apparatus and system
CN105227422A (en) A kind of method of transmitting video data based on polymerization network interface and device
CN102333070A (en) Method and device for obtaining information
CN102130786B (en) Method and device for updating characteristics of single board
CN105991450A (en) MAC address table updating method and device

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.