CN103561122A - IPv6 address collocation method, IPv6 client and server - Google Patents
IPv6 address collocation method, IPv6 client and server Download PDFInfo
- Publication number
- CN103561122A CN103561122A CN201310504080.XA CN201310504080A CN103561122A CN 103561122 A CN103561122 A CN 103561122A CN 201310504080 A CN201310504080 A CN 201310504080A CN 103561122 A CN103561122 A CN 103561122A
- Authority
- CN
- China
- Prior art keywords
- server
- ipv6
- dhcpv6
- message
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 65
- 230000004044 response Effects 0.000 claims abstract description 100
- 238000004891 communication Methods 0.000 description 20
- 230000008569 process Effects 0.000 description 20
- 238000010586 diagram Methods 0.000 description 15
- 230000006870 function Effects 0.000 description 13
- 238000012795 verification Methods 0.000 description 5
- 238000005242 forging Methods 0.000 description 4
- 230000006855 networking Effects 0.000 description 4
- 230000003993 interaction Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域technical field
本发明涉及通信技术领域,尤其涉及一种IPv6地址配置方法、IPv6客户端及服务器。The invention relates to the technical field of communication, in particular to an IPv6 address configuration method, an IPv6 client and a server.
背景技术Background technique
随着互联网协议(Internet Protocol,简称IP)的第四版(IPv4)地址的耗竭以及主干路由表维护难度的加大,越来越多的运营商开始尝试部署IP的第六版(IPv6),IPv6的地址动态获取方式和IPv4的地址动态获取方式相比发生了较大的变化,IPv4仅仅靠动态主机配置协议(Dynamic Host ConfigurationProtocol,简称DHCP)交互流程即可进行地址的动态获取,IPv6考虑到了无线以及管理大量设备的情况,引入了无状态自动地址配置(StateLess AddressAuto Configuration,简称SLAAC)方式进行地址配置,于是在地址、域名系统(Domain Name System,简称DNS)、路由获取的过程中采用了路由广播(Route Advertisement,简称RA)+IPv6动态地址配置协议(Dynamic HostConfiguration Protocol version6,简称DHCPv6)的方式。With the exhaustion of Internet Protocol (Internet Protocol, referred to as IP) version 4 (IPv4) addresses and the increasing difficulty of maintaining the backbone routing table, more and more operators are beginning to try to deploy the sixth version of IP (IPv6). Compared with the dynamic address acquisition method of IPv4, the dynamic address acquisition method of IPv6 has undergone great changes. IPv4 can obtain addresses dynamically only by the dynamic host configuration protocol (Dynamic Host Configuration Protocol, referred to as DHCP) interaction process. IPv6 takes into account In the case of wireless and managing a large number of devices, the stateless automatic address configuration (StateLess AddressAuto Configuration, referred to as SLAAC) method is introduced for address configuration, so the process of address, domain name system (Domain Name System, referred to as DNS), and route acquisition is adopted. Route Advertisement (RA for short) + IPv6 Dynamic Host Configuration Protocol version 6 (DHCPv6 for short).
在IPv6客户端(IPv6client)获取地址和网络信息(路由、DNS等)的过程中,RA报文起到了确定获取地址模式的作用,RA报文中的被管理地址配置标志位(Managed address configuration flag,简称M位)和其他配置标志位(Other configuration flag,简称O位)的值决定了属于该IPv6客户端下的设备要通过DHCPv6流程获取哪些信息,DHCPv6流程可以产生DHCPv6报文,通过RA报文和DHCPv6报文的交互配合才能完成一次完整的地址和网络信息的分配。在采用RA报文+DHCPv6报文的方式获取地址的过程中,IPv6客户端发送的路由请求(Route Solicit,简称RS)是组播的,发往所有的路由器,所有的路由器收到RS报文后把RA报文发往局域网中的所有节点,IPv6客户端根据RA报文到达的顺序和优先级选择一个RA报文,并根据该RA报文中的M/O位的设置决定发起DHCPv6流程请求哪些信息,最终通过RA报文和DHCPv6流程中获取的信息完成网络配置。During the process of IPv6 client (IPv6client) obtaining address and network information (routing, DNS, etc.), RA message plays the role of determining the mode of obtaining the address, and the managed address configuration flag (Managed address configuration flag) in RA message , referred to as M bit) and other configuration flags (Other configuration flag, referred to as O bit) values determine what information the device under the IPv6 client needs to obtain through the DHCPv6 process. A complete assignment of addresses and network information can be completed only through the interaction and cooperation of DHCPv6 messages and DHCPv6 messages. In the process of obtaining the address by using RA message + DHCPv6 message, the Route Solicit (RS for short) sent by the IPv6 client is multicast and sent to all routers, and all routers receive the RS message Afterwards, the RA message is sent to all nodes in the LAN, and the IPv6 client selects an RA message according to the arrival order and priority of the RA message, and decides to initiate the DHCPv6 process according to the setting of the M/O bit in the RA message What information is requested, and finally the network configuration is completed through the information obtained in the RA message and the DHCPv6 process.
在某些组网下,可能存在多个IPv6服务器(IPv6server)可以与IPv6客户端进行直接通信,即在IPv6地址配置过程中,可能存在多个路由器可以向IPv6客户端发送RA报文,也可能存在多个DHCPv6服务器与IPv6客户端进行DHCPv6流程,产生DHCPv6报文,这时IPv6客户端可能会混乱的使用RA报文和DHCPv6报文。例如:在组网A中,存在IPv6服务器1和IPv6服务器2,IPv6服务器1和IPv6服务器2均具备路由器和DHCPv6服务器的功能,即均可以发送RA报文和DHCPv6报文。IPv6客户端在进行IPv6地址配置过程中可能使用IPv6服务器1发出的RA报文,而使用IPv6服务器2发出的DHCPv6报文,这时,IPv6客户端可能把IPv6服务器1作为默认网关,却从IPv6服务器2上获取地址和DNS信息,这样会导致路由不通或者路由走弯路。In some networking, there may be multiple IPv6 servers (IPv6servers) that can communicate directly with IPv6 clients, that is, during the IPv6 address configuration process, there may be multiple routers that can send RA packets to IPv6 Multiple DHCPv6 servers and IPv6 clients perform the DHCPv6 process and generate DHCPv6 packets. At this time, IPv6 clients may use RA packets and DHCPv6 packets in confusion. For example, in network A, IPv6 server 1 and IPv6 server 2 exist, and both IPv6 server 1 and IPv6 server 2 function as routers and DHCPv6 servers, that is, both can send RA packets and DHCPv6 packets. The IPv6 client may use the RA packet sent by IPv6 server 1 and the DHCPv6 packet sent by IPv6 server 2 during IPv6 address configuration. At this time, the IPv6 client may use IPv6 server 1 as the default Obtain the address and DNS information on server 2, which will cause routing failure or detours.
综上所述,一个链路中存在多个DHCPv6服务器和多个路由器时,存在IPv6客户端混乱使用RA报文和DHCPv6报文的情况,从而导致路由不通或者路由走弯路的问题。To sum up, when there are multiple DHCPv6 servers and multiple routers on a link, IPv6 clients may use RA packets and DHCPv6 packets confusingly, resulting in routing failure or detours.
发明内容Contents of the invention
技术问题technical problem
有鉴于此,本发明要解决的技术问题是,在具有多个DHCPv6服务器和多个路由器的组网中,IPv6客户端混乱使用RA报文和DHCPv6报文而导致路由不通或者路由走弯路的问题。In view of this, the technical problem to be solved by the present invention is that in a network with multiple DHCPv6 servers and multiple routers, the IPv6 client uses RA messages and DHCPv6 messages chaotically to cause routing failure or detours .
解决方案solution
为了解决上述技术问题,在第一方面,本发明提出了一种IPv6地址配置方法,包括:In order to solve the above-mentioned technical problems, in a first aspect, the present invention proposes a method for configuring an IPv6 address, including:
IPv6客户端从IPv6服务器端的路由器接收路由广播RA报文,所述RA报文中包括所述IPv6服务器端的DHCPv6服务器的服务器信息,所述服务器信息包括所述DHCPv6服务器的服务器地址;The IPv6 client receives the routing broadcast RA message from the router at the IPv6 server end, the RA message includes the server information of the DHCPv6 server at the IPv6 server end, and the server information includes the server address of the DHCPv6 server;
所述IPv6客户端根据所述服务器地址,向所述DHCPv6服务器发送DHCP请求,所述DHCP请求中包括所述IPv6客户端请求配置的信息类型;The IPv6 client sends a DHCP request to the DHCPv6 server according to the server address, and the DHCP request includes the information type requested by the IPv6 client to configure;
所述IPv6客户端根据所述DHCPv6服务器返回的DHCP响应进行地址配置,所述DHCP响应中包括所述DHCPv6服务器为所述IPv6客户端分配的配置信息。The IPv6 client performs address configuration according to the DHCP response returned by the DHCPv6 server, and the DHCP response includes configuration information allocated by the DHCPv6 server to the IPv6 client.
结合第一方面,在第一种可能的实现方式中,所述服务器信息还包括第一服务器标识,所述DHCP响应中还包括第二服务器标识,所述第一服务器标识为所述路由器中保存的所述DHCPv6服务器的服务器标识,所述第二服务器标识为返回所述DHCP响应的DHCPv6服务器的服务器标识,所述IPv6客户端根据所述DHCPv6服务器返回的DHCP响应进行地址配置,具体包括:With reference to the first aspect, in a first possible implementation manner, the server information further includes a first server identifier, and the DHCP response further includes a second server identifier, and the first server identifier is stored in the router. The server identifier of the DHCPv6 server, the second server identifier is the server identifier of the DHCPv6 server that returns the DHCP response, and the IPv6 client performs address configuration according to the DHCP response returned by the DHCPv6 server, specifically including:
当所述第一服务器标识与所述第二服务器标识相同时,所述IPv6客户端根据所述DHCPv6服务器返回的DHCP响应进行地址配置。When the first server identifier is the same as the second server identifier, the IPv6 client performs address configuration according to the DHCP response returned by the DHCPv6 server.
结合第一方面或第一方面的第一种可能的实现方式,在第二种可能的实现方式中,所述IPv6客户端从IPv6服务器端的路由器接收路由广播RA报文之前,包括:In combination with the first aspect or the first possible implementation of the first aspect, in the second possible implementation, before the IPv6 client receives the routing broadcast RA message from the router at the IPv6 server end, it includes:
所述IPv6客户端向所述路由器发送路由请求RS报文,所述RS报文中包括第一设备域信息,所述RA报文中还包括第二设备域信息;The IPv6 client sends a routing request RS message to the router, the RS message includes first device domain information, and the RA message also includes second device domain information;
所述IPv6客户端根据所述服务器地址,向所述DHCPv6服务器发送DHCP请求,具体包括:The IPv6 client sends a DHCP request to the DHCPv6 server according to the server address, specifically including:
当所述第一设备域信息与所述第二设备域信息相同时,所述IPv6客户端根据所述服务器地址,向所述DHCPv6服务器发送所述DHCP请求。When the first device domain information is the same as the second device domain information, the IPv6 client sends the DHCP request to the DHCPv6 server according to the server address.
在第二方面,本发明提出了一种IPv6地址配置方法,包括:In the second aspect, the present invention proposes a kind of IPv6 address configuration method, comprising:
IPv6服务器端的路由器向IPv6客户端发送路由广播RA报文,所述RA报文中包括IPv6服务器端的DHCPv6服务器的服务器信息,所述服务器信息包括所述DHCPv6服务器的服务器地址;The router at the IPv6 server end sends a routing broadcast RA message to the IPv6 client, the RA message includes the server information of the DHCPv6 server at the IPv6 server end, and the server information includes the server address of the DHCPv6 server;
所述DHCPv6服务器接收所述IPv6客户端根据所述服务器地址发送的DHCP请求,所述DHCP请求中包括所述IPv6客户端请求配置的信息类型;The DHCPv6 server receives the DHCP request sent by the IPv6 client according to the server address, and the DHCP request includes the information type requested by the IPv6 client to configure;
所述DHCPv6服务器向所述IPv6客户端发送DHCP响应,所述DHCP响应包括所述DHCPv6服务器为所述IPv6客户端分配的配置信息。The DHCPv6 server sends a DHCP response to the IPv6 client, where the DHCP response includes configuration information allocated by the DHCPv6 server to the IPv6 client.
结合第二方面,在第一种可能的实现方式中,所述服务器信息还包括第一服务器标识,所述DHCP响应中还包括第二服务器标识,所述第一服务器标识为所述路由器中保存的所述DHCPv6服务器的服务器标识,所述第二服务器标识为返回所述DHCP响应的DHCPv6服务器的服务器标识。With reference to the second aspect, in a first possible implementation manner, the server information further includes a first server identifier, the DHCP response further includes a second server identifier, and the first server identifier is stored in the router. The server identifier of the DHCPv6 server, the second server identifier is the server identifier of the DHCPv6 server that returns the DHCP response.
结合第二方面的第一种可能的实现方式,在第二种可能的实现方式中,所述IPv6服务器端的路由器向IPv6客户端发送路由广播RA报文之前,包括:With reference to the first possible implementation of the second aspect, in the second possible implementation, before the router on the IPv6 server side sends the routing advertisement RA message to the IPv6 client, it includes:
所述路由器从所述IPv6客户端接收路由请求RS报文,所述RS报文中包括第一设备域信息;The router receives a routing request RS message from the IPv6 client, and the RS message includes first device domain information;
所述IPv6服务器端的路由器向IPv6客户端发送路由广播RA报文,具体包括:The router at the IPv6 server end sends a routing broadcast RA message to the IPv6 client, specifically including:
当所述路由器自身保存的设备域信息与所述第一设备域信息相同时,所述IPv6服务器端的路由器向所述IPv6客户端发送所述RA报文。When the device domain information stored by the router itself is the same as the first device domain information, the router at the IPv6 server end sends the RA message to the IPv6 client.
在第三方面,本发明提出了一种IPv6客户端,包括:In a third aspect, the present invention proposes an IPv6 client, comprising:
接收单元,用于从IPv6服务器端的路由器接收路由广播RA报文,所述RA报文中包括所述IPv6服务器端的DHCPv6服务器的服务器信息,所述服务器信息包括所述DHCPv6服务器的服务器地址;A receiving unit, configured to receive a routing broadcast RA message from a router at the IPv6 server end, wherein the RA message includes server information of a DHCPv6 server at the IPv6 server end, and the server information includes a server address of the DHCPv6 server;
第一发送单元,与所述接收单元连接,用于根据所述服务器地址,向所述DHCPv6服务器发送DHCP请求,所述DHCP请求中包括所述IPv6客户端请求配置的信息类型;A first sending unit, connected to the receiving unit, configured to send a DHCP request to the DHCPv6 server according to the server address, where the DHCP request includes the information type requested by the IPv6 client to configure;
配置单元,与所述第一发送单元连接,用于根据所述DHCPv6服务器返回的DHCP响应进行地址配置,所述DHCP响应包括所述DHCPv6服务器为所述IPv6客户端分配的配置信息。A configuration unit, connected to the first sending unit, configured to perform address configuration according to a DHCP response returned by the DHCPv6 server, where the DHCP response includes configuration information allocated by the DHCPv6 server to the IPv6 client.
结合第三方面,在第一种可能的实现方式中,所述服务器信息还包括第一服务器标识,所述DHCP响应中还包括第二服务器标识,所述第一服务器标识为所述路由器中保存的所述DHCPv6服务器的服务器标识,所述第二服务器标识为返回所述DHCP响应的DHCPv6服务器的服务器标识,所述配置单元还用于:With reference to the third aspect, in a first possible implementation manner, the server information further includes a first server identifier, the DHCP response further includes a second server identifier, and the first server identifier is stored in the router. The server identifier of the DHCPv6 server, the second server identifier is the server identifier of the DHCPv6 server that returns the DHCP response, and the configuration unit is also used for:
当所述第一服务器标识与所述第二服务器标识相同时,根据所述DHCPv6服务器返回的DHCP响应进行地址配置。When the first server identifier is the same as the second server identifier, address configuration is performed according to a DHCP response returned by the DHCPv6 server.
结合第三方面或第三方面的第一种可能的实现方式,在第二种可能的实现方式中,所述IPv6客户端还包括:With reference to the third aspect or the first possible implementation of the third aspect, in a second possible implementation, the IPv6 client further includes:
第二发送单元,与所述接收单元连接,用于向所述路由器发送路由请求RS报文,所述RS报文中包括第一设备域信息,所述RA报文中还包括第二设备域信息;A second sending unit, connected to the receiving unit, configured to send a route request RS message to the router, the RS message includes first device domain information, and the RA message further includes a second device domain information;
所述第一发送单元还用于当所述第一设备域信息与所述第二设备域信息相同时,根据所述服务器地址,向所述DHCPv6服务器发送所述DHCP请求。The first sending unit is further configured to send the DHCP request to the DHCPv6 server according to the server address when the first device domain information is the same as the second device domain information.
在第四方面,本发明提出了一种IPv6服务器,包括:In a fourth aspect, the present invention proposes an IPv6 server, comprising:
路由器,用于向IPv6客户端发送路由广播RA报文,所述RA报文中包括所述IPv6服务器端的DHCPv6服务器的服务器信息,所述服务器信息中包括所述DHCPv6服务器的服务器地址;A router, configured to send a routing broadcast RA message to the IPv6 client, wherein the RA message includes server information of a DHCPv6 server at the IPv6 server end, and the server information includes a server address of the DHCPv6 server;
DHCPv6服务器,用于根据所述DHCP请求中包括的所述IPv6客户端请求配置的信息类型向所述IPv6客户端发送DHCP响应,所述DHCP响应包括所述DHCPv6服务器为所述IPv6客户端分配的配置信息。A DHCPv6 server, configured to send a DHCP response to the IPv6 client according to the information type requested by the IPv6 client included in the DHCP request, where the DHCP response includes the IPv6 client assigned by the DHCPv6 server configuration information.
结合第四方面,在第一种可能的实现方式中,所述服务器信息还包括第一服务器标识,所述第一服务器标识为所述路由器中保存的所述DHCPv6服务器的服务器标识。With reference to the fourth aspect, in a first possible implementation manner, the server information further includes a first server identifier, where the first server identifier is the server identifier of the DHCPv6 server stored in the router.
结合第四方面的第一种可能的实现方式中,在第二种可能的实现方式中,所述路由器包括:With reference to the first possible implementation manner of the fourth aspect, in a second possible implementation manner, the router includes:
第一接收单元,用于从所述IPv6客户端接收路由请求RS报文,所述RS报文中包括第一设备域信息;A first receiving unit, configured to receive a route request RS message from the IPv6 client, where the RS message includes first device domain information;
第一发送单元,与所述第一接收单元连接,用于当所述路由器自身保存的设备域信息与所述第一设备域信息相同时,向所述IPv6客户端发送所述RA报文。A first sending unit, connected to the first receiving unit, configured to send the RA message to the IPv6 client when the device domain information stored by the router itself is the same as the first device domain information.
结合第四方面,在第三种可能的实现方式中,所述DHCPv6服务器包括:With reference to the fourth aspect, in a third possible implementation manner, the DHCPv6 server includes:
第二接收单元,用于接收所述IPv6客户端根据所述服务器地址发送的DHCP请求,所述DHCP请求中包括所述IPv6客户端请求配置的信息类型;The second receiving unit is configured to receive a DHCP request sent by the IPv6 client according to the server address, where the DHCP request includes the information type requested by the IPv6 client to configure;
第二发送单元,与所述第二接收单元连接,用于向所述IPv6客户端发送DHCP响应,所述DHCP响应包括所述DHCPv6服务器为所述IPv6客户端分配的配置信息。A second sending unit, connected to the second receiving unit, configured to send a DHCP response to the IPv6 client, where the DHCP response includes configuration information allocated by the DHCPv6 server to the IPv6 client.
结合第四方面的第三种可能的实现方式,在第四种可能的实现方式中,所述DHCP响应中还包括第二服务器标识,所述第二服务器标识为所述DHCPv6服务器的服务器标识。With reference to the third possible implementation manner of the fourth aspect, in a fourth possible implementation manner, the DHCP response further includes a second server identifier, where the second server identifier is the server identifier of the DHCPv6 server.
本实施例的IPv6地址配置方法,在RA报文中包括DHCPv6服务器地址,IPv6客户端根据该DHCPv6服务器地址单播发送DHCP请求,使得在同一链路中有多路由的情况下,IPv6客户端通过服务器地址可以路由到正确的DHCPv6服务器,从正确的DHCPv6服务器获取对应的DHCP响应,因此可以快速获取正确的路由信息。The IPv6 address configuration method of the present embodiment includes the DHCPv6 server address in the RA message, and the IPv6 client sends a DHCP request according to the DHCPv6 server address unicast, so that in the case of multiple routes in the same link, the IPv6 client can pass The server address can be routed to the correct DHCPv6 server, and the corresponding DHCP response can be obtained from the correct DHCPv6 server, so the correct routing information can be quickly obtained.
根据下面参考附图对示例性实施例的详细说明,本发明的其它特征及方面将变得清楚。Other features and aspects of the present invention will become apparent from the following detailed description of exemplary embodiments with reference to the accompanying drawings.
附图说明Description of drawings
包含在说明书中并且构成说明书的一部分的附图与说明书一起示出了本发明的示例性实施例、特征和方面,并且用于解释本发明的原理。The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate exemplary embodiments, features, and aspects of the invention and together with the description, serve to explain the principles of the invention.
图1a示出根据本发明实施例一的IPv6地址配置方法的流程图;Fig. 1a shows the flowchart of the IPv6 address configuration method according to Embodiment 1 of the present invention;
图1b示出根据本发明实施例一的多路由组网划分的示意图;FIG. 1b shows a schematic diagram of multi-routing network division according to Embodiment 1 of the present invention;
图2示出根据本发明实施例二的IPv6地址配置方法的流程图;Fig. 2 shows the flowchart of the IPv6 address configuration method according to Embodiment 2 of the present invention;
图3示出根据本发明实施例三的IPv6地址配置方法的流程图;Fig. 3 shows the flowchart of the IPv6 address configuration method according to the third embodiment of the present invention;
图4示出根据本发明实施例四的IPv6地址配置方法的流程图;FIG. 4 shows a flowchart of an IPv6 address configuration method according to Embodiment 4 of the present invention;
图5示出根据本发明实施例五的IPv6地址配置方法的流程图;FIG. 5 shows a flowchart of an IPv6 address configuration method according to Embodiment 5 of the present invention;
图6示出根据本发明实施例六的IPv6客户端的结构框图;FIG. 6 shows a structural block diagram of an IPv6 client according to Embodiment 6 of the present invention;
图7示出根据本发明实施例七的IPv6客户端的结构框图;FIG. 7 shows a structural block diagram of an IPv6 client according to Embodiment 7 of the present invention;
图8示出根据本发明实施例八的IPv6服务器的结构框图;FIG. 8 shows a structural block diagram of an IPv6 server according to Embodiment 8 of the present invention;
图9示出根据本发明实施例九的IPv6服务器的结构框图;FIG. 9 shows a structural block diagram of an IPv6 server according to Embodiment 9 of the present invention;
图10示出根据本发明实施例十的IPv6客户端的结构框图;FIG. 10 shows a structural block diagram of an IPv6 client according to Embodiment 10 of the present invention;
图11示出根据本发明实施例十一的IPv6服务器的结构框图。FIG. 11 shows a structural block diagram of an IPv6 server according to Embodiment 11 of the present invention.
具体实施方式Detailed ways
以下将参考附图详细说明本发明的各种示例性实施例、特征和方面。附图中相同的附图标记表示功能相同或相似的元件。尽管在附图中示出了实施例的各种方面,但是除非特别指出,不必按比例绘制附图。Various exemplary embodiments, features, and aspects of the invention will be described in detail below with reference to the accompanying drawings. The same reference numbers in the figures indicate functionally identical or similar elements. While various aspects of the embodiments are shown in drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
在这里专用的词“示例性”意为“用作例子、实施例或说明性”。这里作为“示例性”所说明的任何实施例不必解释为优于或好于其它实施例。The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration." Any embodiment described herein as "exemplary" is not necessarily to be construed as superior or better than other embodiments.
另外,为了更好的说明本发明,在下文的具体实施方式中给出了众多的具体细节。本领域技术人员应当理解,没有某些具体细节,本发明同样可以实施。在另外一些实例中,对于大家熟知的方法、手段、元件和电路未作详细描述,以便于凸显本发明的主旨。In addition, in order to better illustrate the present invention, numerous specific details are given in the specific embodiments below. It will be understood by those skilled in the art that the present invention may be practiced without certain of the specific details. In other instances, well-known methods, means, components and circuits are not described in detail so as to highlight the gist of the present invention.
实施例1Example 1
图1a示出根据本发明实施例一的IPv6地址配置方法的流程图。如图1a所示,该IPv6地址配置方法主要包括:Fig. 1a shows a flowchart of a method for configuring an IPv6 address according to Embodiment 1 of the present invention. As shown in Figure 1a, the IPv6 address configuration method mainly includes:
步骤100、IPv6客户端从IPv6服务器端的路由器接收路由广播RA报文,所述RA报文中包括所述IPv6服务器端的DHCPv6服务器的服务器信息,所述服务器信息包括所述DHCPv6服务器的服务器地址。
具体地,在一个链路中如果存在多个DHCPv6服务器和多个路由器,DHCPv6服务器和路由器可以设置在不同的设备上,也可以设置在同一个设备上。本发明实施例中的IPv6服务器端可以包括DHCPv6服务器和路由器。IPv6路由发现协议由路由请求RS和路由广播RA两种网络控制报文协议(Internet Control Message Protocol,简称ICMP6)共同构成,该协议的作用一方面是为了帮助局域网内部的设备寻找网关或路由器,使设备可以与外网进行通信;另一方面,根据网关或路由信息对刚接入网络的IPv6设备,设定IPv6地址。Specifically, if there are multiple DHCPv6 servers and multiple routers in one link, the DHCPv6 servers and routers can be set on different devices, or they can be set on the same device. The IPv6 server end in the embodiment of the present invention may include a DHCPv6 server and a router. The IPv6 route discovery protocol is composed of two Internet Control Message Protocols (Internet Control Message Protocol, ICMP6) for route request RS and route broadcast RA. The device can communicate with the external network; on the other hand, set the IPv6 address for the IPv6 device just connected to the network according to the gateway or routing information.
在IPv6客户端获取地址和网络信息(例如路由、DNS等)的过程中,IPv6客户端向IPv6服务器端的路由器发送路由请求(RS)报文之后,IPv6客户端可以从IPv6服务器端的路由器接收路由广播(RA)报文,RA报文可以起到决定获取地址模式的作用。RA报文的M/O位的值可以决定IPv6客户端通过后续的DHCPv6流程获取哪些信息。例如,M和O位均为“1”时,DHCPv6流程产生的DHCPv6报文可以用于分配地址和分配其他信息,例如域名解析服务器地址和域搜索列表;M位为“0”,O位为“1”时,DHCPv6报文可以不用于分配地址,而用来分配如上述其他信息。In the process of obtaining address and network information (such as routing, DNS, etc.) by the IPv6 client, after the IPv6 client sends a routing request (RS) message to the router on the IPv6 server, the IPv6 client can receive route broadcasts from the router on the IPv6 server (RA) message, and the RA message can play a role in determining the address acquisition mode. The value of the M/O bit in the RA message can determine what information the IPv6 client obtains through the subsequent DHCPv6 process. For example, when the M and O bits are both "1", the DHCPv6 message generated by the DHCPv6 process can be used to assign addresses and other information, such as domain name resolution server addresses and domain search lists; the M bit is "0", and the O bit is When "1", the DHCPv6 message may not be used for allocating addresses, but for allocating other information as above.
在IPv6地址配置过程中,RA报文和DHCPv6报文交互配合可以完成一次地址和网络信息的配置。在RA报文中,可以通过扩展的服务器选项(optionserver)携带DHCPv6服务器的服务器信息,在服务器信息中可以包括该DHCPv6服务器的服务器地址。此外,RS报文和RA报文都可以为组播发送,即RS报文可以发往网络中的各个路由器,一个IPv6客户端也可以接收到多个RA报文,IPv6客户端可以根据RA报文的到达顺序和优先级等信息选择一个RA报文使用。During IPv6 address configuration, RA packets and DHCPv6 packets interact to complete the configuration of an address and network information. In the RA message, the server information of the DHCPv6 server may be carried through an extended server option (optionserver), and the server information may include the server address of the DHCPv6 server. In addition, both RS packets and RA packets can be sent by multicast, that is, RS packets can be sent to each router in the network, and an IPv6 client can also receive multiple RA packets. Select an RA message to use based on information such as the order of arrival and priority of the message.
步骤120、所述IPv6客户端根据所述服务器地址,向所述DHCPv6服务器发送DHCP请求,所述DHCP请求中包括所述IPv6客户端请求配置的信息类型。
需要说明的是,由于所述IPv6客户端根据服务器地址,向DHCPv6服务器发送DHCP请求,即IPv6客户端向DHCPv6服务器发送单播DHCP请求,可以减少同一链路上的DHCPv6报文组播流,节省网络资源、减轻网络负担。It should be noted that, because the IPv6 client sends a DHCP request to the DHCPv6 server according to the server address, that is, the IPv6 client sends a unicast DHCP request to the DHCPv6 server, which can reduce the multicast flow of DHCPv6 messages on the same link, saving network resources and reduce the network burden.
步骤140、所述IPv6客户端根据所述DHCPv6服务器返回的DHCP响应进行地址配置,所述DHCP响应中包括所述DHCPv6服务器为所述IPv6客户端分配的配置信息。
具体地,IPv6客户端根据解析RA报文可以得到DHCPv6服务器的服务器地址,向该DHCPv6服务器的服务器地址单播地发送DHCP请求,DHCP请求中可以包括IPv6客户端请求配置的信息类型,例如:地址和网络信息(路由、DNS)等。DHCPv6服务器可以根据DHCP请求进行回复,向IPv6客户端发送DHCP响应,该DHCP响应中包括DHCPv6服务器为IPv6客户端分配的配置信息。接收到DHCP响应后,IPv6客户端可以根据其中的配置信息完成IPv6地址配置。Specifically, the IPv6 client can obtain the server address of the DHCPv6 server according to the parsing of the RA message, and unicast a DHCP request to the server address of the DHCPv6 server. The DHCP request can include the type of information that the IPv6 client requests to configure, such as: address and network information (routing, DNS), etc. The DHCPv6 server may reply according to the DHCP request, and send a DHCP response to the IPv6 client, where the DHCP response includes configuration information allocated by the DHCPv6 server to the IPv6 client. After receiving the DHCP response, the IPv6 client can complete IPv6 address configuration according to the configuration information therein.
举例而言,图1b示出多路由组网划分的示意图,如图1b所示,在运营商想要把自身的私网和互联网(Internet)分开的情况下,可以按照图1b进行组网划分,服务器端分别具有互联网和私网的入口。在同一链路中,IPv6客户端_1可以接收服务器端的路由器_1根据RS报文回复的RA报文,并解析RA报文得到与路由器_1具有对应关系的DHCPv6服务器_1的服务器地址,IPv6客户端_1可以向DHCPv6服务器_1发送DHCP请求,并根据DHCPv6服务器_1返回的DHCP响应进行地址配置。这样可以让Internet网络的广域网(Wide AreaNetwork,简称WAN)和广域网管理协议(简称Tr069)的WAN分别获取不同的默认网关,彻底分离Internet网络和Tr069网络。其中,Tr069提供了对下一代网络中家庭网络设备进行管理配置的通用框架和协议,用于从网络侧对家庭网络中的网关、路由器、机顶盒等设备进行远程集中管理。For example, Figure 1b shows a schematic diagram of multi-routing network division. As shown in Figure 1b, when an operator wants to separate its own private network from the Internet (Internet), it can divide the network according to Figure 1b , the server side has Internet and private network entrances respectively. In the same link, IPv6 client_1 can receive the RA message replied by router_1 on the server side according to the RS message, and parse the RA message to obtain the server address of DHCPv6 server_1 corresponding to router_1. The IPv6 client_1 can send a DHCP request to the DHCPv6 server_1, and perform address configuration according to the DHCP response returned by the DHCPv6 server_1. In this way, the Wide Area Network (WAN for short) of the Internet network and the WAN of the WAN management protocol (Tr069 for short) can obtain different default gateways respectively, completely separating the Internet network and the Tr069 network. Among them, Tr069 provides a general framework and protocol for the management and configuration of home network devices in the next generation network, and is used for remote centralized management of gateways, routers, set-top boxes and other devices in the home network from the network side.
本实施例的IPv6地址配置方法,IPv6客户端通过解析RA报文,可以得到DHCPv6服务器的服务器地址,并根据该服务器地址向DHCPv6服务器单播地发送DHCP请求,使得在同一链路中有多路由的情况下,IPv6客户端通过服务器地址可以路由到正确的DHCPv6服务器,从正确的DHCPv6服务器获取对应的DHCP响应,因此可以快速获取正确的路由信息。In the IPv6 address configuration method of this embodiment, the IPv6 client can obtain the server address of the DHCPv6 server by analyzing the RA message, and send a DHCP request to the DHCPv6 server in unicast according to the server address, so that there are multiple routes in the same link In this case, the IPv6 client can be routed to the correct DHCPv6 server through the server address, and obtain the corresponding DHCP response from the correct DHCPv6 server, so the correct routing information can be quickly obtained.
实施例2Example 2
图2示出根据本发明实施例二的IPv6地址配置方法的流程图。图2中标号与图1a相同的步骤具有相同的功能,为简明起见,省略对这些步骤的详细说明。FIG. 2 shows a flowchart of a method for configuring an IPv6 address according to Embodiment 2 of the present invention. Steps in FIG. 2 with the same numbers as those in FIG. 1a have the same functions, and for the sake of brevity, detailed descriptions of these steps are omitted.
如图2所示,图2所示的IPv6地址配置方法,下面仅针对与图1不同的部分进行详细阐述,和图1相同部分参见图1的具体说明。As shown in FIG. 2, the IPv6 address configuration method shown in FIG. 2 will be described in detail below only for the parts that are different from those in FIG. 1. For the parts that are the same as those in FIG.
可选的,服务器信息还可以包括第一服务器标识,DHCP响应中还可以包括第二服务器标识,第一服务器标识为路由器中保存的DHCPv6服务器的服务器标识,第二服务器标识为返回DHCP响应的DHCPv6服务器的服务器标识。步骤140具体可以包括:Optionally, the server information may also include a first server ID, and the DHCP response may also include a second server ID, where the first server ID is the server ID of the DHCPv6 server stored in the router, and the second server ID is the DHCPv6 server that returns the DHCP response. The server ID of the server. Step 140 may specifically include:
步骤240、当所述第一服务器标识与所述第二服务器标识相同时,所述IPv6客户端根据所述DHCPv6服务器返回的DHCP响应进行地址配置。Step 240, when the first server identifier is the same as the second server identifier, the IPv6 client performs address configuration according to the DHCP response returned by the DHCPv6 server.
具体地,网络管理员可以预先在路由器中保存一个DHCPv6服务器的服务器标识(server id)即第一服务器标识,表明该DHCPv6服务器与该路由器具有对应关系,网络管理员还可以预先为DHCPv6服务器设定一个服务器标识即第二服务器标识。这样,IPv6客户端接收到DHCP响应之后,可以对第一服务器标识和第二服务器标识进行校验,进一步确保网络的安全性。当第一服务器标识和第二服务器标识相同时,表明RA报文和DHCPv6报文成对配置,没有混乱使用RA报文和DHCPv6报文,可以正确完成IPv6客户端的地址配置;在第一服务器标识和第二服务器标识不同时,表明返回DHCP响应的DHCPv6服务器与发送RA报文的路由器不具有对应关系,可能是由某一设备恶意伪造DHCPv6服务器的服务器地址造成的,不可以正确完成IPv6客户端的地址配置。Specifically, the network administrator can pre-save a server ID (server id) of a DHCPv6 server in the router, that is, the first server ID, indicating that the DHCPv6 server has a corresponding relationship with the router, and the network administrator can also pre-set the DHCPv6 server A server ID is the second server ID. In this way, after receiving the DHCP response, the IPv6 client can verify the first server identifier and the second server identifier, thereby further ensuring network security. When the first server ID and the second server ID are the same, it indicates that the RA message and the DHCPv6 message are configured in pairs, and the RA message and the DHCPv6 message are not used in confusion, and the address configuration of the IPv6 client can be completed correctly; If it is different from the second server ID, it indicates that the DHCPv6 server that returns the DHCP response does not have a corresponding relationship with the router that sent the RA message. It may be caused by a device that maliciously forges the server address of the DHCPv6 server, and cannot complete the IPv6 client correctly. address configuration.
可选的,在步骤100之前,还可以包括:Optionally, before
步骤200、所述IPv6客户端向所述路由器发送路由请求RS报文,所述RS报文中包括第一设备域信息,所述RA报文中还包括第二设备域信息。Step 200, the IPv6 client sends a routing request RS message to the router, the RS message includes the first device domain information, and the RA message further includes the second device domain information.
步骤120具体可以包括:Step 120 may specifically include:
步骤220、当所述第一设备域信息与所述第二设备域信息相同时,所述IPv6客户端根据所述服务器地址,向所述DHCPv6服务器发送所述DHCP请求。Step 220, when the first device domain information is the same as the second device domain information, the IPv6 client sends the DHCP request to the DHCPv6 server according to the server address.
具体地,IPv6客户端在进行IPv6地址配置时,可以先向IPv6服务器端的路由器组播发送RS报文,即发往各个路由器。该RS报文中可以包括第一设备域信息,即IPv6客户端所在的设备域信息。其中,设备域可以预先由网络管理员根据IPv6客户端功能类型和IPv6客户端所在区域等信息进行设置,通过引入设备域信息可以方便网络管理员对网络(如公司内部局域网)进行管理。IPv6服务器端的路由器可以对第一设备域信息与路由器自身的设备域信息进行对比,若上述两种设备域信息相同,路由器可以为IPv6客户端发送RA报文。Specifically, when configuring the IPv6 address, the IPv6 client may first multicast the RS message to the router at the IPv6 server end, that is, send it to each router. The RS message may include the first device domain information, that is, the device domain information where the IPv6 client is located. Among them, the device domain can be set by the network administrator in advance according to the information such as the function type of the IPv6 client and the area where the IPv6 client is located. By introducing the information of the device domain, it is convenient for the network administrator to manage the network (such as the company's internal LAN). The router at the IPv6 server end can compare the first device domain information with the device domain information of the router itself, and if the two kinds of device domain information are the same, the router can send an RA message for the IPv6 client.
在多路由组网中,在IPv6服务器端的路由器校验自身保存的设备域信息与RS报文中包括的第一设备域信息相同后,路由器可以向IPv6客户端发送RA报文,此时,可能存在多个路由器向IPv6客户端发送RA报文。IPv6客户端可以分别校验这些RA报文中包括的第二设备域信息与第一设备域信息是否相同。如果相同,IPv6客户端可以解析RA报文,得到DHCPv6服务器的服务器地址和第一服务器标识,并根据DHCPv6服务器的服务器地址向DHCPv6服务器发送DHCP请求;若不相同,IPv6客户端可以重新向IPv6服务器端的路由器发送RS报文,并继续从步骤100开始重新执行IPv6客户端的地址配置过程。In a multi-router network, after the router on the IPv6 server side verifies that the device domain information saved by itself is the same as the first device domain information included in the RS packet, the router can send an RA packet to the IPv6 client. At this time, the There are multiple routers sending RA packets to IPv6 clients. The IPv6 client may respectively check whether the second device domain information included in these RA messages is the same as the first device domain information. If they are the same, the IPv6 client can parse the RA message to obtain the server address and the first server identifier of the DHCPv6 server, and send a DHCP request to the DHCPv6 server according to the server address of the DHCPv6 server; if not, the IPv6 client can send a request to the IPv6 server again The router at the end sends the RS message, and continues to re-execute the address configuration process of the IPv6 client from
需要说明的是,通过校验第一设备域信息与第二设备域信息,可以在返回的多个RA报文中确定一个RA报文使用,不再需要根据RA报文的到达顺序或优先级等信息选择RA报文,减轻了路由器和网络的负担。It should be noted that by checking the first device domain information and the second device domain information, one RA message can be determined among multiple returned RA messages, and it is no longer necessary to check the order or priority of the RA messages. and other information to select RA packets, reducing the burden on routers and networks.
举例而言,参见图1b所示及实施例一中的相关描述,在同一链路中,如果服务器端的路由器_1从IPv6客户端_1接收到的RS中包括的第一设备域信息与路由器_1自身保存的设备域信息相同,路由器_1可以向IPv6客户端_1回复RA。该RA中还包括路由器_1中保存的第一服务器标识和DHCPv6服务器_1的服务器地址,IPv6客户端_1可以向DHCPv6服务器_1单播地发送DHCP请求。如果路由器_1中保存的第一服务器标识和DHCPv6服务器_1的第二服务器标识相同,IPv6客户端_1可以根据DHCPv6服务器_1返回的DHCP响应进行地址配置。预先划分不同的设备域信息,可以让互联网的广域网(WAN)和Tr069的WAN分别获取不同的默认网关,彻底分离互联网和Tr069网络。For example, referring to the related description shown in FIG. 1b and Embodiment 1, in the same link, if the first device domain information included in the RS received by the router_1 on the server side from the IPv6 client_1 is the same as that of the router The device domain information saved by _1 itself is the same, and router_1 can reply RA to IPv6 client _1. The RA also includes the first server identifier stored in the router_1 and the server address of the DHCPv6 server_1, and the IPv6 client_1 can unicast send a DHCP request to the DHCPv6 server_1. If the first server ID saved in the router_1 is the same as the second server ID of the DHCPv6 server_1, the IPv6 client_1 can perform address configuration according to the DHCP response returned by the DHCPv6 server_1. Pre-dividing different device domain information allows the wide area network (WAN) of the Internet and the WAN of Tr069 to obtain different default gateways respectively, completely separating the Internet and the Tr069 network.
本实施例的IPv6地址配置方法,通过引入第一设备域信息与第二设备域信息,可以从多个路由器回复的多个RA报文选择一个RA报文使用,不再需要根据RA报文的到达顺序或优先级等信息选择RA报文,减轻了路由器和网络的负担;通过对第一服务器标识和第二服务器标识的校验,可以确保网络的安全性。In the IPv6 address configuration method of this embodiment, by introducing the first device domain information and the second device domain information, one RA message can be selected from multiple RA messages replied by multiple routers, and no longer needs to be based on the RA message. Information such as arrival order or priority selects the RA message, which reduces the burden on the router and the network; through the verification of the first server ID and the second server ID, the security of the network can be ensured.
实施例3Example 3
图3示出根据本发明实施例三的IPv6地址配置方法的流程图。如图3所示,该IPv6地址配置方法主要包括:FIG. 3 shows a flowchart of a method for configuring an IPv6 address according to Embodiment 3 of the present invention. As shown in Figure 3, the IPv6 address configuration method mainly includes:
步骤300、IPv6服务器端的路由器向IPv6客户端发送路由广播RA报文,所述RA报文中包括IPv6服务器端的DHCPv6服务器的服务器信息,所述服务器信息包括所述DHCPv6服务器的服务器地址。
具体地,在IPv6客户端获取地址和网络信息(例如路由、DNS等)的过程中,IPv6服务器端的路由器可以向IPv6客户端发送路由广播RA报文,RA报文中包括IPv6服务器端的DHCPv6服务器的服务器信息,该服务器信息中可以包括DHCPv6服务器的服务器地址,用于后续向DHCPv6服务器单播地发送DHCP请求,实现RA报文和DHCPv6报文的成对配置,正确地进行IPv6地址配置。Specifically, during the process of the IPv6 client acquiring address and network information (such as routing, DNS, etc.), the router at the IPv6 server end can send a route broadcast RA message to the IPv6 client end, and the RA message includes the IP address of the DHCPv6 server at the IPv6 server end. Server information, the server information may include the server address of the DHCPv6 server, which is used to send a DHCP request to the DHCPv6 server in a unicast manner to realize the paired configuration of the RA message and the DHCPv6 message, and correctly configure the IPv6 address.
步骤320、所述IPv6服务器端的DHCPv6服务器接收所述IPv6客户端根据所述服务器地址发送的DHCP请求,所述DHCP请求中包括所述IPv6客户端请求配置的信息类型。
步骤340、所述DHCPv6服务器向所述IPv6客户端发送DHCP响应,所述DHCP响应包括所述DHCPv6服务器为所述IPv6客户端分配的配置信息。
具体地,参见实施例一中的IPv6地址配置方法的相关描述,IPv6服务器端的DHCPv6服务器可以接收IPv6客户端根据DHCPv6服务器的服务器地址发送的DHCP请求,DHCPv6服务器可以进一步地根据DHCP请求中包括的IPv6客户端请求配置的信息类型为IPv6客户端分配配置信息,并向IPv6客户端发送DHCP响应,该DHCP响应中包括DHCPv6服务器为IPv6客户端分配的配置信息,用于后续IPv6客户端根据上述配置信息完成IPv6地址配置。Specifically, referring to the relevant description of the IPv6 address configuration method in Embodiment 1, the DHCPv6 server on the IPv6 server side can receive the DHCP request sent by the IPv6 client according to the server address of the DHCPv6 server, and the DHCPv6 server can further configure the IPv6 address according to the IPv6 address included in the DHCP request. The type of information requested by the client is to assign configuration information to the IPv6 client, and to send a DHCP response to the IPv6 client. The DHCP response includes the configuration information assigned by the DHCPv6 server to the IPv6 client, which is used by the subsequent IPv6 client according to the above configuration information. Complete the IPv6 address configuration.
举例而言,参见图1b所示及实施例一中的相关描述,同一链路中,服务器端的路由器_1可以向IPv6客户端_1发送RA报文,服务器端的DHCPv6服务器_1可以接收IPv6客户端_1发送DHCP请求,并根据DHCP请求中包括的IPv6客户端_1请求配置的信息类型为IPv6客户端_1分配配置信息,并向IPv6客户端_1返回DHCP响应,以供IPv6客户端_1进行地址配置。这样可以让互联网的广域网(WAN)和Tr069的WAN分别获取不同的默认网关,彻底分离互联网和Tr069网络。For example, referring to the related description shown in Figure 1b and Embodiment 1, in the same link, the router_1 at the server end can send an RA message to the IPv6 client_1, and the DHCPv6 server_1 at the server end can receive the IPv6 client Client_1 sends a DHCP request, and assigns configuration information to IPv6 client_1 according to the type of information configured in the IPv6 client_1 request included in the DHCP request, and returns a DHCP response to IPv6 client_1 for the IPv6 client _1 for address configuration. In this way, the wide area network (WAN) of the Internet and the WAN of Tr069 can obtain different default gateways respectively, completely separating the Internet and the Tr069 network.
本实施例的IPv6地址配置方法,IPv6服务器端的路由器向IPv6客户端发送包括DHCPv6服务器的服务器地址的RA报文,该DHCPv6服务器接收DHCP请求,DHCPv6服务器根据DHCP请求为IPv6客户端分配需要的配置信息,使得在同一链路中有多路由的情况下IPv6客户端通过服务器地址可以路由到正确的DHCPv6服务器,正确的DHCPv6服务器接收DHCP请求并分配配置信息,因此可以快速获取正确的路由信息。In the IPv6 address configuration method of the present embodiment, the router at the IPv6 server end sends an RA message including the server address of the DHCPv6 server to the IPv6 client, the DHCPv6 server receives the DHCP request, and the DHCPv6 server distributes required configuration information for the IPv6 client according to the DHCP request , so that in the case of multiple routes on the same link, the IPv6 client can be routed to the correct DHCPv6 server through the server address, and the correct DHCPv6 server receives the DHCP request and distributes configuration information, so the correct routing information can be obtained quickly.
实施例4Example 4
图4示出根据本发明实施例四的IPv6地址配置方法的流程图。图4中标号与图3相同的步骤具有相同的功能,为简明起见,省略对这些步骤的详细说明。FIG. 4 shows a flowchart of a method for configuring an IPv6 address according to Embodiment 4 of the present invention. Steps in FIG. 4 with the same numbers as those in FIG. 3 have the same functions, and for the sake of brevity, detailed descriptions of these steps are omitted.
如图4所示,图4所示的IPv6地址配置方法,下面仅针对与图3不同的部分进行详细阐述,和图3相同部分参见图3的具体说明。As shown in FIG. 4, the IPv6 address configuration method shown in FIG. 4 will be described in detail below only for the parts that are different from those in FIG. 3. For the parts that are the same as those in FIG.
可选的,服务器信息还可以包括第一服务器标识,DHCP响应中还可以包括第二服务器标识,第一服务器标识为路由器中保存的DHCPv6服务器的服务器标识,第二服务器标识为返回DHCP响应的DHCPv6服务器的服务器标识。第一服务器标识和第二服务器标识可以用于对DHCPv6服务器进行校验,避免因某一设备恶意伪造DHCPv6服务器的服务器地址造成的危害,确保网络的安全性。Optionally, the server information may also include a first server ID, and the DHCP response may also include a second server ID, where the first server ID is the server ID of the DHCPv6 server stored in the router, and the second server ID is the DHCPv6 server that returns the DHCP response. The server ID of the server. The first server identifier and the second server identifier can be used to verify the DHCPv6 server, avoid harm caused by a certain device maliciously forging the server address of the DHCPv6 server, and ensure network security.
在步骤300之前,还可以包括:Before
步骤400、所述路由器从所述IPv6客户端接收路由请求RS报文,所述RS报文中包括第一设备域信息。
步骤300具体可以包括:Step 300 may specifically include:
步骤420、当所述路由器自身保存的设备域信息与所述第一设备域信息相同时,所述IPv6服务器端的路由器向所述IPv6客户端发送所述RA报文。
具体地,在IPv6服务器端的路由器向IPv6客户端发送RA报文之前,可以接收来自IPv6客户端的RS报文,RS报文中包括第一设备域信息,即IPv6客户端所在的设备域信息,其中,设备域可以预先由网络管理员根据IPv6客户端功能类型和IPv6客户端所在区域等信息进行设置。在路由器接收到RS报文之后并不直接回复RA报文,而是可以对设备域信息进行校验,判断第一设备域信息与路由器自身保存的设备域信息是否相同。如果相同,执行步骤420,向IPv6客户端发送RA报文,RA报文中可以包括DHCPv6服务器的服务器地址和第一服务器标识;如果不同,不能继续执行IPv6客户端的地址配置过程,需要等待IPv6客户端重新向路由器发送RS报文。通过对第一设备域信息与路由器自身保存的设备域信息进行校验,可以减少组网中回复RA报文的路由器个数,减少网络中的RA报文,减轻了路由器和网络的负担。Specifically, before the router at the IPv6 server end sends the RA message to the IPv6 client, it can receive the RS message from the IPv6 client, and the RS message includes the first device domain information, that is, the device domain information where the IPv6 client is located, wherein , the device domain can be pre-set by the network administrator based on information such as the function type of the IPv6 client and the area where the IPv6 client is located. After receiving the RS message, the router does not directly reply the RA message, but may check the device domain information to determine whether the first device domain information is the same as the device domain information stored by the router itself. If same, execute
举例而言,参见图1b所示及实施例一中的相关描述,同一链路中,服务器端的路由器_1可以接收IPv6客户端_1发送的RS报文,路由器_1在RS报文中包括的第一设备域信息与路由器_1自身保存的设备域信息相同的情况下向IPv6客户端_1发送RA报文,服务器端的DHCPv6服务器_1可以接收IPv6客户端_1根据RA报文中的DHCPv6服务器_1的服务器地址发送的DHCP请求,并根据DHCP请求中包括的IPv6客户端_1请求配置的信息类型为IPv6客户端_1分配配置信息,并向IPv6客户端_1返回DHCP响应,以供IPv6客户端_1进行地址配置。这样可以让互联网的广域网(WAN)和Tr069的WAN分别获取不同的默认网关,彻底分离互联网和Tr069网络。For example, referring to the related description shown in FIG. 1b and Embodiment 1, in the same link, the router_1 at the server end can receive the RS message sent by the IPv6 client_1, and the router_1 includes in the RS message When the first device domain information of router_1 is the same as the device domain information saved by router_1, it sends an RA message to IPv6 client_1, and the DHCPv6 server_1 on the server side can receive IPv6 client_1 according to the information in the RA message. The DHCP request sent by the server address of DHCPv6 server_1, and assign configuration information to IPv6 client_1 according to the information type of IPv6 client_1 request configuration included in the DHCP request, and return a DHCP response to IPv6 client_1, For address configuration of IPv6 client_1. In this way, the wide area network (WAN) of the Internet and the WAN of Tr069 can obtain different default gateways respectively, completely separating the Internet and the Tr069 network.
本实施例的IPv6地址配置方法,通过对第一设备域信息与路由器自身保存的设备域信息的校验,IPv6服务器端只有部分路由器可以向IPv6客户端回复RA报文,可以减少网络中的RA报文,减轻了路由器和网络的负担。In the IPv6 address configuration method of this embodiment, by checking the first device domain information and the device domain information saved by the router itself, only some routers at the IPv6 server end can reply RA messages to the IPv6 client, which can reduce the RA in the network. packets, reducing the burden on routers and networks.
实施例5Example 5
图5示出根据本发明实施例五的IPv6地址配置方法的流程图。如图5所示,该IPv6地址配置方法主要包括:FIG. 5 shows a flowchart of a method for configuring an IPv6 address according to Embodiment 5 of the present invention. As shown in Figure 5, the IPv6 address configuration method mainly includes:
步骤501、IPv6客户端向IPv6服务器端的路由器发送RS报文,RS报文中包括第一设备域信息。
具体地,IPv6客户端向路由器发送RS报文时属于组播发送,发往组网中相同链路的所有路由器。Specifically, when an IPv6 client sends an RS message to a router, it belongs to multicast sending, and is sent to all routers on the same link in the networking.
步骤502、路由器从IPv6客户端接收RS报文。Step 502, the router receives the RS packet from the IPv6 client.
具体地,组网中相同链路的所有路由器都可以接收到来自IPv6客户端的RS报文,RS报文中包括第一设备域信息,即IPv6客户端所在的设备域信息,其中,设备域可以预先由网络管理员根据IPv6客户端功能类型和IPv6客户端所在区域等信息进行设置。Specifically, all routers on the same link in the networking can receive the RS message from the IPv6 client, and the RS message includes the first device domain information, that is, the device domain information where the IPv6 client is located, wherein the device domain can be It is pre-set by the network administrator according to the function type of the IPv6 client and the area where the IPv6 client is located.
步骤503、路由器校验路由器自身保存的设备域信息与第一设备域信息是否相同;Step 503, the router checks whether the device domain information stored by the router itself is the same as the first device domain information;
步骤504、当路由器自身保存的设备域信息与第一设备域信息相同时,所述路由器向IPv6客户端发送RA报文,所述RA报文中包括IPv6服务器端的DHCPv6服务器的服务器信息,所述服务器信息包括所述DHCPv6服务器的服务器地址和第一服务器标识。Step 504, when the device domain information saved by the router itself is the same as the first device domain information, the router sends an RA message to the IPv6 client, the RA message includes the server information of the DHCPv6 server at the IPv6 server end, the The server information includes the server address and the first server identifier of the DHCPv6 server.
具体地,在所有路由器接收到RS报文之后并不直接回复RA报文,而是可以分别对设备域信息进行校验,判断第一设备域信息与路由器自身保存的设备域信息是否相同。如果路由器自身保存的设备域信息与第一设备域相同,该路由器可以向IPv6客户端发送RA报文,RA报文中包括DHCPv6服务器的服务器信息;如果接收到RS报文的所有路由器自身保存的设备域信息与第一设备域信息都不同,不向IPv6客户端发送RA报文,等待IPv6客户端重新发送RS报文。Specifically, after receiving the RS message, all routers do not directly reply the RA message, but may respectively check the device domain information to determine whether the first device domain information is the same as the device domain information saved by the router itself. If the device domain information saved by the router itself is the same as the first device domain, the router can send an RA message to the IPv6 client, and the RA message includes the server information of the DHCPv6 server; The device domain information is different from the first device domain information, does not send the RA message to the IPv6 client, and waits for the IPv6 client to resend the RS message.
需要说明的是,通过引入设备域信息并进行校验,多路由组网中只有部分路由器可以向IPv6客户端发送RA报文,减少了网络中的RA报文。第一服务器标识是路由器中保存的DHCPv6服务器的服务器标识。It should be noted that by introducing device domain information and performing verification, only some routers in a multi-router network can send RA packets to IPv6 clients, reducing the number of RA packets in the network. The first server identifier is the server identifier of the DHCPv6 server stored in the router.
步骤505、IPv6客户端从路由器接收RA报文,RA报文中还携带第二设备域信息,校验第一设备域信息与第二设备域信息是否相同;
步骤506、当第一设备域信息与第二设备域信息相同时,IPv6客户端解析RA报文,得到DHCPv6服务器的服务器地址和第一服务器标识;
具体地,第二设备域信息是返回的RA报文中携带的设备域信息,可以由网络管理员预先设定。通过校验第一设备域信息与第二设备域信息是否相同,可以从多个RA报文中确定一个RA报文使用,不再需要根据RA报文的到达顺序或优先级等信息选择RA报文,减轻了路由器和网络的负担。Specifically, the second device domain information is the device domain information carried in the returned RA message, which may be preset by the network administrator. By checking whether the first device domain information is the same as the second device domain information, one RA message can be determined from multiple RA messages, and it is no longer necessary to select an RA message based on information such as the arrival order or priority of the RA message. text, reducing the burden on routers and networks.
步骤507、根据服务器地址,向DHCPv6服务器发送DHCP请求,DHCP请求中包括IPv6客户端请求配置的信息类型。Step 507: Send a DHCP request to the DHCPv6 server according to the server address, and the DHCP request includes the information type requested by the IPv6 client to configure.
具体地,IPv6客户端可以解析RA报文中的服务器信息,得到DHCPv6服务器的服务器地址,根据该服务器地址可以确定向多路由组网中相同链路的哪一个DHCPv6服务器发送DHCP请求,将组播流变为单播流,可以减少同一链路上的DHCPv6报文组播流,节省网络资源、减轻网络负担。Specifically, the IPv6 client can parse the server information in the RA message to obtain the server address of the DHCPv6 server. According to the server address, it can determine which DHCPv6 server to send the DHCP request to on the same link in the multi-routing network, and the multicast The flow becomes a unicast flow, which can reduce the multicast flow of DHCPv6 packets on the same link, saving network resources and lightening the network load.
步骤508、DHCPv6服务器接收DHCP请求,根据DHCP请求中请求配置的信息类型,分配需要的配置信息;
步骤509、DHCPv6服务器向IPv6客户端发送DHCP响应,DHCP响应包括DHCPv6服务器为IPv6客户端分配的配置信息和第二服务器标识。
具体地,DHCPv6服务器可以根据DHCP请求中指示的IPv6客户端需要配置的信息类型为IPv6客户端分配配置信息,并以DHCP响应的形式告知IPv6客户端。其中,第二服务器标识为返回DHCP响应的DHCPv6服务器的服务器标识。Specifically, the DHCPv6 server may allocate configuration information to the IPv6 client according to the type of information that the IPv6 client needs to configure indicated in the DHCP request, and notify the IPv6 client in the form of a DHCP response. Wherein, the second server identifier is the server identifier of the DHCPv6 server that returns the DHCP response.
步骤510、当第一服务器标识与第二服务器标识相同时,IPv6客户端根据配置信息进行IPv6地址配置。
具体地,通过配置第一服务器标识和第二服务器标识并对其进行校验,可以避免因某一设备恶意伪造DHCPv6服务器的服务器地址等导致的危害,确保网络的安全性。Specifically, by configuring and verifying the first server ID and the second server ID, the harm caused by a certain device maliciously forging the server address of the DHCPv6 server can be avoided, and the security of the network can be ensured.
本实施例的IPv6地址配置方法,IPv6客户端通过解析路由器发送的RA报文,可以得到DHCPv6服务器的服务器地址,并根据该服务器地址向DHCPv6服务器单播地发送DHCP请求,使得在同一链路中有多路由的情况下,IPv6客户端通过服务器地址可以路由到正确的DHCPv6服务器,从正确的DHCPv6服务器获取对应的DHCP响应,因此可以快速获取正确的路由信息;通过对第一服务器标识和第二服务器标识的校验,可以确保网络的安全性;通过对设备域信息的校验,可以减少网络中的RA报文,不再需要根据RA报文的到达顺序或优先级等信息选择RA报文,减轻了路由器和网络的负担。In the IPv6 address configuration method of this embodiment, the IPv6 client can obtain the server address of the DHCPv6 server by analyzing the RA message sent by the router, and send a DHCP request to the DHCPv6 server in unicast according to the server address, so that in the same link In the case of multiple routes, the IPv6 client can be routed to the correct DHCPv6 server through the server address, and obtain the corresponding DHCP response from the correct DHCPv6 server, so that the correct routing information can be quickly obtained; by identifying the first server ID and the second The verification of the server ID can ensure the security of the network; through the verification of the device domain information, the number of RA messages in the network can be reduced, and it is no longer necessary to select RA messages based on the arrival order or priority of RA messages , reducing the burden on routers and networks.
实施例六Embodiment six
图6示出根据本发明实施例六的IPv6客户端的结构框图。如图6所示,该IPv6客户端500包括:FIG. 6 shows a structural block diagram of an IPv6 client according to Embodiment 6 of the present invention. As shown in Figure 6, the
接收单元520,用于从IPv6服务器端的路由器接收路由广播RA报文,所述RA报文中包括所述IPv6服务器端的DHCPv6服务器的服务器信息,所述服务器信息包括所述DHCPv6服务器的服务器地址。The receiving
具体地,在IPv6客户端500获取地址和网络信息(例如路由、DNS等)的过程中,IPv6客户端500向IPv6服务器端的路由器发送路由请求(RS)报文之后,接收单元520可以从IPv6服务器端的路由器接收路由广播(RA)报文,RA报文可以起到决定获取地址模式的作用。RA报文的M/O位的值可以决定IPv6客户端500通过后续的DHCPv6流程获取哪些信息。例如,M和O位均为“1”时,DHCPv6流程产生的DHCPv6报文可以用于地址和其他信息的配置,例如域名解析服务器地址和域搜索列表;M位为“0”,O位为“1”时,DHCPv6报文可以不用于分配地址,而用来分配其他信息进行配置。Specifically, during the process of the
在IPv6地址配置过程中,RA报文和DHCPv6报文交互配合可以完成一次地址和网络信息的配置。其中,在接收单元520接收到的RA报文中,可以通过扩展的服务器选项(option server)携带DHCPv6服务器的服务器信息,在服务器信息中可以包括该DHCPv6服务器的服务器地址。此外,RS报文和RA报文都可以为组播发送,即RS报文可以发往网络中的各个路由器,IPv6客户端500也可以接收到多个RA报文,IPv6客户端500可以根据RA报文的到达顺序和优先级等信息选择一个RA报文使用。During IPv6 address configuration, RA packets and DHCPv6 packets interact to complete the configuration of an address and network information. Wherein, in the RA message received by the receiving
第一发送单元540,与所述接收单元520连接,用于根据所述服务器地址,向所述DHCPv6服务器发送DHCP请求,所述DHCP请求中包括所述IPv6客户端请求配置的信息类型。The
需要说明的是,由于第一发送单元540根据服务器地址,向DHCPv6服务器发送DHCP请求,即IPv6客户端通过第一发送单元540向DHCPv6服务器发送单播DHCP请求,可以减少同一链路上的DHCPv6报文组播流,节省网络资源、减轻网络负担。It should be noted that, since the first sending
配置单元560,与所述第一发送单元540连接,用于根据所述DHCPv6服务器返回的DHCP响应进行地址配置,所述DHCP响应包括所述DHCPv6服务器为所述IPv6客户端分配的配置信息。The
具体地,IPv6客户端500根据解析RA报文可以得到的DHCPv6服务器的服务器地址,第一发送单元540可以根据该服务器地址向DHCPv6服务器单播地发送DHCP请求,DHCP请求中可以包括IPv6客户端500请求配置的信息类型,例如:地址和网络信息(路由、DNS)等。IPv6服务器端的DHCPv6服务器根据该DHCP请求可以确定需要为IPv6客户端500分配哪些信息,IPv6客户端500的配置单元560可以根据返回的DHCP响应中的配置信息进行IPv6地址配置。Specifically, according to the server address of the DHCPv6 server that the
举例而言,图1b示出多路由组网划分的示意图,如图1b所示,在运营商想要把自身的私网和互联网(Internet)分开的情况下,可以按照图1b进行组网划分,服务器端分别具有互联网和私网的入口。在同一链路中,IPv6客户端_1可以接收服务器端的路由器_1根据RS报文回复的RA报文,并解析RA报文得到与路由器_1具有对应关系的DHCPv6服务器_1的服务器地址,IPv6客户端_1可以向DHCPv6服务器_1发送DHCP请求,并根据DHCPv6服务器_1返回的DHCP响应进行地址配置。这样可以让Internet网络的广域网(Wide AreaNetwork,简称WAN)和广域网管理协议(简称Tr069)的WAN分别获取不同的默认网关,彻底分离Internet网络和Tr069网络。其中,Tr069提供了对下一代网络中家庭网络设备进行管理配置的通用框架和协议,用于从网络侧对家庭网络中的网关、路由器、机顶盒等设备进行远程集中管理。For example, Figure 1b shows a schematic diagram of multi-routing network division. As shown in Figure 1b, when an operator wants to separate its own private network from the Internet (Internet), it can divide the network according to Figure 1b , the server side has Internet and private network entrances respectively. In the same link, IPv6 client_1 can receive the RA message replied by router_1 on the server side according to the RS message, and parse the RA message to obtain the server address of DHCPv6 server_1 corresponding to router_1. The IPv6 client_1 can send a DHCP request to the DHCPv6 server_1, and perform address configuration according to the DHCP response returned by the DHCPv6 server_1. In this way, the Wide Area Network (WAN for short) of the Internet network and the WAN of the WAN management protocol (Tr069 for short) can obtain different default gateways respectively, completely separating the Internet network and the Tr069 network. Among them, Tr069 provides a general framework and protocol for the management and configuration of home network devices in the next generation network, and is used for remote centralized management of gateways, routers, set-top boxes and other devices in the home network from the network side.
本实施例的IPv6地址配置方法,IPv6客户端通过解析接收单元接收到的RA报文,可以得到DHCPv6服务器的服务器地址,第一发送单元根据该服务器地址向DHCPv6服务器单播地发送DHCP请求,使得在同一链路中有多路由的情况下,IPv6客户端通过服务器地址可以路由到正确的DHCPv6服务器,从正确的DHCPv6服务器获取对应的DHCP响应,因此可以快速获取正确的路由信息。In the IPv6 address configuration method of the present embodiment, the IPv6 client can obtain the server address of the DHCPv6 server by analyzing the RA message received by the receiving unit, and the first sending unit sends a DHCP request in unicast to the DHCPv6 server according to the server address, so that In the case of multiple routes on the same link, the IPv6 client can be routed to the correct DHCPv6 server through the server address, and obtain the corresponding DHCP response from the correct DHCPv6 server, so the correct routing information can be obtained quickly.
实施例七Embodiment seven
图7示出根据本发明实施例七的IPv6客户端的结构框图。图7中标号与图6相同的组件具有相同的功能,为简明起见,省略对这些组件的详细说明。FIG. 7 shows a structural block diagram of an IPv6 client according to Embodiment 7 of the present invention. Components with the same numbers in FIG. 7 as those in FIG. 6 have the same functions, and for the sake of brevity, detailed descriptions of these components are omitted.
如图7所示,图7所示的IPv6客户端,下面仅针对与图6不同的部分进行详细阐述,和图6相同部分参见图6的具体说明。As shown in FIG. 7 , the IPv6 client shown in FIG. 7 will be described in detail below only for the parts different from those in FIG. 6 . For the same parts as in FIG.
可选的,服务器信息还可以包括第一服务器标识,DHCP响应中还可以包括第二服务器标识,第一服务器标识为路由器中保存的DHCPv6服务器的服务器标识,第二服务器标识为返回DHCP响应的DHCPv6服务器的服务器标识。Optionally, the server information may also include a first server ID, and the DHCP response may also include a second server ID, where the first server ID is the server ID of the DHCPv6 server stored in the router, and the second server ID is the DHCPv6 server that returns the DHCP response. The server ID of the server.
配置单元560还用于当所述第一服务器标识与所述第二服务器标识相同时,根据所述DHCPv6服务器返回的DHCP响应进行地址配置。The
具体地,网络管理员可以预先在路由器中保存一个DHCPv6服务器的服务器标识(server id)即第一服务器标识,表明该DHCPv6服务器与该路由器具有对应关系,网络管理员可以预先为DHCPv6服务器设定一个服务器标识即第二服务器标识。这样,IPv6客户端接收到DHCP响应之后,可以对第一服务器标识和第二服务器标识进行校验,进一步确保网络的安全性。在第一服务器标识和第二服务器标识相同时,表明RA报文和DHCPv6报文成对配置,没有混乱使用RA报文和DHCPv6报文,可以正确完成IPv6客户端的地址配置;在第一服务器标识和第二服务器标识不同时,表明返回DHCP响应的DHCPv6服务器与发送RA报文的路由器不具有对应关系,可能是由某一设备恶意伪造DHCPv6服务器的服务器地址等造成的。Specifically, the network administrator can pre-save a server ID (server id) of a DHCPv6 server in the router, that is, the first server ID, indicating that the DHCPv6 server has a corresponding relationship with the router, and the network administrator can pre-set a DHCPv6 server. The server identifier is the second server identifier. In this way, after receiving the DHCP response, the IPv6 client can verify the first server identifier and the second server identifier, thereby further ensuring network security. When the first server ID and the second server ID are the same, it indicates that the RA message and the DHCPv6 message are configured in pairs, and the RA message and the DHCPv6 message are not used in confusion, and the address configuration of the IPv6 client can be completed correctly; If it is different from the second server ID, it indicates that the DHCPv6 server that returns the DHCP response does not correspond to the router that sends the RA packet, which may be caused by a device maliciously forging the server address of the DHCPv6 server.
IPv6客户端600具体还可以包括:Specifically, the
第二发送单元620,与所述接收单元520连接,用于向所述路由器发送路由请求RS报文,所述RS报文中包括第一设备域信息,所述RA报文中还包括第二设备域信息;The
第一发送单元540还用于当所述第一设备域信息与所述第二设备域信息相同时,根据所述服务器地址,向所述DHCPv6服务器发送所述DHCP请求。The
具体地,IPv6客户端600在进行IPv6地址配置时,第二发送单元620可以先向IPv6服务器端的路由器组播发送RS报文,即发往各个路由器。该RS报文中包括第一设备域信息,即IPv6客户端600所在的设备域信息。其中,设备域可以预先由网络管理员根据IPv6客户端600功能类型和IPv6客户端600所在区域等信息进行设置,通过引入设备域信息可以方便网络管理员对网络如公司内部局域网的管理。IPv6服务器端的路由器可以对第一设备域信息与路由器自身的设备域信息进行对比,若上述两种设备域信息相同,路由器可以为IPv6客户端600发送RA报文。Specifically, when the
在多路由组网中,在IPv6服务器端的路由器校验自身保存的设备域信息与RS报文中包括的第一设备域信息相同后,路由器可以向IPv6客户端600发送RA报文,此时,可能存在多个路由器向IPv6客户端发送RA报文。IPv6客户端可以分别校验这些RA报文中包括的第二设备域信息与第一设备域信息是否相同,其中第二设备域信息为发送上述RA报文的路由器的设备域信息。如果相同,IPv6客户端600可以解析RA报文,得到DHCPv6服务器的服务器地址和第一服务器标识,第一发送单元540可以根据DHCPv6服务器的服务器地址向DHCPv6服务器发送DHCP请求;若不相同,第二发送单元620可以重新向IPv6服务器端的路由器发送RS报文。In a multi-routing network, after the router at the IPv6 server side checks that the device domain information stored by itself is the same as the first device domain information included in the RS message, the router can send an RA message to the
需要说明的是,通过校验第一设备域信息与第二设备域信息,可以在返回的多个RA报文中确定一个RA报文使用,不再需要根据RA报文的到达顺序或优先级等信息选择RA报文,减轻了路由器和网络的负担。It should be noted that by checking the first device domain information and the second device domain information, one RA message can be determined among multiple returned RA messages, and it is no longer necessary to check the arrival order or priority of the RA messages. and other information to select RA packets, reducing the burden on routers and networks.
本实施例的IPv6客户端,通过引入第一设备域信息与第二设备域信息,可以从多个路由器回复的多个RA报文选择一个RA报文使用,不再需要根据RA报文的到达顺序或优先级等信息选择RA报文,减轻了路由器和网络的负担;通过对第一服务器标识和第二服务器标识进行校验,可以确保网络的安全性。The IPv6 client of this embodiment, by introducing the first device domain information and the second device domain information, can select an RA message from multiple RA messages replied by multiple routers to use, and no longer needs to use the RA message according to the arrival of the RA message. The information such as sequence or priority selects the RA message, which reduces the burden on the router and the network; by verifying the first server ID and the second server ID, the security of the network can be ensured.
实施例8Example 8
图8示出根据本发明实施例八的IPv6服务器的结构框图。如图8所示,该IPv6服务器700具体可以包括:FIG. 8 shows a structural block diagram of an IPv6 server according to Embodiment 8 of the present invention. As shown in Figure 8, the
路由器720,用于向IPv6客户端发送路由广播RA报文,所述RA报文中包括所述IPv6服务器端的DHCPv6服务器的服务器信息,所述服务器信息中包括所述DHCPv6服务器的服务器地址。The
具体地,在IPv6客户端获取地址和网络信息(例如路由、DNS等)的过程中,IPv6服务器700的路由器720可以向IPv6客户端发送路由广播RA报文,RA报文中包括IPv6服务器700的DHCPv6服务器740的服务器信息,该服务器信息中可以包括DHCPv6服务器740的服务器地址,用于后续向DHCPv6服务器740单播地发送DHCP请求,实现RA报文和DHCPv6报文的成对配置,正确地进行IPv6地址配置。Specifically, during the process of the IPv6 client acquiring address and network information (such as routing, DNS, etc.), the
DHCPv6服务器740,用于根据所述DHCP请求中包括的所述IPv6客户端请求配置的信息类型向所述IPv6客户端发送DHCP响应,所述DHCP响应包括所述DHCPv6服务器为所述IPv6客户端分配的配置信息。The
具体地,参见实施例一中的IPv6地址配置方法的相关描述,IPv6服务器端700的DHCPv6服务器740可以接收IPv6客户端根据DHCPv6服务器740的服务器地址发送的DHCP请求,DHCPv6服务器740可以进一步地根据DHCP请求中包括的IPv6客户端请求配置的信息类型为IPv6客户端分配需要的配置信息,并向IPv6客户端发送DHCP响应,该DHCP响应中包括DHCPv6服务器740为IPv6客户端分配的配置信息,用于后续IPv6客户端根据上述配置信息完成IPv6地址配置。Specifically, referring to the relevant description of the IPv6 address configuration method in Embodiment 1, the
具体示例可以参见图1b、实施例三和实施例四中的相关描述。For specific examples, reference may be made to FIG. 1 b , and related descriptions in Embodiment 3 and Embodiment 4.
本实施例的IPv6服务器,IPv6服务器端的路由器向IPv6客户端发送包括DHCPv6服务器的服务器地址的RA报文,该DHCPv6服务器接收DHCP请求,DHCPv6服务器根据DHCP请求为IPv6客户端分配需要的配置信息,使得在同一链路中有多路由的情况下,IPv6客户端通过服务器地址可以路由到正确的DHCPv6服务器,从正确的DHCPv6服务器获取对应的DHCP响应,因此可以快速获取正确的路由信息。In the IPv6 server of this embodiment, the router at the IPv6 server end sends the RA message comprising the server address of the DHCPv6 server to the IPv6 client, and the DHCPv6 server receives the DHCP request, and the DHCPv6 server distributes required configuration information for the IPv6 client according to the DHCP request, so that In the case of multiple routes on the same link, the IPv6 client can be routed to the correct DHCPv6 server through the server address, and obtain the corresponding DHCP response from the correct DHCPv6 server, so the correct routing information can be obtained quickly.
实施例9Example 9
图9示出根据本发明实施例九的IPv6服务器的结构框图。图9中标号与图8相同的组件具有相同的功能,为简明起见,省略对这些组件的详细说明。FIG. 9 shows a structural block diagram of an IPv6 server according to Embodiment 9 of the present invention. Components with the same numbers in FIG. 9 as those in FIG. 8 have the same functions, and for the sake of brevity, detailed descriptions of these components are omitted.
如图9所示,图9所示的IPv6服务器,下面仅针对与图8不同的部分进行详细阐述,和图8相同部分参见图8的具体说明。As shown in FIG. 9, the IPv6 server shown in FIG. 9 will only be described in detail below for the parts different from those in FIG. 8. For the same parts as in FIG.
可选的,服务器信息还可以包括第一服务器标识,DHCP响应中还可以包括第二服务器标识,第一服务器标识为路由器中保存的DHCPv6服务器的服务器标识,第二服务器标识为返回DHCP响应的DHCPv6服务器的服务器标识。第一服务器标识和第二服务器标识可以用于IPv6客户端对DHCPv6服务器进行校验,避免因某一设备恶意伪造DHCPv6服务器的服务器地址等造成的危害,确保网络的安全性。Optionally, the server information may also include a first server ID, and the DHCP response may also include a second server ID, where the first server ID is the server ID of the DHCPv6 server stored in the router, and the second server ID is the DHCPv6 server that returns the DHCP response. The server ID of the server. The first server identifier and the second server identifier can be used by the IPv6 client to verify the DHCPv6 server, avoid harm caused by a certain device maliciously forging the server address of the DHCPv6 server, etc., and ensure network security.
路由器720具体可以包括:The
第一接收单元820,用于从所述IPv6客户端接收路由请求RS报文,所述RS报文中包括第一设备域信息。The
具体地,在IPv6服务器800的路由器720向IPv6客户端发送RA报文之前,第一接收单元820可以接收来自IPv6客户端的RS报文,RS报文中包括第一设备域信息,即IPv6客户端所在的设备域信息,其中,设备域可以预先由网络管理员根据IPv6客户端功能类型和IPv6客户端所在区域等信息进行设置,通过引入设备域信息可以方便网络管理员对网络如公司内部局域网的管理。Specifically, before the
第一发送单元840,与所述第一接收单元820连接,用于在当所述路由器自身保存的设备域信息与所述第一设备域信息相同时,向所述IPv6客户端发送所述RA报文。A
具体地,第一接收单元820从IPv6客户端接收的RS报文中包括第一设备域信息,在路由器720接收到RS报文之后并不直接回复RA报文,而是可以对设备域信息进行校验,判断第一设备域信息与路由器720自身保存的设备域信息是否相同。如果相同,第一发送单元840可以向IPv6客户端发送RA报文,RA报文中包括DHCPv6服务器740的服务器地址和第一服务器标识;如果不同,第一接收单元820重新从IPv6客户端接收RS报文。Specifically, the RS message received by the
具体示例可以参见图1b、实施例三和实施例四中的相关描述。For specific examples, reference may be made to FIG. 1 b , and related descriptions in Embodiment 3 and Embodiment 4.
进一步地,DHCPv6服务器740具体可以包括:Further, the
第二接收单元860,用于接收所述IPv6客户端根据所述服务器地址发送的DHCP请求,所述DHCP请求中包括所述IPv6客户端请求配置的信息类型;The
第二发送单元880,与所述第二接收单元860连接,用于向所述IPv6客户端发送DHCP响应,所述DHCP响应包括所述DHCPv6服务器为所述IPv6客户端分配的配置信息。The
具体地,参见实施例三中的IPv6地址配置方法的相关描述,第二接收单元860可以接收IPv6客户端根据DHCPv6服务器740的服务器地址发送的DHCP请求,DHCPv6服务器740可以进一步地根据DHCP请求中包括的IPv6客户端请求配置的信息类型为IPv6客户端分配配置信息,第二发送单元880向IPv6客户端发送DHCP响应,该DHCP响应中包括DHCPv6服务器740为IPv6客户端分配的配置信息和第二服务器标识。第二服务器标识可以用于实施例八中的IPv6客户端进行校验,以使得IPv6地址配置过程更加具有安全性。Specifically, referring to the relevant description of the IPv6 address configuration method in Embodiment 3, the
本实施例的IPv6服务器,通过对第一设备域信息与路由器自身保存的设备域信息的校验,IPv6服务器端只有部分路由器可以通过第一发送单元向IPv6客户端回复RA报文,可以减少网络中的RA报文,减轻了路由器和网络的负担。In the IPv6 server of this embodiment, by checking the first device domain information and the device domain information saved by the router itself, only some routers at the IPv6 server end can reply the RA message to the IPv6 client through the first sending unit, which can reduce network traffic. The RA message in the packet reduces the burden on the router and the network.
实施例10Example 10
图10示出根据本发明实施例十的一种IPv6客户端的结构框图。所述IPv6客户端900可以是具备计算能力的主机服务器、个人计算机PC、或者可携带的便携式计算机或终端等。本发明具体实施例并不对计算节点的具体实现做限定。FIG. 10 shows a structural block diagram of an IPv6 client according to Embodiment 10 of the present invention. The
所述IPv6客户端900包括处理器(processor)910、通信接口(Communications Interface)920、存储器(memory array)930和总线940。其中,处理器910、通信接口920、以及存储器930通过总线940完成相互间的通信。The
通信接口920用于与网元通信,其中网元包括例如虚拟机管理中心、共享存储等。The
处理器910用于执行程序。处理器910可能是一个中央处理器CPU,或者是专用集成电路ASIC(Application Specific Integrated Circuit),或者是被配置成实施本发明实施例的一个或多个集成电路。The processor 910 is used to execute programs. The processor 910 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention.
存储器930用于存放文件。存储器930可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。存储器930也可以是存储器阵列。存储器930还可能被分块,并且所述块可按一定的规则组合成虚拟卷。The memory 930 is used to store files. The memory 930 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. Memory 930 may also be a memory array. The memory 930 may also be divided into blocks, and the blocks may be combined into virtual volumes according to certain rules.
在一种可能的实施方式中,上述程序可为包括计算机操作指令的程序代码。In a possible implementation manner, the above program may be a program code including computer operation instructions.
IPv6客户端可以通过通信接口920从IPv6服务器端的路由器接收路由广播RA报文,并存储在存储器930中,所述RA报文中包括所述IPv6服务器端的DHCPv6服务器的服务器信息,所述服务器信息中包括所述DHCPv6服务器的服务器地址;The IPv6 client can receive the routing broadcast RA message from the router at the IPv6 server end through the
所述IPv6客户端的处理器910可以解析RA报文得到服务器地址,并通过通信接口920根据所述服务器地址向所述DHCPv6服务器发送DHCP请求,所述DHCP请求中包括所述IPv6客户端请求配置的信息类型;The processor 910 of the IPv6 client can parse the RA message to obtain the server address, and send a DHCP request to the DHCPv6 server through the
所述IPv6客户端可以通过通信接口920接收所述DHCPv6服务器返回的DHCP响应,处理器910可以根据所述DHCP响应进行地址配置,所述DHCP响应中包括所述DHCPv6服务器为所述IPv6客户端分配的配置信息。The IPv6 client can receive the DHCP response returned by the DHCPv6 server through the
在一种可能的实现方式中,存储器930中存储的服务器信息还包括第一服务器标识,所述DHCP响应中还包括第二服务器标识,所述第一服务器标识为所述路由器中存储器930保存的所述DHCPv6服务器的服务器标识,所述第二服务器标识为返回所述DHCP响应的DHCPv6服务器的服务器标识,所述IPv6客户端的处理器910根据所述DHCPv6服务器返回的DHCP响应进行地址配置,具体包括:In a possible implementation manner, the server information stored in the memory 930 further includes a first server identifier, and the DHCP response further includes a second server identifier, and the first server identifier is stored in the router 930. The server identifier of the DHCPv6 server, the second server identifier is the server identifier of the DHCPv6 server that returns the DHCP response, and the processor 910 of the IPv6 client performs address configuration according to the DHCP response returned by the DHCPv6 server, specifically including :
当所述第一服务器标识与所述第二服务器标识相同时,所述IPv6客户端的处理器910根据所述DHCPv6服务器返回的DHCP响应进行地址配置。When the first server identifier is the same as the second server identifier, the processor 910 of the IPv6 client performs address configuration according to the DHCP response returned by the DHCPv6 server.
在一种可能的实现方式中,所述IPv6客户端通过通信接口920从IPv6服务器端的路由器接收路由广播RA报文之前,包括:In a possible implementation manner, before the IPv6 client receives the routing broadcast RA message from the router at the IPv6 server end through the
所述IPv6客户端通过通信接口920向所述路由器发送路由请求RS报文,所述RS报文中包括第一设备域信息,所述RA报文中还包括第二设备域信息;The IPv6 client sends a routing request RS message to the router through the
所述IPv6客户端的处理器910根据所述服务器地址,向所述DHCPv6服务器发送DHCP请求,具体包括:The processor 910 of the IPv6 client sends a DHCP request to the DHCPv6 server according to the server address, specifically including:
当所述第一设备域信息与所述第二设备域信息相同时,所述IPv6客户端的处理器910解析得到所述DHCPv6服务器的服务器地址,通过通信接口920根据所述服务器地址,向所述DHCPv6服务器发送所述DHCP请求。When the first device domain information is the same as the second device domain information, the processor 910 of the IPv6 client resolves to obtain the server address of the DHCPv6 server, and communicates to the DHCPv6 server through the
实施例11Example 11
图11示出根据本发明实施例十一的一种IPv6服务器的结构框图。所述IPv6服务器1000可以是具备计算能力的主机服务器、个人计算机PC、或者可携带的便携式计算机或终端等。本发明具体实施例并不对计算节点的具体实现做限定。FIG. 11 shows a structural block diagram of an IPv6 server according to Embodiment 11 of the present invention. The
IPv6服务器端可以包括路由器和DHCPv6服务器,所述路由器和DHCPv6服务器均可以包括处理器(processor)1010、通信接口(CommunicationsInterface)1020、存储器(memory array)1030和总线1040。其中,处理器1010、通信接口1020、以及存储器1030通过总线1040完成相互间的通信。The IPv6 server end may include a router and a DHCPv6 server, and both the router and the DHCPv6 server may include a processor (processor) 1010, a communication interface (CommunicationsInterface) 1020, a memory (memory array) 1030 and a bus 1040. Wherein, the processor 1010 , the
通信接口1020用于与网元通信,其中网元包括例如虚拟机管理中心、共享存储等。The
处理器1010用于执行程序。处理器1010可能是一个中央处理器CPU,或者是专用集成电路ASIC(Application Specific Integrated Circuit),或者是被配置成实施本发明实施例的一个或多个集成电路。The processor 1010 is used to execute programs. The processor 1010 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention.
存储器1030用于存放文件。存储器1030可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。存储器1030也可以是存储器阵列。存储器1030还可能被分块,并且所述块可按一定的规则组合成虚拟卷。The storage 1030 is used to store files. The memory 1030 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one magnetic disk memory. Memory 1030 may also be a memory array. The storage 1030 may also be divided into blocks, and the blocks may be combined into virtual volumes according to certain rules.
在一种可能的实施方式中,上述程序可为包括计算机操作指令的程序代码。In a possible implementation manner, the above program may be a program code including computer operation instructions.
IPv6服务器端的路由器通过通信接口1020向IPv6客户端发送路由广播RA报文,并存储在存储器1030中,所述RA报文中包括所述IPv6服务器端的DHCPv6服务器的服务器信息,所述服务器信息包括所述DHCPv6服务器的服务器地址;The router at the IPv6 server end sends a routing broadcast RA message to the IPv6 client through the
IPv6服务器端的DHCPv6服务器通过通信接口1020接收所述IPv6客户端根据所述服务器地址发送的DHCP请求,所述DHCP请求中包括所述IPv6客户端请求配置的信息类型;The DHCPv6 server at the IPv6 server end receives the DHCP request sent by the IPv6 client according to the server address through the
所述DHCPv6服务器通过通信接口1020向所述IPv6客户端发送DHCP响应,所述DHCP响应包括所述DHCPv6服务器为所述IPv6客户端分配的配置信息。The DHCPv6 server sends a DHCP response to the IPv6 client through the
在一种可能的实施方式中,存储器1030中存储的服务器信息还包括第一服务器标识,所述DHCP响应中还包括第二服务器标识,所述第一服务器标识为所述路由器的存储器1030中保存的所述DHCPv6服务器的服务器标识,所述第二服务器标识为返回所述DHCP响应的DHCPv6服务器的服务器标识。In a possible implementation manner, the server information stored in the memory 1030 further includes a first server identifier, and the DHCP response further includes a second server identifier, and the first server identifier is stored in the router memory 1030. The server identifier of the DHCPv6 server, the second server identifier is the server identifier of the DHCPv6 server that returns the DHCP response.
在一种可能的实施方式中,所述IPv6服务器端的路由器向IPv6客户端发送路由广播RA报文之前,包括:In a possible implementation manner, before the router at the IPv6 server end sends the routing broadcast RA message to the IPv6 client, it includes:
所述路由器通过通信接口1020从所述IPv6客户端接收路由请求RS报文,所述RS报文中包括第一设备域信息;The router receives a routing request RS message from the IPv6 client through the
所述IPv6服务器端的路由器通过通信接口1020向IPv6客户端发送路由广播RA报文,具体包括:The router at the IPv6 server end sends a routing broadcast RA message to the IPv6 client through the
当所述路由器自身保存的设备域信息与所述第一设备域信息相同时,所述IPv6服务器端的路由器通过通信接口1020向所述IPv6客户端发送所述RA报文。When the device domain information stored by the router itself is the same as the first device domain information, the router at the IPv6 server end sends the RA message to the IPv6 client through the
本领域普通技术人员可以意识到,本文所描述的实施例中的各示例性单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件形式来实现,取决于技术方案的特定应用和设计约束条件。专业技术人员可以针对特定的应用选择不同的方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art can appreciate that each exemplary unit and algorithm steps in the embodiments described herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in the form of hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may choose different methods to implement the described functions for specific applications, but such implementations should not be considered as exceeding the scope of the present invention.
如果以计算机软件的形式来实现所述功能并作为独立的产品销售或使用时,则在一定程度上可认为本发明的技术方案的全部或部分(例如对现有技术做出贡献的部分)是以计算机软件产品的形式体现的。该计算机软件产品通常存储在计算机可读取的存储介质中,包括若干指令用以使得计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各实施例方法的全部或部分步骤。而前述的存储介质包括U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random AccessMemory)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are implemented in the form of computer software and sold or used as an independent product, it can be considered that all or part of the technical solution of the present invention (such as the part that contributes to the prior art) is In the form of computer software products. The computer software product is usually stored in a computer-readable storage medium, and includes several instructions to enable a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the embodiments of the present invention. The aforementioned storage media include various media that can store program codes such as U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims (14)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310504080.XA CN103561122B (en) | 2013-10-23 | 2013-10-23 | IPv6 address collocation method, IPv6 client and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310504080.XA CN103561122B (en) | 2013-10-23 | 2013-10-23 | IPv6 address collocation method, IPv6 client and server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103561122A true CN103561122A (en) | 2014-02-05 |
CN103561122B CN103561122B (en) | 2017-01-18 |
Family
ID=50015272
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310504080.XA Active CN103561122B (en) | 2013-10-23 | 2013-10-23 | IPv6 address collocation method, IPv6 client and server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103561122B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104519149A (en) * | 2014-12-24 | 2015-04-15 | 国家电网公司 | Method for protecting important communication equipment by caching DHCPv6 rq options |
CN105282026A (en) * | 2014-06-23 | 2016-01-27 | 国基电子(上海)有限公司 | Default gateway selecting system and method |
CN105554098A (en) * | 2015-12-14 | 2016-05-04 | 瑞斯康达科技发展股份有限公司 | Device configuration method, server and system |
CN108958825A (en) * | 2017-05-19 | 2018-12-07 | 腾讯科技(深圳)有限公司 | A kind of information configuring methods and device |
CN109495598A (en) * | 2018-10-23 | 2019-03-19 | 新华三技术有限公司合肥分公司 | Domain name system parameter selection method and relevant apparatus |
CN113114795A (en) * | 2021-03-30 | 2021-07-13 | 烽火通信科技股份有限公司 | IPv6 address allocation method and system |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1761233A (en) * | 2004-10-12 | 2006-04-19 | 上海贝尔阿尔卡特股份有限公司 | Network service selection and authentication in IPv6 access network, and automatic configuration without status |
CN101330527A (en) * | 2007-06-22 | 2008-12-24 | 华为技术有限公司 | Address Configuration Method for Mobile Node, Access Router and Fast Handover |
US20100091684A1 (en) * | 2008-10-10 | 2010-04-15 | Robert Lee Winter | System and Method for Discovery of Dynamically Assigned Information Handling System IP Addresses |
CN102158563A (en) * | 2010-02-12 | 2011-08-17 | 华为技术有限公司 | Method, system and device for acquiring IPv6 (Internet Protocol Version 6) configuration information from IPv6 transition network |
US8054839B2 (en) * | 2008-03-07 | 2011-11-08 | Samsung Electronics Co., Ltd | Apparatus and method of processing stateful address auto-configuration protocol in IPv6 network |
CN102271050A (en) * | 2010-06-04 | 2011-12-07 | 华为技术有限公司 | Method and system for automatically configuring network equipment in Internet protocol version 6 (IPv6) network, and network equipment |
CN102957759A (en) * | 2011-08-26 | 2013-03-06 | 中兴通讯股份有限公司 | Distribution method and system for IPv6 (internet protocol version 6) address prefixes |
-
2013
- 2013-10-23 CN CN201310504080.XA patent/CN103561122B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1761233A (en) * | 2004-10-12 | 2006-04-19 | 上海贝尔阿尔卡特股份有限公司 | Network service selection and authentication in IPv6 access network, and automatic configuration without status |
CN101330527A (en) * | 2007-06-22 | 2008-12-24 | 华为技术有限公司 | Address Configuration Method for Mobile Node, Access Router and Fast Handover |
US8054839B2 (en) * | 2008-03-07 | 2011-11-08 | Samsung Electronics Co., Ltd | Apparatus and method of processing stateful address auto-configuration protocol in IPv6 network |
US20100091684A1 (en) * | 2008-10-10 | 2010-04-15 | Robert Lee Winter | System and Method for Discovery of Dynamically Assigned Information Handling System IP Addresses |
CN102158563A (en) * | 2010-02-12 | 2011-08-17 | 华为技术有限公司 | Method, system and device for acquiring IPv6 (Internet Protocol Version 6) configuration information from IPv6 transition network |
CN102271050A (en) * | 2010-06-04 | 2011-12-07 | 华为技术有限公司 | Method and system for automatically configuring network equipment in Internet protocol version 6 (IPv6) network, and network equipment |
CN102957759A (en) * | 2011-08-26 | 2013-03-06 | 中兴通讯股份有限公司 | Distribution method and system for IPv6 (internet protocol version 6) address prefixes |
Non-Patent Citations (1)
Title |
---|
李亮: "DHCPv6服务器的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105282026A (en) * | 2014-06-23 | 2016-01-27 | 国基电子(上海)有限公司 | Default gateway selecting system and method |
CN104519149A (en) * | 2014-12-24 | 2015-04-15 | 国家电网公司 | Method for protecting important communication equipment by caching DHCPv6 rq options |
CN105554098A (en) * | 2015-12-14 | 2016-05-04 | 瑞斯康达科技发展股份有限公司 | Device configuration method, server and system |
CN105554098B (en) * | 2015-12-14 | 2019-01-25 | 瑞斯康达科技发展股份有限公司 | A kind of equipment configuration method, server and system |
CN108958825A (en) * | 2017-05-19 | 2018-12-07 | 腾讯科技(深圳)有限公司 | A kind of information configuring methods and device |
CN108958825B (en) * | 2017-05-19 | 2021-10-22 | 腾讯科技(深圳)有限公司 | Information configuration method and device |
CN109495598A (en) * | 2018-10-23 | 2019-03-19 | 新华三技术有限公司合肥分公司 | Domain name system parameter selection method and relevant apparatus |
CN109495598B (en) * | 2018-10-23 | 2022-02-11 | 新华三技术有限公司合肥分公司 | Domain name system parameter selection method and related device |
CN113114795A (en) * | 2021-03-30 | 2021-07-13 | 烽火通信科技股份有限公司 | IPv6 address allocation method and system |
Also Published As
Publication number | Publication date |
---|---|
CN103561122B (en) | 2017-01-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108848100B (en) | A stateful IPv6 address generation method and device | |
US9258699B2 (en) | Method for route transmission based on single IPv6 address prefix, and wireless device | |
US8681695B1 (en) | Single address prefix allocation within computer networks | |
CN101534329B (en) | IP address allocation method and system | |
CN103561122B (en) | IPv6 address collocation method, IPv6 client and server | |
CN106412142B (en) | Resource equipment address obtaining method and device | |
US7962584B2 (en) | Usage of host generating interface identifiers in DHCPv6 | |
CN101656725B (en) | Method for implementing safety access and access equipment | |
JP5967173B2 (en) | Network relay device, method for setting operation mode of packet relay processing unit included in network relay device, and computer program | |
CN104378455B (en) | IP address distribution method and device | |
WO2010069181A1 (en) | Method and system for configuring ipv6 address | |
US20150113168A1 (en) | Network Bridging | |
CN101841573A (en) | Method and device for processing address information of Internet and Internet system | |
CN112654049B (en) | Method, system, node and medium for configuring a wireless communication coverage extension system | |
CN107547665B (en) | Method, equipment and system for allocating DHCP (dynamic host configuration protocol) address | |
KR100864158B1 (en) | Temporary Address Generation / Assignment Method and Wireless Resource Allocation Method in Mobile Internet Network | |
CN103384282B (en) | The method and BRAS of a kind of acquisition IPV6ND addresses | |
WO2017012089A1 (en) | Communication method, device and system based on data link layer | |
WO2018019216A1 (en) | Ap access control | |
CN108429822B (en) | Communication system, IPv6 address allocation method and device and distributed gateway | |
WO2014142258A1 (en) | Communication system, control device, address allocation method, and program | |
CN108574635B (en) | Routing priority configuration method, device and controller | |
US9503418B2 (en) | Method and apparatus for obtaining remote IP address | |
EP3503484B1 (en) | Message transmission methods and devices | |
CN102761425B (en) | Charging method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: 518129 Building 2, B District, Bantian HUAWEI base, Longgang District, Shenzhen, Guangdong. Patentee after: Huawei terminal (Shenzhen) Co.,Ltd. Address before: 518129 Building 2, B District, Bantian HUAWEI base, Longgang District, Shenzhen, Guangdong. Patentee before: HUAWEI DEVICE Co.,Ltd. |
|
CP01 | Change in the name or title of a patent holder | ||
TR01 | Transfer of patent right |
Effective date of registration: 20181225 Address after: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province Patentee after: HUAWEI DEVICE Co.,Ltd. Address before: 518129 Building 2, B District, Bantian HUAWEI base, Longgang District, Shenzhen, Guangdong. Patentee before: Huawei terminal (Shenzhen) Co.,Ltd. |
|
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20210426 Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040 Patentee after: Shenzhen Zhixin new information technology Co.,Ltd. Address before: Metro Songshan Lake high tech Industrial Development Zone, Guangdong Province, Dongguan City Road 523808 No. 2 South Factory (1) project B2 -5 production workshop Patentee before: HUAWEI DEVICE Co.,Ltd. |
|
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20211014 Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040 Patentee after: Honor Device Co.,Ltd. Address before: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040 Patentee before: Shenzhen Zhixin new information technology Co.,Ltd. |
|
CP03 | Change of name, title or address |
Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040 Patentee after: Honor Terminal Co.,Ltd. Country or region after: China Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong Patentee before: Honor Device Co.,Ltd. Country or region before: China |