CN102957758B - Address distribution method, system, DHCPv6 server and RG equipment - Google Patents

Address distribution method, system, DHCPv6 server and RG equipment Download PDF

Info

Publication number
CN102957758B
CN102957758B CN201110244630.XA CN201110244630A CN102957758B CN 102957758 B CN102957758 B CN 102957758B CN 201110244630 A CN201110244630 A CN 201110244630A CN 102957758 B CN102957758 B CN 102957758B
Authority
CN
China
Prior art keywords
address
interface
dhcpv6
equipment
prefix
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201110244630.XA
Other languages
Chinese (zh)
Other versions
CN102957758A (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.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp Ltd
Filing date
Publication date
Application filed by China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN201110244630.XA priority Critical patent/CN102957758B/en
Publication of CN102957758A publication Critical patent/CN102957758A/en
Application granted granted Critical
Publication of CN102957758B publication Critical patent/CN102957758B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of IPv6 address distribution method, system, DHCPv6 server and RG equipment, wherein, the method includes that DHCPv6 server judges whether the DHCPv6 PD received carries interface IP address allocation identification in asking;If carrying interface IP address allocation identification in DHCPv6 PD request, then the interface identifier carried in asking according to the interface IP address segment length configured and DHCPv6 PD generates interface IP address section;64 bit prefix obtained from the prefix addresses pond of DHCPv6 server and interface IP address section are sent to RG equipment, thinks that user terminal generates available IPv6 address.The invention enables address resource available under RG equipment to be in user's controllable state, user can arrange the address resource quantity under RG equipment according to demand, such that it is able to the address resource serious waste situation occurred in the case of avoiding 64 bit address prefix.

Description

Address distribution method, system, DHCPv6 server and RG equipment
Technical field
The present invention relates to Internet technical field, especially, relate to a kind of IPv6 address distribution method, system, DHCPv6 Server and RG equipment.
Background technology
Internet protocol version 6 (Internet Protocol Version 6, IPv6) network exists several and interconnection The address distribution that fidonetFido edition 4 (Internet Protocol Version 4, IPv4) network is different, including permissible It is greatly simplified the stateless address method of salary distribution of address allocation procedure and uses DHCP version 6 Based on (Dynamical Host Configuration Protocol version 6, DHCPv6) agreement, can realize DHCP prefix delegation (Prefix Delegation, the PD) mode of address field agent allocation function.Wherein, DHCP PD mode can So that address prefix to be distributed to Address Proxy gateway, and it is responsible for continuing to carry out to next stage gateway device or host node by gateway Address is distributed;The stateless address method of salary distribution is by the gateway router timing 64 bit address to host node multicast IPv6 address Prefix, is automatically generated rear 64 interface IP addresses of IPv6 address by host node according to specific algorithm, and by ground on main frame Location prefix and interface IP address synthesize the IPv6 unicast address of 128.Meanwhile, IPv6 basic agreement also remain with in IPv4 network Similar address distribution, such as, the dhcp address method of salary distribution.
Generally in IPv6 network, in order to ensure the motility that address is distributed, multiple address distribution is often combined Use, as it is shown in figure 1, be that compound mode schematic diagram is distributed in IPv6 address commonly used in the prior art.It will be seen from figure 1 that this Plant compound mode and combine DHCP PD and the stateless address method of salary distribution, user side gateway device route type gateway (Routing Gateway, RG) initiate DHCP PD request by DHCP PD mode to DHCPv6 server, if Dynamic Host Configuration Protocol server is in request Message finds to carry in message IA_PD option (Optional Field), then distributes one to RG equipment and be not more than 64bit's Address prefix, this address prefix illustrates one more than 264Address field, RG equipment will be responsible for the management of this address field with point Join.In FIG, RG equipment obtains the address prefix of a 64bit, and uses mode that stateless address distributes in this ground chain Road is announced by the way of multicast this address prefix.Before subscriber's main station Host receives the address of RG equipment after start-up Sew bulletin, and synthesize IPv6 address with the 64bit interface IP address automatically generated.
But, inventor notices that the address distribution shown in above-mentioned Fig. 1 there is problems in that
Dynamic Host Configuration Protocol server (Serer) be the address block prefix maximum of RG equipment distribution can only be 64bit, and different RG equipment Between address block prefix can not be identical, at least have 2 under such a RG equipment64Individual address.But in reality network, one The Host main frame that RG equipment connects is the most several, thus causes the serious waste of address resource under a RG equipment.
Summary of the invention
The technical problem that the invention solves the problems that is to provide a kind of IPv6 address distribution method, system, DHCPv6 service Device and RG equipment, it is possible to prevent the waste of address resource under RG equipment.
According to an aspect of the invention, it is proposed that a kind of IPv6 address distribution method, judge to connect including DHCPv6 server Whether the DHCPv6 PD request received carries interface IP address allocation identification;If interface IP address is carried in DHCPv6 PD request Allocation identification, then the interface identifier carried in asking according to the interface IP address segment length configured and DHCPv6 PD generates interface Address field;64 bit prefix obtained from the prefix addresses pond of DHCPv6 server and the transmission of interface IP address section are set to RG Standby, think that user terminal generates available IPv6 address.
According to a further aspect in the invention, it is also proposed that a kind of DHCPv6 server, including mark judging unit, it is used for sentencing Whether the DHCPv6 PD request that disconnecting receives carries interface IP address allocation identification;Interface IP address section signal generating unit, sentences with mark Disconnected unit is connected, according to the interface configured in the case of carrying interface IP address allocation identification in DHCPv6 PD request The interface identifier carried in address field length and DHCPv6 PD request generates interface IP address section;Address prefix transmitting element, and connects Port address signal generating unit is connected, for 64 bit prefix that will obtain from the prefix addresses pond of DHCPv6 server and interface ground Location section sends to RG equipment, thinks that user terminal generates available IPv6 address.
According to another aspect of the invention, it is also proposed that a kind of RG equipment, including request transmitting unit, it is used for sending DHCPv6 PD asks, and carries interface IP address allocation identification and interface identifier in DHCPv6 PD request;Prefix receives unit, is used for Receive 64 bit prefix obtained from the prefix addresses pond of DHCPv6 server and according to interface identifier and the interface configured The interface IP address section that address field length generates.
In accordance with a further aspect of the present invention, it is also proposed that a kind of IPv6 address allocation system, including user terminal, service network Close, DHCPv6 server and RG equipment, wherein, user terminal is connected with RG equipment, RG equipment by Service Gateway and DHCPv6 server is connected.
IPv6 address distribution method, system, DHCPv6 server and the RG equipment that the present invention provides, utilizes DHCPv6 PD The interface identifier carried in request and user configured interface IP address segment length generate interface IP address section, so that under RG equipment Available address resource is in user's controllable state, and user can arrange the address resource quantity under RG equipment according to demand, from And the address resource serious waste situation occurred in the case of 64 bit address prefix can be avoided.
Accompanying drawing explanation
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application.Attached In figure:
Fig. 1 is distribution compound mode schematic diagram in IPv6 address in prior art.
Fig. 2 is the schematic flow sheet of an embodiment of IPv6 address distribution method of the present invention.
Fig. 3 is that 128 bit IPv6 addresses constitute schematic diagram.
Fig. 4 is the schematic flow sheet of another embodiment of IPv6 address distribution method of the present invention.
Fig. 5 is the structural representation of an embodiment of DHCPv6 server of the present invention.
Fig. 6 is the structural representation of another embodiment of DHCPv6 server of the present invention.
Fig. 7 is the structural representation of an embodiment of RG equipment of the present invention.
Fig. 8 is the structural representation of another embodiment of RG equipment of the present invention.
Fig. 9 is the structural representation of the another embodiment of RG equipment of the present invention.
Figure 10 is the structural representation of an embodiment of IPv6 address allocation system of the present invention.
Detailed description of the invention
With reference to the accompanying drawings the present invention is described more fully, the exemplary embodiment of the present invention is wherein described.This Exemplary embodiment and the explanation thereof of invention are used for explaining the present invention, but are not intended that inappropriate limitation of the present invention.
Description only actually at least one exemplary embodiment is illustrative below, never as to the present invention And any restriction applied or use.
Fig. 2 is the schematic flow sheet of an embodiment of IPv6 address distribution method of the present invention.
As in figure 2 it is shown, this embodiment may comprise steps of:
S202, DHCPv6 server judges whether carry interface IP address allocation identification in the DHCPv6 PD received request;
Specifically, DHCPv6 PD can be identified by the increase DHCPv6 privately owned option 17 option in mutual to ask In whether carry interface IP address allocation identification, wherein, the present invention will define the privately owned attribute of two option 17, one of them For function support identify: i.e., interface IP address allocation identification, this attribute-bit system support the present invention mention more than 64bit's Prefix assignment method;
S204, if carrying interface IP address allocation identification, then according to the interface IP address section configured in DHCPv6 PD request The interface identifier carried in length and DHCPv6 PD request generates interface IP address section;
Specifically, DHCPv6 server can be according to the interface-in DHCPv6 option 18 option in mutual Id field identifies interface identifier parameter, and the interface IP address section generated is the address prefix more than 64 bits, and it generates method As follows:
The address prefix of 64bit can be chosen from the address prefix pond of DHCPv6 server, is more than in address prefix The option18 field that the part (that is, interface IP address section) of 64bit can be added by extracting accessing gateway equipment generates, and with Front 64bit merges the generation address prefix more than 64bit, by the front 64bit of this prefix leaves in the Prefix of DHCP PD In option, and the part that will be greater than 64bit is handed down to RG equipment, in order to realize this merit by option 17 option of extension Can, it is possible to use another privately owned attribute of option 17: parameter identification, i.e. interface identifier, the parameter that this attribute carries represents More than the binary value of 64bit part in prefix;
S206, by from the prefix addresses pond of DHCPv6 server obtain 64 bit prefix and interface IP address section send to RG equipment, thinks that user terminal generates available IPv6 address, and such as, RG equipment can be according to the address prefix (that is, 64 of synthesis Bit prefix and interface IP address section) generate the prefix available local IPv6 address pool more than 64 bits, RG equipment can pass through DHCPv6 mode directly selects address from this address pool, to the IPv6 address of subscriber's main station (Host) distribution 128bit (wherein, The IPv6 address of 128bit forms as it is shown on figure 3, leftmost 64bit obtains from DHCPv6 server address pond, with The DHCP PD distribution 64bit prefix mode of standard is identical, and middle M-bit is that interface IP address section (can be obtained by hash algorithm ), rear Nbit is generated according to algorithm by node, and M+N bit is referred to as interface IP address);Or automatically join using stateless address When putting (StateLess Address Auto Configuration, SLAAC) mode, refusal (such as, can pass through repeat to address (RA) Detection (Duplicate Address Detection, DAD) address detected conflict mode) main frame use not in address pool Address, promote main frame to regenerate satisfactory address;Or by extension router advertisement report under SLAAC mode Literary composition, such as, router broadcast (Router Advertisements, RA) to the scope of end host transmission interface address choice, After main frame receives interface IP address range parameter, effective interface IP address will be generated in the range of specifying.
This embodiment utilizes the interface identifier carried in DHCPv6 PD request and user configured interface IP address segment length raw Becoming interface IP address section, so that address resource available under RG equipment is in user's controllable state, user can be according to demand Address resource quantity under RG equipment is set, such that it is able to the address resource occurred in the case of avoiding 64 bit address prefix is serious Waste situation.
In an example, the step according to the interface IP address segment length generation interface IP address section configured can be with embodying For:
Utilizing hash algorithm and interface identifier to be calculated Hash output, wherein, interface identifier can be user terminal matchmaker Matter access control layer (Mdium Access Control, MAC) address or VLAN (the Virtual Local of user Area Network, VLAN) number, this mark is as the input parameter of hash algorithm, and in hash algorithm, interface identifier is unified to be seen Become a binary string, input as above-mentioned binary string, be output as the binary string of 64 bits;In order to add the safety of strong algorithms Property, it is also possible to before or after the MAC Address of user name or RG equipment is concatenated into the MAC Address of user or the vlan number of user Input parameter as hash algorithm;
Intercept out from Hash exports and meet the interface IP address section of interface IP address segment length, specifically, can be defeated from Hash Intercepting M-bit (that is, interface IP address segment length) in the 64bit result gone out to obtain, alternatively, M span is 8 to 16.
When using hash algorithm, result likely can clash, it is to avoid the mode of conflict is to use different interceptings Start bit, i.e. intercept from first bit from left to right of 64bit when of initial, intercept M bit.If it occur that conflict, then System attempts starting to intercept, if all trials all clash, then from second bit, the 3rd bit... or n-th bit Prompting needs manually to configure, and maybe can only distribute 64bit prefix, and the last N bit of address is to be generated voluntarily by main process equipment 's.
In another example, can embody according to the step of the interface IP address segment length generation interface IP address section configured By: obtain interface IP address section, each different tie-in line according to the interface IP address segment length configured by human configuration mode One different interface IP address section of road configuration.
In the above-described embodiments, after RG equipment obtains 64 bit prefix and interface IP address section, can use in the following manner Generation IPv6 address:
Mode one: RG equipment calculates according to interface IP address section and generates interface IP address, and by 64 bit prefix and interface IP address Merge into available IPv6 address to send to user terminal.
Which is applicable to route type home gateway (having DHCPv6 function), and under this scene, main frame does not calculates itself Interface IP address, RG equipment (such as, home gateway) is receiving prefix (more than 64bit) with automatically calculating available interface afterwards Location, and distribute to main frame.Owing to all addresses are distributed unitedly by RG equipment, the most there is not the possibility of address conflict.
Mode two: user terminal automatically generates interface IP address to be detected, and please to the initiation address conflict detection of RG equipment Ask;
RG equipment utilization interface IP address section detect interface IP address to be detected whether be in interface IP address section in, detect to be checked Whether the interface IP address surveyed conflicts with the interface IP address being currently in use and testing result is informed user terminal;
In the case of the interface IP address generated at user terminal does not conflicts, 64 bit prefix and not sent according to RG equipment The interface IP address of conflict generates self available IPv6 address.
Which is applicable to the bridge type home gateway not possessing DHCPv6 function, and main process equipment does not the most support the present invention The scene of function.Under this scene, main frame is according to self algorithm (such as, EUI-64 (IEEE ' s 64-bit Extended Unique Identifier) algorithm) generate 64bit interface IP address, then initiate address conflict detection (DAD), if interface Front M-bit in address clashes with interface IP address section, then RG equipment can send DAD response message, forces main frame weight A newly-generated new interface IP address, if do not conflicted with interface IP address section, then after continuing to judge N position whether be currently in use Interface IP address conflicts.If the length of M bit is the least, such as only 1~2 bit, then main frame is by repeatedly generating interface IP address, Satisfactory interface IP address will be readily generated.This algorithm requires that RG equipment possesses DHCPv6 and monitors (SNOOPING) function, And option 17 attribute of present invention definition can be resolved.
64 bit prefix and interface IP address section are sent to user terminal by mode three: RG equipment;
User terminal automatically generates interface IP address, obtains to be detected connecing according to the interface IP address of interface IP address section and generation Port address, and initiate address conflict detection request to RG equipment;
RG equipment judges whether interface IP address to be detected conflicts with the interface IP address being currently in use, and testing result is accused Know user terminal;
Terminal generate interface IP address do not conflict in the case of, according to RG equipment send 64 bit prefix and do not conflict Interface IP address generate self available IPv6 address.
Which is applicable for use with the network of stateless address distribution, and under this scene, main process equipment needs to support this The bright function mentioned.Main process equipment original interface IP address generating mode (such as, EUI-64 algorithm), SLAAC assigning process are equal Keeping constant, need to increase a new attribute (Extension Prefix) in the RA message of SLAAC, this attribute carries Prefix part (that is, interface IP address section) more than 64bit.Main frame is after receiving the RA message that RG equipment sends, except obtaining Normal 64bit prefix, also to obtain the prefix more than 64 bit section carried in new attribute.
When main frame generates interface IP address, EUI-64 algorithm or random algorithm still can be used to generate the interface of 64bit Address, do with mask word string after interface IP address generates once with operation, then do once with M bit or operate.Illustrate, as Really a length of 8 of M bit, then mask word string be 0x0011111111111111H, M bit be 0x92H, expand to 64: 0x9200000000000000H, the interface IP address that main frame generates is 0x328A ACFE 998776CFH, then through above-mentioned logic The 64bit obtained after process is: 0x928A ACFE 998776CFH.First character therein joint (8bit) is replaced by and is more than The prefix of 64 bit section.The IPv6 address generated by said method also could must be used through DAD detection, such as rear N position and The address being currently in use clashes, then need main frame to use random fashion to regenerate interface IP address, till not conflicting.
It will appreciated by the skilled person that realizing the whole of said method embodiment can pass through with part steps The hardware that programmed instruction is relevant completes, and aforesaid program can be stored in a calculating device-readable and take in storage medium, this journey Sequence upon execution, performs to include the step of said method embodiment, and two aforesaid storage mediums can include ROM, RAM, magnetic disc With various media that can store program code such as CDs.
Fig. 4 is the schematic flow sheet of another embodiment of IPv6 address distribution method of the present invention.
As shown in Figure 4, this embodiment may comprise steps of:
S402, RG equipment (such as, home gateway) initiates DHCPv6 PD request after starting, and carries interface IP address distribution Mark and user identity;
S404, Service Gateway (BNG) inserts interface identifier in DHCPv6 PD asks, and forwards to DHCPv6 server This request;
S406, DHCPv6 server judges whether RG equipment carries the mark of interface IP address distribution in DHCPv6 PD asks Know, if this identification options (DHCPv6 option 17) instruction RG equipment supporting interface address distribution, then DHCPv6 clothes Business device is calculated by HASH algorithm and is intercepted and obtains interface IP address section;
Standard 64 bit prefix chosen from address pool and the prefix more than 64bit are sent out by S408, DHCPv6 server Give RG equipment, wherein can be carried by DHCPv6 option 17 option of extension more than the prefix of 64 bits;
S410, RG equipment, after obtaining this two parts prefix, generates the locally available IPv6 address pool of RG;
S412, mode 1, main frame is to RG equipment initiation DHCPv6 Address requests, and RG equipment directly will by DHCPv6 agreement End host is handed down in the address of 128bit;Mode 2, when prefix is slightly larger than 64bit (such as, 65bit, 66bit), due to master When machine generates 128bit address by SLAAC mode, the probability meeting prefix requirement is bigger, it is possible to generate address in terminal When not meeting prefix requirement, by the way of RG equipment sends DAD collision detection, terminal is forced to generate satisfactory address; Method 3, terminal generated by SLAAC mode voluntarily the success rate of address less in the case of, RG equipment needs to believe prefix Breath (more than the prefix of 64 bits) informs end host by the way of RA OPTION, and end host is running EUI-64 algorithm After generating interface IP address, whether meeting the requirements of this interface IP address must be verified.
Fig. 5 is the structural representation of an embodiment of DHCPv6 server of the present invention.
As it is shown in figure 5, the DHCPv6 server 50 of this embodiment may include that
Mark judging unit 51, for judging whether carry interface IP address distribution mark in the DHCPv6 PD received request Know;
Interface IP address section signal generating unit 52, is connected with mark judging unit 51, carries and connect in asking at DHCPv6PD The interface mark carried in asking according to the interface IP address segment length configured and DHCPv6 PD in the case of port address allocation identification Know and generate interface IP address section;
Address prefix transmitting element 53, is connected with interface IP address signal generating unit 52, for by before DHCPv6 server Sew 64 bit prefix obtained in address pool and interface IP address section sends to RG equipment, think that user terminal generates available IPv6 Address.
This embodiment utilizes the interface identifier carried in DHCPv6 PD request and user configured interface IP address segment length raw Becoming interface IP address section, so that address resource available under RG equipment is in user's controllable state, user can be according to demand Address resource quantity under RG equipment is set, such that it is able to the address resource occurred in the case of avoiding 64 bit address prefix is serious Waste situation.
Fig. 6 is the structural representation of another embodiment of DHCPv6 server of the present invention.
Interface IP address section as shown in Figure 6, compared with the embodiment in Fig. 5, in the DHCPv6 server 50 of this embodiment Signal generating unit 61 may include that
Hash calculation subelement 611, is used for utilizing hash algorithm and interface identifier to be calculated Hash output;
Intercept subelement 612, be connected with Hash calculation subelement 611, intercept out for exporting from Hash and meet interface The interface IP address section of address field length.
Wherein, the one during interface identifier includes the MAC Address of user terminal and the vlan number of user.Further, for Enhancing safety, it is also possible to concatenate user name or RG before or after after the MAC Address of user terminal or the VLAN of user The MAC Address of equipment.
Fig. 7 is the structural representation of an embodiment of RG equipment of the present invention.
As it is shown in fig. 7, the RG equipment 70 of this embodiment may include that
Request transmitting unit 71, is used for sending DHCPv6 PD request, carries interface IP address distribution in DHCPv6 PD request Mark and interface identifier;
Prefix receive unit 72, for receive from the prefix addresses pond of DHCPv6 server obtain 64 bit prefix and The interface IP address section generated with the interface IP address segment length configured according to interface identifier.
Fig. 8 is the structural representation of another embodiment of RG equipment of the present invention.
As shown in Figure 8, compared with the embodiment in Fig. 7, the RG equipment 80 of this embodiment can also include:
Interface IP address signal generating unit 81, receives unit 72 with prefix and is connected, for generating interface ground according to interface IP address section Location, and 64 bit prefix and interface IP address are merged into available IPv6 address transmission to user terminal.
Fig. 9 is the structural representation of the another embodiment of RG equipment of the present invention.
As it is shown in figure 9, compared with the embodiment in Fig. 7, the RG equipment 90 of this embodiment can also include:
Interface IP address receives unit 91, for receiving the interface IP address to be detected that user terminal generates;
Address detection unit 92, receives unit 72 with prefix and interface IP address receives unit 91 and is connected, and is used for utilizing interface Whether address field detects in whether interface IP address to be detected is in interface IP address section and/or rushes with the interface IP address being currently in use Prominent, and inform whether interface IP address to be detected conflicts.
Figure 10 is the structural representation of an embodiment of IPv6 address allocation system of the present invention.
As shown in Figure 10, the IPv6 address allocation system 100 of this embodiment can include user terminal 101, Service Gateway (Broadband Network Gateway, BNG) 102, DHCPv6 server 103 and RG equipment 104, wherein, user is eventually End 101 is connected with RG equipment 104, and RG equipment 104 is connected with DHCPv6 server 103 by Service Gateway 102.Specifically, DHCPv6 server 103 can utilize the embodiment shown in Fig. 5 or Fig. 6 to realize;RG equipment 104 can utilize in Fig. 7 to Fig. 9 Any embodiment realize.
In this specification, each embodiment all uses the mode gone forward one by one to describe, and what each embodiment stressed is and it The difference of his embodiment, part identical with similar between each embodiment can be with cross-reference.For device embodiment For, due to itself and embodiment of the method basic simlarity, so describe is fairly simple, relevant part may refer to embodiment of the method The explanation of part.
Although by example, some specific embodiments of the present invention have been described in detail, but the skill of this area Art personnel are it should be understood that above example is merely to illustrate rather than in order to limit the scope of the present invention.The skill of this area Art personnel are it should be understood that can modify to above example without departing from the scope and spirit of the present invention.This Bright scope is defined by the following claims.

Claims (12)

1. an IPv6 address distribution method, it is characterised in that including:
DHCPv6 server judges whether carry interface IP address allocation identification in the DHCPv6 PD received request;Wherein, RG sets Preparation send described DHCPv6 PD to ask;
If described DHCPv6 PD request carries described interface IP address allocation identification, then according to the interface IP address section configured The interface identifier carried in length and described DHCPv6 PD request generates interface IP address section;Wherein, described DHCPv6 PD request In carry DHCPv6 option 17 option, DHCPv6 option 17 option instruction RG equipment supporting interface address distribution side Formula, utilizes hash algorithm and described interface identifier to be calculated Hash output, intercepts out described in meeting from described Hash exports The interface IP address section of interface IP address segment length;
By from the prefix addresses pond of described DHCPv6 server obtain 64 bit prefix and described interface IP address section send to RG equipment, thinks that user terminal generates available IPv6 address;Wherein, interface IP address section is by the DHCPv6 option of extension 17 options carry;
Described 64 bit prefix and described interface IP address section are sent to user terminal by described RG equipment;User terminal automatically generates Interface IP address;Wherein, when generating interface IP address, EUI-64 algorithm or random algorithm is used to generate the interface IP address of 64bit, Interface IP address generate after with mask word string do once with operation, then do once with M bit or operate, a length of 8 of M bit.
IPv6 address distribution method the most according to claim 1, it is characterised in that described according to the interface IP address configured Segment length generates the step of interface IP address section and includes:
Interface IP address segment length according to being configured obtains interface IP address section by human configuration mode.
IPv6 address distribution method the most according to claim 1, it is characterised in that described interface identifier includes user terminal MAC Address and user vlan number in one.
IPv6 address distribution method the most according to claim 3, it is characterised in that described interface identifier also includes user name With the one in the MAC Address of RG equipment.
IPv6 address distribution method the most according to claim 1, it is characterised in that described method also includes:
Described user terminal automatically generates interface IP address to be detected, and initiates address conflict detection request to described RG equipment;
Interface IP address section described in described RG equipment utilization detects whether described interface IP address to be detected is in described interface IP address In section, detect described interface IP address to be detected and whether conflict with the interface IP address being currently in use and testing result is informed institute State user terminal;
In the case of the interface IP address generated at described user terminal does not conflicts, described 64 bits sent according to described RG equipment Prefix and the interface IP address not conflicted generate self available IPv6 address.
IPv6 address distribution method the most according to claim 1, it is characterised in that described method also includes:
Interface IP address according to described interface IP address section and generation obtains interface IP address to be detected, and initiates to described RG equipment Address conflict detection request;
Described RG equipment judges whether described interface IP address to be detected conflicts with the interface IP address being currently in use, and detection is tied Fruit informs described user terminal;
In the case of the interface IP address generated in described terminal does not conflicts, described 64 bit prefix sent according to described RG equipment The interface IP address not conflicted generates self available IPv6 address.
7. a DHCPv6 server, it is characterised in that including:
Mark judging unit, for judging whether carry interface IP address allocation identification in the DHCPv6 PD received request;Its In, RG equipment sends described DHCPv6 PD request, carries DHCPv6 option 17 option in described DHCPv6 PD request, DHCPv6 option 17 option instruction RG equipment supporting interface address distribution;
Interface IP address section signal generating unit, is connected with described mark judging unit, carries institute in asking at described DHCPv6 PD Carry in asking according to the interface IP address segment length configured and described DHCPv6 PD in the case of stating interface IP address allocation identification Interface identifier generate interface IP address section;
Described interface IP address section signal generating unit includes:
Hash calculation subelement, is used for utilizing hash algorithm and described interface identifier to be calculated Hash output;
Intercept subelement, be connected with described Hash calculation subelement, intercept out for exporting from described Hash and connect described in meeting The interface IP address section of port address segment length;
Address prefix transmitting element, is connected with described interface IP address signal generating unit, for by before described DHCPv6 server Sew 64 bit prefix obtained in address pool and described interface IP address section sends to RG equipment, think what user terminal generation can use IPv6 address;Interface IP address section is carried by DHCPv6 option 17 option of extension;
Wherein, described 64 bit prefix and described interface IP address section are sent to user terminal by described RG equipment;User terminal is certainly Dynamic generation interface IP address;Wherein, when generating interface IP address, EUI-64 algorithm or random algorithm is used to generate the interface of 64bit Address, do with mask word string after interface IP address generates once with operation, then do once with M bit or operate, M bit is a length of 8.
DHCPv6 server the most according to claim 7, it is characterised in that described interface identifier includes user terminal One in the vlan number of MAC Address and user.
DHCPv6 server the most according to claim 7, it is characterised in that described interface identifier also includes user name and RG One in the MAC Address of equipment.
10. a RG equipment, it is characterised in that including:
Request transmitting unit, is used for sending DHCPv6 PD request, carries interface IP address distribution mark in described DHCPv6 PD request Know and interface identifier;Wherein, DHCPv6 option 17 option instruction RG equipment supporting interface address distribution;
Prefix receives unit, for receiving 64 bit prefix obtained from the prefix addresses pond of DHCPv6 server and according to institute The interface IP address section that the interface IP address segment length stating interface identifier and configured generates;Interface IP address section is by the DHCPv6 of extension Option 17 option carries;
Wherein, described 64 bit prefix and described interface IP address section are sent to user terminal by RG equipment;User terminal is given birth to automatically Become interface IP address;Wherein, when generating interface IP address, EUI-64 algorithm or random algorithm is used to generate the interface IP address of 64bit, Do with mask word string after interface IP address generates once with operation, then do once with M bit or operate, a length of 8 of M bit.
11. RG equipment according to claim 10, it is characterised in that described RG equipment also includes:
Interface IP address receives unit, for receiving the interface IP address to be detected that user terminal generates;
Address detection unit, receives unit and described interface IP address and receives unit and be connected with described prefix, be used for utilizing described in connect Port address section detect described interface IP address to be detected whether be in described interface IP address section and/or whether be currently in use Interface IP address conflicts, and informs whether described interface IP address to be detected conflicts.
12. 1 kinds of IPv6 address allocation systems, it is characterised in that include appointing in user terminal, Service Gateway, claim 7 to 9 RG equipment according to any one of one described DHCPv6 server and claim 10 to 11, wherein, described user is eventually End is connected with described RG equipment, and described RG equipment is connected with described DHCPv6 server by described Service Gateway.
CN201110244630.XA 2011-08-25 Address distribution method, system, DHCPv6 server and RG equipment Active CN102957758B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110244630.XA CN102957758B (en) 2011-08-25 Address distribution method, system, DHCPv6 server and RG equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110244630.XA CN102957758B (en) 2011-08-25 Address distribution method, system, DHCPv6 server and RG equipment

Publications (2)

Publication Number Publication Date
CN102957758A CN102957758A (en) 2013-03-06
CN102957758B true CN102957758B (en) 2016-12-14

Family

ID=

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1809076A (en) * 2006-01-26 2006-07-26 ***通信集团公司 IPv6 terminal address generation and parsing method in communication network
CN1901551A (en) * 2005-07-19 2007-01-24 上海贝尔阿尔卡特股份有限公司 Repeat address detecting method and its device for supporting IPv6 two layer access net
CN101005461A (en) * 2007-01-16 2007-07-25 中兴通讯股份有限公司 IPv6 route list checking and repeating method
CN101674288A (en) * 2008-09-12 2010-03-17 华为技术有限公司 Method, device and system for managing address prefix distribution
US7739394B2 (en) * 2003-07-29 2010-06-15 At&T Intellectual Property I, L.P. Bi-level addressing for internet protocol broadband access
CN101867625A (en) * 2010-07-19 2010-10-20 中国电信股份有限公司 Method for allocating IPv6 address and home gateway

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7739394B2 (en) * 2003-07-29 2010-06-15 At&T Intellectual Property I, L.P. Bi-level addressing for internet protocol broadband access
CN1901551A (en) * 2005-07-19 2007-01-24 上海贝尔阿尔卡特股份有限公司 Repeat address detecting method and its device for supporting IPv6 two layer access net
CN1809076A (en) * 2006-01-26 2006-07-26 ***通信集团公司 IPv6 terminal address generation and parsing method in communication network
CN101005461A (en) * 2007-01-16 2007-07-25 中兴通讯股份有限公司 IPv6 route list checking and repeating method
CN101674288A (en) * 2008-09-12 2010-03-17 华为技术有限公司 Method, device and system for managing address prefix distribution
CN101867625A (en) * 2010-07-19 2010-10-20 中国电信股份有限公司 Method for allocating IPv6 address and home gateway

Similar Documents

Publication Publication Date Title
CN101692674B (en) Method and equipment for double stack access
US6959009B2 (en) Address acquisition
US8724583B2 (en) Neighbor discovery message handling to support roaming of wireless mobile client devices
CN100499674C (en) Method for distributing terminal device IP address under router
US8594103B2 (en) Network access method, authentication method, communications systems and relevant devices
CN101753460B (en) Method and device for processing internet protocol version 6(IPV6) routing prefix
US20140325090A1 (en) Discovery and disconnection of client addresses in an access node for an ip network
WO2007009367A1 (en) A method for duplicate address detection in the two-layer access network supporting ipv6 and a system thereof
KR101313831B1 (en) Method, device and system for mobile virtual private network communication
US7760666B2 (en) Method of generating and managing connection identifiers for supporting multicast for each group in IPv6-based wireless network and network interface using the method
CN101753635A (en) Method and system of collocating IPV6 (internet protocol version 6) addresses
CN100499669C (en) Network address reconstruction method in IPv6 switch-in network
WO2009117963A1 (en) Address configuring method, apparatus and system
CN102238075A (en) IPv6 (Internet Protocol version 6) routing establishing method based on Ethernet Point-to-Point Protocol and access server
CN114422474B (en) User IPv6 address generating method based on RADIUS server
CN1744596B (en) Method for host obtaining network allocation parameterns in IPV6 network
US20130311624A1 (en) Method, apparatus and system for configuring ip address
CN102918817B (en) The method of IPv6 address assignment and equipment
CN103051739A (en) Network terminal and IP (Internet Protocol) address configuration method thereof
US10044672B2 (en) IPv6 address assignment method and apparatus
CN102957758B (en) Address distribution method, system, DHCPv6 server and RG equipment
CN107172229B (en) Router configuration method and device
CN102299860B (en) Acquisition method and equipment for path maximum transmission unit (Pathmtu)
CN101635915B (en) Method and device for selecting packet data network (PDN)
CN100362814C (en) Method for realizing user detection based on neightbour discovery technique

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant