CN102835094A - Method and appratus for address allocation - Google Patents

Method and appratus for address allocation Download PDF

Info

Publication number
CN102835094A
CN102835094A CN2011800002425A CN201180000242A CN102835094A CN 102835094 A CN102835094 A CN 102835094A CN 2011800002425 A CN2011800002425 A CN 2011800002425A CN 201180000242 A CN201180000242 A CN 201180000242A CN 102835094 A CN102835094 A CN 102835094A
Authority
CN
China
Prior art keywords
address
ipv6
reservation
node
option
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
CN2011800002425A
Other languages
Chinese (zh)
Other versions
CN102835094B (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.)
Huawei Technologies 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
Publication of CN102835094A publication Critical patent/CN102835094A/en
Application granted granted Critical
Publication of CN102835094B publication Critical patent/CN102835094B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/659Internet protocol version 6 [IPv6] addresses

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

A method and an apparatus for address allocation are disclosed in the present invention. The present invention relates to the technical field of communications and solves the problem in the prior art that, in the current Dynamic Host Configure Protocol (DHCP), users can not reserve one Internet Protocol Version 6 (IPV6) address or a section of IPV6 addresses in a Dynamic Host Configure Protocol Version for IPV6 (DHCPV6) server address pool for a future specific usage. The solution provided in the embodiment of the present invention includes the following steps: a node is enabled to carry an address reservation option in its sending request by defining a new address reservation option; an IPV6 address is reserved for the node from the server address pool after the server has received the request carrying the option; then, the server allocates the reserved IPV6 address to the node when the node sends a request for the allocation of the reserved address. The embodiment of the present invention is applicable to a DHCPv6 protocol-based communication system.

Description

Address distribution method and device
Technical field
The present invention relates to communication technical field, relate in particular to a kind of address distribution method and device.
Background technology
DHCP (Dynamic Host Configure Protocol, DHCP) is the agreement that the DHCPV6 server is given IP address assignment the node in the network automatically.DHCP comprises DHCPv4 that supports the IPv4 agreement and the DHCPv6 that supports the IPv6 agreement (Dynamic Host Configure Protocol for IPv6, the DHCP of support IPv6) according to the difference of supported protocol.DHCPv6 is the version that DHCP supports IPv6 (Internet Protocol version 6, Internet protocol sixth version).The agreement fundamental norms are by IETF (Internet Engineering Task Force; The Internet engineering duty group: RFC3315 (the RFC:Request For Comments tool authority's of Global Internet technology standardization tissue); Request for comments) definition, accomplished the function that IPv6 stateless address automatic configuration protocol is accomplished, DHCPv6 belongs to a kind of state address configuration protocol that has; In the state address layoutprocedure is arranged; Client is given in complete IPv6 address of DHCPv6 server-assignment, and finally server can be placed the IPv6 address of distributing and the binding relationship of client on record, thereby has strengthened the manageability of network.
Generally comprise following two kinds of roles in the DHCPv6 typical case networking:
DHCPv6 client: the equipment that dynamically obtains IPv6 address, IPv6 prefix or other network configuration parameters.
DHCPv6 server: the equipment that is responsible for DHCPv6 client distributing IP v6 address, IPv6 prefix and other network configuration parameters.The DHCPv6 server not only can be DHCPv6 client distributing IP v6 address, can also be its distributing IP v6 prefix.
At present, the DHCPv6 server is that client distributes the process of address to be divided into two types: the address allocation procedure of the quick assigning process in the address of mutual two message and mutual four message.
As shown in Figure 1, the quick assigning process in the address of mutual two information is:
(1) the DHCPv6 client is carried Rapid Commit (rapid answer) option in Solicit (requirement) message that sends, and the sign client hopes that server can distribute address/prefix and network configuration parameters for it fast;
(2), be client distributing IP v6 address/prefix and other network configuration parameters if the quick assigning process of DHCPv6 server support then directly returns Reply (answer) message.If the DHCPv6 server is not supported quick assigning process, the assigning process that then adopts mutual four message is client distributing IP v6 address and other network configuration parameters, and (the 2)~steps such as (4) in the address allocation procedure shown in Figure 2 is consulted in concrete operations.
The assigning process of mutual four message is as shown in Figure 2, and the address assignment detailed process of mutual four information is:
(1) the DHCPv6 client is sent the Solicit message to the DHCPV6 server, and request DHCPv6 server is its distributing IP v6 address/prefix and network configuration parameters.
(2) if do not carry Rapid Commit option in the Solicit message; Or carry Rapid Commit option in the Solicit message; But server is not supported quick assigning process; Then the DHCPv6 server is replied Advertise (announcement) message, and the notice client can be its addresses distributed/prefix and network configuration parameters.
(3) if the DHCPv6 client receives the notice message that a plurality of servers are replied; Then according to the sequencing of message sink, server priority etc.; Select a wherein station server; And to this server transmission Request (request) message, request server is confirmed as it and is distributed address/prefix and network configuration parameters.
(4) the DHCPv6 server returns the Reply message, confirms address/prefix and network configuration parameters are distributed to the client use.
Point out among the RFC3315 that DHCP can be through DHCPV6 server-assignment address and other configuration informations, realize through being included in the option with other configuration informations the address.When client is distributed the address to the DHCPv6 server requests; Can in the message option of Request message, comprise IA_TA (Identity Association_Temporary Address; What sign alliance-temporary address) option was told the server requests distribution is the temporary address, can in the IA_TA option, comprise its needed address simultaneously.After server receives the request of client, for this client is distributed its needed temporary address.Simultaneously, point out also among the RFC3315 that DHCP can expand the application of DHCP through defining new option.
The inventor finds to exist at least in the prior art following problem:
In present DHCP agreement; The user can not reserve certain or a certain section IPv6 address and give over to and have special purpose to use in the future in DHCPV6 server address pond; Be that client hopes that server keeps a period of time with these IPv6 addresses for it, does not temporarily distribute to other clients and uses.
Summary of the invention
Embodiments of the invention provide a kind of address distribution method and device, and for the DHCP agreement has increased the function that the IPv6 address is reserved, promptly the DHCPV6 server is reserved the IPv6 address for node in address pool.
For achieving the above object, embodiments of the invention adopt following technical scheme:
A kind of address distribution method comprises:
Option is reserved in the address that receiving node sends, and said address is reserved in the option and comprised the IPv6 address information;
When having the IPv6 address of said IPv6 address information correspondence, the IPv6 address mark that said IPv6 address information is corresponding is the reservation address, and writes down the corresponding relation between said node and the said reservation address;
When in the address assignment option that receives, requiring addresses distributed to be said reservation address, judge that requirement distributes the node of address whether identical with said reservation address corresponding nodes;
When the node that requires to distribute the address is identical with said reservation address corresponding nodes,, said requirement distributes said reservation address for distributing the node of address.
A kind of address distributing device comprises:
First receiving element is used for the address reservation option that receiving node sends, and said address is reserved in the option and comprised the IPv6 address information;
First processing unit is used for when having the IPv6 address of said IPv6 address information correspondence, and the IPv6 address mark that said IPv6 address information is corresponding is the reservation address, and writes down the corresponding relation between said node and the said reservation address;
First judging unit is used for when the address assignment option that receives requires addresses distributed to be said reservation address, judges that requirement distributes the node of address whether identical with said reservation address corresponding nodes;
Allocation units are used for when the node that requires to distribute the address is identical with said reservation address corresponding nodes, distribute said reservation address for said requirement distributes the node of address.
Address distribution method that the embodiment of the invention provides and device; This scheme is reserved option through having defined a kind of new address; Make in the transmission request of node the portability address reserve option, receive the request of carrying this option at server after, from the address pool of server, reserve the IPv6 address for node; Send when requiring to distribute the request of reserving the address at this node from now on, server just with the IPv6 address assignment of reserving to this node.Therefore; As long as the scheme of having taked the embodiment of the invention to provide; For the DHCP agreement has increased the function that the IPv6 address is reserved; Can make node reserve required IPv6 address, occur a large amount of applications preventing after and cause the address short and this node can't obtain the situation of required IPv6 address, make things convenient for the user to make arrangement in advance through application in advance.
Description of drawings
Fig. 1 is the sketch map of the quick assigning process in address of mutual two message of DHCPv6 server and client side in the prior art;
Fig. 2 is the sketch map of the address allocation procedure of mutual four message of DHCPv6 server and client side in the prior art;
Fig. 3 is the flow chart of the embodiment of the invention 1 address distribution method;
Fig. 4 is the structural representation of the embodiment of the invention 1 address distributing device;
Fig. 5 is the form sketch map that option is reserved in the embodiment of the invention 2 addresses;
The flow chart of address approach is reserved in the application that Fig. 6 is the basis for the embodiment of the invention 2 with mutual four message of DHCPv6 server and client side;
The flow chart of address approach is reserved in the application that Fig. 7 is the basis for the embodiment of the invention 2 with mutual two message of DHCPv6 server and client side;
Fig. 8 applies for obtaining the flow chart of reserving address approach behind the reservation addresses for the embodiment of the invention 2;
Fig. 9 is the structural representation of the embodiment of the invention 2 address distributing devices.
Embodiment
Below in conjunction with accompanying drawing embodiment of the invention address distribution method and device are described in detail.
Embodiment 1
As shown in Figure 3, present embodiment provides a kind of address distribution method, comprising:
Step 301, option is reserved in the address that receiving node sends, and said address is reserved in the option and is comprised the IPv6 address information;
Step 302, when having the IPv6 address of said IPv6 address information correspondence, the IPv6 address mark that said IPv6 address information is corresponding is the reservation address, and writes down the corresponding relation between said node and the said reservation address;
Step 303 when in the address assignment option that receives, requiring addresses distributed to be said reservation address, judges that requirement distributes the node of address whether identical with said reservation address corresponding nodes;
Step 304 when the node that requires to distribute the address is identical with said reservation address corresponding nodes, is distributed said reservation address for said requirement distributes the node of address.
As shown in Figure 4, present embodiment provides a kind of address distributing device, comprising:
First receiving element 401 is used for the address reservation option that receiving node sends, and said address is reserved in the option and comprised the IPv6 address information;
First processing unit 402 is used for when having the IPv6 address of said IPv6 address information correspondence, and the IPv6 address mark that said IPv6 address information is corresponding is the reservation address, and writes down the corresponding relation between said node and the said reservation address;
First judging unit 403 is used for when the address assignment option that receives requires addresses distributed to be said reservation address, judges that requirement distributes the node of address whether identical with said reservation address corresponding nodes;
Allocation units 404 are used for when the node that requires to distribute the address is identical with said reservation address corresponding nodes, distribute said reservation address for said requirement distributes the node of address.
Address distribution method that the embodiment of the invention provides and device; This scheme is reserved option through having defined a kind of new address; Make in the transmission request of node the portability address reserve option, receiving the request of carrying this option at server after, from the address pool of server, reserve the IPv6 address for node; Send when requiring to distribute the request of reserving the address at this node from now on, server just with the IPv6 address assignment of reserving to this node.Therefore; As long as the scheme of having taked the embodiment of the invention to provide; Just can node reserve required IPv6 address, occur a large amount of applications preventing after and cause the address short and this node can't obtain the situation of required IPv6 address, make things convenient for the user to make arrangement in advance through application in advance.
Embodiment 2
Present embodiment is an example with the DHCPv6 that supports IPv6, and present embodiment provides a kind of address distribution method, needs to increase a kind of new DHCP option.As shown in Figure 5, this option is used for transmitting the information of reserving address IA_RA (Identity Association_Reserved Address, sign alliance-reserved address).The option of redetermination is that option OPTION_IA_RA is reserved in the address, comprises:
It is that option is reserved in the address that option type (option-code): option-code is used to indicate this option, and official standards such as the definition needs of numerical value issue back is distributed by normal structure;
Option (option-len): option-len is used to indicate the length that option is reserved in whole address, the length of the length of length value=IAID (4)+IA_RA-options, and unit is a byte;
IAID (identity set identifier): IAID is used for sign and reserves address IA_RA, and IAID is the unique identification of IA_RA, and IAID must be different with other IA_RA of this client;
Other options (IA_RA-options): other options are the option that is associated with IA_RA, comprise the address information of reservation in other options, promptly reserve address IA_RA and belong to the sub-option under other options.
The address distribution method of the embodiment of the invention comprises that mutual two message are two kinds of schemes on basis for basis and mutual four message between the DHCPv6 server and client side; Address distribution method as shown in Figure 6; With mutual four message serves as that the address is reserved in the basis application, comprising:
Step 601, DHCPV6 server receive the Solicit message that client is sent, and this message is used to locate the DHCPv6 server and request server is said client distributing IP v6 address;
Step 602; Available DHCPV6 server returns the Advertise message and gives client in the net; Said Advertise message is used to notify said node can be said node distributing IP v6 address; Client is selected satisfactory DHCPV6 server according to the Advertise message from the server that has returned said Advertise message.
Step 603, selected server receives the Request message that client is sent, and comprises the address in the Request message and reserves option, and the address is reserved and is comprised the IPv6 address information that needs are reserved in the option.
This address is reserved option and is used to tell server client need apply for reserving an IPv6 address or IPv6 address prefix.The IPv6 address information that in other option (IA_RA-options) of option is reserved in the address, comprises needs reservation, can specify this reservation IPv6 address or IPv6 address prefix (prefix length greater than 64 less than 128, be used for reserving a sector address).
Step 604 judges whether to exist IPv6 address corresponding in the said IPv6 address information, if there is the corresponding IPv6 address of said IPv6 address information, then execution in step 605; If there is not the corresponding IPv6 address of said IPv6 address information, then execution in step 606.
Step 605, the IPv6 address mark that said IPv6 address information is corresponding is the reservation address, and writes down the corresponding relation between said client and the said reservation address.
And in step 605, the DHCPV6 server can send the Reply message to client, and in the Reply message, carries the reservation success message.
Step 606, the DHCPV6 server returns the reservation failed message to client; During concrete the realization, the DHCPV6 server can pass through to send the Reply message to client, and in the Reply message, carries the reservation failed message.
Except the address is reserved in the address allocation plan application that is the basis with mutual four message shown in Fig. 6; The embodiment of the invention can also be reserved the address through the address allocation plan application that is the basis with mutual two message; As shown in Figure 7, this address distribution method specifically comprises:
Step 701, DHCPV6 server receive the Solicit message that client is sent, and carry Rapid Commit option and address in the Solicit message and reserve option OPTION_IA_RA.
Rapid Commit option and address reservation option are used for identifying client and hope that server can comprise the address information that needs are reserved for its other option IA_RA-options that reserves an IPv6 address or IPv6 prefix reservation option in the address fast; Can specify this reservation IPv6 address or IPv6 address prefix (prefix length greater than 64 less than 128, be used for reserving one section IPv6 address).
Step 702; Judge whether the DHCPV6 server supports to distribute fast and whether exist the corresponding IPv6 address of said IPv6 address information; If the support of said DHCPV6 server distributes and exist the corresponding IPv6 address of said IPv6 address information fast, then execution in step 703; If do not have the corresponding IPv6 address of said IPv6 address information or do not support quick distribution, then execution in step 704.
Step 703, the IPv6 address mark that said IPv6 address information is corresponding is the reservation address, and writes down the corresponding relation between said client and the said reservation address.
And in step 703, the DHCPV6 server can send the Reply message to client, and in the Reply message, carries the reservation success message.
Step 704, the DHCPV6 server sends the Reply message to client, and in the Reply message, carries the reservation failed message.
Preferably, IPv6 address corresponding in the said IPv6 address information comprises IPv6 address or IPv6 address prefix, can represent in many ways, can represent the IPv6 address through setting concrete rule.For example, reserve in other option of option in the address, said IPv6 address information comprises an IPv6 address, and the corresponding IPv6 address of said IPv6 address information is a said IPv6 address; Perhaps said IPv6 address information comprises the IPv6 address prefix, and the corresponding IPv6 address of said IPv6 address information is the represented whole IPv6 address of said IPv6 address prefix; Perhaps said IPv6 address information comprises two IPv6 addresses, and the corresponding IPv6 address of said IPv6 address information is the whole IPv6 address between said two IPv6 addresses and said two the IPv6 addresses.Like this, server just can be discerned the address of needs reservation according to such rule and distribute.
Preferably reserve the address in order to identify and to manage, said address is reserved in the option and is also comprised IAID.IAID is the unique identification of IA_RA, and IAID must be different with other IA_RA of this client.
Preferably; In order to guarantee that the client that server can identify in the future application makes it can obtain to reserve the address; Need the corresponding relation between said client of record and the said reservation address; Corresponding relation between said client of said record and the said reservation address is: write down Media Access Control address (MAC) address of said client and the corresponding relation between the said reservation address, perhaps also can write down the corresponding relation between said client and the said reservation address through the form of record MAC Address and IAID combination.
Preferably; In addition, in step 603, perhaps in step 701; Can reserve in the address and comprise the reservation time limit (lifetime) that this reserves address or address field in other options (IA_RA-options) in the option; Promptly reserving in the time limit, the DHCPv6 server for client keeps this IPv6 address or IPv6 address prefix, is not distributed to other clients and is used in address pool.In the said reservation time limit, judge that requirement distributes the client of address whether identical with said reservation address clients corresponding; And crossed after the reservation time limit; The DHCPv6 server then discharges the IPv6 address or the IPv6 address field of this reservation; Can be the mark of reserving the address through the corresponding IPv6 address of the said IPv6 address information of cancellation, and the corresponding relation of deleting between said client and the said reservation address discharge.This IPv6 address or IPv6 address field can be distributed to other clients uses after the release, in order to avoid cause the waste of resource.
After accomplishing above-mentioned Fig. 6 or application shown in Figure 7 and reserving the address step; Reserving in the time limit; When client is used IPv6 address or the IPv6 address field of this reservation at needs, as shown in Figure 8, can obtain by following step application and reserve the address and accomplish address assignment:
Step 801 is sent the Request message to server, comprises the address in the Request message and reserves option, and the address is reserved in the option and comprised the IPv6 address information.
When step 802, server require the IPv6 address of distribution to be said reservation address in the address assignment option that receives, judge to require the client of distributing IP v6 address whether identical with said reservation address clients corresponding.When the client that requires to distribute the address is identical with said reservation address clients corresponding, execution in step 803; Requiring to dispose the client of distributing the address and said reservation address clients corresponding when inequality, execution in step 804.
Step 803 is for the said node of distributing IP v6 address that requires distributes said reservation address.
Step 804 is refused to distribute said reservation address for the said client of distributing IP v6 address that requires.And the DHCPV6 server can send the Reply message to client, and in the Reply message, carries the distribution failure information.
Step 805 is being reserved the time limit when not yet due, and the DHCPV6 server receives Renew (renewals) message that said client is sent, and comprises the address in the said Renew message and reserves option OPTION_IA_RA, comprises the IPv6 address information in the said address reservation option; Reserve the IPv6 address information in the option according to the address of carrying in the said Renew message, upgrade the corresponding reservation time limit of said IPv6 address information, reserve this IPv6 address or IPv6 address field so that the DHCPV6 server continues as said client.
Step 806, after the reservation expiration of time limit, the DHCPV6 server discharges the IPv6 address or the IPv6 address field of this reservation.Can through cancel the corresponding IPv6 address of said IPv6 address information for the mark of reserving the address and delete said client and said reservation address between corresponding relation discharge.This IPv6 address or IPv6 address field can be distributed to other clients uses after the release, in order to avoid cause the waste of resource.
Present embodiment provides a kind of address distributing device, and is same, and address assignment comprises that mutual two message are two kinds of schemes on basis for basis and mutual four message, and is as shown in Figure 9, with mutual four address distributing devices that message is the basis, comprising:
Second receiving element 901 is used to receive the Solicit message that client is sent, and this message is used to locate the DHCPv6 server and request server is that said client is distributed the address;
Notification unit 902 is used to return the Advertise message and gives said client, and said Advertise message is used to notify client can be its distributing IP v6 address.Client can be selected satisfactory DHCPV6 service dress according to the Advertise message from the DHCPV6 server that has returned said Advertise message
First receiving element 903 is used to receive client and sends the Request message, comprises the address in the Request message and reserves option, and the address is reserved and comprised the IPv6 address information that needs are reserved in the option.This address is reserved option and is used for telling server client need apply for that other option (IA_RA-options) of reserving an IPv6 address or IPv6 address prefix reservation option in the address comprises the IPv6 address information that needs are reserved; Can specify this reservation IPv6 address or IPv6 address prefix (prefix length greater than 64 less than 128, be used for reserving one section IPv6 address).
Second judging unit 904 is used to judge whether the IPv6 address that exists said IPv6 address information corresponding.
First processing unit 905 is used for the IPv6 address mark that said IPv6 address information is corresponding and is the reservation address, and writes down the corresponding relation between said client and the said reservation address.
The first answer unit 906 is used for sending the Reply message to client, and notice is reserved successfully; Also be used for sending the Reply message to client, notice is reserved failure.
In addition, as shown in Figure 9, in the address distributing device that is the basis with mutual two message,
Said first receiving element 903 also is used to receive the Solicit message that client is sent, and requires to carry in the message Solicit message Rapid Commit option and address and reserves option OPTION_IA_RA.RapidCommit option and address reservation option are used to identify client and hope that server can be that it reserves an IPv6 address or IPv6 prefix fast.The address information that in other option (IA_RA-options) of option is reserved in the address, comprises needs reservation, can specify this reservation IPv6 address or IPv6 address prefix (prefix length greater than 64 less than 128, be used for reserving one section IPv6 address).
Said second judging unit 904 also is used for judging whether the DHCPv6 server supports to distribute and whether exist fast corresponding address.
Said first processing unit 905 also is used for the IPv6 address mark that said IPv6 address information is corresponding and is the reservation address, and writes down the corresponding relation between said client and the said reservation address.
The said first answer unit 906 also is used for sending the Reply message to client, and in the Reply message, carries the reservation success message; Also be used for sending the Reply message, and in the Reply message, carry the reservation failed message to client.
After the address is reserved in application, as shown in Figure 9, reserve the address for accomplishing to distribute, client is obtained reserved the address, the address is reserved device and is also comprised:
The 3rd receiving element 907 is used to receive said client and sends the Request message to the DHCPV6 server, comprises the address assignment option in the Request message, comprises the IPv6 address information in the address assignment option.
First judging unit 908 is used for when the address assignment option that receives requires the IPv6 address of distribution to be said reservation address, judges that requirement distributes the client of address whether identical with said reservation address clients corresponding.
Allocation units 909 are used to the said node of distributing IP v6 address that requires and distribute said reservation address; Also be used to refuse distribute said reservation address for the said client of distributing IP v6 address that requires.
The second answer unit 910 is used for sending the Reply message to client, replys and distributes success or refusal information.
Updating block 911 is used for receiving the Renew message that said client is sent reserving the time limit when not yet due, comprises the address in the said Renew message and reserves option (OPTION_IA_RA), and said address is reserved in the option and comprised the IPv6 address information; Reserve the IPv6 address information in the option according to the address of carrying in the said Renew message, upgrade the corresponding reservation time limit of said IPv6 address information, reserve this IPv6 address or IPv6 address field so that the DHCPV6 server continues as said client.
Second processing unit 912, after being used to reserve expiration of time limit, the DHCPV6 server discharges the IPv6 address or the IPv6 address field of this reservation.Can be the mark of reserving the address through the corresponding IPv6 address of the said IPv6 address information of cancellation, and the corresponding relation of deleting between said client and the said reservation address discharge.This IPv6 address or IPv6 address field can be distributed to other clients uses after the release, in order to avoid cause the waste of resource.
Preferably, IPv6 address corresponding in the said IPv6 address information comprises IPv6 address or IPv6 address prefix, can represent in many ways, can come presentation address through setting concrete rule.For example, reserve in other option of type selecting in the address, said IPv6 address information comprises an IPv6 address, and the corresponding IPv6 address of said IPv6 address information is a said IPv6 address; Perhaps said IPv6 address information comprises the IPv6 address prefix, and the corresponding IPv6 address of said IPv6 address information is the represented whole IPv6 address of said IPv6 address prefix; Perhaps said IPv6 address information comprises two IPv6 addresses, and the corresponding IPv6 address of said IPv6 address information is the whole IPv6 address between said two IPv6 addresses and said two the IPv6 addresses.Like this, the DHCPv6 server just can be discerned the IPv6 address of needs reservation according to such rule and distribute.
Preferably reserve the address in order to identify and to manage, said address is reserved in the option and is also comprised IAID.IAID is the unique identification of IA_RA, and IAID must be different with other reservation address (IA_RA) of this client.
Preferably; In order to guarantee that the client that server can identify in the future application makes it can obtain to reserve the address; Need the corresponding relation between said client of record and the said reservation address, the corresponding relation between said client of said record and the said reservation address is: write down the MAC Address and the corresponding relation between the said reservation address of said client or also can write down the corresponding relation between said client and the said reservation address through the form of MAC Address and IAID combination.
Preferably; Be example with client on the same link in the present embodiment, go for node in the present embodiment, node comprises DHCPv6 client or DHCPv6 acting server; Because the DHCPv6 acting server is the intermediary that DHCPv6 client and DHCPv6 server info transmit; The DHCPv6 acting server can be used for to DHCPv6 server application IPv6 address and distributes to the DHCPv6 client, so present embodiment is applicable to the DHCPv6 acting server, the IPv6 address that the DHCPv6 acting server need be a large amount of generally speaking certainly; So can apply for reserving address field, repeat no more here.
Address distribution method that the embodiment of the invention provides and device; This scheme is reserved option through having defined a kind of new address; Make in the transmission request of node the portability address reserve option, receiving the request of carrying this option at server after, from the address pool of server, reserve the IPv6 address for node; Send when requiring to distribute the request of reserving the address at this node from now on, server just with the IPv6 address assignment of reserving to this node.Therefore; As long as the scheme of having taked the embodiment of the invention to provide; Just can make node reserve required IPv6 address, occur a large amount of applications preventing after and cause the address short and this node can't obtain the situation of IPv6 address, make things convenient for the user to make arrangement in advance through application in advance.
The scheme of address distributing device can adopt the scheme of address distribution method in the present embodiment in the present embodiment, repeats no more.
Through the description of above execution mode, the those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential common hardware, can certainly pass through hardware, but the former is better execution mode under a lot of situation.Based on such understanding; The part that technical scheme of the present invention contributes to prior art in essence in other words can be come out with the embodied of software product, and this computer software product is stored in the storage medium that can read, like the floppy disk of computer; Hard disk or CD etc.; Comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
The above; Be merely embodiment of the present invention, but protection scope of the present invention is not limited thereto, any technical staff who is familiar with the present technique field is in the technical scope that the present invention discloses; The variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.

Claims (19)

1. an address distribution method is characterized in that, comprising:
Option is reserved in the address that receiving node sends, and said address is reserved in the option and comprised the IPv6 address information;
When having the IPv6 address of said IPv6 address information correspondence, the IPv6 address mark that said IPv6 address information is corresponding is the reservation address, and writes down the corresponding relation between said node and the said reservation address;
When in the address assignment option that receives, requiring addresses distributed to be said reservation address, judge that requirement distributes the node of address whether identical with said reservation address corresponding nodes;
When the node that requires to distribute the address is identical with said reservation address corresponding nodes,, said requirement distributes said reservation address for distributing the node of address.
2. address distribution method according to claim 1 is characterized in that, said method also comprises:
When not having the IPv6 address of said IPv6 address information correspondence, return the reservation failed message to said node.
3. address distribution method according to claim 1 is characterized in that, said method also comprises:
When the node that requires to distribute the address and said reservation address corresponding nodes are inequality, refuse to distribute said reservation address for said requirement distributes the node of address.
4. address distribution method according to claim 1 is characterized in that:
Said IPv6 address information comprises an IPv6 address, and the corresponding IPv6 address of said IPv6 address information is a said IPv6 address; Perhaps
Said IPv6 address information comprises the IPv6 address prefix, and the corresponding IPv6 address of said IPv6 address information is the represented whole IPv6 address of said IPv6 address prefix; Perhaps
Said IPv6 address information comprises two IPv6 addresses, and the corresponding IPv6 address of said IPv6 address information is the whole IPv6 address between said two IPv6 addresses and said two the IPv6 addresses.
5. address distribution method according to claim 1 is characterized in that, said address is reserved in the option and also comprised the identity set identifier.
6. address distribution method according to claim 1 is characterized in that, said address is reserved and also comprised the reservation time limit in the option;
Whether said judgement requires to distribute the node of address to be all mutually with said reservation address corresponding nodes: in the said reservation time limit, judge that requirement distributes the node of address whether identical with said reservation address corresponding nodes;
Said method also comprises:, cancel the mark of the corresponding IPv6 address of said IPv6 address information for the reservation address, and delete the corresponding relation between said node and the said reservation address beyond the time limit in said reservation.
7. address distribution method according to claim 6 is characterized in that, also comprises:
Receive the renewal message that said node sends, comprise said address in this renewal message and reserve option;
According to said renewal message the corresponding reservation time limit of IPv6 address information that comprises in the option being reserved in said address upgrades.
8. according to any described address distribution method in the claim 1 to 7; It is characterized in that the corresponding relation between said node of said record and the said reservation address is: write down said node Media Access Control address and the corresponding relation between the said reservation address, or write down Media Access Control address and the form of identity set identifier combination and the corresponding relation between the said reservation address of said node.
9. according to any described address distribution method in the claim 1 to 7, it is characterized in that, supporting under the situation of distributing fast that said address is reserved option and is carried at and requires in the message, saidly require also to carry in the message rapid answer option;
The address that said receiving node sends is reserved option and comprised: receiving node sends the said message that requires that option is reserved in the address that carries, and said to require message to be used for request server be said node distributing IP v6 address.
10. according to any described address distribution method in the claim 1 to 7, it is characterized in that before option was reserved in the address that said receiving node sends, said method also comprised:
Receive the message that requires that node sends, said to require message to be used for request server be said node distributing IP v6 address;
DHCPV6 server available in the net returns notification packet to said node, and said notification packet is used to notify said node can be said node distributing IP v6 address, and makes said node select the DHCPV6 server according to said notification packet;
Option is reserved in the address that said receiving node sends: the request message that receiving node sends, said address is reserved option and is carried in the described request message.
11., it is characterized in that said node is DHCPv6 client or DHCPv6 acting server according to any described address distribution method in the claim 1 to 7.
12. an address distributing device is characterized in that, comprising:
First receiving element is used for the address reservation option that receiving node sends, and said address is reserved in the option and comprised the IPv6 address information;
First processing unit is used for when having the IPv6 address of said IPv6 address information correspondence, and the IPv6 address mark that said IPv6 address information is corresponding is the reservation address, and writes down the corresponding relation between said node and the said reservation address;
First judging unit is used for when the address assignment option that receives requires addresses distributed to be said reservation address, judges that requirement distributes the node of address whether identical with said reservation address corresponding nodes;
Allocation units are used for when the node that requires to distribute the address is identical with said reservation address corresponding nodes, distribute said reservation address for said requirement distributes the node of address.
13. address distributing device according to claim 12 is characterized in that,
The first answer unit is used for when not having the IPv6 address of said IPv6 address information correspondence, returning the reservation failed message to said node.
14. address distributing device according to claim 12 is characterized in that,
Said allocation units also are used for when the node that requires to distribute the address and said reservation address corresponding nodes are inequality, refusing to distribute said reservation address for said requirement distributes the node of address.
15. address distributing device according to claim 12 is characterized in that:
Said IPv6 address information comprises an IPv6 address, and the corresponding IPv6 address of said IPv6 address information is a said IPv6 address; Perhaps
Said IPv6 address information comprises the IPv6 address prefix, and the corresponding IPv6 address of said IPv6 address information is the represented whole IPv6 address of said IPv6 address prefix; Perhaps
Said IPv6 address information comprises two IPv6 addresses, and the corresponding IPv6 address of said IPv6 address information is the whole IPv6 address between said two IPv6 addresses and said two the IPv6 addresses.
16. address distributing device according to claim 12 is characterized in that, said address is reserved and is also comprised the reservation time limit in the option;
Said first judging unit was used in the said reservation time limit, judged that requirement distributes the node of address whether identical with said reservation address corresponding nodes;
Said address distributing device also comprises: second processing unit, be used for after said reservation expiration of time limit, and cancel the mark of the corresponding IPv6 address of said IPv6 address information, and delete the corresponding relation between said node and the said reservation address for the reservation address.
17. address distributing device according to claim 16 is characterized in that, also comprises:
Updating block is used to receive the renewal message that said node sends, and comprises said address in this renewal message and reserves option, and according to said renewal message the corresponding reservation time limit of IPv6 address information that comprises in the option is reserved in said address and upgrade.
18., it is characterized in that said address is reserved option and is carried at and requires in the message according to any described address distributing device in the claim 12 to 17, saidly require also to carry in the message rapid answer option;
Said first receiving element is used for receiving node and sends the said message that requires that option is reserved in the address that carries.
19., it is characterized in that said device also comprises according to any described address distributing device in the claim 12 to 17:
Second receiving element is used to receive the message that requires that node sends, and saidly requires message to be used for request to be said node distributing IP v6 address;
Notification unit is used for returning notification packet to node, and said notification packet is used to notify said node can be said node distributing IP v6 address;
Said first receiving element is used for the request message that receiving node sends, and said address is reserved option and is carried in the described request message.
CN201180000242.5A 2011-04-12 2011-04-12 Address distribution method and device Active CN102835094B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2011/072686 WO2012139283A1 (en) 2011-04-12 2011-04-12 Method and appratus for address allocation

Publications (2)

Publication Number Publication Date
CN102835094A true CN102835094A (en) 2012-12-19
CN102835094B CN102835094B (en) 2015-07-29

Family

ID=47008787

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201180000242.5A Active CN102835094B (en) 2011-04-12 2011-04-12 Address distribution method and device

Country Status (2)

Country Link
CN (1) CN102835094B (en)
WO (1) WO2012139283A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3242466B1 (en) * 2016-05-04 2019-04-17 Siemens Aktiengesellschaft Method for configuring communication devices of an industrial automation system and configuration data distributor unit
CN112887186B (en) * 2019-11-29 2024-03-22 中兴通讯股份有限公司 Multi-plane network access method, device and computer storage medium
CN112637183B (en) * 2020-12-18 2022-07-19 支付宝(杭州)信息技术有限公司 Data message transmission method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004129126A (en) * 2002-10-07 2004-04-22 Oki Electric Ind Co Ltd Address assignment system
CN1794737A (en) * 2004-12-20 2006-06-28 阿尔卡特公司 Device for dynamically allocating variable length prefixes to network equipments of an ip-network.
CN101277261A (en) * 2007-03-30 2008-10-01 富士施乐株式会社 Identifier assigning device, identifier assigning system and information processing method
US20100005158A1 (en) * 2008-07-03 2010-01-07 Teemu Ilmari Savolainen Network address assignment
CN101986665A (en) * 2010-11-04 2011-03-16 中国电信股份有限公司 Internet protocol version 6 (IPV6) address allocating method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001086908A1 (en) * 2000-05-10 2001-11-15 Nokia Corporation Method for an automatic allocation of ip addresses

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004129126A (en) * 2002-10-07 2004-04-22 Oki Electric Ind Co Ltd Address assignment system
CN1794737A (en) * 2004-12-20 2006-06-28 阿尔卡特公司 Device for dynamically allocating variable length prefixes to network equipments of an ip-network.
CN101277261A (en) * 2007-03-30 2008-10-01 富士施乐株式会社 Identifier assigning device, identifier assigning system and information processing method
US20100005158A1 (en) * 2008-07-03 2010-01-07 Teemu Ilmari Savolainen Network address assignment
CN101986665A (en) * 2010-11-04 2011-03-16 中国电信股份有限公司 Internet protocol version 6 (IPV6) address allocating method and system

Also Published As

Publication number Publication date
WO2012139283A1 (en) 2012-10-18
CN102835094B (en) 2015-07-29

Similar Documents

Publication Publication Date Title
JP5663549B2 (en) Method, apparatus and system for assigning public IP addresses
EP2154867B1 (en) A configuration method, system and device of cryptographically generated address
EP2442521B1 (en) Method for obtaining ip address of dynamic host configuration protocol version 6 server, dynamic host configuration protocol version 6 server and dynamic host configuration protocol version 6 communication system
CN102316447A (en) Internet protocol (IP) address allocation and sending method, wireless access device, server and system
CN105245629A (en) DHCP-based host communication method and device
CN103916484A (en) IP-address configuring method and device
CN115460175B (en) IPv6 address generation method and device, electronic equipment and storage medium
CN106790734B (en) Network address allocation method and device
CN102918817B (en) The method of IPv6 address assignment and equipment
CN102651862B (en) IP (Internet Protocol) address configuration method of WAP (Wireless Application Protocol) gateway and equipment thereof
US20120008627A1 (en) Method and apparatus for assigning device identifier with collision avoidance
CN102835094A (en) Method and appratus for address allocation
CN102624627A (en) Message transmission method and equipment
CN106878479B (en) Address allocation method and device
CN102752414B (en) Method and equipment for releasing Internet protocol (IP)v6 address
CN102377830A (en) IP (Internet Protocol) address configuration method
CN103442098A (en) Method, system and server for allocating virtual IP addresses
CN102340553A (en) Method and device for allocating and determining IP addresses
CN113347282A (en) IP address distribution and duplicate checking method and system for satellite internet
CN107770070B (en) Information transmission method, equipment and system
KR100924835B1 (en) Method and system for allocating Ipv6 global address
CN110572490A (en) Method, device, storage medium and equipment for directionally discovering server equipment
KR100687746B1 (en) Method and apparatus for preventing collision of address
CN114900499B (en) IP address allocation method, device, equipment and storage medium
CN111586196B (en) Method, device and system for realizing network double stacks of virtual machine

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