WO2013123763A1 - 家庭网关动态配置ipv6的方法 - Google Patents

家庭网关动态配置ipv6的方法 Download PDF

Info

Publication number
WO2013123763A1
WO2013123763A1 PCT/CN2012/079912 CN2012079912W WO2013123763A1 WO 2013123763 A1 WO2013123763 A1 WO 2013123763A1 CN 2012079912 W CN2012079912 W CN 2012079912W WO 2013123763 A1 WO2013123763 A1 WO 2013123763A1
Authority
WO
WIPO (PCT)
Prior art keywords
ipv6
address
home gateway
dhcpv6
configuration
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.)
Ceased
Application number
PCT/CN2012/079912
Other languages
English (en)
French (fr)
Inventor
李华敏
王志军
田智炜
邬忻
陈芳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to RU2013155979/08A priority Critical patent/RU2602971C2/ru
Publication of WO2013123763A1 publication Critical patent/WO2013123763A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5092Address allocation by self-assignment, e.g. picking addresses at random and testing if they are already in use
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/659Internet protocol version 6 [IPv6] addresses

Definitions

  • the present invention relates to the field of home gateway technologies, and in particular, to a method for dynamically configuring IPV6 (Internet Protocol Version 6) in a home gateway. Background technique
  • the home gateway is a multi-service integrated access device for home and small business users. It is connected to the external network through the home gateway to form a home-oriented service delivery platform.
  • the main function is to realize the conversion from the intelligent broadband access network to the informationized home network.
  • the current global Internet IPv4 address pool has tended to dry up, and research on IPv6-enabled home gateways is imperative.
  • IPv6 Home Gateway Configuration There are three ways to configure IPv6:
  • the first is to manually configure the IPv6 address of the gateway, and the routing gateway, IPv6 domain name server (DNS: Domain Name System) and other information through static configuration.
  • DNS Domain Name System
  • the second is configured by DHCPv6 (DHCP for Dynamic Host Configuration Protocol).
  • DHCPv6 Dynamic Host Configuration Protocol for IPv6.
  • IPv6 PPPoE Point-to-Point Protocol over Ethernet
  • the PPPoE server of IPv4 and IPv6 has different configurations for the addresses of the two ends of the PPP (Point-to-Point Protocol) link.
  • the IP addresses of the two ends of the PPP link of the IPv4 are mainly through the IPCP of the PPP session.
  • IP Control Protocol IP Control Protocol
  • IPv6 PPP link address is negotiated through IPv6CP (IPv6 Control Protocol), according to "RFC 2472: IP Version 6 over PPP”
  • IPv6CP negotiates 64-bit interface identifier in the link negotiation phase (Interface Identifier),
  • the pppx network interface generates a local link address instead of a global unicast address.
  • the home gateway is a hub connecting the operator network and the user's home network. How the home gateway user communicates with the IPv6 network through the home gateway is a technical problem to be solved in the field. Summary of the invention
  • the purpose of the present invention is to overcome the deficiencies of the above background art, and provide a method for dynamically configuring IPV6 in a home gateway.
  • the home gateway can obtain the WAN side by selecting an "acquire address” option by using a home gateway through an IPv6 PPPoE dialing method.
  • the IPv6 global unicast address of the network interface can access IPv6 network resources.
  • the home gateway terminal user can obtain the IPv6 global unicast address, and thus can access the IPv6 network resources.
  • the method for dynamically configuring the IPV6 of the home gateway comprises the following steps: A. Establishing a WAN connection with an Internet attribute routing mode, adopting a point-to-point protocol PPPoE dialing mode on the Ethernet, and obtaining an address according to the PPPoE dialing option "Get Address” and "Get a Prefix” Dynamic combination, determine the configuration mode of the home gateway IPV6; B, start the dial-up process, create the interface of the dial-up process, the dial-up process calls the executable script ipv6-up, and starts the IPv6 dynamic host configuration protocol DHCPv6 client in the gateway, which produces different The configuration behavior, combined with stateful autoconfiguration and stateless autoconfiguration, enables the home gateway to dynamically configure IPv6.
  • the dynamic combination of the PPPoE dialing options "Get Address” and “Get Prefix” in the step A and the marking thereof include the following four types:
  • the DHCPv6 client requests the stateless DHCPv6 service, and the home gateway obtains the domain name server address from the WAN side DHCPv6 server; the DHCPv6 client starts the DHCPv6 server in the gateway, and updates the domain name server. Address configuration information. .
  • the DHCPv6 client initiates the prefix identification group option IA_PD request, starts the route advertisement module, and the home gateway LAN side PC acquires the IPv6 global unicast address through stateless automatic configuration;
  • the home gateway LAN side PC obtains the domain name server address information through the stateless DHCPv6 service mode in the stateful auto configuration.
  • the DHCPv6 client initiates the non-temporary address identification group option IA_NA request, and the home gateway WAN side obtains the IPv6 global unicast address and the domain name server address information through the stateful automatic configuration;
  • the DHCPv6 server updates the domain name server address configuration information.
  • the DHCPv6 client simultaneously initiates an IA_NA request and an IA_PD request, and the home gateway WAN side obtains an IPv6 global unicast address and a domain name server address through stateful autoconfiguration;
  • the home gateway LAN side PC obtains the IPv6 global unicast address through the stateless automatic configuration; starts the DHCPv6 server of the gateway, and the home gateway LAN side PC obtains the domain name server address information through the stateless DHCPv6 service mode in the stateful automatic configuration.
  • the stateful automatic configuration is: the corresponding network interface of the home gateway obtains an IPv6 global unicast address from the WAN side DHCPv6 server address pool, and obtains the domain name server address from the WAN side DHCPv6 server.
  • the stateless DHCPv6 service mode in the stateful automatic configuration is:
  • the DHCPv6 server does not allocate an IPv6 address, and only provides the domain to the client.
  • the process of the stateless automatic configuration is: the network interface obtains a global unicast address by using the global address prefix of the route advertisement combined with the interface identifier.
  • the present invention adopts the method of the IPv6 PPPoE dialing by the home gateway.
  • the home gateway can obtain the IPv6 global unicast address of the WAN side network interface, thereby accessing the IPv6 network resource.
  • the home gateway end user can obtain the IPv6 global unicast address, which in turn can access IPv6 network resources.
  • FIG. 1 is a structural block diagram of a home gateway in an embodiment of the present invention.
  • the home gateway is connected to the OLT (Optical Line Tterminal).
  • the OLT is connected to an IPv6-enabled dial-up server, a dynamic host configuration server, and a domain name server. It also needs a WEB server that supports IPv6.
  • WAN Wide Area Network
  • INTERNET Internet
  • This WAN connection can forward LAN (Local Area Network) data and WAN side data to implement LAN and WAN.
  • the data on both sides is interconnected.
  • the configuration mode is PPPoE dialing mode. There are two options for this configuration mode: "Get Address” and "Get Prefix”.
  • the dynamic combination of items determines how the home gateway IPV6 is configured. There are four combinations of these two options, each of which takes a different dynamic configuration of IPv6. According to different configuration modes of the home gateway IPv6, combined with stateful automatic configuration and stateless automatic configuration, the home gateway dynamically configures IPv6.
  • the process of dynamically configuring IPv6 on the home gateway is as follows:
  • Step S1 Start the PPPoE dialup process pppd in the home gateway, and create an interface for the dialup process.
  • Step S2 The dialing process pppd calls the executable script ipv6-up.
  • Step S3 Executable script The ipv6-up script determines whether the WAN connection has an INTERNET attribute. If yes, go to step S4, otherwise it will pop up.
  • Step S4 The executable script ipv6-up determines the currently selected configuration mode.
  • Uncheck the get address, uncheck the get prefix, and define the flag flag value is 00; uncheck the get address, check the get prefix, The definition mark Flag value is 01;
  • the difference between these four configurations is that the DHCPv6 client process has different options for making requests.
  • the DHCPv6 client requests a non-temporary address through the IA-NA (Identity Association for Non-temporary Addresses) option, and requests the temporary address through the IA-TA (Identity Association for Temporary Addresses) option.
  • the address prefix is requested by the IA_PD (Authentication Association for Prefix Delegation) option.
  • Step S5a The DHCPv6 client requests the stateless DHCPv6 service, that is, the dynamic host configuration server does not allocate an IPv6 address, and only provides the domain name server address configuration information.
  • Step S6b Start the DHCPv6 server of the gateway, and update the domain name server address configuration information.
  • Step S5b The DHCPv6 client initiates an IA_PD request, and the prefix is obtained by the WAN-side dynamic host configuration server.
  • the prefix assigned to the home gateway is less than or equal to 64 bits, the required number of bits is added by the obtained address prefix by default. Fill in 64 bits.
  • Step S6a The radvd (Router Advertisement Daemon) is started by the DHCPv6 client, and the DHCPv6 client updates the obtained prefix to the configuration file of the radvd process, and the radvd process passes the prefix to the RA (Router Advertisement, Router Advertisement).
  • the packet is sent to the LAN device of the home gateway.
  • the home gateway acts as a router, and the radvd configuration in the home gateway needs to be updated to support the stateless auto configuration mode configuration address.
  • the LAN side PC automatically configures IPv6 globally through stateless automatic configuration. Unicast address.
  • Step S6b Start the DHCPv6 server of the gateway, and update the domain name server address configuration information.
  • Home Gateway The LAN side PC obtains the domain name server address information through the stateless DHCPv6 service mode.
  • Step S5c The executable script ipv6-up starts the DHCPv6 client.
  • the radvd is not required
  • the DHCPv6 client requests the IA_NA mode
  • the WAN side of the home gateway obtains the IPv6 global unicast address and the domain name server address information through the stateful automatic configuration.
  • the home gateway WAN side address comes from the IPv6 dynamic host configuration server address pool.
  • Step S6b Start the DHCPv6 server of the gateway, and update the domain name server address configuration information.
  • the home gateway requests both the address and the prefix, and performs steps S5d, S6a, and S6b shown in FIG.
  • Step S5d The executable script ipv6-up starts the DHCPv6 client.
  • the DHCPv6 client requests the IA_NA and IA_PD modes.
  • the WAN side of the home gateway can automatically obtain the IPv6 global unicast address and domain name server address information.
  • Home Gateway The WAN side address comes from the global unicast address configured in the IPv6 Dynamic Host Configuration Server address pool.
  • Step S6a The radvd is started by the DHCPv6 client, and the DHCPv6 client updates the obtained prefix to the configuration file of the radvd process.
  • the radvd process sends the prefix to the LAN device of the home gateway through the RA message.
  • the role of the router, and the radvd configuration in the home gateway needs to be updated to support the configuration of the stateless autoconfiguration mode.
  • the LAN side PC obtains an IPv6 global unicast address through stateless autoconfiguration.
  • Step S6b Start the DHCPv6 server of the gateway, and update the domain name server address configuration information.
  • Home Gateway The LAN side PC obtains the domain name server address information through the stateless DHCPv6 service mode in stateful autoconfiguration.
  • the dynamic host configuration server startup interface is pppx.
  • the router device needs to support the stateless auto configuration mode to configure the address.
  • the terminal needs to use the stateless DHCPv6 to obtain other configuration information except the address.
  • the domain name server address is One of the configuration information. Create an IPv6 PPPoE dial-up connection in the INTERNET routing mode in the home gateway.
  • the home gateway starts the pppd process. After the pppx interface is successfully established, the ipv6-up script starts running.
  • the home gateway DHCPv6 client process is started by the ipv6-up script.
  • the home gateway establishes two network interfaces: the pppx network interface and the DHCPv6 network interface. Obtain domain name server address information through stateless DHCPv6 service
  • the home gateway starts the pppd process. After the pppx interface is successfully established, the ipv6-up script starts running. The ipv6-up script starts the home gateway DHCPv6 client process. After the DHCPv6 client process obtains the prefix information, it starts the home gateway route through the process radvd.
  • the process is shown in Figure 2.
  • the DHCPv6 client process initiates an IA_PD request, obtains the prefix information from the server, and updates the mdvd configuration file.
  • the radvd process sends the prefix information to the LAN side PC through the RA message.
  • the LAN side PC automatically configures the IPv6 global order through stateless automatic configuration. Broadcast address, obtain the domain name server address information through the stateless DHCPv6 service.
  • the home gateway starts the pppd process. After the pppx interface is successfully established, the ipv6-up script starts running.
  • the DHCPv6 client process is started by the ipv6-up script.
  • the DHCPv6 client process initiates an IA_NA request and obtains IPv6 from the dynamic host configuration server address pool. Global unicast address and domain name server address information, at this time the home gateway can PING through the external network.
  • the home gateway starts the pppd process. After the pppx interface is successfully established, the ipv6-up script starts running.
  • the DHCPv6 client process is started by the ipv6-up script.
  • the DHCPv6 client process initiates a request containing the IA_NA and IA_PD options, and the home gateway requests the prefix and address.
  • the home gateway obtains the IPv6 global unicast address of the pppx interface on the WAN side through stateful autoconfiguration.
  • the DHCPv6 client process updates the prefix information obtained from the dynamic host configuration server to the gateway radvd configuration file, and starts the radvd process in the home gateway.
  • the radvd process sends the prefix to the home gateway LAN side PC through the RA message.
  • the LAN side PC automatically configures the IPv6 global unicast address through stateless mode, and obtains the domain name server address information through the gateway's DHCPv6 server.
  • the gateway can PING the external network.
  • the LAN side PC can PING the external network.

Landscapes

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

Description

说 明 书
家庭网关动态配置 IPV6的方法
技术领域
本发明涉及家庭网关技术领域,特别是涉及一种家庭网关动态配 置 IPV6 (Internet Protocol Version 6) 的方法。 背景技术
家庭网关是面向家庭和小企业用户的多业务综合接入设备,通过 家庭网关与外部网络相连, 形成面向家庭的业务提供平台, 主要功能 是实现智能宽带接入网到信息化家庭网络的转换。 当前全球互联网 IPv4地址总库已趋于枯竭, 研究支持 IPv6的家庭网关已势在必行。
家庭网关配置 IPv6有以下三种途径:
一是通过静态配置, 手动配置网关的 IPv6地址, 及路由网关、 IPv6域名服务器 (DNS : Domain Name System, 域名系统) 等信息。
二是通过 DHCPv6 (DHCP for IPv6, IPv6动态主机配置协议) ( DHCP: Dynamic Host Configuration Protocol, 动态主机设置协议 ) 配置, 详细内容可参照 " RFC 3315: Dynamic Host Configuration Protocol for IPv6"。
三是通过 IPv6 PPPoE (Point-to-Point Protocol over Ethernet, 以太 网上点对点协议) 配置。 IPv4 和 IPv6 的 PPPoE 服务器对 PPP (Point-to-Point Protocol, 点到点协议) 链路两端地址的配置不同, IPv4 的 PPP链路两端地址主要是通过 PPP会话阶段的 IPCP (IP Control Protocol, IP控制协议)配置, IPv6的 PPP链路两端地址通过 IPv6CP(IPv6控制协议)协商,根据" RFC 2472: IP Version 6 over PPP", IPv6CP在链路协商阶段协商 64位接口标识符 (Interface Identifier) , 在 pppx网络接口产生一个本地链路地址, 而非全球单播地址, 所以, 还需要做特殊的处理, 才能实现家庭网关用户和外网的通信。家庭网 关是连接运营商网络和用户家庭网络的枢纽,家庭网关用户如何通过 家庭网关与 IPv6网络通信, 是本领域亟待解决的技术问题。 发明内容
本发明的目的是为了克服上述背景技术的不足, 提供一种家庭 网关动态配置 IPV6的方法,采用家庭网关通过 IPv6 PPPoE拨号的方 法, 通过选择 "获取地址"选项的操作, 家庭网关能够获取 WAN侧 网络接口的 IPv6全球单播地址, 进而可以访问 IPv6网络资源; 通过 同时选择 "获取地址"和 "获取前缀"选项, 家庭网关终端用户能够 获取到 IPv6全球单播地址, 进而可以访问 IPv6网络资源。
本发明提供的家庭网关动态配置 IPV6的方法,包括以下步骤: A、 建立一条带因特网属性路由模式的广域网连接, 采用以太网上点 对点协议 PPPoE拨号方式,根据 PPPoE拨号选项 "获取地址"和 "获 取前缀" 的动态组合, 确定家庭网关 IPV6 的配置方式; B、 启动拨 号进程, 创建拨号进程的接口, 拨号进程调用可执行脚本 ipv6-up, 启动网关中的 IPv6动态主机配置协议 DHCPv6客户端, 产生不同配 置行为, 结合有状态自动配置和无状态自动配置, 实现家庭网关动态 配置 IPv6。
在上述技术方案中,步骤 A中所述 PPPoE拨号选项"获取地址" 和 "获取前缀" 的动态组合及其标记包括以下四种:
( 1 ) "获取地址"和 "获取前缀"均不选择, 标记 Flag值为 00;
(2) 只选择 "获取前缀", 标记 Flag值为 01 ;
(3 ) 只选择 "获取地址", 标记 Flag值为 10;
(4) 同时选择 "获取地址"和 "获取前缀", 标记 Flag值为 11。 在上述技术方案中, 当 Flag值为 00时, DHCPv6客户端请求 无状态 DHCPv6服务,家庭网关从 WAN侧 DHCPv6服务器获取到域 名服务器地址; 通过 DHCPv6客户端启动网关中的 DHCPv6服务端, 更新域名服务器地址配置信息。。
在上述技术方案中, 当 Flag值为 01时, DHCPv6客户端发起 前缀标识组选项 IA_PD请求, 启动路由通告模块, 家庭网关 LAN侧 PC 通过无状态自动配置, 获取 IPv6 全球单播地址; 启动网关的 DHCPv6服务端, 家庭网关 LAN侧 PC通过有状态自动配置中的无 状态 DHCPv6服务方式, 获取域名服务器地址信息。
在上述技术方案中, 当 Flag值为 10时, DHCPv6客户端发起 非临时地址标识组选项 IA_NA请求, 家庭网关 WAN侧通过有状态 自动配置, 获取 IPv6全球单播地址和域名服务器地址信息; 启动网 关的 DHCPv6服务端, 更新域名服务器地址配置信息。
在上述技术方案中, 当 Flag值为 11时, 所述 DHCPv6客户端 同时发起 IA_NA请求和 IA_PD请求, 家庭网关 WAN侧通过有状态 自动配置, 获取 IPv6全球单播地址和域名服务器地址; 启动路由通 告模块, 家庭网关 LAN侧 PC通过无状态自动配置获取 IPv6全球单 播地址; 启动网关的 DHCPv6服务端, 家庭网关 LAN侧 PC通过有 状态自动配置中的无状态 DHCPv6 服务方式, 获取域名服务器地址 信息。
在上述技术方案中, 所述有状态自动配置为: 家庭网关相应网 络接口从 WAN侧 DHCPv6服务器地址池中获取 IPv6全球单播地址, 从 WAN侧 DHCPv6服务器获取域名服务器地址。
在上述技术方案中, 所述有状态自动配置中的无状态 DHCPv6 服务方式为: DHCPv6服务器不分配 IPv6地址, 仅向客户端提供域 在上述技术方案中, 所述无状态自动配置的过程为: 网络接口 通过路由通告的全局地址前缀结合接口标识符得到一个全球单播地 址。
与现有技术相比, 本发明的优点如下:
( 1 )本发明采用家庭网关通过 IPv6 PPPoE拨号的方法, 通过勾 选 "获取地址"选项的操作, 家庭网关能够获取 WAN侧网络接口的 IPv6全球单播地址, 进而可以访问 IPv6网络资源。
(2) 通过同时勾选 "获取地址"和 "获取前缀"选项, 家庭网 关终端用户能够获取到 IPv6全球单播地址, 进而可以访问 IPv6网络 资源。 附图说明
图 1是本发明实施例中家庭网关的结构框图。
图 2是本发明实施例中的方法流程图。 具体实施方式
下面结合附图及实施例对本发明作进一步的详细描述。
参见图 1所示, 家庭网关连接到 OLT (Optical Line Tterminal, 光线路终端), OLT上联口连接支持 IPv6的拨号服务器、动态主机配 置服务器和域名服务器, 还需要一个支持 IPv6的 WEB服务器。
在网关中建立一条带 INTERNET (因特网)属性路由模式的 WAN (Wide Area Network,广域网)连接,此 WAN连接可以将 LAN(Local Area Network, 局域网)侧数据和 WAN侧数据进行转发, 实现 LAN、 WAN两侧的数据互通, 选择配置方式为 PPPoE拨号方式, 此种配置 方式有两个选项, 分别为 "获取地址"和 "获取前缀", 通过两个选 项的动态组合确定家庭网关 IPV6的配置方式。 这两个选项有四种组 合情况,每种组合采取不同的动态配置 IPv6方式。根据家庭网关 IPv6 的不同配置方式, 结合有状态自动配置和无状态自动配置, 实现家庭 网关动态配置 IPv6。
参见图 2所示, 家庭网关动态配置 IPv6的流程如下:
步骤 S1 : 启动家庭网关中 PPPoE拨号进程 pppd, 创建拨号进程 的接口。
步骤 S2: 拨号进程 pppd调用可执行脚本 ipv6-up。
步骤 S3 : 可执行脚本 ipv6-up 脚本判断 WAN 连接是否带有 INTERNET属性, 如果是, 则转到步骤 S4, 否则跳出。
步骤 S4: 可执行脚本 ipv6-up判断目前选择的配置方式。
"获取地址"和 "获取前缀"两个选项的四种组合情况分别为: 不勾选获取地址, 不勾选获取前缀, 定义标记 Flag值为 00; 不勾选获取地址, 勾选获取前缀, 定义标记 Flag值为 01 ;
勾选获取地址, 不勾选获取前缀, 定义标记 Flag值为 10;
勾选获取地址, 勾选获取前缀, 定义标记 Flag值为 11。
这四种配置的不同在于 DHCPv6 客户端进程发出请求的选项不 同。 DHCPv6 客户端通过 IA—NA ( Identity Association for Non-temporary Addresses, 非临时地址标识组选项) 选项请求非临时 地址, 通过 IA—TA (Identity Association for Temporary Addresses, 临 时地址标识组选项) 选项请求临时地址, 通过 IA_PD ( Identity Association for Prefix Delegation, 前缀标识组选项) 选项请求分配地 址前缀。
下面分别对 4种配置方式进行详细阐述。
(一) 当 Flag值为 00时, 执行图 2所示的步骤 S5a和 S6b。 步骤 S5a: DHCPv6客户端请求无状态 DHCPv6服务, 即动态主 机配置服务器不分配 IPv6地址, 仅提供域名服务器地址配置信息。
步骤 S6b: 启动网关的 DHCPv6服务端, 更新域名服务器地址配 置信息。
(二) 当 Flag值为 01时, 家庭网关请求前缀, 执行图 2所示的 步骤 S5b、 S6a和 S6b。
步骤 S5b: DHCPv6客户端发起 IA_PD请求, 前缀通过 WAN侧 动态主机配置服务器获取,分配给家庭网关的前缀小于等于 64位时, 缺省情况下在获得的地址前缀后增补所需位数的 0, 补齐 64位。
步骤 S6a:通过 DHCPv6客户端启动 radvd (Router Advertisement Daemon, 路由通告模块), DHCPv6 客户端将获取到的前缀更新至 radvd 进程的配置文件中, radvd 进程将此前缀通过 RA ( Router Advertisement, 路由器通告) 报文发送至家庭网关的 LAN侧设备, 此时家庭网关充当路由器的角色,且需要更新家庭网关中 radvd配置, 使其支持无状态自动配置方式配置地址, LAN侧 PC通过无状态自动 配置 IPv6全球单播地址。
步骤 S6b: 启动网关的 DHCPv6服务端, 更新域名服务器地址配 置信息。 家庭网关 LAN侧 PC通过无状态 DHCPv6服务方式, 获取 域名服务器地址信息。
(三) 当 Flag值为 10时, 家庭网关请求地址, 执行图 2所示的 步骤 S5c和 S6b o
步骤 S5c: 可执行脚本 ipv6-up启动 DHCPv6客户端, 此种情况 不需要启动 radvd, DHCPv6客户端请求 IA_NA方式,家庭网关 WAN 侧通过有状态自动配置获取 IPv6全球单播地址和域名服务器地址信 息, 家庭网关 WAN侧地址来自 IPv6动态主机配置服务器地址池。 步骤 S6b: 启动网关的 DHCPv6服务端, 更新域名服务器地址配 置信息。
(四) 当 Flag值为 11时, 家庭网关同时请求地址和前缀, 执行 图 2所示的步骤 S5d、 S6a和 S6b。
步骤 S5d: 可执行脚本 ipv6-up启动 DHCPv6客户端, DHCPv6 客户端同时请求 IA_NA和 IA_PD方式, 家庭网关 WAN侧通过有状 态自动配置, 获取 IPv6全球单播地址和域名服务器地址信息。 家庭 网关 WAN侧地址来自 IPv6动态主机配置服务器地址池中配置的全 球单播地址。
步骤 S6a: 通过 DHCPv6客户端启动 radvd, DHCPv6客户端将 获取到的前缀更新至 radvd进程的配置文件中, radvd进程将此前缀 通过 RA报文发送至家庭网关的 LAN侧设备, 此时家庭网关充当路 由器的角色, 且需要更新家庭网关中 radvd配置, 使其支持无状态自 动配置方式配置地址, LAN侧 PC通过无状态自动配置, 获取到一个 IPv6全球单播地址。
步骤 S6b: 启动网关的 DHCPv6服务端, 更新域名服务器地址配 置信息。 家庭网关 LAN 侧 PC 通过有状态自动配置中的无状态 DHCPv6服务方式, 获取域名服务器地址信息。
本发明实施例的具体操作和现象说明如下:
启动 IPv6的拨号服务器、 动态主机配置服务器, 动态主机配置 服务器启动接口为 pppx, 路由器设备需要支持无状态自动配置方式 配置地址, 需要终端使用无状态 DHCPv6 获取地址外的其他配置信 息, 域名服务器地址是配置信息之一。 在家庭网关中建一条 INTERNET路由模式的 IPv6 PPPoE拨号连接。
( 1 )设置家庭网关 IPv6 PPPoE拨号连接配置信息, 不勾选获取 地址, 不勾选获取前缀, 重启设备。 观察现象为:
家庭网关启动 pppd进程, pppx接口建立成功之后, ipv6-up脚本 开始运行, 由 ipv6-up脚本启动家庭网关 DHCPv6客户端进程, 家庭 网关建立两个网络接口: pppx网络接口和 DHCPv6网络接口。 通过 无状态 DHCPv6服务方式获取域名服务器地址信息
(2)设置家庭网关 IPv6 PPPoE拨号连接配置信息, 不勾选获取 地址, 勾选获取前缀, 重启设备, 观察现象为:
家庭网关启动 pppd进程, pppx接口建立成功之后, ipv6-up脚本 开始运行, 由 ipv6-up 脚本启动家庭网关 DHCPv6 客户端进程, DHCPv6 客户端进程获取到前缀信息后启动家庭网关路由通过进程 radvd, 详细流程参见图 2所示。 DHCPv6客户端进程发起 IA_PD请 求, 从服务端获取到前缀信息, 并更新至 mdvd配置文件, radvd进 程将此前缀信息通过 RA报文发送至 LAN侧 PC, LAN侧 PC通过无 状态自动配置 IPv6全球单播地址, 通过无状态 DHCPv6服务方式获 取域名服务器地址信息。
(3 ) 设置家庭网关 IPv6 PPPoE拨号配置信息, 勾选获取地址, 不勾选获取前缀, 重启设备, 路由设备不需要支持无状态自动配置, 观察现象为:
家庭网关启动 pppd进程, pppx接口建立成功之后, ipv6-up脚本 开始运行, 由 ipv6-up脚本启动 DHCPv6客户端进程, DHCPv6客户 端进程进程发起 IA_NA请求, 从动态主机配置服务器地址池中获取 到 IPv6 全球单播地址和域名服务器地址信息, 此时家庭网关可以 PING通外网。
(4)设置家庭网关 IPv6 PPPoE拨号连接配置信息, 勾选获取地 址, 勾选获取前缀, 重启网关设备, 观察现象为: 家庭网关启动 pppd进程, pppx接口建立成功之后, ipv6-up脚本 开始运行, 由 ipv6-up脚本启动 DHCPv6客户端进程, DHCPv6客户 端进程进程发起包含 IA_NA和 IA_PD选项的请求, 家庭网关同时请 求前缀和地址。 家庭网关通过有状态自动配置获取到 WAN侧 pppx 接口的 IPv6全球单播地址, DHCPv6客户端进程将从动态主机配置 服务器获取到的前缀信息更新至网关 radvd配置文件, 并启动家庭网 关中 radvd进程, radvd进程将此前缀通过 RA报文发送至家庭网关 LAN侧 PC, LAN侧 PC通过无状态自动配置 IPv6全球单播地址, 通过网关的 DHCPv6 服务器获取域名服务器地址信息, 网关可以 PING通外网, 同时 LAN侧 PC可以 PING通外网。
显然,本领域的技术人员可以对本发明进行各种改动和变型而不 脱离本发明的精神和范围。这样, 倘若本发明的这些修改和变型属于 本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些 改动和变型在内。
本说明书中未作详细描述的内容属于本领域专业技术人员公知 的现有技术。

Claims

权 利 要 求 书
1、 一种家庭网关动态配置 IPv6的方法, 其特征在于包括以下步 骤:
A、 建立一条带因特网属性路由模式的广域网连接, 采用以太网 上点对点协议 PPPoE拨号方式, 根据 PPPoE拨号选项 "获取地址" 和 "获取前缀" 的动态组合, 确定家庭网关 IPv6的配置方式;
B、 启动拨号进程, 创建拨号进程的接口, 拨号进程调用可执行 脚本 ipv6-up,启动网关中的 IPv6动态主机配置协议 DHCPv6客户端, 产生不同配置行为, 结合有状态自动配置和无状态自动配置, 实现家 庭网关动态配置 IPv6。
2、 如权利要求 1所述的家庭网关动态配置 IPv6的方法, 其特征 在于: 步骤 A中所述 PPPoE拨号选项 "获取地址"和 "获取前缀" 的动态组合及其标记包括以下四种:
( 1 ) "获取地址"和 "获取前缀"均不选择, 标记 Flag值为 00;
(2) 只选择 "获取前缀", 标记 Flag值为 01 ;
(3 ) 只选择 "获取地址", 标记 Flag值为 10;
(4) 同时选择 "获取地址"和 "获取前缀", 标记 Flag值为 11。
3、 如权利要求 2所述的家庭网关动态配置 IPv6的方法, 其特征 在于:当 Flag值为 00时, DHCPv6客户端请求无状态 DHCPv6服务, 家庭网关通过无状态 DHCPv6 方式获取地址之外的域名服务器地址 配置信息。
4、 如权利要求 2所述的家庭网关动态配置 IPv6的方法, 其特征 在于:当 Flag值为 01时, DHCPv6客户端发起前缀标识组选项 IA_PD 请求, 启动路由通告模块, 启动网关的 DHCPv6 服务端, 家庭网关 LAN侧 PC通过无状态自动配置获取 IPv6全球单播地址, 通过有状
5、 如权利要求 2所述的家庭网关动态配置 IPv6的方法, 其特征 在于: 当 Flag值为 10时, DHCPv6客户端发起非临时地址标识组选 项 IA_NA请求, 家庭网关 WAN侧通过有状态自动配置获取 IPv6全 球单播地址和域名服务器地址信息; 启动网关的 DHCPv6 服务端, 更新域名服务器地址配置信息。
6、 如权利要求 2所述的家庭网关动态配置 IPv6的方法, 其特征 在于: 当 Flag值为 11时, 所述 DHCPv6客户端同时发起 IA_NA请 求和 IA_PD请求, 家庭网关 WAN侧通过有状态自动配置获取 IPv6 全球单播地址和域名服务器地址信息; 启动路由通告模块, 启动网关 的 DHCPv6服务端, 家庭网关 LAN侧 PC通过无状态自动配置获取 IPv6全球单播地址, 通过有状态自动配置中的无状态 DHCPv6服务 方式, 获取域名服务器地址信息。
7、 如权利要求 5或 6所述的家庭网关动态配置 IPv6的方法, 其 特征在于: 所述有状态自动配置为: 从 WAN侧 DHCPv6服务器地址 池中获取 IPv6全球单播地址和域名服务器地址信息, 并将该 IPv6地 址分配给家庭网关的相应网络接口。
8、如权利要求 3至 6中任一项所述的家庭网关动态配置 IPv6的 方法, 其特征在于: 所述有状态自动配置中的无状态 DHCPv6 服务 方式为: IPv6动态主机配置服务器不分配 IPv6地址, 只向客户端提 供域名服务器地址信息。
9、如权利要求 3至 6中任一项所述的家庭网关动态配置 IPv6的 方法, 其特征在于: 所述无状态自动配置的过程为: 网络接口通过路 由通告的全局地址前缀结合接口标识符得到一个全球单播地址。
PCT/CN2012/079912 2012-02-20 2012-08-10 家庭网关动态配置ipv6的方法 Ceased WO2013123763A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
RU2013155979/08A RU2602971C2 (ru) 2012-02-20 2012-08-10 Способ динамического конфигурирования ipv6 для домашнего шлюза

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210037141.1A CN102594940B (zh) 2012-02-20 2012-02-20 家庭网关动态配置ipv6的方法
CN201210037141.1 2012-02-20

Publications (1)

Publication Number Publication Date
WO2013123763A1 true WO2013123763A1 (zh) 2013-08-29

Family

ID=46483133

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/079912 Ceased WO2013123763A1 (zh) 2012-02-20 2012-08-10 家庭网关动态配置ipv6的方法

Country Status (4)

Country Link
CN (1) CN102594940B (zh)
MY (1) MY174365A (zh)
RU (1) RU2602971C2 (zh)
WO (1) WO2013123763A1 (zh)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105681480A (zh) * 2014-11-17 2016-06-15 中兴通讯股份有限公司 一种点对点协议ppp按需拨号的方法及设备
CN112272244A (zh) * 2020-10-22 2021-01-26 北京自如信息科技有限公司 一种路由器WAN端IPv6上网模式配置方法及装置
CN113660357A (zh) * 2021-08-17 2021-11-16 烽火通信科技股份有限公司 一种IPv6双栈系统自动获取IP地址的方法和装置
CN114938347A (zh) * 2021-02-04 2022-08-23 青岛海信宽带多媒体技术有限公司 一种路由器和路由器ipv6自适应方法、装置
CN115412533A (zh) * 2021-05-27 2022-11-29 北京小米移动软件有限公司 终端设备及其控制方法、装置和存储介质
US11528159B2 (en) * 2017-09-04 2022-12-13 Somfy Activites Sa Method of automatic configuration of network address of a communicating element forming part of a home-automation system, associated network interface, communicating element and home-automation system

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102594940B (zh) * 2012-02-20 2014-11-19 烽火通信科技股份有限公司 家庭网关动态配置ipv6的方法
CN102833732B (zh) * 2012-07-25 2017-03-29 中兴通讯股份有限公司 一种IPv6地址无状态自动配置的系统、数据卡及其实现方法
GB2539286B (en) * 2014-04-22 2021-10-27 Pismo Labs Technology Ltd Methods and systems for processing a DNS request
CN105120014B (zh) * 2015-09-08 2018-10-09 烽火通信科技股份有限公司 一种LTE上行家庭网关中的IPv6实现系统及方法
JP6816152B2 (ja) * 2016-01-26 2021-01-20 テレフオンアクチーボラゲット エルエム エリクソン(パブル) M2mデバイスを構成するための方法および装置
WO2020132984A1 (zh) * 2018-12-26 2020-07-02 华为技术有限公司 一种IPv6地址的配置方法及路由设备
CN110730132B (zh) * 2019-09-27 2021-06-15 迈普通信技术股份有限公司 一种默认网关的选择方法、设备及系统
CN111541797A (zh) * 2020-04-23 2020-08-14 深圳市吉祥腾达科技有限公司 一种基于ecos的IPV6实现方法
CN113114795B (zh) * 2021-03-30 2022-07-08 烽火通信科技股份有限公司 一种IPv6地址分配方法及系统
CN113612870A (zh) * 2021-09-07 2021-11-05 上海市共进通信技术有限公司 基于LAN侧多类型终端设备实现分配不同IPv6地址前缀的方法
CN114785755B (zh) * 2022-04-19 2024-03-29 深圳市和为顺网络技术有限公司 一种ipv6上网iapd自适应的方法与系统
CN115695374B (zh) * 2022-10-27 2025-12-09 中国联合网络通信集团有限公司 一种IPv6子网前缀通告实现方法、装置、设备及存储介质
CN115766687B (zh) * 2022-11-15 2024-05-28 四川天邑康和通信股份有限公司 一种家庭网关ipv6文件系统及其交互方法
CN116827907A (zh) * 2023-08-25 2023-09-29 四川天邑康和通信股份有限公司 一种家庭网关dhcpv6-pd前缀代理系统及方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080310323A1 (en) * 2007-06-15 2008-12-18 Qualcomm Incorporated Method and Apparatus for DNS Update Triggered IPv6 Neighbor Advertisement
CN101984636A (zh) * 2010-10-25 2011-03-09 华为技术有限公司 一种前缀分配方法、装置和系统
CN102137170A (zh) * 2010-01-26 2011-07-27 中兴通讯股份有限公司 IPv6地址的分配方法和装置
CN102594940A (zh) * 2012-02-20 2012-07-18 烽火通信科技股份有限公司 家庭网关动态配置ipv6的方法

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100583904C (zh) * 2006-03-03 2010-01-20 华为技术有限公司 一种ipv6网络中主机地址的自动配置方法
US20070223397A1 (en) * 2006-03-24 2007-09-27 Sergey Gerasimov Network configuration
CN101883155B (zh) * 2010-05-19 2014-03-19 中兴通讯股份有限公司 一种家庭网关获取wan侧信息的方法和装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080310323A1 (en) * 2007-06-15 2008-12-18 Qualcomm Incorporated Method and Apparatus for DNS Update Triggered IPv6 Neighbor Advertisement
CN102137170A (zh) * 2010-01-26 2011-07-27 中兴通讯股份有限公司 IPv6地址的分配方法和装置
CN101984636A (zh) * 2010-10-25 2011-03-09 华为技术有限公司 一种前缀分配方法、装置和系统
CN102594940A (zh) * 2012-02-20 2012-07-18 烽火通信科技股份有限公司 家庭网关动态配置ipv6的方法

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105681480A (zh) * 2014-11-17 2016-06-15 中兴通讯股份有限公司 一种点对点协议ppp按需拨号的方法及设备
EP3223493A4 (en) * 2014-11-17 2017-11-15 ZTE Corporation Point-to-point protocol (ppp)-based dial-on-demand method and device, and computer storage medium
US11528159B2 (en) * 2017-09-04 2022-12-13 Somfy Activites Sa Method of automatic configuration of network address of a communicating element forming part of a home-automation system, associated network interface, communicating element and home-automation system
CN112272244A (zh) * 2020-10-22 2021-01-26 北京自如信息科技有限公司 一种路由器WAN端IPv6上网模式配置方法及装置
CN114938347A (zh) * 2021-02-04 2022-08-23 青岛海信宽带多媒体技术有限公司 一种路由器和路由器ipv6自适应方法、装置
CN114938347B (zh) * 2021-02-04 2024-05-10 青岛海信宽带多媒体技术有限公司 一种路由器和路由器ipv6自适应方法、装置
CN115412533A (zh) * 2021-05-27 2022-11-29 北京小米移动软件有限公司 终端设备及其控制方法、装置和存储介质
CN115412533B (zh) * 2021-05-27 2024-01-16 北京小米移动软件有限公司 终端设备及其控制方法、装置和存储介质
CN113660357A (zh) * 2021-08-17 2021-11-16 烽火通信科技股份有限公司 一种IPv6双栈系统自动获取IP地址的方法和装置
CN113660357B (zh) * 2021-08-17 2023-10-27 烽火通信科技股份有限公司 一种IPv6双栈系统自动获取IP地址的方法和装置

Also Published As

Publication number Publication date
RU2013155979A (ru) 2015-06-27
RU2602971C2 (ru) 2016-11-20
MY174365A (en) 2020-04-11
CN102594940A (zh) 2012-07-18
CN102594940B (zh) 2014-11-19

Similar Documents

Publication Publication Date Title
WO2013123763A1 (zh) 家庭网关动态配置ipv6的方法
EP2919444B1 (en) Method, relay device, and system for acquiring internet protocol address in network
EP2055046B1 (en) Method and device for identifying and selecting an interface to access a network
CN102171986B (zh) 用于提供多个互联网接入的方法和网关
CN102546568B (zh) Ip终端接入网络的方法和装置
WO2014015775A1 (zh) 一种IPv6地址无状态自动配置的系统、数据卡及其实现方法
WO2013159641A1 (zh) 地址分配方法、设备和系统
WO2008031319A1 (fr) Procédé et dispositif de gestion d'informations d'acheminement et de retransmission de données dans un dispositif d'accès
EP3108643B1 (en) Ipoe dual-stack subscriber for routed residential gateway configuration
CN102158563A (zh) IPv6过渡网络中获取IPv6配置信息的方法、系统以及装置
CN103384282B (zh) 一种获取ipv6nd地址的方法及bras
CN104821904B (zh) 网络中继装置以及数据包中继方法
CN102624707B (zh) 一种协商IPv6信息的方法及系统
EP3108642B1 (en) Ipoe dual-stack subscriber for bridged residential gateway configuration
WO2009018658A1 (en) Device, system and method for automatic ipv4 provisioning in a local area network connected to an ipv6 network
JP2013509837A (ja) アイデンティティ及びロケーションマッピングの実現方法及びシステム
WO2013178164A1 (zh) IPv6域名服务器DNS地址分配、获取方法及装置
CN101141439B (zh) 报告用户设备接入类型和分配网络配置信息的方法及装置
CN101127762A (zh) 一种基于动态主机配置协议的信息交互方法和系统
TWI900904B (zh) 基於IPv6協定的自動偵測與網路建置方法及其設備
JP2004015795A (ja) IPv6無線LAN環境でのIPv4管理方法および管理装置
WO2008106773A1 (en) Tunneling device for automatic protocol provisioning in a network
WO2006116911A1 (en) Ppp access terminal,access service device and a method of the terminal obtaining the server address of the provider
US20140351453A1 (en) Node in a Network
Sun et al. Network Working Group Y. Cui Internet-Draft J. Wu Intended status: Standards Track P. Wu Expires: January 12, 2012 Tsinghua University

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12869150

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2013155979

Country of ref document: RU

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12869150

Country of ref document: EP

Kind code of ref document: A1