WO2010069181A1 - Method and system for configuring ipv6 address - Google Patents

Method and system for configuring ipv6 address Download PDF

Info

Publication number
WO2010069181A1
WO2010069181A1 PCT/CN2009/073630 CN2009073630W WO2010069181A1 WO 2010069181 A1 WO2010069181 A1 WO 2010069181A1 CN 2009073630 W CN2009073630 W CN 2009073630W WO 2010069181 A1 WO2010069181 A1 WO 2010069181A1
Authority
WO
WIPO (PCT)
Prior art keywords
subnet prefix
service type
type information
terminal
subnet
Prior art date
Application number
PCT/CN2009/073630
Other languages
French (fr)
Chinese (zh)
Inventor
牛乐宏
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2010069181A1 publication Critical patent/WO2010069181A1/en

Links

Classifications

    • 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
    • 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/668Internet protocol [IP] address subnets

Definitions

  • IPV6 address configuration method and system The present application claims priority to Chinese Patent Application No. 20081024162, filed on Dec. 17, 2008, entitled “IPV6 Address Configuration Method and System", the entire contents of which are incorporated herein by reference. in. Technical field
  • the present invention relates to the field of communications technologies, and in particular, to an IPV6 address configuration method and system, and a terminal and router for an IPV6 address configuration system. Background technique
  • IPV6 Internet Protocol Version 6
  • IPV4 Internet Protocol Version 6
  • IPV6 Internet Protocol Version 6
  • IPV6 has three address types, which are unicast address, multicast address, and anycast address. Among them, the IPV6 unicast address is divided into two parts: subnet prefix (Subnet Prefix) and interface identifier (Interface ID).
  • Subnet Prefix subnet prefix
  • Interface ID interface identifier
  • IPV6 addresses there are two ways to configure IPV6 addresses. One is the configuration of stateful addresses.
  • DHCPv6 Dynamic Host Configuration Protocol Version 6
  • SLAAC Stateless Address Auto Configuration
  • the process of the stateless address configuration mode is as follows: The terminal sends a routing request (Router Solicitation) to the router through the link; the router configures a subnet prefix (Subnet Prefix) for the terminal according to the received routing request, and the sub The network prefix is sent to the terminal; the terminal further generates a unicast address according to the subnet prefix and the local interface identifier information.
  • an embodiment of the present invention provides an IPV6 address configuration method and system, and further provides a terminal and a router for an IPV6 address configuration system.
  • the IPV6 address configuration method provided by the embodiment of the present invention includes: acquiring a routing request sent by a terminal, where the routing request carries service type information of the terminal; according to the correspondence between the service type information and the subnet prefix, The terminal allocates a subnet prefix corresponding to the service type information carried in the routing request, and sends the allocated subnet prefix to the terminal, so that the terminal can generate an IPV6 address according to the subnet prefix.
  • the IPV6 address configuration system includes: a terminal, configured to add its service type information to an extension field of a routing request, and send the routing request carrying the service type information to the router, and according to the The subnet prefix assigned by the router generates an IPV6 address; the router is configured to receive the routing request, obtain the service type information from the routing request, and according to the correspondence between the service type information and the subnet prefix, The terminal allocates a subnet prefix corresponding to the service type information.
  • the router provided by the embodiment of the present invention includes a service type information parsing module, configured to receive a routing request from a terminal and carrying the service type information of the terminal, and parse the routing request to obtain the service type information; a subnet prefix allocation module, configured to allocate a subnet prefix corresponding to the service type information acquired by the service type information parsing module to the terminal according to the correspondence between the service type information and the subnet prefix, so as to enable the The terminal can generate an IPV6 address according to the assigned subnet prefix.
  • the terminal provided by the embodiment of the present invention includes: a service type information configuration module, configured to generate service type information corresponding to the terminal; and a route request sending module, configured to attach the service type information to an extension field of the route request Medium, and the route carrying the service type information, please And requesting a router to allocate a subnet prefix to the terminal; a route advertisement receiving module, configured to receive a route advertisement from the router, where the route advertisement carries a subnet prefix allocated by the router to the terminal, and
  • the subnet prefix is a subnet prefix corresponding to the service type information of the terminal, which is allocated by the router according to the correspondence between the service type information and the subnet prefix.
  • the IPV6 address configuration method and system in the embodiment of the present invention carries the service type information of the terminal in the extension field of the routing request, and further allocates a subnet to the terminal according to the correspondence between the service type information and the subnet prefix.
  • the prefix so that the address prefixes assigned by the terminals of the same service type meet certain predetermined relationships, for example, are mutually aggregated, thereby facilitating service statistics and data orientation, etc.; and, when performing routing update or address prefix update It is also easy to implement unified update for terminals of the same service type. Therefore, the address configuration method and system of the present invention facilitate the management of services.
  • Figure 1 is a schematic diagram of the format of a route request message defined by the neighbor discovery protocol.
  • FIG. 2 is a flow chart of an embodiment of an IPV6 address configuration method according to the present invention.
  • FIG. 3 is a schematic structural diagram of an embodiment of an IPV6 address configuration system according to the present invention.
  • FIG. 4 is a schematic structural diagram of an alternative embodiment of a terminal for an IPV6 address configuration system according to the present invention.
  • FIG. 5 is a schematic structural diagram of an alternative scheme of a router for an IPV6 address configuration system according to the present invention.
  • the router allocates a subnet prefix according to the service type of the terminal, so that the subnet prefix assigned by the terminal of the same service type is consistent. Certain predetermined relationships, such as the subnet prefixes, are aggregated to each other, thereby facilitating management of services.
  • the terminal generates and sends a routing request carrying service type information, where the service type information may be attached to the routing request by means of an extension field; a routing request, the subnet prefix corresponding to the service type information carried in the routing request is allocated to the terminal according to the correspondence between the service type information and the subnet prefix, and the allocated subnet prefix is sent to the
  • the terminal further generates an IPV6 address according to the subnet prefix to which the terminal is assigned.
  • the terminal may generate a routing request according to a Neighbor Discovery protocol.
  • the format of the route request packet is as shown in Figure 1.
  • the type of the route request packet is 133.
  • the Option field of the route request message only the source link address entry for carrying the source link layer address of the terminal is defined in the neighbor discovery protocol.
  • the embodiment of the present invention may further expand the option field to generate a new option (hereinafter referred to as a service type item:), and use the service type item to carry the service type information of the terminal.
  • FIG. 2 is a flow chart of a specific embodiment of an IPV6 address configuration method according to the present invention.
  • the embodiment of the IPV6 address configuration method includes:
  • Step 101 Acquire a routing request sent by the terminal, where the routing request carries service type information of the terminal.
  • the router receives a routing request sent by the terminal and carries the service type information.
  • the routing request sent by the terminal may be sent to the router through a Home Gateway (RG) and an Access Node (Access Node, ANM).
  • RG Home Gateway
  • ANM Access Node
  • the embodiment of the IPV6 address configuration method of the present invention may further include the step of generating the routing request carrying the service type information, where the step of generating the routing request is specifically as follows:
  • the terminal generates corresponding service type information according to its service type.
  • the service type information can be generated by manually configuring the terminal after the terminal is started, that is, the corresponding service type information is generated according to the service type set by the operator through the terminal interface in real time.
  • the operator may select one of the multiple service types supported by the terminal provided by the terminal interface and input corresponding instruction information, and correspondingly, the terminal automatically generates the service according to the service type selected by the operator.
  • Type information For the service type that the terminal performs in the network, the service type information can be generated by manually configuring the terminal after the terminal is started, that is, the corresponding service type information is generated according to the service type set by the operator through the terminal interface in real time.
  • the operator may select one of the multiple service types supported by the terminal provided by the terminal interface and input corresponding instruction information, and correspondingly, the terminal automatically generates the service according to the service type selected by the operator.
  • Type information For the service type that the terminal performs in the network, the service type information can be generated by manually configuring the terminal after the terminal is started, that is, the corresponding service
  • the generated service type information may also be generated by the terminal in a manner of being fixedly written to the memory.
  • the terminal pre-stores the service type of the terminal in its internal memory, and after the terminal is started, the memory automatically generates service type information according to the service type stored in the device.
  • the values of the service type information corresponding to the terminals of different service types are different.
  • the value of the service type information corresponding to the Internet service can be defined as 1; IP overcast voice (Voice over IP,
  • the value of the service type information corresponding to the VOIP service may be defined as 2; the value of the service type information corresponding to the IP television (IPTV) service may be defined as 3. It can be seen that by analyzing the value of the service type information, the service type of the corresponding terminal can be determined.
  • a routing request carrying the service type information is generated. Specifically, the terminal appends the service type information generated by the terminal to the service type item extended in the option field field of the route request, and sends the route request carrying the service type information to its corresponding network link.
  • Step 102 Assign a subnet prefix corresponding to the service type information carried in the routing request to the terminal according to the correspondence between the service type information and the subnet prefix. The following is a detailed description of step 102:
  • the routing request is parsed to obtain the service type information carried by the routing request.
  • the router receives the routing request from the network link and parses the received routing request to obtain the service type information from the service type item extended by the option field. Further, the router analyzes the service type information and obtains the value of the service type information.
  • the service type information is selected in a plurality of pre-configured subnet prefix pools, and the corresponding subnet prefix is obtained from the selected subnet prefix pool.
  • the router is pre-configured with a plurality of subnet prefix pools, and the subnet prefix pool has a corresponding relationship with the value of the service type information, that is, different in the plurality of subnet prefix pools.
  • the subnet prefix pools correspond to different service type information.
  • the subnet prefixes stored in the same subnet prefix pool are in a certain predetermined relationship.
  • the subnet prefixes stored in the same subnet prefix pool are mutually aggregated.
  • each subnet prefix may include an identification portion and a feature portion. For example, for a 64-bit subnet prefix, the first 48 bits may be used as the identification portion and the last 16 bits may be used as the feature portion.
  • the identification part of the subnet prefix in the same subnet prefix pool is the same, and the characteristic part of the subnet prefix in the same subnet prefix pool is different, and the identification part of the subnet prefix in the different subnet prefix pool is different. It can be seen that the subnet prefixes in the same subnet prefix pool have the same first 48 bits, that is, they are mutually aggregated; and the first 48 bits of the subnet prefix in different subnet prefix pools are different, that is, different.
  • the subnet prefix in the subnet prefix pool can be distinguished from each other by its first 48 bits (ie, the identification part:).
  • the router selects a subnet prefix pool corresponding to the value of the service type information in the pre-configured subnet prefix pool, and obtains a corresponding one in the selected subnet prefix pool.
  • Subnet prefix For example, if the value of the service type information is 1, the first subnet prefix pool is selected and the subnet prefix is obtained therefrom; if the value of the service type information is 2, the second subnet prefix pool is selected and obtained from Subnet prefix; If the value of the service type information is 3, select the third subnet prefix pool and obtain the subnet prefix from it.
  • Step 103 Send the allocated subnet prefix to the terminal, so that the terminal can generate an IPV6 address according to the subnet prefix.
  • the router appends the obtained subnet prefix to an option field corresponding to a Router Advertisement message, and sends the route advertisement to the terminal. Further, the terminal parses the subnet prefix assigned by the router from the route advertisement, and combines the subnet prefix with the local interface identifier information, so that the IPV6 generates an address.
  • an embodiment of the present invention further provides an IPV6 address configuration system.
  • the IPV6 address configuration system mainly includes:
  • the terminal 501 is configured to add its service type information to the extension field of the routing request, and send the routing request carrying the service type information to the router 502;
  • the router 502 is configured to receive the routing request, obtain the service type information of the terminal 501 from the routing request, and allocate the location to the terminal 501 according to the correspondence between the service type information and the subnet prefix.
  • the subnet prefix corresponding to the service type information is configured to be used to determine the location of the terminal 501 .
  • the router 501 further generates an IPV6 address according to the subnet prefix allocated by the router 502.
  • the IPV6 address configuration system may further include a home gateway 503 and an access network convergence device 504.
  • the home gateway 503 and the access network convergence device 504 are sequentially connected to the network link between the terminal 501 and the router 502.
  • each service accesses the broadband network through different terminals 501, and multiple terminals 501 of the same user are connected to the user network 505 through the home gateway 503, respectively.
  • the home gateway 503 is further connected to the router 502 via an access network aggregation device 504.
  • the terminal 501 of the embodiment of the IPV6 address configuration system of the present invention is an optional solution including:
  • a service type information configuration module 512 configured to generate corresponding service type information according to the service type of the terminal 501
  • a routing request sending module 511 configured to add the service type information to an extension field of the routing request, and send the routing request carrying the service type information to request the router to allocate a subnet prefix to the terminal 501;
  • a route advertisement receiving module 513 configured to receive a route advertisement from a router, where the route advertisement carries a subnet prefix allocated by the router to the terminal, and the subnet prefix is determined by the router according to a service type.
  • An address generation module 514 is configured to generate an IPV6 address according to the subnet prefix and the local address identifier.
  • the service type information configuration module 512 may specifically generate the service type information according to the service type configured by the operator in real time after the terminal 501 is started; or the service type information configuration module 512 may also be pre-stored.
  • the terminal has a service type corresponding to the service type, and generates the service type information according to the pre-stored service type after the terminal is started.
  • the router 502 in the embodiment of the IPV6 address configuration system of the present invention includes:
  • a service type information parsing module 521 configured to receive a routing request from the terminal and carrying the service type information of the terminal, and parse the routing request to obtain the service type information;
  • a subnet prefix allocation module 522 configured to allocate, according to the correspondence between the service type information and the subnet prefix, a subnet prefix corresponding to the service type information acquired by the service type information parsing module, so that the terminal The terminal can generate an IPV6 address according to the assigned subnet prefix.
  • the router 502 may further include:
  • the subnet prefix storage module 524 includes a plurality of subnet prefix pools that store subnet prefixes, and different subnet prefix pools respectively correspond to different service type information.
  • Each subnet prefix stored in the subnet prefix pool includes an identifier part and a feature part, and a subnet in the same subnet prefix pool.
  • the identifiers of the subnet prefixes in the same subnet prefix pool are different, and the identifiers of the subnet prefixes stored in different subnet prefix pools are different.
  • the router 502 can further include:
  • the route advertisement sending module 523 is configured to attach the subnet prefix obtained by the subnet prefix allocation module 522 to an option field corresponding to the route advertisement, and issue the route advertisement.
  • the IPV6 address configuration method and system in the embodiment of the present invention carries the service type information of the terminal in the extension field of the routing request, and further calculates the correspondence between the service type information and the subnet prefix according to the correspondence between the service type information and the subnet prefix.
  • the terminal allocates a subnet prefix, so that the address prefixes allocated by the terminals of the same service type meet certain predetermined relationships, for example, are mutually aggregated, thereby facilitating service statistics and data orientation, and the like, and performing routing update. Or it is easy to implement unified update for terminals of the same service type when the address prefix is updated. Therefore, the address configuration method and system of the present invention facilitate the management of services.

Abstract

A method for configuring IPV6 address is disclosed by the embodiments of the present invention. The method includes the following steps: obtaining router solicitation sent from a terminal, wherein the router solicitation carries service type information of the terminal; according to the corresponding relation between the service type information and subnet prefixes, allocating a subnet prefix for the terminal corresponding to the service type information carried by the router solicitation; sending the allocated subnet prefix to the terminal , so that the terminal can generate IPV6 address according to the subnet prefix. By using the method for automatically configuring IPV6 address of the embodiments of the present invention, it is convenient for service management. A system for configuring IPV6 address is also disclosed by the embodiments of the present invention.

Description

IPV6地址配置方法和系统 本申请要求 2008年 12月 17日递交的申请号为 200810241624.7、 发明 名称为 "IPV6地址配置方法和系统" 的中国专利申请的优先权, 其全部内 容通过引用结合在本申请中。 技术领域  IPV6 address configuration method and system. The present application claims priority to Chinese Patent Application No. 20081024162, filed on Dec. 17, 2008, entitled "IPV6 Address Configuration Method and System", the entire contents of which are incorporated herein by reference. in. Technical field
本发明主要涉及通信技术领域, 特别地, 涉及一种 IPV6地址配置方法 和系统, 以及一种用于 IPV6地址配置系统的终端和路由器。 背景技术  The present invention relates to the field of communications technologies, and in particular, to an IPV6 address configuration method and system, and a terminal and router for an IPV6 address configuration system. Background technique
IPV6(Internet Protocol Version 6)是用于替代现行版本 IP协议 IPV4的下 一代 IP协议, 用来解决 IP地址资源短缺等问题。 IPV6有三种地址类型, 分 别是单播地址、 组播地址和任播地址。 其中, IPV6单播地址分成两个部 分: 子网前缀 (Subnet Prefix)和接口标识符 (Interface ID)。  IPV6 (Internet Protocol Version 6) is the next generation IP protocol used to replace the current version of IP protocol IPV4, which is used to solve the problem of shortage of IP address resources. IPV6 has three address types, which are unicast address, multicast address, and anycast address. Among them, the IPV6 unicast address is divided into two parts: subnet prefix (Subnet Prefix) and interface identifier (Interface ID).
通常来说, IPV6 地址配置方式有两种, 一是有状态地址配置方式 Generally speaking, there are two ways to configure IPV6 addresses. One is the configuration of stateful addresses.
DHCPv6(Dynamic Host Configuration Protocol Version 6), 二是无状态地址配 置方式, 称为 SLAAC(Stateless Address Auto Configuration) 。 DHCPv6 (Dynamic Host Configuration Protocol Version 6), the second is the stateless address configuration method, called SLAAC (Stateless Address Auto Configuration).
现有技术无状态地址配置方式的流程如下: 终端通过链路向路由器发送 路由请求 (Router Solicitation); 路由器根据其所接收的路由请求为该终端配 置子网前缀 (Subnet Prefix) , 并将该子网前缀发送到终端; 终端进一歩根据 该子网前缀与本地的接口标识符信息, 生成单播地址。  The process of the stateless address configuration mode is as follows: The terminal sends a routing request (Router Solicitation) to the router through the link; the router configures a subnet prefix (Subnet Prefix) for the terminal according to the received routing request, and the sub The network prefix is sent to the terminal; the terminal further generates a unicast address according to the subnet prefix and the local interface identifier information.
实际应用中, 用户可能签约多个业务。 每一业务通过不同的终端接入网 络, 且所述不同的终端通过公共链路连接到路由器。 现有技术在进行地址配 置的过程中, 路由器通过公共链路随机地为所述不同的终端分配子网前缀。 由于路由器在随机分配子网前缀时并未考虑业务管理的问题, 因此, 采用现 有技术的 IPV6无状态地址配置方法不利于进行业务的管理。 发明内容 In actual applications, users may sign up for multiple services. Each service accesses the network through a different terminal, and the different terminals are connected to the router through a public link. In the prior art, during the address configuration process, the router randomly assigns a subnet prefix to the different terminals through a common link. Since the router does not consider the problem of service management when randomly assigning the subnet prefix, the prior art IPV6 stateless address configuration method is not conducive to business management. Summary of the invention
鉴于上述问题, 本发明实施例提供一种 IPV6地址配置方法和系统, 并 进一歩提供一种用于 IPV6地址配置系统的终端和路由器。  In view of the above problems, an embodiment of the present invention provides an IPV6 address configuration method and system, and further provides a terminal and a router for an IPV6 address configuration system.
本发明实施例提供的 IPV6地址配置方法, 包括: 获取由终端发出的路 由请求, 所述路由请求携带有所述终端的业务类型信息; 按照业务类型信息 与子网前缀之间的对应关系, 为所述终端分配所述路由请求中携带的业务类 型信息对应的子网前缀; 将所分配到的子网前缀发送给所述终端, 以使所述 终端能根据所述子网前缀生成 IPV6地址。  The IPV6 address configuration method provided by the embodiment of the present invention includes: acquiring a routing request sent by a terminal, where the routing request carries service type information of the terminal; according to the correspondence between the service type information and the subnet prefix, The terminal allocates a subnet prefix corresponding to the service type information carried in the routing request, and sends the allocated subnet prefix to the terminal, so that the terminal can generate an IPV6 address according to the subnet prefix.
本发明实施例提供的 IPV6地址配置系统, 包括: 终端, 用于将其业务 类型信息附加至路由请求的扩展字段中, 并将所述携带有业务类型信息的路 由请求发送至路由器, 并且根据由路由器分配的子网前缀生成 IPV6地址; 路由器, 用于接收所述路由请求, 从所述路由请求中得到所述业务类型信 息, 并按照业务类型信息与子网前缀之间的对应关系, 为所述终端分配所述 业务类型信息对应的子网前缀。  The IPV6 address configuration system provided by the embodiment of the present invention includes: a terminal, configured to add its service type information to an extension field of a routing request, and send the routing request carrying the service type information to the router, and according to the The subnet prefix assigned by the router generates an IPV6 address; the router is configured to receive the routing request, obtain the service type information from the routing request, and according to the correspondence between the service type information and the subnet prefix, The terminal allocates a subnet prefix corresponding to the service type information.
本发明实施例提供的路由器, 包括业务类型信息解析模块, 其用于接收 来自终端且携带有所述终端的业务类型信息的路由请求, 并对所述路由请求 进行解析获取所述业务类型信息; 子网前缀分配模块, 其用于按照业务类型 信息与子网前缀的对应关系, 为所述终端分配与所述业务类型信息解析模块 所获取的业务类型信息相对应的子网前缀, 以使所述终端能根据所分配到的 子网前缀生成 IPV6地址。  The router provided by the embodiment of the present invention includes a service type information parsing module, configured to receive a routing request from a terminal and carrying the service type information of the terminal, and parse the routing request to obtain the service type information; a subnet prefix allocation module, configured to allocate a subnet prefix corresponding to the service type information acquired by the service type information parsing module to the terminal according to the correspondence between the service type information and the subnet prefix, so as to enable the The terminal can generate an IPV6 address according to the assigned subnet prefix.
本发明实施例提供的终端, 包括: 业务类型信息配置模块, 其用于生成 所述终端对应的业务类型信息; 路由请求发送模块, 其用于将所述业务类型 信息附加到路由请求的扩展字段中, 并将所述携带有业务类型信息的路由请 求发出以请求路由器为所述终端分配子网前缀; 路由通告接收模块, 其用于 接收来自路由器的路由通告, 其中所述路由通告携带有所述路由器为所述终 端分配的子网前缀, 且所述子网前缀是所述路由器按照业务类型信息与子网 前缀之间对应关系所分配的与所述终端的业务类型信息相对应的子网前缀。 The terminal provided by the embodiment of the present invention includes: a service type information configuration module, configured to generate service type information corresponding to the terminal; and a route request sending module, configured to attach the service type information to an extension field of the route request Medium, and the route carrying the service type information, please And requesting a router to allocate a subnet prefix to the terminal; a route advertisement receiving module, configured to receive a route advertisement from the router, where the route advertisement carries a subnet prefix allocated by the router to the terminal, and The subnet prefix is a subnet prefix corresponding to the service type information of the terminal, which is allocated by the router according to the correspondence between the service type information and the subnet prefix.
本发明实施例所述的 IPV6地址配置方法和系统通过在路由请求的扩展 字段携带终端的业务类型信息, 并进一歩根据所述业务类型信息与子网前缀 的对应关系来为所述终端分配子网前缀, 因而相同业务类型的终端所分配到 的地址前缀相互之间符合某种预定关系, 比如是相互聚合的, 从而方便进行 业务统计和数据定向等; 并且, 在进行路由更新或地址前缀更新时也容易实 现针对同一业务类型的终端进行统一更新。 因此, 采用本发明的地址配置方 法和系统便于进行业务的管理。 附图说明  The IPV6 address configuration method and system in the embodiment of the present invention carries the service type information of the terminal in the extension field of the routing request, and further allocates a subnet to the terminal according to the correspondence between the service type information and the subnet prefix. The prefix, so that the address prefixes assigned by the terminals of the same service type meet certain predetermined relationships, for example, are mutually aggregated, thereby facilitating service statistics and data orientation, etc.; and, when performing routing update or address prefix update It is also easy to implement unified update for terminals of the same service type. Therefore, the address configuration method and system of the present invention facilitate the management of services. DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面 描述中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any inventive labor.
图 1为邻居发现协议所定义的路由请求报文的格式示意图。  Figure 1 is a schematic diagram of the format of a route request message defined by the neighbor discovery protocol.
图 2为本发明 IPV6地址配置方法一种实施例的流程图。  2 is a flow chart of an embodiment of an IPV6 address configuration method according to the present invention.
图 3为本发明 IPV6地址配置系统一种实施例的结构示意图。  FIG. 3 is a schematic structural diagram of an embodiment of an IPV6 address configuration system according to the present invention.
图 4为本发明用于 IPV6地址配置系统的终端一种可选方案的结构示意图。 图 5为本发明用于 IPV6地址配置系统的路由器一种可选方案的结构示 意图。 具体实施方式 以下结合附图及实施例, 对本发明进行进一歩详细说明。 应当理解, 此 处所描述的具体实施例仅用以解释本发明, 并不用于限定本发明。 4 is a schematic structural diagram of an alternative embodiment of a terminal for an IPV6 address configuration system according to the present invention. FIG. 5 is a schematic structural diagram of an alternative scheme of a router for an IPV6 address configuration system according to the present invention. detailed description The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
当终端接入 IPV6 网络时, 需要进行地址配置。 本发明的实施例考虑到 便于进行 IPV6业务的管理, 在进行 IPV6地址配置的过程中, 路由器根据 终端的业务类型为其分配子网前缀, 使得相同业务类型的终端所分配到的子 网前缀符合某种预定关系, 比如所述子网前缀是相互聚合的, 从而便于进行 业务的管理。  When the terminal accesses the IPV6 network, address configuration is required. The embodiment of the present invention is convenient for the management of the IPV6 service. In the process of configuring the IPV6 address, the router allocates a subnet prefix according to the service type of the terminal, so that the subnet prefix assigned by the terminal of the same service type is consistent. Certain predetermined relationships, such as the subnet prefixes, are aggregated to each other, thereby facilitating management of services.
本发明 IPV6地址配置方法的实施例中, 终端生成并发送携带有业务类 型信息的路由请求, 其中所述业务类型信息可通过扩展字段的方式附加至所 述路由请求; 路由器获取由所述终端发送的路由请求, 按照业务类型信息与 子网前缀之间的对应关系为所述终端分配所述路由请求中携带的业务类型信 息对应的子网前缀, 并且将所分配的子网前缀发送给所述终端; 所述终端进 而根据其所分配到的子网前缀, 生成 IPV6地址。  In an embodiment of the IPV6 address configuration method of the present invention, the terminal generates and sends a routing request carrying service type information, where the service type information may be attached to the routing request by means of an extension field; a routing request, the subnet prefix corresponding to the service type information carried in the routing request is allocated to the terminal according to the correspondence between the service type information and the subnet prefix, and the allocated subnet prefix is sent to the The terminal further generates an IPV6 address according to the subnet prefix to which the terminal is assigned.
进一歩地, 所述 IPV6地址配置方法中, 所述终端可以依据邻居发现 (Neighbor Discover)协议生成路由请求。 按照邻居发现协议, 路由请求报文 的格式如图 1所示, 其中, 路由请求报文的类型值为 133。 在路由请求报文 的选项域 (Options)中, 目前邻居发现协议中仅定义了用于携带终端的源链路 层地址的源链路地址项。 本发明的实施例可进一歩对所述选项域字段进行扩 展而生成新的选项 (以下称为业务类型项:), 并采用所述业务类型项携带所述 终端的业务类型信息。  Further, in the IPV6 address configuration method, the terminal may generate a routing request according to a Neighbor Discovery protocol. According to the neighbor discovery protocol, the format of the route request packet is as shown in Figure 1. The type of the route request packet is 133. In the Option field of the route request message, only the source link address entry for carrying the source link layer address of the terminal is defined in the neighbor discovery protocol. The embodiment of the present invention may further expand the option field to generate a new option (hereinafter referred to as a service type item:), and use the service type item to carry the service type information of the terminal.
请参阅图 2, 其为本发明的 IPV6地址配置方法一种具体实施例的流程 图。 所述 IPV6地址配置方法的实施例包括:  Please refer to FIG. 2, which is a flow chart of a specific embodiment of an IPV6 address configuration method according to the present invention. The embodiment of the IPV6 address configuration method includes:
歩骤 101, 获取从终端发出的路由请求, 所述路由请求携带有所述终端 的业务类型信息; 具体地, 在歩骤 101中, 路由器接收由终端发出的携带有业务类型信息 的路由请求。 所述由终端发出的路由请求可依序经家庭网关 (Residential Gateway, RG)和接入设备 (Access Node, ANM专送至所述路由器。 Step 101: Acquire a routing request sent by the terminal, where the routing request carries service type information of the terminal. Specifically, in step 101, the router receives a routing request sent by the terminal and carries the service type information. The routing request sent by the terminal may be sent to the router through a Home Gateway (RG) and an Access Node (Access Node, ANM).
进一歩地, 本发明 IPV6地址配置方法实施例在歩骤 101之前, 可以还 包括生成所述携带有业务类型信息的路由请求的歩骤, 所述生成路由请求的 歩骤具体如下:  Further, before the step 101, the embodiment of the IPV6 address configuration method of the present invention may further include the step of generating the routing request carrying the service type information, where the step of generating the routing request is specifically as follows:
首先, 所述终端根据其业务类型生成对应的业务类型信息。  First, the terminal generates corresponding service type information according to its service type.
针对终端在网络中所执行的业务类型, 在终端启动后可通过人工配置的 方式生成业务类型信息, 即根据操作者透过终端界面实时设置的业务类型生 成对应业务类型信息。 如, 操作者可在终端界面提供的所述终端支持的多种 业务类型选择其中之一并输入对应的指令信息, 对应地, 所述终端根据所述 操作者选择的业务类型自动生成所述业务类型信息。  For the service type that the terminal performs in the network, the service type information can be generated by manually configuring the terminal after the terminal is started, that is, the corresponding service type information is generated according to the service type set by the operator through the terminal interface in real time. For example, the operator may select one of the multiple service types supported by the terminal provided by the terminal interface and input corresponding instruction information, and correspondingly, the terminal automatically generates the service according to the service type selected by the operator. Type information.
进一歩地, 所述生成业务类型信息也可以通过固定写入存储器的方式由 终端生成。 具体而言, 所述终端在其内部的存储器中预先储存有所述终端的 业务类型, 在所述终端启动后, 所述存储器根据器内部存储的业务类型自动 生成业务类型信息。  Further, the generated service type information may also be generated by the terminal in a manner of being fixedly written to the memory. Specifically, the terminal pre-stores the service type of the terminal in its internal memory, and after the terminal is started, the memory automatically generates service type information according to the service type stored in the device.
不同业务类型的终端所对应的业务类型信息的值是不同的。 举例来说, 上网业务对应的业务类型信息的值可定义为 1 ; IP承载语音 (Voice over IP, The values of the service type information corresponding to the terminals of different service types are different. For example, the value of the service type information corresponding to the Internet service can be defined as 1; IP overcast voice (Voice over IP,
VOIP)业务对应的业务类型信息的值可定义为 2; IP 电视 (IPTV)业务对应的 业务类型信息的值可定义为 3。 可见, 通过分析业务类型信息的值可以确定 对应终端的业务类型。 The value of the service type information corresponding to the VOIP service may be defined as 2; the value of the service type information corresponding to the IP television (IPTV) service may be defined as 3. It can be seen that by analyzing the value of the service type information, the service type of the corresponding terminal can be determined.
其次, 产生携带有所述业务类型信息的路由请求。 具体而言, 所述终端 将其生成的业务类型信息附加至在路由请求的选项域字段中扩展的业务类型 项, 并将该携带有业务类型信息的路由请求发送至其对应的网络链路。  Second, a routing request carrying the service type information is generated. Specifically, the terminal appends the service type information generated by the terminal to the service type item extended in the option field field of the route request, and sends the route request carrying the service type information to its corresponding network link.
歩骤 102, 按照业务类型信息与子网前缀之间的对应关系, 为所述终端 分配所述路由请求中携带的业务类型信息对应的子网前缀; 下面对歩骤 102进行具体说明: Step 102: Assign a subnet prefix corresponding to the service type information carried in the routing request to the terminal according to the correspondence between the service type information and the subnet prefix. The following is a detailed description of step 102:
首先, 解析所述路由请求以获取其所携带的业务类型信息。 具体而言, 路由器从网络链路接收所述路由请求, 并对其所接收的路由请求进行解析以 从其选项域扩展的业务类型项中获取所述业务类型信息。 进一歩地, 所述路 由器对所述业务类型信息进行分析并得到所述业务类型信息的值。  First, the routing request is parsed to obtain the service type information carried by the routing request. Specifically, the router receives the routing request from the network link and parses the received routing request to obtain the service type information from the service type item extended by the option field. Further, the router analyzes the service type information and obtains the value of the service type information.
其次, 根据所述业务类型信息在预先配置的多个子网前缀池中进行选 择, 并从所选择的子网前缀池中获取对应的子网前缀。  Then, the service type information is selected in a plurality of pre-configured subnet prefix pools, and the corresponding subnet prefix is obtained from the selected subnet prefix pool.
一种可选的方案为: 所述路由器内部预先配置有多个子网前缀池, 所述 子网前缀池与业务类型信息的值之间具有对应关系, 即所述多个子网前缀池 中的不同的子网前缀池分别对应不同的业务类型信息。 进一歩地, 同一子网 前缀池内部所储存的子网前缀之间符合某种预定关系, 比如同一子网前缀池 内部所储存的子网前缀是相互聚合的。 具体而言, 每一子网前缀可包括一标 识部分和一特征部分, 如, 对于 64位子网前缀, 其前 48位可作为标识部分 而后 16位可作为特征部分。 在同一子网前缀池中的子网前缀的标识部分相 同, 而同一子网前缀池中的子网前缀的特征部分不同, 并且不同子网前缀池 中的子网前缀的标识部分不同。 由此可见, 在同一子网前缀池中的子网前缀 具有相同的前 48位, 即其为相互聚合的; 而不同的子网前缀池中的子网前 缀的前 48位不同, 即不同的子网前缀池中的子网前缀可通过其前 48位 (即 标识部分:)进行相互区分。  An optional solution is: the router is pre-configured with a plurality of subnet prefix pools, and the subnet prefix pool has a corresponding relationship with the value of the service type information, that is, different in the plurality of subnet prefix pools. The subnet prefix pools correspond to different service type information. Further, the subnet prefixes stored in the same subnet prefix pool are in a certain predetermined relationship. For example, the subnet prefixes stored in the same subnet prefix pool are mutually aggregated. Specifically, each subnet prefix may include an identification portion and a feature portion. For example, for a 64-bit subnet prefix, the first 48 bits may be used as the identification portion and the last 16 bits may be used as the feature portion. The identification part of the subnet prefix in the same subnet prefix pool is the same, and the characteristic part of the subnet prefix in the same subnet prefix pool is different, and the identification part of the subnet prefix in the different subnet prefix pool is different. It can be seen that the subnet prefixes in the same subnet prefix pool have the same first 48 bits, that is, they are mutually aggregated; and the first 48 bits of the subnet prefix in different subnet prefix pools are different, that is, different. The subnet prefix in the subnet prefix pool can be distinguished from each other by its first 48 bits (ie, the identification part:).
根据所述业务类型信息, 所述路由器在所述预先配置的子网前缀池中选 取与所述业务类型信息的值相对应的子网前缀池, 并进一歩在其选择子网前 缀池中获取对应的子网前缀。 举例来说, 若所述业务类型信息的值为 1, 选 取第一子网前缀池并从中获取子网前缀; 若所述业务类型信息的值为 2, 选 取第二子网前缀池并从中获取子网前缀; 若所述业务类型信息的值为 3, 选 取第三子网前缀池并从中获取子网前缀。 歩骤 103, 将所分配到的子网前缀发送给所述终端, 以使所述终端能根 据所述子网前缀生成 IPV6地址。 According to the service type information, the router selects a subnet prefix pool corresponding to the value of the service type information in the pre-configured subnet prefix pool, and obtains a corresponding one in the selected subnet prefix pool. Subnet prefix. For example, if the value of the service type information is 1, the first subnet prefix pool is selected and the subnet prefix is obtained therefrom; if the value of the service type information is 2, the second subnet prefix pool is selected and obtained from Subnet prefix; If the value of the service type information is 3, select the third subnet prefix pool and obtain the subnet prefix from it. Step 103: Send the allocated subnet prefix to the terminal, so that the terminal can generate an IPV6 address according to the subnet prefix.
一种可选的方案为: 所述路由器将其所获取的子网前缀附加到路由通告 (Router Advertisement)报文对应的选项字段, 并将所述路由通告发送至所述 终端。 进一歩地, 所述终端从路由通告解析出所述由路由器分配的子网前 缀, 并将所述子网前缀与本地的接口标识符信息相结合, 从而 IPV6生成地 址。  An optional solution is: the router appends the obtained subnet prefix to an option field corresponding to a Router Advertisement message, and sends the route advertisement to the terminal. Further, the terminal parses the subnet prefix assigned by the router from the route advertisement, and combines the subnet prefix with the local interface identifier information, so that the IPV6 generates an address.
基于上述 IPV6地址配置方法, 本发明实施例还提供了一种 IPV6地址 配置系统。 请参阅图 3, 所述 IPV6地址配置系统主要包括:  Based on the foregoing IPV6 address configuration method, an embodiment of the present invention further provides an IPV6 address configuration system. Referring to FIG. 3, the IPV6 address configuration system mainly includes:
终端 501, 其用于将其业务类型信息附加至路由请求的扩展字段中, 并 将所述携带有业务类型信息的路由请求发送至路由器 502;  The terminal 501 is configured to add its service type information to the extension field of the routing request, and send the routing request carrying the service type information to the router 502;
路由器 502, 其用于接收所述路由请求, 从所述路由请求中得到所述终 端 501的业务类型信息, 并按照业务类型信息与子网前缀之间的对应关系, 为所述终端 501分配所述业务类型信息对应的子网前缀。  The router 502 is configured to receive the routing request, obtain the service type information of the terminal 501 from the routing request, and allocate the location to the terminal 501 according to the correspondence between the service type information and the subnet prefix. The subnet prefix corresponding to the service type information.
其中, 所述路由器 501进一歩根据所述路由器 502分配的子网前缀, 生 成 IPV6地址。  The router 501 further generates an IPV6 address according to the subnet prefix allocated by the router 502.
进一歩地, 所述 IPV6地址配置系统还可包括家庭网关 503和接入网络 汇聚设备 504。 所述家庭网关 503和接入网络汇聚设备 504依序连接于所述 终端 501和路由器 502之间的网络链路上。 当用户签约多个业务时, 每个业 务通过不同的终端 501接入到宽带网络, 且同一用户的多个终端 501分别通 过家庭网关 503连接成用户网络 505。 所述家庭网关 503进一歩通过接入网 络汇聚设备 504连接到所述路由器 502。  Further, the IPV6 address configuration system may further include a home gateway 503 and an access network convergence device 504. The home gateway 503 and the access network convergence device 504 are sequentially connected to the network link between the terminal 501 and the router 502. When the user subscribes to multiple services, each service accesses the broadband network through different terminals 501, and multiple terminals 501 of the same user are connected to the user network 505 through the home gateway 503, respectively. The home gateway 503 is further connected to the router 502 via an access network aggregation device 504.
请参阅图 4, 本发明 IPV6地址配置系统实施例的终端 501—种可选方 案包括:  Referring to FIG. 4, the terminal 501 of the embodiment of the IPV6 address configuration system of the present invention is an optional solution including:
业务类型信息配置模块 512, 其用于按照所述终端 501的业务类型, 生 成对应的业务类型信息; 路由请求发送模块 511, 其用于将所述业务类型信息附加到路由请求的 扩展字段中, 并将所述携带有业务类型信息的路由请求发出以请求路由器为 所述终端 501分配子网前缀; a service type information configuration module 512, configured to generate corresponding service type information according to the service type of the terminal 501; a routing request sending module 511, configured to add the service type information to an extension field of the routing request, and send the routing request carrying the service type information to request the router to allocate a subnet prefix to the terminal 501;
路由通告接收模块 513, 其用于接收来自路由器的路由通告, 其中所述 路由通告携带有所述路由器为所述终端分配的子网前缀, 且所述子网前缀是 由所述路由器按照业务类型信息与子网前缀之间对应关系所分配的与所述终 端的业务类型信息相对应的子网前缀。  a route advertisement receiving module 513, configured to receive a route advertisement from a router, where the route advertisement carries a subnet prefix allocated by the router to the terminal, and the subnet prefix is determined by the router according to a service type. A subnet prefix corresponding to the service type information of the terminal allocated by the correspondence between the information and the subnet prefix.
地址生成模块 514, 其用于根据所述子网前缀及本地的地址标识符, 生 成 IPV6地址。  An address generation module 514 is configured to generate an IPV6 address according to the subnet prefix and the local address identifier.
进一歩地, 所述业务类型信息配置模块 512具体可在所述终端 501启动 后根据操作者实时配置的业务类型生成所述业务类型信息; 或者, 所述业务 类型信息配置模块 512也可预先存储有所述终端对应业务类型, 且在所述终 端启动后根据所述预先存储的业务类型生成所述业务类型信息。  Further, the service type information configuration module 512 may specifically generate the service type information according to the service type configured by the operator in real time after the terminal 501 is started; or the service type information configuration module 512 may also be pre-stored. The terminal has a service type corresponding to the service type, and generates the service type information according to the pre-stored service type after the terminal is started.
请参阅图 5, 本发明 IPV6地址配置系统实施例中路由器 502—种可选 方案包括:  Referring to FIG. 5, the router 502 in the embodiment of the IPV6 address configuration system of the present invention includes:
业务类型信息解析模块 521, 其用于接收来自终端且携带有所述终端的 业务类型信息的路由请求, 并对所述路由请求进行解析获取所述业务类型信 息;  a service type information parsing module 521, configured to receive a routing request from the terminal and carrying the service type information of the terminal, and parse the routing request to obtain the service type information;
子网前缀分配模块 522, 其用于按照业务类型信息与子网前缀的对应关 系, 为所述终端分配与所述业务类型信息解析模块所获取的业务类型信息相 对应的子网前缀, 以使所述终端能根据所分配到的子网前缀生成 IPV6地 址。  a subnet prefix allocation module 522, configured to allocate, according to the correspondence between the service type information and the subnet prefix, a subnet prefix corresponding to the service type information acquired by the service type information parsing module, so that the terminal The terminal can generate an IPV6 address according to the assigned subnet prefix.
进一歩地, 所述路由器 502还可包括:  Further, the router 502 may further include:
子网前缀存储模块 524, 其包括多个储存有子网前缀的子网前缀池, 且 不同的子网前缀池分别对应不同的业务类型信息。 其中, 所述子网前缀池所 存储的每一子网前缀包括标识部分和特征部分, 同一子网前缀池中的子网前 缀的标识部分相同, 同一子网前缀池中的子网前缀的特征部分不同, 且不同 子网前缀池内部存储的子网前缀的标识部分不同。 The subnet prefix storage module 524 includes a plurality of subnet prefix pools that store subnet prefixes, and different subnet prefix pools respectively correspond to different service type information. Each subnet prefix stored in the subnet prefix pool includes an identifier part and a feature part, and a subnet in the same subnet prefix pool The identifiers of the subnet prefixes in the same subnet prefix pool are different, and the identifiers of the subnet prefixes stored in different subnet prefix pools are different.
所述路由器 502还可进一歩包括:  The router 502 can further include:
路由通告发送模块 523, 其用于将由所述子网前缀分配模块 522所获取 的子网前缀附加至路由通告对应的选项字段, 并将所述路由通告发出。  The route advertisement sending module 523 is configured to attach the subnet prefix obtained by the subnet prefix allocation module 522 to an option field corresponding to the route advertisement, and issue the route advertisement.
综上所述, 本发明实施例所述的 IPV6地址配置方法和系统通过在路由 请求的扩展字段携带终端的业务类型信息, 并进一歩根据所述业务类型信息 与子网前缀的对应关系来为所述终端分配子网前缀, 因而相同业务类型的终 端所分配到的地址前缀相互之间符合某种预定关系, 比如是相互聚合的, 从 而方便进行业务统计和数据定向等; 并且, 在进行路由更新或地址前缀更新 时也容易实现针对同一业务类型的终端进行统一更新。 因此, 采用本发明的 地址配置方法和系统便于进行业务的管理。  In summary, the IPV6 address configuration method and system in the embodiment of the present invention carries the service type information of the terminal in the extension field of the routing request, and further calculates the correspondence between the service type information and the subnet prefix according to the correspondence between the service type information and the subnet prefix. The terminal allocates a subnet prefix, so that the address prefixes allocated by the terminals of the same service type meet certain predetermined relationships, for example, are mutually aggregated, thereby facilitating service statistics and data orientation, and the like, and performing routing update. Or it is easy to implement unified update for terminals of the same service type when the address prefix is updated. Therefore, the address configuration method and system of the present invention facilitate the management of services.
通过以上的实施方式的描述, 本领域的技术人员可以清楚地了解到本发 明可借助软件加必需的硬件平台的方式来实现, 当然也可以全部通过硬件来 实施。 基于这样的理解, 本发明的技术方案对背景技术做出贡献的全部或者 部分可以以软件产品的形式体现出来, 该计算机软件产品可以存储在存储介 质中, 如 ROM/RAM、 磁碟、 光盘等, 包括若干指令用以使得一台计算机 设备 (可以是个人计算机, 服务器, 或者网络设备等) 执行本发明各个实施 例或者实施例的某些部分所述的方法。  Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary hardware platform, and of course, can also be implemented entirely by hardware. Based on such understanding, all or part of the technical solution of the present invention contributing to the background art may be embodied in the form of a software product, which may be stored in a storage medium such as a ROM/RAM, a magnetic disk, an optical disk, or the like. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention or portions of the embodiments.
以上所述, 仅为本发明较佳的具体实施方式, 但本发明的保护范围并不 局限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可 轻易想到的变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明 的保护范围应该以权利要求的保护范围为准。  The above is only a preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or within the technical scope disclosed by the present invention. Alternatives are intended to be covered by the scope of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

权利要求书 Claim
1、 一种 IPV6地址配置方法, 其特征在于, 该方法包括:  A method for configuring an IPV6 address, the method comprising:
获取由终端发出的路由请求, 所述路由请求携带有所述终端的业务类型 ^ I 自、 .;  Obtaining a routing request sent by the terminal, where the routing request carries the service type of the terminal, I, and .
按照业务类型信息与子网前缀之间的对应关系, 为所述终端分配所述路 由请求中携带的业务类型信息对应的子网前缀;  Assigning, by the terminal, a subnet prefix corresponding to the service type information carried in the routing request, according to the correspondence between the service type information and the subnet prefix;
将所分配到的子网前缀发送给所述终端, 以使所述终端能根据所述子网 前缀生成 IPV6地址。  The assigned subnet prefix is sent to the terminal to enable the terminal to generate an IPV6 address based on the subnet prefix.
2、 根据权利要求 1所述的 IPV6地址配置方法, 其特征在于, 所述路 由请求是根据邻居发现协议生成, 且所述业务类型信息通过对所述邻居发现 协议的选项域字段进行扩展的方式而附加至所述路由请求。  The IPV6 address configuration method according to claim 1, wherein the routing request is generated according to a neighbor discovery protocol, and the service type information is extended by using an option field field of the neighbor discovery protocol. Attached to the routing request.
3、 根据权利要求 1所述的 IPV6地址配置方法, 其特征在于, 所述业 务类型信息是所述终端在启动后根据操作者实时配置的业务类型或根据预先 存储的业务类型生成的。  The IPV6 address configuration method according to claim 1, wherein the service type information is generated by the terminal according to a service type configured by an operator in real time or according to a pre-stored service type.
4、 根据权利要求 1、 2或 3所述的 IPV6地址配置方法, 其特征在于, 所述按照业务类型信息与子网前缀之间的对应关系, 为所述终端分配所述路 由请求中携带的业务类型信息对应的子网前缀的歩骤包括:  The IPV6 address configuration method according to claim 1, 2 or 3, wherein the mapping between the service type information and the subnet prefix is performed for the terminal to be allocated in the routing request The steps of the subnet prefix corresponding to the service type information include:
解析所述路由请求以获取其所携带的业务类型信息;  Parsing the routing request to obtain service type information carried by the routing request;
根据所述业务类型信息在预先配置的多个子网前缀池中进行选择, 并在 所选择的子网前缀池中获取对应的子网前缀, 其中不同的子网前缀池分别对 应不同的业务类型信息。  And selecting, according to the service type information, a pre-configured plurality of subnet prefix pools, and obtaining a corresponding subnet prefix in the selected subnet prefix pool, where different subnet prefix pools respectively correspond to different service type information .
5、 根据权利要求 4所述的 IPV6地址配置方法, 其特征在于, 所述任 意一子网前缀包括标识部分和特征部分, 其中, 同一子网前缀池中的子网前 缀的标识部分相同, 同一子网前缀池中的子网前缀的特征部分不同, 且不同 子网前缀池中的子网前缀的标识部分不同。  The IPV6 address configuration method according to claim 4, wherein the any one of the subnet prefixes includes an identification part and a feature part, wherein the identification part of the subnet prefix in the same subnet prefix pool is the same, the same The feature parts of the subnet prefix in the subnet prefix pool are different, and the identification parts of the subnet prefix in different subnet prefix pools are different.
6、 一种 IPV6地址配置系统, 其特征在于, 该系统包括: 终端, 用于将其业务类型信息附加至路由请求的扩展字段中, 并将所述 携带有业务类型信息的路由请求发送至路由器, 并且根据由路由器分配的子 网前缀生成 IPV6地址; 6. An IPV6 address configuration system, the system comprising: a terminal, configured to add its service type information to an extension field of the routing request, and send the routing request carrying the service type information to the router, and generate an IPV6 address according to the subnet prefix allocated by the router;
路由器, 用于接收所述路由请求, 从所述路由请求中得到所述业务类型 信息, 并按照业务类型信息与子网前缀之间的对应关系, 为所述终端分配所 述业务类型信息对应的子网前缀。  a router, configured to receive the routing request, obtain the service type information from the routing request, and allocate, according to the correspondence between the service type information and the subnet prefix, the service type information corresponding to the terminal Subnet prefix.
7、 根据权利要求 6所述的 IPV6地址配置系统, 其特征在于, 所述终 端还用于在启动后根据操作者实时配置的业务类型或根据预先存储的业务类 型生成所述业务类型信息。  The IPV6 address configuration system according to claim 6, wherein the terminal is further configured to generate the service type information according to a service type configured by an operator in real time or according to a pre-stored service type after startup.
8、 根据权利要求 6或 7所述的 IPV6地址配置系统, 其特征在于, 所述 路由器包括多个子网前缀池, 且不同的子网前缀池分别对应不同的业务类型 ^ I Ft自Θ、。  The IPV6 address configuration system according to claim 6 or 7, wherein the router includes a plurality of subnet prefix pools, and different subnet prefix pools respectively correspond to different service types ^ I Ft.
9、 根据权利要求 8所述的 IPV6地址配置系统, 其特征在于, 所述子 网前缀池所存储的每一子网前缀分别包括标识部分和特征部分, 同一子网前 缀池中的子网前缀的标识部分相同, 同一子网前缀池中的子网前缀的特征部 分不同, 且不同子网前缀池中的子网前缀的标识部分不同。  The IPV6 address configuration system according to claim 8, wherein each subnet prefix stored in the subnet prefix pool includes an identification part and a feature part, and a subnet prefix in the same subnet prefix pool. The identification part is the same, the characteristic part of the subnet prefix in the same subnet prefix pool is different, and the identification part of the subnet prefix in the different subnet prefix pool is different.
10、 一种用于 IPV6地址配置系统的路由器, 其特征在于, 该路由器包 括:  10. A router for an IPV6 address configuration system, the router comprising:
业务类型信息解析模块, 其用于接收来自终端且携带有所述终端的业务 类型信息的路由请求, 并对所述路由请求进行解析以获取所述业务类型信 息;  a service type information parsing module, configured to receive a routing request from the terminal and carrying the service type information of the terminal, and parse the routing request to obtain the service type information;
子网前缀分配模块, 其用于按照业务类型信息与子网前缀的对应关系, 为所述终端分配与所述业务类型信息解析模块所获取的业务类型信息相对应 的子网前缀, 以使所述终端能根据所分配到的子网前缀生成 IPV6地址。  a subnet prefix allocation module, configured to allocate a subnet prefix corresponding to the service type information acquired by the service type information parsing module to the terminal according to the correspondence between the service type information and the subnet prefix, so as to enable the The terminal can generate an IPV6 address according to the assigned subnet prefix.
11、 根据权利要求 10所述的路由器, 其特征在于, 该路由器还包括: 子网前缀存储模块, 其包括多个储存有子网前缀的子网前缀池, 且不同 的子网前缀池分别对应不同的业务类型信息。 The router according to claim 10, wherein the router further comprises: The subnet prefix storage module includes a plurality of subnet prefix pools that store subnet prefixes, and different subnet prefix pools respectively correspond to different service type information.
12、 根据权利要求 11所述的路由器, 其特征在于, 所述子网前缀池所 存储的每一子网前缀分别包括标识部分和特征部分, 同一子网前缀池中的子 网前缀的标识部分相同, 同一子网前缀池中的子网前缀的特征部分不同, 且 不同子网前缀池中的子网前缀的标识部分不同。  The router according to claim 11, wherein each subnet prefix stored in the subnet prefix pool includes an identification part and a feature part, and an identification part of a subnet prefix in the same subnet prefix pool. Similarly, the feature parts of the subnet prefix in the same subnet prefix pool are different, and the identification parts of the subnet prefix in different subnet prefix pools are different.
13、 一种用于 IPV6地址配置系统的终端, 其特征在于, 该终端包括: 业务类型信息配置模块, 其用于生成所述终端对应的业务类型信息; 路由请求发送模块, 其用于将所述业务类型信息附加到路由请求的扩展 字段中, 并将所述携带有业务类型信息的路由请求发出以请求路由器为所述 终端分配子网前缀;  A terminal for an IPV6 address configuration system, the terminal includes: a service type information configuration module, configured to generate service type information corresponding to the terminal; and a route request sending module, where the terminal is used for The service type information is attached to the extension field of the routing request, and the routing request carrying the service type information is sent to request the router to allocate a subnet prefix to the terminal;
路由通告接收模块, 其用于接收来自路由器的路由通告, 其中所述路由 通告携带有所述路由器为所述终端分配的子网前缀, 且所述子网前缀是由所 述路由器按照业务类型信息与子网前缀之间对应关系所分配的与所述终端的 业务类型信息相对应的子网前缀。  a route advertisement receiving module, configured to receive a route advertisement from a router, where the route advertisement carries a subnet prefix allocated by the router to the terminal, and the subnet prefix is determined by the router according to service type information A subnet prefix corresponding to the service type information of the terminal allocated by the correspondence between the subnet prefixes.
14、 根据权利要求 13所述的终端, 其特征在于, 所述业务类型信息配 置模块具体用于在所述终端启动后根据操作者实时配置的业务类型或根据预 先存储的业务类型生成所述业务类型信息。  The terminal according to claim 13, wherein the service type information configuration module is configured to generate the service according to a service type configured by an operator in real time or according to a pre-stored service type after the terminal is started. Type information.
PCT/CN2009/073630 2008-12-17 2009-08-31 Method and system for configuring ipv6 address WO2010069181A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200810241624A CN101753635A (en) 2008-12-17 2008-12-17 Method and system of collocating IPV6 (internet protocol version 6) addresses
CN200810241624.7 2008-12-17

Publications (1)

Publication Number Publication Date
WO2010069181A1 true WO2010069181A1 (en) 2010-06-24

Family

ID=42268290

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/073630 WO2010069181A1 (en) 2008-12-17 2009-08-31 Method and system for configuring ipv6 address

Country Status (2)

Country Link
CN (1) CN101753635A (en)
WO (1) WO2010069181A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10091162B2 (en) 2014-06-10 2018-10-02 Siemens Aktiengesellschaft Allocation of network addresses for network subscribers
CN112291383A (en) * 2020-10-15 2021-01-29 科大国创云网科技有限公司 IP address allocation method and system
CN114257400A (en) * 2021-11-11 2022-03-29 中国南方电网有限责任公司 Information acquisition method and device based on identification algorithm and computer equipment
CN114500258A (en) * 2021-12-14 2022-05-13 四川天邑康和通信股份有限公司 Automatic internet surfing configuration method for ipv6 under wifi6 router under home intelligent gateway
CN115499282B (en) * 2022-11-21 2023-03-24 北京连星科技有限公司 Method and system for constructing flexible networking linkage management based on native IPv6

Families Citing this family (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102158563B (en) 2010-02-12 2013-10-30 华为技术有限公司 Method, system and device for acquiring IPv6 (Internet Protocol Version 6) configuration information from IPv6 transition network
CN101945144A (en) * 2010-09-14 2011-01-12 中兴通讯股份有限公司 IP address redistribution method and service node
CN102447746B (en) 2010-10-08 2015-04-08 华为技术有限公司 Information supply method, family gateway and family network system
CN102006336B (en) * 2010-11-23 2014-04-30 中兴通讯股份有限公司 Allocation method and device of Internet protocol version 6 (IPv6) address prefixes
WO2011157141A2 (en) * 2011-05-31 2011-12-22 华为技术有限公司 Internet protocol version 6 address allocation method and apparatus
CN102420879A (en) * 2011-12-13 2012-04-18 北京天融信科技有限公司 Prefix readdressing method, system, dynamic host configuration protocol for Internet protocol version 6 (DHCPv6) server and relay equipment
CN103428800A (en) * 2012-05-23 2013-12-04 中兴通讯股份有限公司 Route selection method and functional network element
CN102833732B (en) * 2012-07-25 2017-03-29 中兴通讯股份有限公司 System, data card and its implementation that a kind of IPv6 addresses stateless is automatically configured
CN103812954B (en) * 2012-11-09 2018-01-16 中国电信股份有限公司 IPv6 address management methods and system
CN104348776B (en) * 2013-07-23 2018-02-06 华为技术有限公司 Data package processing method and device
CN104639439B (en) * 2015-01-27 2018-04-06 新华三技术有限公司 The processing method and equipment of a kind of service message
CN105227694B (en) * 2015-10-12 2018-08-07 北京星网锐捷网络技术有限公司 For realizing the device and method of IPv6 prefix assignments
CN106027697B (en) * 2016-08-01 2019-02-05 清华大学 A kind of address IPv6 generation project management system
CN110022383B (en) * 2019-04-10 2022-03-25 广州热点软件科技股份有限公司 Address management method and system
CN113542905A (en) * 2020-04-22 2021-10-22 中国移动通信集团有限公司 Address allocation method, gateway, set-top box, device and storage medium
CN111835884B (en) * 2020-07-13 2022-11-04 北京好扑信息科技有限公司 Virtual address generation method for block chain
CN111866212B (en) * 2020-07-17 2023-08-15 芯河半导体科技(无锡)有限公司 Method for automatically distributing IPV6PD prefix for down-hanging router by gateway
CN117459497A (en) * 2020-12-31 2024-01-26 华为技术有限公司 IPv6 address configuration method and routing equipment
CN113612870A (en) * 2021-09-07 2021-11-05 上海市共进通信技术有限公司 Method for distributing different IPv6 address prefixes based on LAN side multi-type terminal equipment
CN115955671A (en) * 2021-10-09 2023-04-11 华为技术有限公司 Communication method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005062567A1 (en) * 2003-12-22 2005-07-07 Siemens Aktiengesellschaft Method network gateway and terminal for packet-oriented data transmission
CN1897589A (en) * 2005-07-13 2007-01-17 上海贝尔阿尔卡特股份有限公司 Access apparatus, routing equipment and method for supporting IPv6 stateless address configuration in telecommunication network
CN1929482A (en) * 2006-09-20 2007-03-14 华为技术有限公司 Network business identification method and device
US20070223397A1 (en) * 2006-03-24 2007-09-27 Sergey Gerasimov Network configuration
CN101155196A (en) * 2006-09-27 2008-04-02 中国电信股份有限公司 Service-oriented IPv6 address specification and distribution method, terminal and system for implementing the same
CN101179603A (en) * 2006-11-09 2008-05-14 上海贝尔阿尔卡特股份有限公司 Method and device for controlling user network access in IPv6 network

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005062567A1 (en) * 2003-12-22 2005-07-07 Siemens Aktiengesellschaft Method network gateway and terminal for packet-oriented data transmission
CN1897589A (en) * 2005-07-13 2007-01-17 上海贝尔阿尔卡特股份有限公司 Access apparatus, routing equipment and method for supporting IPv6 stateless address configuration in telecommunication network
US20070223397A1 (en) * 2006-03-24 2007-09-27 Sergey Gerasimov Network configuration
CN1929482A (en) * 2006-09-20 2007-03-14 华为技术有限公司 Network business identification method and device
CN101155196A (en) * 2006-09-27 2008-04-02 中国电信股份有限公司 Service-oriented IPv6 address specification and distribution method, terminal and system for implementing the same
CN101179603A (en) * 2006-11-09 2008-05-14 上海贝尔阿尔卡特股份有限公司 Method and device for controlling user network access in IPv6 network

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10091162B2 (en) 2014-06-10 2018-10-02 Siemens Aktiengesellschaft Allocation of network addresses for network subscribers
CN112291383A (en) * 2020-10-15 2021-01-29 科大国创云网科技有限公司 IP address allocation method and system
CN114257400A (en) * 2021-11-11 2022-03-29 中国南方电网有限责任公司 Information acquisition method and device based on identification algorithm and computer equipment
CN114500258A (en) * 2021-12-14 2022-05-13 四川天邑康和通信股份有限公司 Automatic internet surfing configuration method for ipv6 under wifi6 router under home intelligent gateway
CN114500258B (en) * 2021-12-14 2023-08-15 四川天邑康和通信股份有限公司 Automatic internet configuration method for ipv6 under wifi6 router under home intelligent gateway
CN115499282B (en) * 2022-11-21 2023-03-24 北京连星科技有限公司 Method and system for constructing flexible networking linkage management based on native IPv6

Also Published As

Publication number Publication date
CN101753635A (en) 2010-06-23

Similar Documents

Publication Publication Date Title
WO2010069181A1 (en) Method and system for configuring ipv6 address
US8681695B1 (en) Single address prefix allocation within computer networks
US9485147B2 (en) Method and device thereof for automatically finding and configuring virtual network
US20120324063A1 (en) Method, network device, and system for automatically configuring network device in ipv6 network
US8706908B2 (en) System, method and apparatus for media access control (MAC) address proxying
WO2007009367A1 (en) A method for duplicate address detection in the two-layer access network supporting ipv6 and a system thereof
EP2536108A1 (en) Method, system and apparatus for acquiring ipv6 configuration information in ipv6 transient network
WO2013040942A1 (en) Data centre system and apparatus, and method for providing service
WO2009117960A1 (en) Method for accessing network, authentication method, communication system and related equipment
US20140313933A1 (en) Method, apparatus, and system for layer 2 interworking based on ipv6
CN110365557B (en) Network interconnection method and device
WO2014056441A1 (en) Method and device for configuring ipv6 transition technique on cpe
CN101753460A (en) Method and device for processing internet protocol version 6(IPV6) routing prefix
WO2014101891A1 (en) Method and device for configuring ip address
WO2011144152A1 (en) Method for providing information, home gateway and home network system
WO2007028306A1 (en) A method for reconstructing the network address in the ipv6 access network
US20140032782A1 (en) Method and apparatus for route selection of host in multihoming site
CN110995886A (en) Network address management method, device, electronic equipment and medium
JP2007509566A (en) Handover method, handover apparatus, and information recording medium having instructions for performing the handover method under DHCPv4 environment
US8909787B2 (en) Method, device, and system for allocating address in IP network
US8438390B2 (en) Method and system for using neighbor discovery unspecified solicitation to obtain link local address
WO2011107052A2 (en) Method and access node for preventing address conflict
WO2017032145A1 (en) Domain name forwarding method and apparatus
US20060193330A1 (en) Communication apparatus, router apparatus, communication method and computer program product
WO2019096103A1 (en) Method and device for configuring service flow

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: 09832863

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 09832863

Country of ref document: EP

Kind code of ref document: A1