CN1744596B - Method for host obtaining network allocation parameterns in IPV6 network - Google Patents
Method for host obtaining network allocation parameterns in IPV6 network Download PDFInfo
- Publication number
- CN1744596B CN1744596B CN 200410075341 CN200410075341A CN1744596B CN 1744596 B CN1744596 B CN 1744596B CN 200410075341 CN200410075341 CN 200410075341 CN 200410075341 A CN200410075341 A CN 200410075341A CN 1744596 B CN1744596 B CN 1744596B
- Authority
- CN
- China
- Prior art keywords
- host
- network
- dns
- wins
- ipv6
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明涉及一种IPv6网络中主机获取网络配置参数的方法。该方法包括:无法与基于IPv6的动态主机配置协议DHCPv6服务器通信的主机接入IPv6网络后,网络端将需要向主机端发送的网络配置参数承载于可扩展字段内容的无状态地址分配过程中的路由宣告报文或基于PPP的IPv6CP过程报文中发送给主机端,使得主机可以获得需要的Prefix、DNS和/或WINS参数。本发明是在PPP拨号的IPv6CP阶段一次性完成网络配置参数的配置工作,或者通过无状态地址配置过程进行网络配置参数的获取。因此,本发明所述的方法有效地解决了不支持DHCPv6协议的主机同样可以获得访问网络所需要的网络配置参数。
The invention relates to a method for a host in an IPv6 network to acquire network configuration parameters. The method includes: after the host that cannot communicate with the IPv6-based DHCPv6 server accesses the IPv6 network, the network end carries the network configuration parameters that need to be sent to the host end in the stateless address allocation process of the expandable field content The route announcement message or the PPP-based IPv6CP process message is sent to the host side, so that the host can obtain the required Prefix, DNS and/or WINS parameters. The present invention completes the configuration work of network configuration parameters at one time in the IPv6CP stage of PPP dialing, or obtains network configuration parameters through a stateless address configuration process. Therefore, the method of the present invention effectively solves the problem that hosts that do not support the DHCPv6 protocol can also obtain network configuration parameters required for accessing the network.
Description
技术领域 technical field
本发明涉及网络通信技术领域,尤其涉及一种IPv6网络中主机获取网络配置参数的方法。 The invention relates to the technical field of network communication, in particular to a method for a host in an IPv6 network to acquire network configuration parameters. the
背景技术 Background technique
在RFC2472(RFC,请求注解)中,定义了IPv6(第六版互联网协议)网络下的PPP(点对点协议)使用,标准中定义了关于IPv6CP(IPv6控制协议)相关的Interface-Identifier(接口标志符)和IPv6-Compression-Protocol(IPv6压缩协议)两个属性,但并没有定义包括地址Prefix(前缀)、DNS(域名系统)和WINS(视窗网际网络名称服务)等方面的属性。因此,在PPP拨号后,需要进行地址Prefix、DNS、WINS等网络访问参数的获取。 In RFC2472 (RFC, Request for Comments), the use of PPP (Point-to-Point Protocol) under the IPv6 (Sixth Internet Protocol) network is defined, and the Interface-Identifier (interface identifier) related to IPv6CP (IPv6 Control Protocol) is defined in the standard ) and IPv6-Compression-Protocol (IPv6 Compression Protocol), but do not define attributes including address Prefix (prefix), DNS (Domain Name System) and WINS (Windows Internet Name Service). Therefore, after PPP dial-up, it is necessary to obtain network access parameters such as address Prefix, DNS, and WINS. the
目前,比较通行的获取地址Prefix、DNS、WINS等参数的方法是:在IPv6情况下,主机首先通过PPP的IPv6CP获取Interface-Identifier后,生成Link-Local Address(链路本地地址);然后,进入无状态地址配置或有状态地址配置的过程,并由无状态地址配置或有状态地址配置的过程完成Prefix等相关网络访问参数的获取工作。 At present, the more common way to obtain address Prefix, DNS, WINS and other parameters is: in the case of IPv6, the host first obtains Interface-Identifier through PPP IPv6CP, and then generates Link-Local Address (link-local address); then, enter The process of stateless address configuration or stateful address configuration, and the acquisition of Prefix and other related network access parameters is completed by the process of stateless address configuration or stateful address configuration. the
由于在IPv4(第四版互联网协议)情况下,PPP主机可以通过PPP过程直接获取相应的IPv4地址和DNS等网络访问参数,而在IPv6情况下,如果无法通过PPP过程直接获取所述的Prefix、DNS、WINS等网络访问参数,则无法使得IPv4与IPv6网络达到很好的兼容互通,不便于针对网络传输的业务的统一运营管理。 Because under the situation of IPv4 (the fourth version of the Internet protocol), the PPP host can directly obtain network access parameters such as corresponding IPv4 addresses and DNS through the PPP process, and under the IPv6 situation, if it is impossible to directly obtain the described Prefix, Network access parameters such as DNS and WINS cannot make IPv4 and IPv6 networks compatible and interoperable, and it is not convenient for unified operation and management of services transmitted over the network. the
另外,在ITEF(Internet Engineering Task Force,互联网工程任务组)的RFC2461(RFC,请求注释)和RFC2462中规定了在IPv6(第六版互联网协议)网络中用户如何通过IPv6无状态地址分配获得IPv6的地址。具体的IPv6无状态地址分配过程包括:IPv6的主机在开机时,首先生成自己的If-ID(interface identifier,接口标识),并使用If-ID生成link-local(链路本地)地址,整个过程和方法可以参见RFC2373,然后主机开始进行DAD(重复地址检测)过程,检测过程结束,则完成无状态地址分配过程,所述的DAD过程如图1所示,具体包括以下步骤: In addition, RFC2461 (RFC, request for comment) and RFC2462 of ITEF (Internet Engineering Task Force, Internet Engineering Task Force) stipulate how users can obtain IPv6 addresses through IPv6 stateless address allocation in IPv6 (sixth edition Internet Protocol) networks. address. The specific IPv6 stateless address allocation process includes: when an IPv6 host is powered on, it first generates its own If-ID (interface identifier, interface identifier), and uses the If-ID to generate a link-local (link-local) address. And method can refer to RFC2373, then host starts to carry out DAD (Duplicate Address Detection) process, and detection process ends, then finishes the stateless address allocation process, described DAD process as shown in Figure 1, specifically comprises the following steps:
步骤11:通过组播发送NS(邻居请求)报文,报文中携带着本地生成的link-local地址,以便于在路由器上,比较所述的link-local地址与同该主机在一个组播域中的其他主机link-local地址是否相同,即同一个组播域中是否出现重复的link-local地址,如果发现重复,则执行步骤12,如果不重复,则丢弃所述的NS报文;
Step 11: Send an NS (Neighbor Solicitation) message through multicast, carrying the link-local address generated locally in the message, so that on the router, compare the link-local address with the same host in a multicast Whether the link-local addresses of other hosts in the domain are the same, that is, whether there are duplicate link-local addresses in the same multicast domain, if duplicates are found, then perform
步骤12:向发出NS报文的主机发送NA(邻居宣告)报文。 Step 12: Send a NA (Neighbor Advertisement) message to the host that sent the NS message. the
步骤13:在进行DAD检测的同时或者之后,主机可以发送RS报文给路由器使用无状态地址分配申请site-local(站点本地)和/或global(全局)地址的Prefix(前缀); Step 13: At the same time or after DAD detection, the host can send an RS packet to the router to apply for site-local (site local) and/or global (global) address Prefix (prefix) using stateless address allocation;
步骤14:路由器将步骤13所请求的相关的地址Prefix包括地址的租期等信息通过RA(路由宣告)报文发送给主机,完成地址分配的过程。
Step 14: The router sends the relevant address Prefix requested in
在整个无状态地址分配过程中,主机可以通过无状态地址分配得到地址的Prefix,并通过自己的If-ID生成相应的site-local(节点本地)和/或global(全局)地址。可以看出,同IPv4(第四版互联网协议)相比,使用无状态地址分配在相对较小的网络下可以不需要IPv4的DHCP(动态主机配置协议)服务器,简化了网络的配置同时也降低了资金投入。 During the entire stateless address allocation process, the host can obtain the prefix of the address through stateless address allocation, and generate corresponding site-local (node local) and/or global (global) addresses through its own If-ID. It can be seen that, compared with IPv4 (fourth version of the Internet Protocol), the use of stateless address assignment does not require the IPv4 DHCP (Dynamic Host Configuration Protocol) server in a relatively small network, which simplifies network configuration and reduces invested capital. the
然而,在该方案中没有解决主机获取相应的DNS、WINS等网络配置参 数的问题,此时,用户实际上无法访问Internet(互联网),这就给个人使用Internet网络带来了很大的麻烦。基于这一原因,在RFC3736中对无状态地址分配的DNS获取进行了补充,但还是使用了DHCPv6(基于IPv6的动态主机配置协议)的选项,是通过DHCPv6的协议来完成相关DNS等网络配置参数的获取,这同较小网络下为了避免使用DHCP服务器的设计初衷相背离,也使得小网络中需要同时支持ND(邻居发现)和DHCPv6协议,增加了实现较小网络的复杂程度。 Yet, in this scheme, do not solve the problem that host computer obtains corresponding network configuration parameters such as DNS, WINS, at this moment, the user can't visit Internet (Internet) actually, and this has just brought very big trouble to the personal use Internet network . For this reason, in RFC3736, the DNS acquisition of stateless address assignment is supplemented, but the option of DHCPv6 (Dynamic Host Configuration Protocol based on IPv6) is still used, and the related DNS and other network configuration parameters are completed through the DHCPv6 protocol. This deviates from the original design intention of avoiding the use of a DHCP server in a small network, and also requires the small network to support both ND (Neighbor Discovery) and DHCPv6 protocols, which increases the complexity of implementing a small network. the
综上所述,可以看出目前提供了IPv6网络中获取网络配置参数的方法均没有很好地解决IPv6网络中网络配置参数获取的问题。 In summary, it can be seen that none of the currently provided methods for obtaining network configuration parameters in an IPv6 network can well solve the problem of obtaining network configuration parameters in an IPv6 network. the
发明内容Contents of the invention
鉴于上述现有技术所存在的问题,本发明的目的是提供一种IPv6网络中主机获取网络配置参数的方法,从而使得DNS、WINS等网络配置参数的获取不再需要基于DHCPv6实现,降低了较小网络实现的复杂程度。 In view of the existing problems in the above-mentioned prior art, the purpose of the present invention is to provide a method for hosts in an IPv6 network to obtain network configuration parameters, so that the acquisition of network configuration parameters such as DNS and WINS no longer needs to be realized based on DHCPv6, and the relatively low cost is reduced. The complexity of the small network implementation. the
本发明的目的是通过以下技术方案实现的: The purpose of the present invention is achieved by the following technical solutions:
本发明提供了一种IPv6网络中主机获取网络配置参数的方法,包括:无法与DHCPv6(基于IPv6的动态主机配置协议)服务器通信的主机接入IPv6网络后,网络端将需要向主机端发送的网络配置参数承载于可扩展字段内容的协议报文中发送给主机端; The present invention provides a method for a host in an IPv6 network to obtain network configuration parameters, including: after a host that cannot communicate with a DHCPv6 (Dynamic Host Configuration Protocol based on IPv6) server accesses the IPv6 network, the network end will need to send the information to the host end The network configuration parameters are carried in the protocol message of the expandable field content and sent to the host;
所述的网络配置参数包括: The network configuration parameters described include:
前缀Prefix、域名系统DNS和/或视窗网际网络名称服务WINS参数,其中,所述的Prefix参数信息包括类型值、属性长度值、参数长度值、链路使用标志、自动配置标志,所述的DNS参数的信息包括类型值、属性长度值、DNS地址的数量或DNS地址信息,所述的WINS参数的信息包括类型值、属性长度值、WINS地址的数量或WINS地址信息; Prefix Prefix, Domain Name System DNS and/or Windows Internet Name Service WINS parameters, wherein the Prefix parameter information includes type value, attribute length value, parameter length value, link use sign, automatic configuration sign, and the DNS The parameter information includes type value, attribute length value, number of DNS addresses or DNS address information, and the information of the WINS parameter includes type value, attribute length value, number of WINS addresses or WINS address information;
所述网络端将需要向主机端发送的网络配置参数承载于可扩展字段内容的协议报文中发送给主机端包括: The network end sends the network configuration parameters that need to be sent to the host end to the host end in a protocol message containing the content of the expandable field, including:
通过扩展路由宣告报文RA中承载的内容信息把DNS和WINS参数随Prefix一起发送给主机端;或在预先定义Prefix、DNS和WINS格式后,将所述Prefix、DNS和WINS随IPv6网络中基于点对点协议PPP的IPv6CP过程报文一起发送给主机端; Send the DNS and WINS parameters along with the Prefix to the host end by expanding the content information carried in the route announcement message RA; The IPv6CP process message of the point-to-point protocol PPP is sent to the host side together;
另外,所述的DNS和WINS参数信息中还包括:保留字段。 In addition, the DNS and WINS parameter information also includes: a reserved field. the
在无状态地址分配过程中,本发明进一步包括: In the stateless address allocation process, the present invention further includes:
A、在无状态地址分配过程中,主机端向路由器端发送路由请求RS报文; A. During the stateless address allocation process, the host side sends a routing request RS message to the router side;
B、路由器向主机端返回路由宣告RA报文,报文中承载着为主机配置的Prefix、DNS和WINS参数信息。 B. The router returns a route announcement RA message to the host, and the message carries the Prefix, DNS and WINS parameter information configured for the host. the
所述的步骤B包括: Described step B comprises:
所述的DNS和WINS参数信息承载于RA报文的新定义的字段中。 The DNS and WINS parameter information are carried in newly defined fields of the RA message. the
在应用PPP的IPv6网络中,本发明进一步包括: In the IPv6 network using PPP, the present invention further includes:
对PPP阶段的IPv6CP报文内容进行扩展,并利用扩展内容的字段承载Prefix、DNS和WINS参数信息,随IPv6CP报文一起发送给主机端,主机端获取所述的Prefix、DNS和WINS参数。 The content of the IPv6CP message in the PPP stage is extended, and the field of the extended content is used to carry Prefix, DNS and WINS parameter information, and is sent to the host side along with the IPv6CP message, and the host side obtains the Prefix, DNS and WINS parameters. the
由上述本发明提供的技术方案可以看出,本发明是在PPP拨号的IPv6CP阶段一次性完成Prefix、IPv6-DNS和IPv6-WINS等参数的配置工作,或者通过无状态地址配置过程进行网络配置参数的获取。因此,本发明所述的方法有效地解决了不支持DHCPv6协议的主机同样可以获得访问网络所需要的网络配置参数。使得在较小的网络中不需要支持DHCPv6协议,因而可以省去DHCP服务器的硬件和软件设备,降低了小网络的实现复杂度及获取网络配置参数过程。且充分保持了同RFC2461和RFC2462等协议的兼容性。 As can be seen from the technical solution provided by the present invention above, the present invention completes the configuration work of parameters such as Prefix, IPv6-DNS and IPv6-WINS at one time in the IPv6CP stage of PPP dialing, or performs network configuration parameters through a stateless address configuration process. of acquisition. Therefore, the method of the present invention effectively solves the problem that hosts that do not support the DHCPv6 protocol can also obtain network configuration parameters required for accessing the network. Therefore, the DHCPv6 protocol does not need to be supported in a smaller network, thus the hardware and software equipment of the DHCP server can be omitted, and the implementation complexity of the small network and the process of obtaining network configuration parameters are reduced. And fully maintain the compatibility with protocols such as RFC2461 and RFC2462. the
附图说明Description of drawings
图1为无状态地址分配的过程示意图; Fig. 1 is a schematic diagram of the process of stateless address allocation;
图2为本发明所述的方法的流程图。 Figure 2 is a flow chart of the method of the present invention. the
具体实施方式 Detailed ways
本发明所述的方法的核心是将无法与DHCPv6(基于IPv6的动态主机配置协议)服务器通信的主机接入IPv6网络后,网络端将需要向主机端发送的网络配置参数承载于可扩展字段内容的协议报文中发送给主机端。 The core of the method of the present invention is that after the host that cannot communicate with the DHCPv6 (Dynamic Host Configuration Protocol based on IPv6) server is connected to the IPv6 network, the network end will carry the network configuration parameters that need to be sent to the host end in the expandable field content sent to the host in the protocol packet. the
本发明所述的方法如图2所示,主要包括: The method of the present invention is as shown in Figure 2, mainly comprises:
步骤21:主机通过路由器接入IPv6网络。 Step 21: The host accesses the IPv6 network through a router. the
步骤22:确定主机无法与DHCPv6服务器通信,即无法通过DHCPv6服务器获取网络配置参数信息;所述的无法与DHCPv6服务器通信主要是指一些较小的网络未设置DHCPv6服务器,从而使得主机通过DHCP过程获取需要的网络配置参数。 Step 22: Determine that the host cannot communicate with the DHCPv6 server, that is, the network configuration parameter information cannot be obtained through the DHCPv6 server; the inability to communicate with the DHCPv6 server mainly means that some smaller networks do not have a DHCPv6 server, so that the host obtains through the DHCP process Required network configuration parameters. the
步骤23:路由器将主机需要的网络配置参数承载于向主机发送的可扩展字段内容的协议报文中发送给主机端; Step 23: The router sends the network configuration parameters required by the host to the host in the protocol message with the content of the expandable field sent to the host;
所述的可扩展字段内容的协议报文包括:在无状态地址分配过程中,为IPv6网络中的无状态地址分配过程中的路由宣告报文;在IPv6网络中的PPP过程中,为PPP过程中的IPv6CP过程报文。不同的网络可以根据实际情况采用不同的协议报文将Prefix、IPv6-DNS和IPv6-WINS等网络配置参数发送给主机端。 The protocol message of the expandable field content includes: in the stateless address allocation process, it is a route announcement message in the stateless address allocation process in the IPv6 network; in the PPP process in the IPv6 network, it is the PPP process IPv6CP procedure message in . Different networks can use different protocol messages to send network configuration parameters such as Prefix, IPv6-DNS, and IPv6-WINS to the host side according to actual conditions. the
下面将分别对无状态地址分配过程及PPP过程中网络配置参数获取的方式进行描述。 The following will describe the stateless address allocation process and the way of acquiring network configuration parameters in the PPP process respectively. the
在无状态地址分配过程中,主机将会发起RS报文以获取相应的IP地址 Prefix和Prefix的相关参数,如租期等,路由器通过RA报文把这些属性发送给主机,因此,主机可以通过无状态地址分配得到地址的Prefix参数,并通过自己的If-ID(接口标识)生成相应的site-local和/或global地址,但不包括诸如DNS等相关信息,这样用户实际上将无法访问互联网。 In the process of stateless address allocation, the host will initiate an RS message to obtain the corresponding IP address Prefix and related parameters of the Prefix, such as the lease period, etc., and the router sends these attributes to the host through the RA message, so the host can pass Stateless address allocation obtains the Prefix parameter of the address, and generates the corresponding site-local and/or global address through its own If-ID (interface identification), but does not include related information such as DNS, so that users will not actually be able to access the Internet . the
为此,本发明中增加RA报文中的选项来完成DNS及WINS参数的传送,即通过扩展RA报文中承载的内容信息使得路由器能够把相应的DNS、WINS等参数也随Prefix参数信息一起发送给主机。 For this reason, the options in the RA message are increased in the present invention to complete the transmission of DNS and WINS parameters, that is, by expanding the content information carried in the RA message, the router can also use parameters such as corresponding DNS and WINS together with the Prefix parameter information sent to the host. the
根据RFC2461协议可知,RA报文中的属性参数的格式如表1所示: According to the RFC2461 protocol, the format of the attribute parameters in the RA message is shown in Table 1:
表1: Table 1:
0 1 2 3 0 1 1 2 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+-+-+-+
| Type | Length | Value | | Type | Length | Value |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+-+-+-+
~ ... ~ ~ ~
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+-+-+-+
其中: in:
Type:表示类型,这里可以这样定义: Type: Indicates the type, which can be defined as follows:
以下表2中内容为RFC2461协议中已经定义的值: The contents in Table 2 below are the values already defined in the RFC2461 protocol:
表2:
以下表3内容是为实现本发明需要新定义的Type值,当然也可以定义为其他值,只要不发生冲突即可: The following table 3 content is the Type value that needs to be newly defined for realizing the present invention, certainly also can be defined as other values, as long as no conflict occurs:
表3:
Length:表示属性长度,包括Type和Length本身的长度,以8bit为单位。不能为0,最大为255字节; Length: Indicates the length of the attribute, including the length of Type and Length itself, in units of 8 bits. Cannot be 0, the maximum is 255 bytes;
Value:具体的Option(属性、选项)内容。 Value: specific Option (attribute, option) content. the
所述的DNS参数信息的具体格式可以如表4所示: The specific format of the DNS parameter information can be shown in Table 4:
表4: Table 4:
0 1 2 3 0 1 2 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+-+-+-+
| Type | Length | List Number | Reserved | | Type | Length | List Number | Reserved |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+-+-+-+
| | | | |
+ + + + +
| | | | |
+ DNS Address + + DNS Address +
| | | | |
+ + + + +
| | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+-+-+-+
其中: in:
Type:8-bit,0x06,也可以为其他值,保证不冲突即可; Type: 8-bit, 0x06, other values can also be used, as long as there is no conflict;
Length:8-bit,整个属性长度,以8bits为长度单位; Length: 8-bit, the length of the entire attribute, with 8 bits as the length unit;
List Number:8-bit,DNS地址的个数,不能为0,值在1~255之间; List Number: 8-bit, the number of DNS addresses, cannot be 0, and the value is between 1 and 255;
Reserved:8-bit,保留,全部必须填0; Reserved: 8-bit, reserved, all must be filled with 0;
DNS Address:全部的DNS地址,数目同List Number中定义的,每个DNS Address的长度为128bits,16字节。如果有主备之分,那么第一个为主,其后的为备。 DNS Address: All DNS addresses, the number is the same as that defined in List Number, and the length of each DNS Address is 128bits, 16 bytes. If there is a master and a backup, then the first one is the master and the second one is the backup. the
所述的WINS参数信息的具体格式如表5所示: The specific format of the WINS parameter information is shown in Table 5:
表5: table 5:
0 1 2 3 0 1 2 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+-+-+-+
| Type | Length | List Number | Reserved | | Type | Length | List Number | Reserved |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+-+-+-+
| | | | |
+ + + + +
| | | | |
+ wins Address + + Wins Address +
| | | | |
+ + + + +
| | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+-+-+-+
Type:0x07,也可以为其他值,保证不冲突即可; Type: 0x07, other values can also be used, as long as there is no conflict;
Length:整个属性长度,以8bits为长度单位; Length: the length of the entire attribute, with 8 bits as the length unit;
List Number:DNS地址的个数,不能为0,值在1~255之间; List Number: The number of DNS addresses, which cannot be 0, and the value is between 1 and 255;
Reserved:保留,全部必须填0; Reserved: Reserved, all must be filled with 0;
WINS Address:全部的WINS地址,数目同List Number中定义的,每个WINS Address的长度为128bits,16字节。如果有主备之分,那么第一个为主,其后的为备。 WINS Address: All WINS addresses, the number is the same as that defined in List Number, the length of each WINS Address is 128bits, 16 bytes. If there is a master and a backup, then the first one is the master and the second one is the backup. the
DNS和WINS的属性在RA报文中,不是必选项,路由器发送RA报文时可以根据实际需要确定是否使用该属性。如果主机发送RS报文时,路由器使用该属性(两者或两者之一)表示路由器需要对主机的DNS或WINS进行相关的配置;在路由器定时发送的RA报文中可以不使用该属性,如果使用了该属性,则主机在收到报文后进行DNS和WINS参数的地址匹配,如果发现不一样表明路由器需要修改该属性,主机使用新的DNS和WINS地址。 The attributes of DNS and WINS are not mandatory in the RA message, and the router can determine whether to use this attribute according to the actual needs when sending the RA message. If the host sends the RS message, the router uses this attribute (both or one of the two) to indicate that the router needs to configure the DNS or WINS of the host; this attribute may not be used in the RA message sent by the router at regular intervals. If this attribute is used, the host will match the addresses of DNS and WINS parameters after receiving the message. If it is found to be different, it means that the router needs to modify this attribute, and the host will use the new DNS and WINS addresses. the
同样,如果主机不支持该属性,可以不理睬该属性,对RA报文的其他属性继续分析。 Similarly, if the host does not support this attribute, it can ignore this attribute and continue to analyze other attributes of the RA message. the
在IPv6网络的PPP过程中,首先定义Prefix、IPv6-DNS和IPv6-WINS参数的统一格式,然后在IPv6CP过程中,随IPv6CP过程报文一并发送给主 机,实现对主机的网络配置参数的配置;通过所述的IPv6CP可以实现建立、使能和中止IP模块的操作,IPCP报文在PPP没有达到网络层协议阶段以前不能进行交换,如果有IPCP包在到达此阶段前到达会被抛弃。利用IPv6CP报文传送网络配置参数信息,首先需要将各网络配置参数以符合IPv6CP报文格式的方式进行定义: In the PPP process of the IPv6 network, the unified format of the Prefix, IPv6-DNS and IPv6-WINS parameters is defined first, and then in the IPv6CP process, it is sent to the host together with the IPv6CP process message to realize the network configuration parameters of the host. Configuration; the operation of setting up, enabling and terminating the IP module can be realized by the IPv6CP, the IPCP message cannot be exchanged before the PPP does not reach the network layer protocol stage, if any IPCP packet arrives before this stage, it will be discarded. Using IPv6CP messages to transmit network configuration parameter information, firstly, each network configuration parameter needs to be defined in a way that conforms to the IPv6CP message format:
所述的IPv6CP过程报文的标准格式如表6所示: The standard format of the IPv6CP process message is shown in Table 6:
表6: Table 6:
0 1 2 3 0 1 1 2 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+-+-+-+
| Type | Length | Value | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+-+-+-+
~ ... ~ ~ ~
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+-+-+-+
其中: in:
Type:表示类型,这里可以这样定义: Type: Indicates the type, which can be defined as follows:
Length:表示属性长度,包括Type和Length本身的长度,以8bit为单位。不能为0,最大为255字节; Length: Indicates the length of the attribute, including the length of Type and Length itself, in units of 8 bits. Cannot be 0, the maximum is 255 bytes;
Value:具体的Option(属性、选项)内容。 Value: specific Option (attribute, option) content. the
表7所示的内容为RFC2472协议已经定义的值: The content shown in Table 7 is the value defined by the RFC2472 protocol:
表7:
为实现本发明,还需要新定义如表8所示的值,表8中的Type值也可以为其他值,只需保证属性值不冲突即可: In order to realize the present invention, it is also necessary to newly define values as shown in Table 8, and the Type value in Table 8 can also be other values, as long as it is guaranteed that the attribute values do not conflict:
表8:
其中IPv6-Prefix参数信息的具体格式可以如表9所示: The specific format of the IPv6-Prefix parameter information can be shown in Table 9:
0 1 2 3 0 1 2 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+-+-+-+
| Type | Length | Prefix Length |L|A| Reserved1 | | Type | Length | Prefix Length |L|A| Reserved1 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+-+-+-+
| Valid Lifetime | | Valid Lifetime |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+-+-+-+
| Preferred Lifetime | | Preferred Lifetime |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+-+-+-+
| Reserved2 | | Reserved2 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+-+-+-+
| | | | |
+ + + + +
| | | | |
+ IPv6-Prefix + + IPv6-Prefix +
| | | | |
+ + + + +
| | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+-+-+-+
Type:8-bit,0x03,也可以为其他值,保证不冲突即可; Type: 8-bit, 0x03, other values can also be used, as long as there is no conflict;
Length:8-bit,整个属性长度,以8bits为长度单位; Length: 8-bit, the length of the entire attribute, with 8 bits as the length unit;
Prefix Length:8-bit,表明Prefix的长度,以8bits为长度单位,范围在0~128之间; Prefix Length: 8-bit, indicating the length of the prefix, with 8 bits as the length unit, ranging from 0 to 128;
L:1-bit,1表示可以在链路上使用,0为禁止使用; L: 1-bit, 1 means it can be used on the link, 0 means it is prohibited;
A:1-bit,1表示可以进行自动配置,0表示禁止; A: 1-bit, 1 means automatic configuration is possible, 0 means forbidden;
Reserved1:6-bit,保留,全部必须填0; Reserved1: 6-bit, reserved, all must be filled with 0;
Valid Lifetime:32-bit无符号长整型,单位为秒,表示Prefix的有效时间,全1时表示无限长; Valid Lifetime: 32-bit unsigned long integer, the unit is second, indicating the valid time of Prefix, all 1 means infinite length;
Preferred Lifetime:32-bit无符号长整型,单位为秒,表示生成无状态配置地址后使用的时间,全1时表示无限长; Preferred Lifetime: 32-bit unsigned long integer, the unit is second, indicating the time used after generating the stateless configuration address, all 1 means infinite length;
Reserved2:32-bit,保留,全部必须填0; Reserved2: 32-bit, reserved, all must be filled with 0;
IPv6-Prefix:Prefix内容。 IPv6-Prefix: Prefix content. the
另外,所述的DNS参数和WINS参数的具体格式如上述的表4和表5的格式相同。 In addition, the specific formats of the DNS parameter and the WINS parameter are the same as those in Table 4 and Table 5 above. the
这三个参数属性在IPv6CP过程中是可选出现的,如果不出现,PPP过程后主机应该进行无状态地址配置或进行有状态地址配置(即DHCPv6)过程,并通过这些过程获取Prefix、Prefix、IPv6-DNS和IPv6-WINS等参数。如果出现的话,这三个参数必须全部出现,表示在IPv6下选择通过PPP的IPv6CP过程进行相应的三个参数的配置,如果配置成功主机将不再进行后续的自动配置过程。 These three parameter attributes are optional in the IPv6CP process. If they do not appear, the host should perform stateless address configuration or stateful address configuration (that is, DHCPv6) process after the PPP process, and obtain Prefix, Prefix, Parameters such as IPv6-DNS and IPv6-WINS. If it appears, these three parameters must all appear, which means that under IPv6, choose to configure the corresponding three parameters through the IPv6CP process of PPP. If the configuration is successful, the host will not perform the subsequent automatic configuration process. the
而且,如果使用三个参数属性,则需要同Interface-Identifier(接口标识)属性同时出现,即将三个参数承载于向主机发送接口标识的报文中发送给主机。 Moreover, if the three parameter attributes are used, they need to appear together with the Interface-Identifier (interface identifier) attribute, that is, the three parameters are carried in the message sending the interface identifier to the host and sent to the host. the
以上所述,仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求书的保护范围为准。 The above is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed in the present invention can easily think of changes or Replacement should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be determined by the protection scope of the claims. the
Claims (5)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN 200410075341 CN1744596B (en) | 2004-09-01 | 2004-09-01 | Method for host obtaining network allocation parameterns in IPV6 network |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN 200410075341 CN1744596B (en) | 2004-09-01 | 2004-09-01 | Method for host obtaining network allocation parameterns in IPV6 network |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN1744596A CN1744596A (en) | 2006-03-08 |
| CN1744596B true CN1744596B (en) | 2011-11-16 |
Family
ID=36139790
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN 200410075341 Expired - Fee Related CN1744596B (en) | 2004-09-01 | 2004-09-01 | Method for host obtaining network allocation parameterns in IPV6 network |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN1744596B (en) |
Families Citing this family (17)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7734818B2 (en) * | 2007-02-23 | 2010-06-08 | International Business Machines Corporation | Method to add IPV6 and DHCP support to the network support package |
| CN101183936B (en) * | 2007-12-04 | 2011-04-20 | 中兴通讯股份有限公司 | IPv6 identification load switching method in internet cipher key switch |
| CN101640923A (en) | 2009-08-20 | 2010-02-03 | 深圳华为通信技术有限公司 | Method and device for acquiring network configuration information |
| CN102130884A (en) * | 2010-01-19 | 2011-07-20 | 中兴通讯股份有限公司 | System and method for negotiating configuration of Internet protocol version 6 (IPv6) network parameters |
| CN102137170A (en) * | 2010-01-26 | 2011-07-27 | 中兴通讯股份有限公司 | Method and device for distributing IPv6 (Internet Protocol version 6) addresses |
| CN102158563B (en) | 2010-02-12 | 2013-10-30 | 华为技术有限公司 | Method, system and device for acquiring IPv6 (Internet Protocol Version 6) configuration information from IPv6 transition network |
| CN102340546B (en) * | 2010-07-16 | 2015-10-14 | 中国电信股份有限公司 | IPv6 address distribution method and system |
| CN102984036B (en) * | 2011-09-06 | 2018-03-02 | 中兴通讯股份有限公司 | Mobile terminal and its dial up on the telephone improved method and device |
| CN103167048A (en) * | 2011-12-12 | 2013-06-19 | 华为技术有限公司 | Method and device and system used for two-layer intercommunication and based on Internet Protocol version 6 (IPv6) |
| CN102624707B (en) * | 2012-02-22 | 2018-04-17 | 中兴通讯股份有限公司 | A kind of method and system of negotiation IPv6 information |
| CN102761629B (en) * | 2012-07-11 | 2016-01-06 | 华为终端有限公司 | The method of dns server address, Apparatus and system are set |
| CN102984294A (en) * | 2012-12-07 | 2013-03-20 | 中兴通讯股份有限公司 | IPv6 DNS address distribution and acquisition method and device |
| CN105681480A (en) * | 2014-11-17 | 2016-06-15 | 中兴通讯股份有限公司 | Point-to-point protocol (PPP) dial on demand method and equipment |
| CN106034166B (en) * | 2015-03-19 | 2020-03-10 | 中兴通讯股份有限公司 | A kind of network parameter configuration method and device of local area network |
| CN107231448A (en) * | 2016-03-25 | 2017-10-03 | 中兴通讯股份有限公司 | A kind of link establishing method, equipment and system |
| CN108848100B (en) * | 2018-06-27 | 2020-10-20 | 清华大学 | A stateful IPv6 address generation method and device |
| CN113660357B (en) * | 2021-08-17 | 2023-10-27 | 烽火通信科技股份有限公司 | Method and device for automatically acquiring IP address by IPv6 dual stack system |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1453962A (en) * | 2002-04-27 | 2003-11-05 | 三星电子株式会社 | Internetwork protocol and method for setting main machine address and selecting source address |
| US6691170B1 (en) * | 2000-03-28 | 2004-02-10 | Intel Corporation | Method and apparatus for simplifying addressing of a networked device |
| CN2629353Y (en) * | 2003-08-06 | 2004-07-28 | 浙江大学 | System for automatic generating IPV9 address and seeking corresponding IP address |
-
2004
- 2004-09-01 CN CN 200410075341 patent/CN1744596B/en not_active Expired - Fee Related
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6691170B1 (en) * | 2000-03-28 | 2004-02-10 | Intel Corporation | Method and apparatus for simplifying addressing of a networked device |
| CN1453962A (en) * | 2002-04-27 | 2003-11-05 | 三星电子株式会社 | Internetwork protocol and method for setting main machine address and selecting source address |
| CN2629353Y (en) * | 2003-08-06 | 2004-07-28 | 浙江大学 | System for automatic generating IPV9 address and seeking corresponding IP address |
Non-Patent Citations (1)
| Title |
|---|
| JP特开2004-72633A 2004.03.04 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN1744596A (en) | 2006-03-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN1744596B (en) | Method for host obtaining network allocation parameterns in IPV6 network | |
| CN101547223B (en) | Method, device and system for address configuration | |
| CN102158563B (en) | Method, system and device for acquiring IPv6 (Internet Protocol Version 6) configuration information from IPv6 transition network | |
| CN102984288B (en) | A kind of method and system of automatic management IPv6 address conflicts | |
| EP1841183B1 (en) | A method for updating the host's dns during the ipv6 stateless adress configuration and the apparatus thereof | |
| CN101729500B (en) | Method, device and system for identifying IP session | |
| US8582449B2 (en) | Apparatus and method for setting a default gateway address in a mobile communication system | |
| WO2010069181A1 (en) | Method and system for configuring ipv6 address | |
| JP2004507976A (en) | Assigning addresses to mobile stations | |
| CN102447746B (en) | Information supply method, family gateway and family network system | |
| CN103384282B (en) | The method and BRAS of a kind of acquisition IPV6ND addresses | |
| CN105359458A (en) | Network device communication method and network device | |
| JP5602946B2 (en) | Generation of IPV6 address for starting virtual leased line service | |
| CN102405629B (en) | Method and apparatus for connecting subscriber devices to an ipv6-capable aggregation network | |
| CN101222495A (en) | Method and router for IPv4 network host to access IPv6 network host | |
| CN102624707B (en) | A kind of method and system of negotiation IPv6 information | |
| CN1744597A (en) | Method for host use obtaining IP address parameters in IPV6 network | |
| CN103179227B (en) | The method of the Selection of chiller in IPv6 network and switching address configuration mode | |
| CN101257496A (en) | A method and system for obtaining configuration information | |
| CN101127762A (en) | A method and system for information interaction based on dynamic host configuration protocol | |
| CN103701942B (en) | Prevent client from frequently initiating the methods, devices and systems of IP address distribution request | |
| CN102984294A (en) | IPv6 DNS address distribution and acquisition method and device | |
| CN102684972B (en) | Communication method and communication system compatible with IP (internet protocol)v4 address | |
| CN102263834A (en) | Method for network equipment to obtain IPv6 address automatically, network equipment thereof and system thereof | |
| CN108632198B (en) | Equipment management method and device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| TR01 | Transfer of patent right | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20210105 Address after: Unit 2414-2416, main building, no.371, Wushan Road, Tianhe District, Guangzhou City, Guangdong Province Patentee after: GUANGDONG GAOHANG INTELLECTUAL PROPERTY OPERATION Co.,Ltd. Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd. Effective date of registration: 20210105 Address after: No. 188, Xingang Avenue, Jingjiang City, Taizhou City, Jiangsu Province Patentee after: JIANGSU YALONG NEW MATERIAL TECHNOLOGY Co.,Ltd. Address before: Unit 2414-2416, main building, no.371, Wushan Road, Tianhe District, Guangzhou City, Guangdong Province Patentee before: GUANGDONG GAOHANG INTELLECTUAL PROPERTY OPERATION Co.,Ltd. |
|
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20111116 |