CN102340546B - IPv6 address distribution method and system - Google Patents

IPv6 address distribution method and system Download PDF

Info

Publication number
CN102340546B
CN102340546B CN201010228779.4A CN201010228779A CN102340546B CN 102340546 B CN102340546 B CN 102340546B CN 201010228779 A CN201010228779 A CN 201010228779A CN 102340546 B CN102340546 B CN 102340546B
Authority
CN
China
Prior art keywords
ipv6
config option
request message
configuring request
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
CN201010228779.4A
Other languages
Chinese (zh)
Other versions
CN102340546A (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
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 China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN201010228779.4A priority Critical patent/CN102340546B/en
Publication of CN102340546A publication Critical patent/CN102340546A/en
Application granted granted Critical
Publication of CN102340546B publication Critical patent/CN102340546B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention relates to a kind of IPv6 address distribution method, comprising: when terminal side equipment initiates PPP connection request to network side, the network parameter carried out based on NCP protocol option is consulted; In negotiations process, terminal side equipment carries out the negotiation of interface identifier config option by sending the first configuring request message to BRAS, after interface ID has consulted, terminal side equipment also carries out the negotiation of the prefix of IPv6 by least one configuring request message and BRAS, and according to receiving the negotiation result that returns of BRAS and interface ID generates IPv6 address, realize Address Autoconfiguration.The invention still further relates to a kind of IPv6 address allocation system.The network parameter of the NCP protocol option during the embodiment of the present invention is connected by PPP has consulted the negotiation of the prefix of IPv6, realize Address Autoconfiguration, simplify configuration complexity, reduce network O&M cost, and this negotiations process can meet bridge type and route type home gateway scene simultaneously.

Description

IPv6 address distribution method and system
Technical field
The present invention relates to the communications field, particularly relate to a kind of by peer-peer protocol (Point-to-Point Protocol, be called for short ppp protocol) internet protocol version 6 (Internet Protocol Version 6 is called for short IPv6) address is carried out to the method and system that distributes.
Background technology
Existing IPv6 address assignment is mainly used in two class home gateway scenes: a class is for host assignment interface IP address under bridge type gateway scene, another kind of is distribute wide area network (Wide Area Network for home network under route type gateway scene, be called for short WAN) port address and local area network (LAN) (Local Area Network is called for short LAN) mouth prefix.
Under bridge type gateway scene, when carrying out PPP access authentication, by personal computer (Personal Computer, be called for short PC) initiate PPP connection request, and under route type gateway scene, then initiate PPP connection request by home gateway (Home Gateway is called for short HGW).
Current Network Control Protocol (IPv6Control Protocol, being called for short IPv6CP) the interface ID (normally IPv6 address latter 64) that only realizes user side under bridge type gateway scene consults, then Broadband Remote Access Server (the Broadband RemoteAccess Server of network side, be called for short BRAS) come to PC terminal advertised prefix Prefix by configuration advertising of route (Router Advertise is called for short RA) message.Prefix is the IPv6 address prefix (normally IPv6 address first 64) being advertised to terminal in RA message.PC terminal, after receiving RA message, according to the IPv6 address that Prefix and the interface ID that consults before forms 128, realizes address stateless and automatically configures.
RA mode under bridge type gateway scene needs the interface IP address for each PPP session static configuration Prefix and BRAS side, be difficult to realize dynamically associating of Prefix and PPP session id, if adopt static configuration mode when BRAS supports the VLAN of enormous amount, because workload is huge and be difficult to realize normal network insertion and management, and PPP message and RA message cannot be all that PC distributes name server (Domain NameServer, be called for short DNS) address, cause PC to be difficult to realize web access.
Current IPv6CP will through two stages under route type gateway scene: be respectively PPP stage and dynamic host configuration protocol prefix proxy (Dynamic Host ConfigurationProtocol-Prefix Delegation is called for short HDCP-PD) stage.
In the PPP stage, first HGW is needed to initiate PPP certification, certification is by rear PPP session establishment success, automatically Link-Local address is generated between HGW and BRAS, Wide Area Network interface ID is consulted in addition by the WAN mouth of IPv6CP and HGW, then BRAS notices Prefix by RA message to HGW, and HGW generates the wide area network clean culture IPv6 address of a up wan interface according to Prefix and the Wide Area Network interface ID that consults before.
In the HDCP-PD stage, HGW and BRAS both sides are based on the udp protocol of Link-Local address, realize the request Solicit of HDCP-PD, notice Advertise, request Request and response Reply tetra-step mutual, realize BRAS to distribute the Prefix of HGW, and being advertised to HGW, Prefix is tied to descending LAN interface by HGW.
Under route type gateway scene, also usually there is being difficult in bridge type gateway scene realizes the problem that the dynamic relationship of Prefix and PPP session id and dns address cannot distribute, and in addition, also relates to the interlock between PPP and DHCP-PD.DHCP-PD mode is without authentication mechanism, be more suitable for the credible access that user side equipment is always online, connection such as between individual line subscriber CE and operator PE, and mode HGW being adopted to PPP dialing dynamic access, be more suitable for the individual home broadband user by duration based accounting, meeting are at any time rolled off the production line.PPP+DHCP-PD mode step is complicated, needs two stages just can complete the distribution of IPv6 address.
In addition, due to standard imperfection, equipment is supported inconsistent, and two class gateway scenes are difficult to unified address distribution, and interoperability is also poor.
Summary of the invention
The object of the invention is to propose a kind of IPv6 address distribution method and system, can unify to realize Certificate Authority and address assignment, simplified network operation maintenance cost and terminal configuration complexity.
For achieving the above object, the invention provides a kind of IPv6 address distribution method, comprising:
When terminal side equipment initiates PPP connection request to network side, the network parameter carried out based on NCP protocol option is consulted;
In negotiations process, described terminal side equipment sends the first configuring request message to BRAS, and in described first configuring request message, config option type is interface identifier config option, and corresponding data field comprises interface ID to be consulted;
After described BRAS receives described first configuring request message, the first configuration response message is returned to described terminal side equipment, in described first configuration response message, config option type is interface identifier config option, and corresponding data field comprises the interface ID consulting to confirm;
After described interface ID has consulted, described terminal side equipment also carries out the negotiation of the prefix of IPv6 by least one configuring request message and described BRAS, and according to receiving the negotiation result that returns of described BRAS and interface ID generates IPv6 address, realizing address stateless and automatically configuring.
Further, under bridge type gateway scene, described terminal side equipment is personal computer, and the negotiations process of the prefix of described IPv6 comprises:
Described personal computer sends the second configuring request message to described BRAS, and in described second configuring request message, config option type is IPv6 wide area network prefix config option, and corresponding data field comprises IPv6 wide area network prefix to be consulted;
After described BRAS receives described second configuring request message, the second configuration response message is returned to described personal computer, in described second configuration response message, config option type is IPv6 wide area network prefix config option, and corresponding data field comprises the IPv6 wide area network prefix consulting to confirm.
Further, under route type gateway scene, described terminal side equipment is home gateway, and the negotiations process of the prefix of described IPv6 comprises:
Described home gateway sends the second configuring request message to described BRAS, and in described second configuring request message, config option type is IPv6 wide area network prefix config option, and corresponding data field comprises IPv6 wide area network prefix to be consulted;
After described BRAS receives described second configuring request message, the second configuration response message is returned to described home gateway, in described second configuration response message, config option type is IPv6 wide area network prefix config option, and corresponding data field comprises the IPv6 wide area network prefix consulting to confirm;
Described home gateway sends the 3rd configuring request message to described BRAS, and in described 3rd configuring request message, config option type is IPv6 local area network (LAN) prefix config option, and corresponding data field comprises IPv6 local area network (LAN) prefix to be consulted;
After described BRAS receives described second configuring request message, the 3rd configuration response message is returned to described home gateway, in described 3rd configuration response message, config option type is IPv6 local area network (LAN) prefix config option, and corresponding data field comprises the IPv6 local area network (LAN) prefix consulting to confirm.
Further, also comprise in negotiations process:
Described terminal side equipment sends the 4th configuring request message to described BRAS, and in described 4th configuring request message, config option type is DNS config option, and corresponding data field comprises active and standby dns address to be consulted;
After described BRAS receives described 4th configuring request message, the 4th configuration response message is returned to described terminal side equipment, in described 4th configuration response message, config option type is DNS config option, and corresponding data field comprises the active and standby dns address consulting to confirm.
Further, also comprise in negotiations process:
Described terminal side equipment sends the 5th configuring request message to described BRAS, in described 5th configuring request message, config option type is IPv6 wide area network prefix lifetime config option, and corresponding data field comprises first-selected lifetime and the available lifetime of IPv6 wide area network prefix to be consulted;
After described BRAS receives described 5th configuring request message, the 5th configuration response message is returned to described terminal side equipment, in described 5th configuration response message, config option type is IPv6 wide area network prefix lifetime config option, and corresponding data field comprises the first-selected lifetime and available lifetime of consulting the IPv6 wide area network prefix confirmed.
Further, also comprise in negotiations process:
Described home gateway sends the 6th configuring request message to described BRAS, in described 6th configuring request message, config option type is IPv6 local area network (LAN) prefix lifetime config option, and corresponding data field comprises first-selected lifetime and the available lifetime of IPv6 local area network (LAN) prefix to be consulted;
After described BRAS receives described 6th configuring request message, the 6th configuration response message is returned to described home gateway, in described 6th configuration response message, config option type is IPv6 local area network (LAN) prefix lifetime config option, and corresponding data field comprises the first-selected lifetime and available lifetime of consulting the IPv6 local area network (LAN) prefix confirmed.
Further, before the negotiation of the prefix of IPv6, also comprise:
Described terminal side equipment sends the 7th configuring request message to described BRAS, and in described 7th configuring request message, config option type is the terminal side equipment config option of initiating, and corresponding data field comprises the type of described terminal side equipment to be consulted;
After described BRAS receives described 7th configuring request message, the 7th configuration response message is returned to described terminal side equipment, in described 7th configuration response message, config option type is terminal side equipment config option, and corresponding data field comprises the type of consulting the described terminal side equipment confirmed;
Described terminal side equipment carries out the negotiation of the prefix of IPv6 according to the type of consulting the described terminal side equipment confirmed.
Further, also comprise in negotiations process:
Described terminal side equipment sends the 8th configuring request message to described BRAS, and in described 8th configuring request message, config option type is default gateway address config option, and corresponding data field comprises default gateway address to be consulted;
After described BRAS receives described 8th configuring request message, the 8th configuration response message is returned to described terminal side equipment, in described 8th configuration response message, config option type is default gateway address config option, and corresponding data field comprises the default gateway address consulting to confirm.
Further, also comprise in negotiations process:
Described home gateway sends the 9th configuring request message to described BRAS, and in described 9th configuring request message, config option type is NTP (Network Time Protocol) Address Configuration Option, and corresponding data field comprises active and standby NTP (Network Time Protocol) address to be consulted;
After described BRAS receives described 9th configuring request message, the 9th configuration response message is returned to described home gateway, in described 9th configuration response message, config option type is NTP (Network Time Protocol) Address Configuration Option, and corresponding data field comprises the active and standby NTP (Network Time Protocol) address consulting to confirm.
Further, also comprise in negotiations process:
Described home gateway sends the tenth configuring request message to described BRAS, and in described tenth configuring request message, config option type is IPv6 local area network (LAN) prefix length config option, and corresponding data field comprises IPv6 local area network (LAN) prefix length information to be consulted;
After described BRAS receives described tenth configuring request message, the tenth configuration response message is returned to described home gateway, in described tenth configuration response message, config option type is IPv6 local area network (LAN) prefix length config option, and corresponding data field comprises the IPv6 local area network (LAN) prefix length information consulting to confirm.
For achieving the above object, the invention provides a kind of IPv6 address allocation system, comprising:
Terminal side equipment, during for initiating PPP connection request to network side, the network parameter carrying out control protocol protocol option Network Based is consulted, in negotiations process, the first configuring request message is sent to Broadband Remote Access Server, in described first configuring request message, config option type is interface identifier config option, corresponding data field comprises interface ID to be consulted, and after described interface ID has consulted, the negotiation of the prefix of IPv6 is carried out by least one configuring request message and described Broadband Remote Access Server, and according to receiving the negotiation result that returns of described Broadband Remote Access Server and interface ID generates IPv6 address, realize Address Autoconfiguration,
Broadband Remote Access Server, after receiving described first configuring request message, return the first configuration response message to described terminal side equipment, in described first configuration response message, config option type is interface identifier config option, and corresponding data field comprises the interface ID consulting to confirm.
Based on technique scheme, the network parameter of the NCP protocol option during the present invention is connected by PPP has consulted the negotiation of the prefix of IPv6, realize Address Autoconfiguration, simplify configuration complexity, reduce network O&M cost, and this negotiations process can meet bridge type and route type home gateway scene simultaneously.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, and form a application's part, schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the schematic diagram of the PPP frame nested arrangement option in IPv6 address distribution method embodiment of the present invention.
Fig. 2 is the schematic flow sheet of an embodiment of IPv6 address distribution method of the present invention.
Fig. 3 is the negotiations process schematic diagram in another embodiment of IPv6 address distribution method of the present invention under bridge type gateway scene.
Fig. 4 is the negotiation schematic flow sheet in the another embodiment of IPv6 address distribution method of the present invention under route type gateway scene.
Fig. 5 is the structural representation of an embodiment of IPv6 address allocation system of the present invention.
Embodiment
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
The present invention starts with from the frame format of ppp protocol, modifies and supplement this agreement, thus achieves the expansion of function.Wherein PPP frame comprises 6 fields, the PPP frame format seen table.
1 1 1 2 Elongated 2 or 4
Mark Address Control Agreement Data FCS
The main information that field in PPP frame comprises is as follows:
Agreement: long 2 bytes of this field, for the agreement encapsulated in identification data field.Mainly comprise LCP and NCP two kinds of protocol options at present.Wherein NCP supports multiple network layer protocol, and the hexadecimal values of the protocol fields of corresponding IPCP and IPv6CP is chosen as 0x8021 and 0x8057 respectively.
Data: zero or multiple byte, comprise the datagram of specified protocol in protocol fields.The acquiescence maximum length of data field is chosen as 1500 bytes.
When " agreement " field in PPP frame structure is 0x8021, the NCP data of carrying are IPCP message.When " agreement " field in PPP frame structure is 0x8057, the NCP data of carrying are IPv6CP message.
IPv6CP message format is as follows:
1 2 4 Elongated
Code Mark Length Data
Code-Code field is 1 byte, for identification data Packet type.
Data one data field is 0 or more byte.Data field format depends on Code field.
The definition (Code=1-7) of RFC2472 standard implementation to Code value, corresponding configuring request (Configure-Request) respectively, configuration response (Configure-Ack), configuration nonreply (Configure-Nak), configure-reject (Configure-Reject), stop request (Terminate-Request), stop response (Terminate-Ack) and code-reject (Code-Reject) seven kinds of messages.
The first step of network parameter negotiations process is that end side sends Configure-Request frame to BRAS.Configure-Request frame comprises the various config options needing to arrange to network layer.End side can borrow Configure-Request frame to propose to wish the config option type of the network parameter of configuration to BRAS.
After BRAS receives configuring request, if this network parameter to be consulted can accept, then respond by Configure-Ack message.After receiving Configure-Ack message, NCP consults substantially to complete.
In Configure-Request and Configure-Ack message, " Code " value in corresponding IPv6CP frame is chosen as 1 and 2 respectively.The payload of carrying comprises configuration option field, and has " Type " types value to define different config options.
The form of config option is as follows:
1 2 4
Type Length Config option
The realization of the negotiation of the prefix of IPv6 of the present invention is mainly through in config option.For the purpose of directly perceived, Fig. 1 is the schematic diagram of the PPP frame nested arrangement option in IPv6 address distribution method embodiment of the present invention.As can be seen from Figure 1 be nested at config option in the elongated data field in NCP message structure, and NCP message structure is embedded in the elongated data field in PPP frame.
Based on the PPP frame structure of above-mentioned expansion, as shown in Figure 2, be the schematic flow sheet of an embodiment of IPv6 address distribution method of the present invention.IPv6 address assignment flow process in the present embodiment comprises:
When step 101, terminal side equipment initiate PPP connection request to network side, the network parameter carrying out control protocol protocol option Network Based is consulted;
Step 102, in negotiations process, described terminal side equipment sends the first configuring request message to Broadband Remote Access Server, in described first configuring request message, config option type is interface identifier config option, and corresponding data field comprises interface ID to be consulted;
After step 103, described Broadband Remote Access Server receive described first configuring request message, the first configuration response message is returned to described terminal side equipment, in described first configuration response message, config option type is interface identifier config option, and corresponding data field comprises the interface ID consulting to confirm;
Step 104, after described interface ID has consulted, described terminal side equipment also carries out the negotiation of the prefix of IPv6 by least one configuring request message and described Broadband Remote Access Server, and according to receiving the negotiation result that returns of described Broadband Remote Access Server and interface ID generates IPv6 address, realize Address Autoconfiguration.
In the first configuring request message, " Type " types value of the config option of interface ID may be defined as 1.After the negotiation completing interface ID, the negotiations process of the prefix of IPv6 is then by least one configuring request message of BRAS, returned negotiation result to obtain by BRAS again and consult the prefix after confirming, then generate the address of IPv6 according to prefix and interface ID, thus realize the automatic configuration of address.
In the present embodiment, terminal side equipment can be the PPP virtual dial-up software etc. of route type HGW and PC, and these terminal side equipments and BRAS should follow the Type types value of configure-req and configure-ack of IPv6CP in unified PPP frame.
For bridge type gateway scene, initiate PPP connection request by PC to BRAS, the IPv6 data of ppp protocol and encapsulation on it are only carried out transparent transmission, to IPv6 not perception by home gateway.And in route type gateway scene, then initiate PPP connection request by home gateway HGW to BRAS.
If either party does not follow the specification of aforementioned definitions in network side and user side, then realize address assignment by existing mode, user's online can not be affected.And still can realize address assignment by IPCP for the IPv4 access authentication under two stack environment, follow the existing mode of IPv4, do not exist with IPv6 address assignment in the present invention and conflict, IPCP and IPv6CP can be supported simultaneously in a PPP session.
In addition, because Certificate Authority process completes in the LCP process of PPP frame, and do not need terminal side equipment always online, therefore DHCP-PD more of the prior art is more suitable for domestic consumer's use.
As shown in Figure 3, be the negotiations process schematic diagram under bridge type gateway scene in another embodiment of IPv6 address distribution method of the present invention.Under bridge type gateway scene, terminal side equipment is that the negotiations process of the prefix of PC, IPv6 comprises:
PC sends the second configuring request message to BRAS, and in the second configuring request message, config option type is IPv6 wide area network prefix config option, and corresponding data field comprises IPv6 wide area network prefix to be consulted.After BRAS receives the second configuring request message, return the second configuration response message to PC, in the second configuration response message, config option type is IPv6 wide area network prefix config option, and corresponding data field comprises the IPv6 wide area network prefix consulting to confirm.The value of this IPv6 wide area network prefix config option can be set to 3, and the wide area network prefix of specifying an overall situation unique for ppp link with this, can generate wide area network IPv6 address according to this wide area network prefix and interface ID.
In negotiations process, can also carry out the negotiation of dns address, namely PC sends the 4th configuring request message to BRAS, and in the 4th configuring request message, config option type is DNS config option, and corresponding data field comprises active and standby dns address to be consulted.After BRAS receives the 4th configuring request message, return the 4th configuration response message to PC, in the 4th configuration response message, config option type is DNS config option, and corresponding data field comprises the active and standby dns address consulting to confirm.The value of this DNS config option can be set to 6, realizes the distribution of dns address with this, and then realizes the access of PC to internet site.
When configuration of IP v6 wide area network prefix, can also be configured the lifetime of this prefix, namely PC sends the 5th configuring request message to BRAS, in 5th configuring request message, config option type is IPv6 wide area network prefix lifetime config option, and corresponding data field comprises first-selected lifetime and the available lifetime of IPv6 wide area network prefix to be consulted.After BRAS receives the 5th configuring request message, the 5th configuration response message is returned to PC, in 5th configuration response message, config option type is IPv6 wide area network prefix lifetime config option, and corresponding data field comprises the first-selected lifetime and available lifetime of consulting the IPv6 wide area network prefix confirmed.The value of this IPv6 wide area network prefix lifetime config option can be set to 4, and with this for IPv6 wide area network prefix specifies a lifetime, wherein the lifetime comprises effectively and first-selected two parameters, and lifetime adjustable length, defaultly can be set to first-selected 7 days, effective 30 days.
Before the prefix of IPv6 is held consultation, can also hold consultation to the type of the terminal side equipment of initiating, namely terminal side equipment sends the 7th configuring request message to BRAS, in 7th configuring request message, config option type is the terminal side equipment config option of initiating, and corresponding data field comprises the type of terminal side equipment to be consulted.After BRAS receives the 7th configuring request message, return the 7th configuration response message to terminal side equipment, in the 7th configuration response message, config option type is terminal side equipment config option, and corresponding data field comprises the type of consulting the terminal side equipment confirmed.Terminal side equipment carries out the negotiation of the prefix of IPv6 according to the type of consulting the terminal side equipment confirmed.The value of this terminal side equipment config option can be set to 2, carrys out the type of identification terminal side apparatus with this.The type can comprise PC, HGW, mobile phone, sensor.Can also be followed the trail of Certificate Authority and safety by this option and there is booster action.
In the bridge type gateway scene of the present embodiment, because the terminal side equipment of initiating is PC, therefore it can select the content of consulting to comprise the lifetime, dns address etc. of IPv6 wide area network prefix, IPv6 wide area network prefix, and in route type gateway scene, then except consulting these contents, can also to the negotiation of the contents such as IPv6 local area network (LAN) prefix, the lifetime of IPv6 local area network (LAN) prefix, the distribution of NTP address.
As shown in Figure 4, be the negotiation schematic flow sheet under route type gateway scene in the another embodiment of IPv6 address distribution method of the present invention.In the present embodiment, except undertaken by HGW and BRAS lifetime of IPv6 wide area network prefix, dns address, terminal side equipment the negotiation of type (this part can with reference to the negotiations process of the bridge type gateway scene of a upper embodiment, here no longer describe in detail) outside, can also hold consultation to following content:
HGW sends the second configuring request message to BRAS, and in the second configuring request message, config option type is IPv6 wide area network prefix config option, and corresponding data field comprises IPv6 wide area network prefix to be consulted.After BRAS receives the second configuring request message, return the second configuration response message to HGW, in the second configuration response message, config option type is IPv6 wide area network prefix config option, and corresponding data field comprises the IPv6 wide area network prefix consulting to confirm.
HGW sends the 3rd configuring request message to BRAS, and in the 3rd configuring request message, config option type is IPv6 local area network (LAN) prefix config option, and corresponding data field comprises IPv6 local area network (LAN) prefix to be consulted.After BRAS receives the second configuring request message, return the 3rd configuration response message to HGW, in the 3rd configuration response message, config option type is IPv6 local area network (LAN) prefix config option, and corresponding data field comprises the IPv6 local area network (LAN) prefix consulting to confirm.
HGW, by sending the second configuring request message and the 3rd configuring request message to BRAS, all consults the wide area network prefix of IPv6 and local area network (LAN) prefix, and obtains wide area network address and the lan address of IPv6 in conjunction with interface ID.The value of this IPv6 local area network (LAN) prefix config option is chosen as 8.
After the negotiation of IPv6 local area network (LAN) prefix, the configuration of the lifetime of IPv6 local area network (LAN) prefix can also be carried out by the 6th configuring request message, namely HGW sends the 6th configuring request message to BRAS, in 6th configuring request message, config option type is IPv6 local area network (LAN) prefix lifetime config option, and corresponding data field comprises first-selected lifetime and the available lifetime of IPv6 local area network (LAN) prefix to be consulted.After BRAS receives the 6th configuring request message, the 6th configuration response message is returned to HGW, in 6th configuration response message, config option type is IPv6 local area network (LAN) prefix lifetime config option, and corresponding data field comprises the first-selected lifetime and available lifetime of consulting the IPv6 local area network (LAN) prefix confirmed.The value of this IPv6 local area network (LAN) prefix lifetime config option is chosen as 10.
In addition, can also hold consultation to the length information of IPv6 local area network (LAN) prefix, namely HGW sends the tenth configuring request message to BRAS, in tenth configuring request message, config option type is IPv6 local area network (LAN) prefix length config option, and corresponding data field comprises IPv6 local area network (LAN) prefix length information to be consulted.After BRAS receives the tenth configuring request message, the tenth configuration response message is returned to HGW, in tenth configuration response message, config option type is IPv6 local area network (LAN) prefix length config option, and corresponding data field comprises the IPv6 local area network (LAN) prefix length information consulting to confirm.The value of this IPv6 local area network (LAN) prefix length config option is chosen as 9, the network segment for home network allocated length is applicable to is carried out with this, suggestion is/64 network segments, also shorter or longer address prefix can be distributed, such as/63 network segments (realizing the cable network in home network, each one/64 network segments of wireless network) ,/56 network segments or/48 network segments for one family.
In route type gateway scene, it can also be the address of HGW distribution default gateway, the next hop address pointed by data is outwards sent as route type home gateway, the address that this address is different according to the equipment choice of different manufacturers, it can be the WAN port address of HGW, also can be BRAS downstream interface address, i.e. PPP session local side IPv6 address, or the Link local address adopting PPP session BRAS side.This negotiation comprises: terminal side equipment sends the 8th configuring request message to BRAS, and in the 8th configuring request message, config option type is default gateway address config option, and corresponding data field comprises default gateway address to be consulted.After BRAS receives the 8th configuring request message, return the 8th configuration response message to terminal side equipment, in the 8th configuration response message, config option type is default gateway address config option, and corresponding data field comprises the default gateway address consulting to confirm.The value of this default gateway address config option is chosen as 5.
Consider that route type home gateway may need synchronous with the carrier network retention time, NTP (Network Time Protocol) (Network Time Protocol can be added, be called for short NTP) negotiation of address, namely HGW sends the 9th configuring request message to BRAS, in 9th configuring request message, config option type is NTP Address Configuration Option, and corresponding data field comprises active and standby NTP address to be consulted.After BRAS receives the 9th configuring request message, return the 9th configuration response message to HGW, in the 9th configuration response message, config option type is NTP Address Configuration Option, and corresponding data field comprises the active and standby NTP address consulting to confirm.This NTP Address Configuration Option value is chosen as 7.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can have been come by the hardware that program command is relevant, aforesaid program can be stored in a computer read/write memory medium, this program, when performing, performs the step comprising said method embodiment; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium.
As shown in Figure 5, be the structural representation of an embodiment of IPv6 address allocation system of the present invention.In the present embodiment, IPv6 address allocation system comprises terminal side equipment 1 and BRAS2.Wherein terminal side equipment 1 is responsible for when initiating PPP connection request to network side, the network parameter carrying out control protocol protocol option Network Based is consulted, in negotiations process, the first configuring request message is sent to BRAS 2, in first configuring request message, config option type is interface identifier config option, corresponding data field comprises interface ID to be consulted, and after interface ID has consulted, the negotiation of the prefix of IPv6 is carried out by least one configuring request message and BRAS 2, and according to receiving the negotiation result that returns of BRAS 2 and interface ID generates IPv6 address, realize Address Autoconfiguration.BRAS 2, after receiving the first configuring request message, returns the first configuration response message to terminal side equipment, and in the first configuration response message, config option type is interface identifier config option, and corresponding data field comprises the interface ID consulting to confirm.
Terminal side equipment 1 can be PC, HGW, mobile phone or transducer, and the PPP message format in negotiations process and negotiations process all with reference to the embodiment of aforementioned IPv6 address distribution method, just can repeat here no longer one by one.
The network parameter of the NCP protocol option during the embodiment of the present invention is connected by PPP has consulted the negotiation of the prefix of IPv6, realize Address Autoconfiguration, simplify configuration complexity, reduce network O&M cost, and this negotiations process can meet bridge type and route type home gateway scene simultaneously.
Finally should be noted that: above embodiment is only in order to illustrate that technical scheme of the present invention is not intended to limit; Although with reference to preferred embodiment to invention has been detailed description, those of ordinary skill in the field are to be understood that: still can modify to the specific embodiment of the present invention or carry out equivalent replacement to portion of techniques feature; And not departing from the spirit of technical solution of the present invention, it all should be encompassed in the middle of the technical scheme scope of request of the present invention protection.

Claims (13)

1. an IPv6 address distribution method, comprising:
When terminal side equipment initiates PPP connection request to network side, the network parameter carrying out control protocol protocol option Network Based is consulted, Network Control Protocol supports multiple network layer protocol, and the hexadecimal data of the protocol fields of corresponding IPCP and IPv6CP elects 0x8021 and 0x8057 as respectively;
In negotiations process, described terminal side equipment sends the first configuring request message to Broadband Remote Access Server, and in described first configuring request message, config option type is interface identifier config option, and corresponding data field comprises interface ID to be consulted;
After described Broadband Remote Access Server receives described first configuring request message, the first configuration response message is returned to described terminal side equipment, in described first configuration response message, config option type is interface identifier config option, and corresponding data field comprises the interface ID consulting to confirm;
After described interface ID has consulted, described terminal side equipment also carries out the negotiation of the prefix of IPv6 by least one configuring request message and described Broadband Remote Access Server, and according to receiving the negotiation result that returns of described Broadband Remote Access Server and interface ID generates IPv6 address, realize Address Autoconfiguration;
Wherein, config option is nested in the elongated data field in Network Control Protocol message structure, Network Control Protocol message structure is embedded in the elongated data field in PPP frame, the form of config option comprises config option type, length and configuration option field, and the negotiation of the prefix of IPv6 is realized by config option.
2. IPv6 address distribution method according to claim 1, wherein under bridge type gateway scene, described terminal side equipment is personal computer, and the negotiations process of the prefix of described IPv6 comprises:
Described personal computer sends the second configuring request message to described Broadband Remote Access Server, in described second configuring request message, config option type is IPv6 wide area network prefix config option, and corresponding data field comprises IPv6 wide area network prefix to be consulted;
After described Broadband Remote Access Server receives described second configuring request message, the second configuration response message is returned to described personal computer, in described second configuration response message, config option type is IPv6 wide area network prefix config option, and corresponding data field comprises the IPv6 wide area network prefix consulting to confirm.
3. IPv6 address distribution method according to claim 1, wherein under route type gateway scene, described terminal side equipment is home gateway, and the negotiations process of the prefix of described IPv6 comprises:
Described home gateway sends the second configuring request message to described Broadband Remote Access Server, and in described second configuring request message, config option type is IPv6 wide area network prefix config option, and corresponding data field comprises IPv6 wide area network prefix to be consulted;
After described Broadband Remote Access Server receives described second configuring request message, the second configuration response message is returned to described home gateway, in described second configuration response message, config option type is IPv6 wide area network prefix config option, and corresponding data field comprises the IPv6 wide area network prefix consulting to confirm;
Described home gateway sends the 3rd configuring request message to described Broadband Remote Access Server, and in described 3rd configuring request message, config option type is IPv6 local area network (LAN) prefix config option, and corresponding data field comprises IPv6 local area network (LAN) prefix to be consulted;
After described Broadband Remote Access Server receives described second configuring request message, the 3rd configuration response message is returned to described home gateway, in described 3rd configuration response message, config option type is IPv6 local area network (LAN) prefix config option, and corresponding data field comprises the IPv6 local area network (LAN) prefix consulting to confirm.
4. IPv6 address distribution method according to claim 2, wherein also comprises in negotiations process:
Described terminal side equipment sends the 4th configuring request message to described Broadband Remote Access Server, and in described 4th configuring request message, config option type is DNS config option, and corresponding data field comprises active and standby dns address to be consulted;
After described Broadband Remote Access Server receives described 4th configuring request message, the 4th configuration response message is returned to described terminal side equipment, in described 4th configuration response message, config option type is DNS config option, and corresponding data field comprises the active and standby dns address consulting to confirm.
5. IPv6 address distribution method according to claim 4, wherein also comprises in negotiations process:
Described terminal side equipment sends the 5th configuring request message to described Broadband Remote Access Server, in described 5th configuring request message, config option type is IPv6 wide area network prefix lifetime config option, and corresponding data field comprises first-selected lifetime and the available lifetime of IPv6 wide area network prefix to be consulted;
After described Broadband Remote Access Server receives described 5th configuring request message, the 5th configuration response message is returned to described terminal side equipment, in described 5th configuration response message, config option type is IPv6 wide area network prefix lifetime config option, and corresponding data field comprises the first-selected lifetime and available lifetime of consulting the IPv6 wide area network prefix confirmed.
6. IPv6 address distribution method according to claim 3, wherein also comprises in negotiations process:
Described terminal side equipment sends the 4th configuring request message to described Broadband Remote Access Server, and in described 4th configuring request message, config option type is DNS config option, and corresponding data field comprises active and standby dns address to be consulted;
After described Broadband Remote Access Server receives described 4th configuring request message, the 4th configuration response message is returned to described terminal side equipment, in described 4th configuration response message, config option type is DNS config option, and corresponding data field comprises the active and standby dns address consulting to confirm.
7. IPv6 address distribution method according to claim 6, wherein also comprises in negotiations process:
Described terminal side equipment sends the 5th configuring request message to described Broadband Remote Access Server, in described 5th configuring request message, config option type is IPv6 wide area network prefix lifetime config option, and corresponding data field comprises first-selected lifetime and the available lifetime of IPv6 wide area network prefix to be consulted;
After described Broadband Remote Access Server receives described 5th configuring request message, the 5th configuration response message is returned to described terminal side equipment, in described 5th configuration response message, config option type is IPv6 wide area network prefix lifetime config option, and corresponding data field comprises the first-selected lifetime and available lifetime of consulting the IPv6 wide area network prefix confirmed.
8. IPv6 address distribution method according to claim 7, wherein also comprises in negotiations process:
Described home gateway sends the 6th configuring request message to described Broadband Remote Access Server, in described 6th configuring request message, config option type is IPv6 local area network (LAN) prefix lifetime config option, and corresponding data field comprises first-selected lifetime and the available lifetime of IPv6 local area network (LAN) prefix to be consulted;
After described Broadband Remote Access Server receives described 6th configuring request message, the 6th configuration response message is returned to described home gateway, in described 6th configuration response message, config option type is IPv6 local area network (LAN) prefix lifetime config option, and corresponding data field comprises the first-selected lifetime and available lifetime of consulting the IPv6 local area network (LAN) prefix confirmed.
9. the IPv6 address distribution method according to Claims 2 or 3, wherein before the negotiation of the prefix of IPv6, also comprises:
Described terminal side equipment sends the 7th configuring request message to described Broadband Remote Access Server, in described 7th configuring request message, config option type is the terminal side equipment config option of initiating, and corresponding data field comprises the type of described terminal side equipment to be consulted;
After described Broadband Remote Access Server receives described 7th configuring request message, the 7th configuration response message is returned to described terminal side equipment, in described 7th configuration response message, config option type is terminal side equipment config option, and corresponding data field comprises the type of consulting the described terminal side equipment confirmed;
Described terminal side equipment carries out the negotiation of the prefix of IPv6 according to the type of consulting the described terminal side equipment confirmed.
10. the IPv6 address distribution method according to claim 4 or 6, wherein also comprises in negotiations process:
Described terminal side equipment sends the 8th configuring request message to described Broadband Remote Access Server, and in described 8th configuring request message, config option type is default gateway address config option, and corresponding data field comprises default gateway address to be consulted;
After described Broadband Remote Access Server receives described 8th configuring request message, the 8th configuration response message is returned to described terminal side equipment, in described 8th configuration response message, config option type is default gateway address config option, and corresponding data field comprises the default gateway address consulting to confirm.
11. IPv6 address distribution methods according to claim 6, wherein also comprise in negotiations process:
Described home gateway sends the 9th configuring request message to described Broadband Remote Access Server, in described 9th configuring request message, config option type is NTP (Network Time Protocol) Address Configuration Option, and corresponding data field comprises active and standby NTP (Network Time Protocol) address to be consulted;
After described Broadband Remote Access Server receives described 9th configuring request message, the 9th configuration response message is returned to described home gateway, in described 9th configuration response message, config option type is NTP (Network Time Protocol) Address Configuration Option, and corresponding data field comprises the active and standby NTP (Network Time Protocol) address consulting to confirm.
12. IPv6 address distribution methods according to claim 3, wherein also comprise in negotiations process:
Described home gateway sends the tenth configuring request message to described Broadband Remote Access Server, in described tenth configuring request message, config option type is IPv6 local area network (LAN) prefix length config option, and corresponding data field comprises IPv6 local area network (LAN) prefix length information to be consulted;
After described Broadband Remote Access Server receives described tenth configuring request message, the tenth configuration response message is returned to described home gateway, in described tenth configuration response message, config option type is IPv6 local area network (LAN) prefix length config option, and corresponding data field comprises the IPv6 local area network (LAN) prefix length information consulting to confirm.
13. 1 kinds of IPv6 address allocation systems, comprising:
Terminal side equipment, during for initiating PPP connection request to network side, the network parameter carrying out control protocol protocol option Network Based is consulted, Network Control Protocol supports multiple network layer protocol, the hexadecimal data of the protocol fields of corresponding IPCP and IPv6CP elects 0x8021 and 0x8057 as respectively, in negotiations process, the first configuring request message is sent to Broadband Remote Access Server, in described first configuring request message, config option type is interface identifier config option, corresponding data field comprises interface ID to be consulted, and after described interface ID has consulted, the negotiation of the prefix of IPv6 is carried out by least one configuring request message and described Broadband Remote Access Server, and according to receiving the negotiation result that returns of described Broadband Remote Access Server and interface ID generates IPv6 address, realize Address Autoconfiguration,
Broadband Remote Access Server, after receiving described first configuring request message, return the first configuration response message to described terminal side equipment, in described first configuration response message, config option type is interface identifier config option, and corresponding data field comprises the interface ID consulting to confirm;
Wherein, config option is nested in the elongated data field in Network Control Protocol message structure, Network Control Protocol message structure is embedded in the elongated data field in PPP frame, the form of config option comprises config option type, length and configuration option field, and the negotiation of the prefix of IPv6 is realized by config option.
CN201010228779.4A 2010-07-16 2010-07-16 IPv6 address distribution method and system Active CN102340546B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010228779.4A CN102340546B (en) 2010-07-16 2010-07-16 IPv6 address distribution method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010228779.4A CN102340546B (en) 2010-07-16 2010-07-16 IPv6 address distribution method and system

Publications (2)

Publication Number Publication Date
CN102340546A CN102340546A (en) 2012-02-01
CN102340546B true CN102340546B (en) 2015-10-14

Family

ID=45516043

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010228779.4A Active CN102340546B (en) 2010-07-16 2010-07-16 IPv6 address distribution method and system

Country Status (1)

Country Link
CN (1) CN102340546B (en)

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624707B (en) * 2012-02-22 2018-04-17 中兴通讯股份有限公司 A kind of method and system of negotiation IPv6 information
US8982815B2 (en) * 2012-04-24 2015-03-17 Mediatek Inc. Apparatuses and methods for IPV6 address acquisition
CN105245638B (en) * 2012-04-28 2019-06-21 华为技术有限公司 Address distribution method, equipment and system
CN102984295B (en) * 2012-12-07 2015-08-26 中兴通讯股份有限公司 A kind of mobile terminal and address distribution method thereof
CN103384282B (en) * 2013-07-31 2017-06-20 北京华为数字技术有限公司 The method and BRAS of a kind of acquisition IPV6ND addresses
CN104717141B (en) * 2013-12-13 2018-02-13 中国电信股份有限公司 Realize the method and system of ICP differentiated service guarantees
WO2015131327A1 (en) * 2014-03-04 2015-09-11 华为终端有限公司 Ipv6 address assignment method and device
CN104954161A (en) * 2014-03-28 2015-09-30 中兴通讯股份有限公司 IPv6 transitional technology type processing method, device and system
CN105591848A (en) * 2014-10-20 2016-05-18 中兴通讯股份有限公司 Authentication method and device of IPv6 stateless automatic configuration
CN105681480A (en) * 2014-11-17 2016-06-15 中兴通讯股份有限公司 Point-to-point protocol (PPP) dial on demand method and equipment
CN106161662A (en) * 2015-03-24 2016-11-23 中兴通讯股份有限公司 A kind of method and apparatus generating internet protocol address prefix
CN105282266A (en) * 2015-06-30 2016-01-27 清华大学 IPV6 address generating and analyzing methods and systems
WO2017121134A1 (en) * 2016-01-11 2017-07-20 Huawei Technologies Co., Ltd. Method for node identification and service advertisement in communication networks
CN107645391B (en) * 2016-07-21 2022-05-27 深圳市中兴通讯技术服务有限责任公司 Port configuration method and device of interface expansion equipment
CN106027697B (en) * 2016-08-01 2019-02-05 清华大学 A kind of address IPv6 generation project management system
EP3883203A4 (en) * 2018-12-26 2022-03-02 Huawei Technologies Co., Ltd. Ipv6 address configuration method and router device
CN113132503B (en) * 2019-12-31 2022-05-24 华为技术有限公司 Address allocation method and device
CN114448933A (en) * 2020-10-20 2022-05-06 华为技术有限公司 IP address allocation method, device and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6487598B1 (en) * 1996-07-29 2002-11-26 Cisco Technology, Inc. Virtual dial-up protocol for network communication
CN1744596A (en) * 2004-09-01 2006-03-08 华为技术有限公司 Method for host obtaining network allocation parameterns in IPV6 network
CN101202720A (en) * 2006-12-15 2008-06-18 中国电信股份有限公司 Method for establishing gateway equipment and method for processing data of gateway equipment
CN101310492A (en) * 2006-03-20 2008-11-19 客得富移动通信股份有限公司 Apparatus and method for effective ipv6 address in dial-up networking

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6487598B1 (en) * 1996-07-29 2002-11-26 Cisco Technology, Inc. Virtual dial-up protocol for network communication
CN1744596A (en) * 2004-09-01 2006-03-08 华为技术有限公司 Method for host obtaining network allocation parameterns in IPV6 network
CN101310492A (en) * 2006-03-20 2008-11-19 客得富移动通信股份有限公司 Apparatus and method for effective ipv6 address in dial-up networking
CN101202720A (en) * 2006-12-15 2008-06-18 中国电信股份有限公司 Method for establishing gateway equipment and method for processing data of gateway equipment

Also Published As

Publication number Publication date
CN102340546A (en) 2012-02-01

Similar Documents

Publication Publication Date Title
CN102340546B (en) IPv6 address distribution method and system
JP4652944B2 (en) Network service selection, authentication and stateless autoconfiguration in IPv6 access networks
CN102882699B (en) The distribution method of fringe node and device and fringe node controller
CN100507895C (en) Serving network selection and multihoming using IP access network
CA2396753C (en) Address acquisition
EP3021528B1 (en) Gre tunnel implementation method, access device and convergence gateway
CN104519097B (en) The acquisition of port block resource, port block resource distribution method and device
CN102984295B (en) A kind of mobile terminal and address distribution method thereof
CN101321111A (en) Communication method and device, server, and computer readable recording medium
EP2439903B1 (en) Method for providing information, home gateway and home network system
CN102752413B (en) Dynamic Host Configuration Protocol server system of selection and the network equipment
CN102238075A (en) IPv6 (Internet Protocol version 6) routing establishing method based on Ethernet Point-to-Point Protocol and access server
CN103731394A (en) Method and equipment for configuring IPv6 transitional technologies on CPE
CN104333610A (en) IPv6 address allocation method and device
CN101984636A (en) Prefix distribution method, device and system
CN102959906B (en) Routing method and device for host in multi-homing site
CN101127762A (en) An information interaction method and system based on dynamic host configuration protocol
CN101160916A (en) Method and system for automatically distributing the service to the ppp access terminal
CN102340548B (en) A kind of control method of IPv6 user's access and device
EP3086508B1 (en) Fiber-to-the-distribution point device and communication method therefor
CN102724333A (en) Method, device and system for setting up IPv6 (internet protocol version 6) rapid deployment tunnel
CN102480476A (en) Multi-service access method based on DHCP protocol extension
WO2015123947A1 (en) Method and apparatus for delivering local area network information
CN103141072A (en) Ip address obtaining method and network access device
CN102299860B (en) Acquisition method and equipment for path maximum transmission unit (Pathmtu)

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