WO2013086966A1 - 基于IPv6的二层互通的方法、装置和系统 - Google Patents

基于IPv6的二层互通的方法、装置和系统 Download PDF

Info

Publication number
WO2013086966A1
WO2013086966A1 PCT/CN2012/086361 CN2012086361W WO2013086966A1 WO 2013086966 A1 WO2013086966 A1 WO 2013086966A1 CN 2012086361 W CN2012086361 W CN 2012086361W WO 2013086966 A1 WO2013086966 A1 WO 2013086966A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal device
router advertisement
advertisement message
gateway device
link
Prior art date
Application number
PCT/CN2012/086361
Other languages
English (en)
French (fr)
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 华为技术有限公司
Priority to EP12857261.7A priority Critical patent/EP2765743A4/en
Publication of WO2013086966A1 publication Critical patent/WO2013086966A1/zh
Priority to US14/301,851 priority patent/US20140313933A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/64Hybrid switching systems
    • H04L12/6418Hybrid transport
    • 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
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method, device, and system for Layer 2 interworking based on IPv6 (Internet Protocol version 6, Version 6 Internet Protocol).
  • IPv6 Internet Protocol version 6, Version 6 Internet Protocol
  • DHCP Dynamic Host Configuration Protocol
  • DHCP defines two modes of interaction:
  • Terminal device - The DHCP server interacts through two messages:
  • the terminal device can initiate an Information-Request to obtain a DNS (Domain Name System, Domain Name System, NTP (Network Time Protocol) server, etc. directly from the DHCP server.
  • DNS Domain Name System
  • NTP Network Time Protocol
  • the information is as shown in Figure 1.
  • the DHCP server sends information such as the DNS and NTP server addresses to the terminal device through the DHCP Reply message.
  • the terminal device may request the DHCP server to immediately reply by sending a DHCP Solicit message carrying the Option 14 (OPTION RAPID COMMIT).
  • the DHCP server immediately responds to the DHCP including the IP address and the configuration information after receiving the message. Reply message.
  • the terminal device - the DHCP server interacts through four messages:
  • the terminal device When the terminal device needs to obtain one or more IP addresses, the terminal device needs to send a DHCP Solicit message to locate the location of the DHCP server, and request the DHCP server to assign an IP address and configuration information to the DHCP server through the DHCP Request message.
  • the text is sent to all DHCP servers (FF02::1:2).
  • any DHCP server on the link responds.
  • DHCP Advertisement packet The terminal device can select one of the responding DHCP servers, request an IP address and configuration information from it, as shown in FIG.
  • the terminal device cannot generate a direct route to the network segment of the assigned address. This causes two terminal devices that obtain the same prefix IPv6 address from the same DHCP server.
  • the packets can be forwarded only through the gateway device, or the terminal device can support the direct forwarding between the two terminal devices.
  • the embodiments of the present invention provide a method, a device, and a system for the interworking of the IPv6-based Layer 2 interworking.
  • the method, the device, and the system provide a direct connection between the terminal devices that obtain the same prefix IPv6 address from the same DHCP server.
  • An embodiment of the present invention provides an IPv6-based Layer 2 network interworking method, where the Layer 2 network includes a gateway device and a first terminal device and a second terminal device that are connected to the gateway device, and the method includes:
  • the router advertisement message carries a management flag and a prefix option, where the prefix option is carried in a link flag, so that the first terminal device is according to the link Marking a direct route to the second terminal device;
  • the management tag is used to instruct the first terminal device to obtain an IP address by using a dynamic host configuration protocol.
  • An embodiment of the present invention provides an IPv6-based gateway device, where the gateway device is connected to a first terminal device and a second terminal device, where the gateway device includes:
  • a first port configured to receive a router request message of the first terminal device
  • a second port configured to send a router advertisement message to the first terminal device, where the router advertisement message carries a management tag and a prefix option, where the prefix option is carried in a link tag, so that the first terminal device
  • the management mark is used to instruct the first terminal device to obtain an IP address by using a dynamic host configuration protocol, according to the direct route generated by the link tag to the second terminal device.
  • An embodiment of the present invention provides a terminal device, including:
  • a first network side port configured to send a router request message to the gateway device
  • a second network side port configured to receive a router advertisement message of the gateway device, where the router advertisement message carries a management tag and a prefix option, where the prefix option is carried in a link tag, where the management tag is used to indicate
  • the terminal device obtains an IP address by using a dynamic host configuration protocol
  • a processing unit configured to generate, according to the link flag, a direct route to another terminal device connected to the gateway device.
  • An embodiment of the present invention provides an IPv6-based Layer 2 interworking system, where the system includes a gateway device, a first terminal device, and a second terminal device.
  • the gateway device is configured to receive a router request message of the first terminal device, and send a router advertisement message to the first terminal device, where the router advertisement message carries a management tag and a prefix option, and the prefix option Carrying on the link tag;
  • the first terminal device is configured to obtain an IP address according to the management label, according to the dynamic label configuration protocol, according to the direct link generated to the second terminal device in the link label.
  • the method, the device and the system provided by the embodiments of the present invention can enable the terminal device to obtain an IP address by using DHCP, by sending a router advertisement carrying the prefix option included in the link tag and the management tag to the terminal device, and according to the The link tag generates a direct route, so that multiple terminal devices that share the same prefix IPv6 address from the same DHCP server can communicate with each other in a broadcast domain.
  • Figure 1-3 is a schematic diagram of a process of interacting between a terminal device and a DHCP server in the prior art
  • Figure 4 is a schematic diagram of an architecture of a layer 2 network according to an embodiment of the present invention
  • FIG. 5 is an interaction diagram of a Layer 2 network interworking method according to an embodiment of the present invention.
  • FIG. 6 is a structural diagram of a router request packet according to an embodiment of the present invention.
  • FIGS. 7A-7B are structural diagrams of a router advertisement message according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a gateway device according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic structural diagram of a terminal device according to an embodiment of the present invention. Specific embodiment
  • a plurality of terminal devices can be connected to the gateway device.
  • the gateway device 40 is connected to the terminal device 42 (first terminal device) and the terminal device 44 (second terminal device).
  • the terminal device 42 and the terminal device 44 can be located. In a broadcast domain.
  • the gateway device in FIG. 4 may be an IPv6 routing device, or an access device or an aggregation device, such as a DSLAM (Digital Subscriber Line Access Multiplexer) or an OLT (Optical Line Terminal). ) or MSAN (Multi-Service Access Network).
  • the terminal device may be a CPE (Customer Premise Equipment), an ONT (Optical Network Terminal), or a user PC.
  • CPE Customer Premise Equipment
  • ONT Optical Network Terminal
  • the specific configuration of the gateway device and the terminal device is not limited in the embodiment of the present invention.
  • the terminal device When the terminal device obtains an IPv6 address from the DHCP server, the terminal device can only generate a route with the default gateway and cannot generate a direct-connected network segment route.
  • the embodiment of the present invention provides an IPv6-based Layer 2 network interworking method, where the method includes the gateway device sending a router advertisement message to the terminal device after receiving the router request message of the terminal device.
  • the router advertisement message carries a prefix option included in the link tag and the management tag, so that the terminal device generates a direct route to other terminal devices connected to the gateway device according to the link tag, where the management tag Used to instruct the terminal to use DHCP to obtain an IP address.
  • Step 500 The terminal device sends a Router Solicitation message to the gateway device.
  • the terminal device After the terminal device (such as the terminal device 42) starts, it automatically generates a link-local address (Link-Local), and multicasts a Router Sohdtation (router request) message according to the link local routing address (FF02::2).
  • Link-Local link-local address
  • Router Sohdtation Router request
  • the structure can be as shown in Figure 6.
  • the gateway device 40 receives the Router Solicitation message.
  • Step 501 The gateway device sends a Router Advertisement packet to the terminal device.
  • the gateway device obtains the manner in which the terminal device obtains the IP address according to the configuration information.
  • the manner in which the terminal device obtains the IP address may include DHCP and Stateless Address Autoconfiguration (SLAAC).
  • the manner in which the terminal device obtains the IP address is the DHCP mode.
  • the method may be the DHCPv6 mode.
  • the gateway device unicasts the Router Advertisement message to the terminal device.
  • the Router Advertisement message as shown in Figure 7A, carries the prefix options (Options) and management (Management, M) included in the link (AdvOnlink, L). )mark.
  • the format of the prefix option can be as shown in Figure 7B.
  • the L-mark is used to generate a direct-connected route by the terminal device, and the M-mark is used to indicate the manner in which the terminal device obtains the IP address.
  • the DHCP obtains the IP address.
  • the first option of the Router Advertisement may also include an Autonomous flag, and the Autonomous flag is used by the terminal device to generate an address, which should be set to 0 in this embodiment;
  • the Router Advertisement packet can also carry a 0 (Other) flag to instruct the terminal device to obtain other configuration information.
  • the terminal device After receiving the Router Advertisement packet, the terminal device generates a direct route to other terminal devices connected to the gateway device according to the L flag in the prefix option.
  • the specific terminal device After the specific terminal device receives the Router Advertisement message, it determines that the router advertisement contains the prefix with the L flag. The destination IP address is the prefix and the next hop is empty.
  • Steps 502-505 the terminal device uses DHCP to obtain an IP address from the DHCP server.
  • the terminal device After receiving the advertisement from the router, the terminal device obtains the IP address according to the M tag in the Router Advertisement.
  • the DHCP mode is used. How to obtain the IP address from the DHCP server by using DHCP mode. It should be understood by those of ordinary skill in the art that they are not described herein.
  • Step 506 The gateway device periodically sends a Router Advertisement message to the connected terminal device.
  • the gateway device can periodically broadcast a Router Advertisement message to the connected terminal device, and carries a prefix option including an L flag, so that the connected terminal device generates a direct route according to the L flag.
  • the method provided by the embodiment of the present invention sends a prefix selection including the L mark by sending the terminal device
  • the device and the M-labeled router advertisement message enable the terminal device to obtain an IP address by using DHCP and generate a direct route according to the L flag, thereby realizing the allocation of the same prefix IPv6 address from the same DHCP server in one broadcast domain.
  • An embodiment of the present invention provides a gateway device, where the gateway device is connected to the first terminal device and the second terminal device, where the first and second terminal devices may be one or more terminal devices, as shown in FIG. :
  • a first port 80 configured to receive a Router Solicitation message of the first terminal device
  • a second port 82 configured to send a Router Advertisement message to the first terminal device, where the Router Advertisement message carries a prefix option and a management tag included in the link tag, so that the first terminal device according to the The link tag generates a direct route to the second terminal device, where the management tag is used to instruct the first terminal device to obtain an IP address by using DHCP.
  • the gateway device further includes a processing unit 84, configured to obtain, by using the configuration information, a manner in which the terminal device obtains an IP address, and generates a corresponding management tag to be carried in the Router Advertisement packet.
  • the processing unit 84 may be a CPU (Central Processing Unit) or a DSP (Digital Signal Processing).
  • CPU Central Processing Unit
  • DSP Digital Signal Processing
  • the second port 82 is further configured to periodically broadcast a Router Advertisement message to the connected terminal device, so that the terminal device connected to the gateway device generates a direct route according to the link flag in the Router Advertisement message.
  • the gateway device provided in this embodiment may be an IPv6 router, an access device, or an aggregation device.
  • the first port 80 and the second port 82 provided in this embodiment may be a physical port or a physical port on the actual device.
  • the specific configuration is not limited in the embodiment of the present invention.
  • the gateway device provided in this embodiment can send the terminal device to use the DHCP Advertisement packet including the prefix option and the management tag included in the link tag, so that the terminal device can obtain the IP address by using the DHCP, and generate the
  • the routing is implemented to implement interworking between multiple terminal devices that allocate the same prefix IPv6 address from the same DHCP server in a broadcast domain.
  • An embodiment of the present invention provides a terminal device, as shown in FIG. 9, including a first network side port 90, a second network side port 92, and a processing unit 94.
  • the first network side port 90 and the second network side port 92 are connected.
  • Gateway device where
  • the first network side port 90 is configured to send a Router Solicitation message to the gateway device.
  • a second network side port 92 configured to receive a Router Advertisement packet of the gateway device, where
  • the router advertisement packet carries a prefix option and a management tag included in the link tag, where the management tag is used to instruct the terminal device to obtain an IP address by using DHCP;
  • the processing unit 94 is configured to generate a direct route to the other terminal device connected to the gateway device according to the link tag.
  • the processing unit 94 is further configured to send a DHCP request message to the DHCP server by using the first network side port 90;
  • the second network side port 92 is further configured to receive a DHCP response message of the DHCP server, where the DHCP response message carries an IP address assigned to the terminal device.
  • the second network side port 92 is further configured to receive a Router Advertisement message periodically sent by the gateway device, and generate, according to the Router Advertisement, the link tag generated in the message to be connected to the gateway device. Direct routing of other terminal devices.
  • the processing unit 94 may be a CPU (Central Processing Unit) or a DSP (Digital Signal Processing).
  • CPU Central Processing Unit
  • DSP Digital Signal Processing
  • the terminal device in this embodiment may be a terminal device such as a CPE or an ONT.
  • the first network side port 90 and the second network side port 92 provided in this embodiment may be one physical port or two independent physical ports on the actual device.
  • the specific embodiment is not limited in the embodiment of the present invention.
  • the terminal device provided in this embodiment can obtain the direct link between the link identifier and the link identifier according to the link advertisement, so that the same DHCP server can be assigned the same DHCP server in one broadcast domain. Interworking between multiple terminal devices with the prefix IPv6 address.
  • the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
  • the device embodiments described above are merely illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, ie may be located One place, or it can be distributed to multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without any creative effort.

Landscapes

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

Abstract

本发明公开了一种基于IPv6的二层互通方法、装置和系统,其中方法包括:接收所述第一终端设备的路由器请求报文;向所述第一终端设备发送路由器公告报文,所述路由器公告报文携带包含在链路标记的前缀选项和管理标记,以使得所述第一终端设备根据所述在链路标记生成到所述第二终端设备的直连路由;其中,所述管理标记用于指示所述第一终端设备采用DHCP获取IP地址。本发明所提供的方法、装置和系统能在从同一个DHCP服务器分配相同前缀 IPv6地址的终端设备之间实现直接路由。

Description

基于 IPv6的二层互通的方法、 装置和系统
本申请要求于 2011 年 12 月 12 日提交中国专利局、 申请号为 201110412167.5、 发明名称为"基于 IPv6 的二层互通的方法、 装置和系统,,的中 国专利申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域
本发明涉及通信技术领域, 尤其涉及一种基于 IPv6(Internet Protocol version 6, 第 6版因特网协议)的二层互通的方法、 装置及系统。
背景技术
DHCP ( Dynamic Host Configuration Protocol, 动态主机配置协议)用来向 计算机分配 IP地址和其他网络信息, 以便计算机可以在网络上自动通信。
DHCP定义了两种交互模式:
一、 终端设备 -DHCP服务器通过两个报文进行交互:
当终端设备无需从 DHCP 服务器上获取 IP 地址时, 终端设备可以发起 Information-Request才艮文直接向 DHCP服务器获取 DNS ( Domain Name System, 域名系统)、 NTP ( Network Time Protocol, 网络时间协议)服务器等信息, 如图 1所示, DHCP服务器通过 DHCP Reply报文将 DNS、 NTP服务器地址等信息发 送给终端设备。
当 DHCP服务器已经将某个 IP和配置信息分配给了终端设备。 则该终端设 备可以通过发送携带 Option 14 ( OPTION RAPID COMMIT ) 的 DHCP Solicit 报文要求 DHCP服务器立即回复, 如图 2所示, DHCP服务器收到该报文后立 即回复包括 IP地址及配置信息的 DHCP Reply报文。
二、 终端设备 -DHCP服务器通过四个报文进行交互:
当终端设备需要获取一个或多个 IP地址时, 终端设备需要先发送 DHCP Solicit报文定位 DHCP服务器的位置,并通过 DHCP Request报文请求 DHCP服 务器为其分配 IP地址和配置信息, 其中 DHCP Solicit报文被发往所有 DHCP服 务器(FF02::1 :2 )。 链路上任意 DHCP服务器收到 DHCP Solicit报文后, 回应 DHCP Advertisement报文。 终端设备可以从回应的 DHCP服务器中选择一个, 向其请求 IP地址和配置信息, 如图 3所示。
然而 DHCP服务器釆用 DHCP的方式给终端设备分配 IPv6地址时,终端设 备之间无法生成所分配地址网段的直连路由, 这样会导致从同一个 DHCP服务 器获取相同前缀 IPv6地址的两台终端设备之间互访时, 只能通过网关设备来转 发报文, 或者需要终端设备都支持重定向时才能在两台终端设备间直接转发报 文。
发明内容
本发明实施例提供一种基于 IPv6的二层互通方法、 装置和系统, 所述提供 的方法、 装置和系统能使得从同一个 DHCP服务器获取相同前缀 IPv6地址的终 端设备之间实现直连路由。
本发明一个实施例提供一种基于 IPv6的二层网络互通方法,所述二层网络包 括网关设备以及连接所述网关设备的第一终端设备和第二终端设备, 所述方法 包括:
接收所述第一终端设备的路由器请求报文;
向所述第一终端设备发送路由器公告报文, 所述路由器公告报文携带管理 标记和前缀选项, 所述前缀选项携带在链路标记, 以使得所述第一终端设备根 据所述在链路标记生成到所述第二终端设备的直连路由;
其中, 所述管理标记用于指示所述第一终端设备釆用动态主机配置协议获 取 IP地址。
本发明一个实施例提供一种基于 IPv6的网关设备,所述网关设备连接第一终 端设备和第二终端设备, 所述网关设备包括:
第一端口, 用于接收所述第一终端设备的路由器请求报文;
第二端口, 用于向所述第一终端设备发送路由器公告报文, 所述路由器公 告报文携带管理标记和前缀选项, 所述前缀选项携带在链路标记, 以使得所述 第一终端设备根据所述在链路标记生成到所述第二终端设备的直连路由, 所述 管理标记用于指示所述第一终端设备釆用动态主机配置协议获取 IP地址。
本发明一个实施例提供一种终端设备, 包括:
第一网络侧端口, 用于向网关设备发送路由器请求报文; 第二网络侧端口, 用于接收所述网关设备的路由器公告报文, 所述路由器 公告报文携带管理标记和前缀选项, 所述前缀选项携带在链路标记, 所述管理 标记用于指示所述终端设备釆用动态主机配置协议获取 IP地址;
处理单元, 用于根据所述在链路标记生成到所述网关设备连接的其他终端 设备的直接路由。
本发明一个实施例提供一种基于 IPv6的二层互通系统,所述系统包括网关设 备、 第一终端设备和第二终端设备,
其中:
所述网关设备, 用于接收所述第一终端设备的路由器请求报文, 向所述第 一终端设备发送路由器公告报文, 所述路由器公告报文携带管理标记和前缀选 项, 所述前缀选项携带在链路标记;
所述第一终端设备, 用于根据所述在链路标记生成到所述第二终端设备的 直连路由, 根据所述管理标记釆用动态主机配置协议获取 IP地址。
本发明实施例提供的方法、 装置和系统, 通过向终端设备发送携带包括在 链路标记和管理标记的前缀选项的路由器公告 ^艮文, 可以使得终端设备釆用 DHCP获取 IP地址, 并根据在链路标记生成直连路由, 从而实现在一个广播域 下, 从同一个 DHCP服务器分配相同前缀 IPv6地址的多个终端设备之间互通。 附图说明
为了更清楚地说明本发明实施例的技术方案, 下面将对实施例或现有技术 描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅 是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动 的前提下, 还可以根据这些附图获得其他的附图。
图 1-3为现有技术中终端设备和 DHCP服务器交互过程的示意图; 图 4为本发明实施例提供的二层网络的架构的示意图;
图 5为本发明实施例提供的二层网络互通方法的交互图;
图 6为本发明实施例提供的路由器请求报文的结构图;
图 7A-7B为本发明实施例提供的路由器公告报文的结构图;
图 8为本发明实施例提供的网关设备的结构示意图;
图 9为本发明实施例提供的终端设备的结构示意图。 具体实施例
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行清 楚、 完整的描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有做出创造 性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。
网关设备下可以连接多个终端设备, 如图 4所示, 网关设备 40下连接终端 设备 42 (第一终端设备 )和终端设备 44 (第二终端设备), 终端设备 42和终端 设备 44可以处于一个广播域中。
图 4中的网关设备可以是 IPv6路由设备,也可以是接入设备或者汇聚设备, 如 DSLAM( Digital Subscriber Line Access Multiplexer, 数字用户线接入复用器)、 OLT ( Optical Line Terminal, 光线路终端)或者 MSAN ( Multi-Service Access Network , 综合业务接入网 ) 等。 终端设备可以是 CPE ( Customer Premise Equipment, 用户驻地设备)、 ONT ( Optical Network Terminal, 光网络终端)或 者用户 PC等, 网关设备和终端设备的具体形态, 本发明实施例不作限定。
当终端设备从 DHCP服务器中获取 IPv6地址时, 由于只分配地址, 没有前 缀长度信息, 终端设备只能生成带默认网关的路由, 无法生成直连网段路由。
鉴于此, 本发明实施例中的提供了一种基于 IPv6的二层网络互通方法, 所 提供的方法包括网关设备在接收到终端设备的路由器请求报文后, 向该终端设 备发送路由器公告报文, 其中, 路由器公告报文携带有包含在链路标记和管理 标记的前缀选项 , 以使得该终端设备根据在链路标记生成到该网关设备连接的 其他终端设备的直连路由, 其中, 管理标记用于指示该终端釆用 DHCP获取 IP 地址。
具体的, 如图 5所示, 包括:
步骤 500 , 终端设备向网关设备发送 Router Solicitation报文。
终端设备 (如终端设备 42 )启动后自动生成链路本地地址( Link-Local ), 根据链路本地路由地址 ( FF02::2 )多播 Router Sohdtation (路由器请求)报文, Router Solicitation才艮文的结构可以如图 6所示。
在本发明实施例中, 网关设备 40会接收到该 Router Solicitation报文。
步骤 501 , 网关设备向终端设备发送 Router Advertisement报文。 网关设备根据配置信息获取终端设备获取 IP地址的方式, 终端设备获取 IP 地址的方式可以包括 DHCP 和无状态地址自动分配 ( Stateless Address Autoconfiguration, SLAAC ) 两种。
本发明实施例中, 终端设备获取 IP地址的方式为 DHCP的方式, 作为较佳 的实施例, 可以是 DHCPv6方式。
网关设备向终端设备单播 Router Advertisement (路由器公告)报文, Router Advertisement报文如图 7 A所示, 携带包含在链路(AdvOnlink, L )标记的前 缀选项 (Options)和管理(Management, M )标记。 前缀选项的格式可以如图 7B 所示。 其中, L标记用于终端设备生成直连路由, M标记用于指示终端设备釆 用的获取 IP地址的方式, 本发明实施例中为釆用 DHCP获取 IP地址。
Router Advertisement 才艮文的前 ¾选项还可以包括 Autonomous 标 己 , Autonomous标记用于终端设备生成地址, 本实施例中应该设置为 0;
Router Advertisement报文中还可以携带 0 ( Other )标记, 用于指示终端设 备获取其他配置信息。
终端设备收到 Router Advertisement报文后, 根据前缀选项中的 L标记生成 到网关设备连接的其他终端设备之间的直连路由。
具体的终端设备收到了 Router Advertisement 4艮文后, 判定 Router Advertisement中携带了包含 L标记的前缀选项后, 会生成目的 IP=前缀、 下一 跳为空的路由。
步骤 502-505 , 终端设备釆用 DHCP从 DHCP服务器获取 IP地址。
终端设备收到 Router Advertisement才艮文后,才艮据 Router Advertisement才艮文 中的 M标记选择相应的方式获取 IP地址, 本实施例中为 DHCP方式, 具体如 何釆用 DHCP方式从 DHCP服务器获取 IP地址,本领域普通技术人员都应知悉, 在此不在阐述。
本实施例提供的方法还可以包括:
步骤 506, 网关设备周期性向连接的终端设备发送 Router Advertisement报 文。
网关设备可以周期性向连接的终端设备广播 Router Advertisement报文, 携 带包括 L标记的前缀选项,以使得所连接的终端设备根据 L标记生成直连路由。
本发明实施例提供的方法, 通过给终端设备发送携带包括 L标记的前缀选 项和 M标记的路由器公告报文, 可以使得终端设备釆用 DHCP获取 IP地址, 并根据 L标记生成直连路由, 从而实现在一个广播域下, 从同一个 DHCP服务 器分配相同前缀 IPv6地址的多个终端设备之间二层互通。
本发明一个实施例提供一种网关设备, 所提供的网关设备连接第一终端设 备和第二终端设备, 其中第一、 二终端设备可以是一到多个终端设备, 如图 8 所示, 包括:
第一端口 80 , 用于接收第一终端设备的 Router Solicitation报文;
第二端口 82 , 用于向所述第一终端设备发送 Router Advertisement报文, 所 述 Router Advertisement报文携带包含在链路标记的前缀选项和管理标记, 以使 得所述第一终端设备根据所述在链路标记生成到所述第二终端设备的直连路 由, 所述管理标记用于指示所述第一终端设备釆用 DHCP获取 IP地址。
所述网关设备还包括处理单元 84, 用于从配置信息中获取终端设备获取 IP 地址的方式, 生成对应的管理标记携带在 Router Advertisement报文中。
其中处理单元 84可以是 CPU ( Central Processing Unit, 中央处理器 )或者 DSP ( Digital Signal Processing, 数字信号处理器)等。
第二端口 82还用于周期性向连接的终端设备广播 Router Advertisement报 文, 以使得所述网关设备下连接的终端设备根据所述 Router Advertisement报文 中的在链路标记生成直连路由。
本实施例提供的网关设备可以是 IPv6路由器、 接入设备或者汇聚设备等。 本实施例中提供的第一端口 80和第二端口 82在实际设备上可能是一个物 理端口, 也可能是两个独立的物理端口, 具体形态, 本发明实施例不作限定。
本实施例提供的网关设备, 通过给终端设备发送携带包括在链路标记的前 缀选项和管理标记的 Router Advertisement报文, 可以使得终端设备釆用 DHCP 获取 IP地址, 并根据在链路标记生成直连路由, 从而实现在一个广播域下, 从 同一个 DHCP服务器分配相同前缀 IPv6地址的多个终端设备之间互通。
本发明一个实施例提供一种终端设备, 如图 9 所示, 包括第一网络侧端口 90、 第二网络侧端口 92和处理单元 94 , 第一网络侧端口 90和第二网络侧端口 92连接网关设备, 其中,
第一网络侧端口 90, 用于向网关设备发送 Router Solicitation报文;
第二网络侧端口 92 , 用于接收所述网关设备的 Router Advertisement报文, 所述 Router Advertisement报文携带包含在链路标记的前缀选项和管理标记, 所 述管理标记用于指示所述终端设备釆用 DHCP获取 IP地址;
处理单元 94 , 用于根据所述在链路标记生成到所述网关设备连接的其他终 端设备的直接路由。
处理单元 94还用于通过所述第一网络侧端口 90向 DHCP服务器发送 DHCP请 求消息;
则第二网络侧端口 92还用于接收所述 DHCP服务器的 DHCP响应消息,所 述 DHCP响应消息携带有给所述终端设备分配的 IP地址。
本发明另一个实施例中, 第二网络侧端口 92还用于接收网关设备周期性发 送的 Router Advertisement才艮文 ,根据 Router Advertisement才艮文中携带的在链路 标记生成到所述网关设备连接的其他终端设备的直接路由。
其中, 处理单元 94可以是 CPU ( Central Processing Unit, 中央处理器 )或 者 DSP ( Digital Signal Processing, 数字信号处理器)等。
本实施例中的终端设备可以是 CPE、 或者 ONT等终端设备。
本实施例中提供的第一网络侧端口 90和第二网络侧端口 92在实际设备上 可能是一个物理端口, 也可能是两个独立的物理端口, 具体形态, 本发明实施 例不作限定。
本实施例提供的终端设备, 通过从 Router Advertisement报文中获取在链路 标记和管理标记, 可以根据在链路标记生成直连路由, 从而实现在一个广播域 下, 从同一个 DHCP服务器分配相同前缀 IPv6地址的多个终端设备之间互通。
对于装置实施例而言, 由于其基本相应于方法实施例, 所以描述得比较简 单, 相关之处参见方法实施例的部分说明即可。 以上所描述的装置实施例仅仅 是示意性的, 其中所述作为分离部件说明的模块可以是或者也可以不是物理上 分开的, 作为模块显示的部件可以是或者也可以不是物理模块, 即可以位于一 个地方, 或者也可以分布到多个网络模块上。 可以根据实际的需要选择其中的 部分或者全部模块来实现本实施例方案的目的。 本领域普通技术人员在不付出 创造性劳动的情况下, 即可以理解并实施。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤是 可以通过程序来指令相关的硬件完成, 所述的程序可以存储于一计算机可读存 储介质中, 如 ROM/RAM、 磁碟或光盘等。 对所公开的实施例的上述说明, 使本领域专业技术人员能够实现或使用本 发明。 对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的, 本文中所定义的一般原理可以在不脱离本发明实施例的精神或范围的情况下, 在其它实施例中实现。 因此, 本发明实施例将不会被限制于本文所示的这些实 施例, 而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。

Claims

权利要求书
1、 一种基于 IPv6的二层网络互通方法, 其特征在于, 所述二层网络包括网 关设备以及连接所述网关设备的第一终端设备和第二终端设备, 所述方法包括: 接收所述第一终端设备的路由器请求报文;
向所述第一终端设备发送路由器公告报文, 所述路由器公告报文携带管理 标记和前缀选项, 所述前缀选项携带在链路标记, 以使得所述第一终端设备根 据所述在链路标记生成到所述第二终端设备的直连路由;
其中, 所述管理标记用于指示所述第一终端设备釆用动态主机配置协议获 取 IP地址。
2、 根据权利要求 1所述的方法, 其特征在于, 所述接收第一终端设备的路 由器公告报文之前还包括:
从配置信息中获取所述第一终端设备获取 IP地址的方式,所述方式包括动态 主机配置协议和无状态地址自动分配。
3、 根据权利 1所述的方法, 其特征在于, 所述方法还包括:
周期性向所述网关设备下连接的终端设备广播所述路由器公告报文, 以使 得所述网关设备下连接的终端设备根据所述路由器公告报文中的在链路标记生 成直连路由。
4、 一种基于 IPv6的网关设备, 所述网关设备连接第一终端设备和第二终端 设备, 其特征在于, 所述网关设备包括:
第一端口, 用于接收所述第一终端设备的路由器请求报文;
第二端口, 用于向所述第一终端设备发送路由器公告报文, 所述路由器公 告报文携带管理标记和前缀选项, 所述前缀选项携带在链路标记, 以使得所述 第一终端设备根据所述在链路标记生成到所述第二终端设备的直连路由, 所述 管理标记用于指示所述第一终端设备釆用动态主机配置协议获取 IP地址。
5、 根据权利要求 4所述的网关设备, 其特征在于, 所述第二端口还用于周 期性向所述网关设备下连接的终端设备广播所述路由器公告报文, 以使得所述 网关设备下连接的终端设备根据所述路由器公告报文中的在链路标记生成直连 路由。
6、 一种终端设备, 其特征在于, 包括: 第一网络侧端口, 用于向网关设备发送路由器请求报文;
第二网络侧端口, 用于接收所述网关设备的路由器公告报文, 所述路由器 公告报文携带管理标记和前缀选项, 所述前缀选项携带在链路标记, 所述管理 标记用于指示所述终端设备釆用动态主机配置协议 DHCP获取 IP地址;
处理单元, 用于根据所述在链路标记生成到所述网关设备连接的其他终端 设备的直接路由。
7、 根据权利要求 6所述的终端设备, 其特征在于,
所述处理单元还用于通过所述第一网络侧端口向动态主机配置协议 DHCP 服务器发送 DHCP请求消息;
所述第二网络侧端口还用于接收所述 DHCP服务器的 DHCP响应消息, 所述 DHCP响应消息携带有给所述终端设备分配的 IP地址。
8、 根据权利要求 6所述的网关设备, 其特征在于,
所述第二网络侧端口还用于接收所述网关设备周期性发送的路由器公告报 文。
9、 一种基于 IPv6的二层互通系统, 所述系统包括网关设备、 第一终端设备 和第二终端设备, 其特征在于,
所述网关设备, 用于接收所述第一终端设备的路由器请求报文, 向所述第 一终端设备发送路由器公告报文, 所述路由器公告报文携带管理标记和前缀选 项, 所述前缀选项携带在链路标记;
所述第一终端设备, 用于根据所述在链路标记生成到所述第二终端设备的 直连路由, 根据所述管理标记釆用动态主机配置协议获取 IP地址。
10、 根据权利要求 9 所述的系统, 其特征在于, 所述网关设备还用于周期 性向连接的终端设备广播路由器公告报文, 以使得连接的终端设备之间生成直 连路由。
PCT/CN2012/086361 2011-12-12 2012-12-11 基于IPv6的二层互通的方法、装置和系统 WO2013086966A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP12857261.7A EP2765743A4 (en) 2011-12-12 2012-12-11 LAYER 2 NETWORKING PROCESS, DEVICE AND SYSTEM ON IPV6 BASE
US14/301,851 US20140313933A1 (en) 2011-12-12 2014-06-11 Method, apparatus, and system for layer 2 interworking based on ipv6

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2011104121675A CN103167048A (zh) 2011-12-12 2011-12-12 基于IPv6的二层互通的方法、装置和系统
CN201110412167.5 2011-12-12

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/301,851 Continuation US20140313933A1 (en) 2011-12-12 2014-06-11 Method, apparatus, and system for layer 2 interworking based on ipv6

Publications (1)

Publication Number Publication Date
WO2013086966A1 true WO2013086966A1 (zh) 2013-06-20

Family

ID=48589783

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/086361 WO2013086966A1 (zh) 2011-12-12 2012-12-11 基于IPv6的二层互通的方法、装置和系统

Country Status (4)

Country Link
US (1) US20140313933A1 (zh)
EP (1) EP2765743A4 (zh)
CN (1) CN103167048A (zh)
WO (1) WO2013086966A1 (zh)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101466729B1 (ko) * 2013-05-28 2014-12-01 삼성에스디에스 주식회사 IPv6 환경에서의 단말 정보 통합 관리 장치 및 방법
US9887960B2 (en) 2013-08-14 2018-02-06 Nicira, Inc. Providing services for logical networks
CN105472050A (zh) * 2014-08-20 2016-04-06 深圳市中兴微电子技术有限公司 一种网络接入方法及装置
CN105162638B (zh) * 2015-09-30 2018-09-21 北京华为数字技术有限公司 终端设备接入网络的方法和装置
US10841273B2 (en) * 2016-04-29 2020-11-17 Nicira, Inc. Implementing logical DHCP servers in logical networks
US10348566B2 (en) * 2016-12-20 2019-07-09 Nokia Of America Corporation Automated service delivery based on automated identifier discovery
CN112449752A (zh) * 2018-12-26 2021-03-05 华为技术有限公司 一种IPv6地址的配置方法及路由设备
US11159480B2 (en) * 2019-03-26 2021-10-26 Cisco Technology, Inc. Identifier locator addressing for IPv6-based software defined fabric

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1744596A (zh) * 2004-09-01 2006-03-08 华为技术有限公司 IPv6网络中主机获取网络配置参数的方法
CN1897589A (zh) * 2005-07-13 2007-01-17 上海贝尔阿尔卡特股份有限公司 在通信网络中支持IPv6无状态地址配置的接入装置、路由设备及其方法
CN1972317A (zh) * 2005-11-24 2007-05-30 华为技术有限公司 转交地址及其转交地址配置信息的获取方法及系统

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090096121A (ko) * 2008-03-07 2009-09-10 삼성전자주식회사 IPv6 네트워크의 상태 보존형 주소 설정 프로토콜 처리방법 및 그 장치
CN101547223B (zh) * 2008-03-26 2012-11-21 华为技术有限公司 地址配置方法、装置和系统

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1744596A (zh) * 2004-09-01 2006-03-08 华为技术有限公司 IPv6网络中主机获取网络配置参数的方法
CN1897589A (zh) * 2005-07-13 2007-01-17 上海贝尔阿尔卡特股份有限公司 在通信网络中支持IPv6无状态地址配置的接入装置、路由设备及其方法
CN1972317A (zh) * 2005-11-24 2007-05-30 华为技术有限公司 转交地址及其转交地址配置信息的获取方法及系统

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
See also references of EP2765743A4 *
T.NARTEN ET AL.: "Neighbor Discovery for IP version 6 (IPv6)", RFC4861, September 2007 (2007-09-01), XP055128736 *

Also Published As

Publication number Publication date
CN103167048A (zh) 2013-06-19
US20140313933A1 (en) 2014-10-23
EP2765743A1 (en) 2014-08-13
EP2765743A4 (en) 2014-08-27

Similar Documents

Publication Publication Date Title
WO2013086966A1 (zh) 基于IPv6的二层互通的方法、装置和系统
US8953601B2 (en) Internet protocol version six (IPv6) addressing and packet filtering in broadband networks
EP2154821B1 (en) Method and apparatus for sending and receiving multicast packets
US9705706B2 (en) Multiple prefix connections with translated virtual local area network
WO2018214809A1 (zh) 消息发送方法及装置、存储介质
CN101741702B (zh) 实现arp请求广播限制的方法和装置
WO2007009367A1 (fr) Méthode de détection de doublons d’adresse dans un réseau d’accès deux couches ipv6 et système pour celle-ci
WO2010069181A1 (zh) Ipv6地址配置方法和系统
WO2011150720A1 (zh) 一种IPv6网络中网络设备自动配置的方法、网络设备和系统
WO2013071765A1 (zh) 为用户终端分配ip地址的方法、装置和系统
WO2008031319A1 (en) The method and device for managing route information and retransmitting data in accessing device
WO2009098530A1 (en) Combining locally addressed devices and wide area network (wan) addressed devices on a single network
WO2009117963A1 (zh) 地址配置方法、装置和系统
WO2011098039A1 (zh) Ipv6过渡网络中获取ipv6配置信息的方法、系统以及装置
WO2011113393A2 (zh) 一种实现虚拟局域网标识转换的方法及装置
WO2014056412A1 (zh) 一种报文发送的方法、路由器桥及系统
WO2012109849A1 (zh) Mac地址分配方法和设备
WO2017147027A1 (en) Addressing for customer premises lan expansion
WO2012136006A1 (zh) 多归属站点内主机的路由选择方法和装置
JP5241957B2 (ja) 加入者装置をIPv6対応のアグリゲーションネットワークに接続するための方法および装置
CN102413033A (zh) 实现路由聚合的方法、装置和系统
US9503418B2 (en) Method and apparatus for obtaining remote IP address
CA2974353A1 (en) System and method for identifying a communication for routing purposes using internet protocol addresses that are allocated by and shared amongst internet service provider networks
US20080049765A1 (en) Method and system for inter working a point-to-point link and a LAN service
US20130086259A1 (en) Method for acquiring an ip address and network access device

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

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2012857261

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE