WO2014089746A1 - 报文转发方法及装置 - Google Patents

报文转发方法及装置 Download PDF

Info

Publication number
WO2014089746A1
WO2014089746A1 PCT/CN2012/086304 CN2012086304W WO2014089746A1 WO 2014089746 A1 WO2014089746 A1 WO 2014089746A1 CN 2012086304 W CN2012086304 W CN 2012086304W WO 2014089746 A1 WO2014089746 A1 WO 2014089746A1
Authority
WO
WIPO (PCT)
Prior art keywords
destination
packet
mac address
ipv6
message
Prior art date
Application number
PCT/CN2012/086304
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 CN201280002282.8A priority Critical patent/CN104040986B/zh
Priority to PCT/CN2012/086304 priority patent/WO2014089746A1/zh
Publication of WO2014089746A1 publication Critical patent/WO2014089746A1/zh

Links

Classifications

    • 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/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]

Definitions

  • the present invention relates to the field of the Internet, and in particular, to a packet forwarding method and apparatus. Background technique
  • IP Internet Protocol
  • IPv4 Internet Protocol version 4
  • IPv6 Internet Protocol version 6
  • Edge devices of the user network are often required, such as the Residential Gateway (RG). While supporting IPv6 routing and forwarding functions, it also needs to support the network-based IPv6-based dynamic host configuration protocol on the network side.
  • DHCPv6-PD Dynamic Host Configuration Protocol for IPv6 Prefix Delegation, DHCPv6-PD
  • SLAAC stateless address auto-configuration
  • DHCPv6-based dynamic host configuration DHCPv6
  • an Access Node (AN) device such as a Digital Subscriber Line Access Multiplexer (DSLAM), an Optical Line Terminal (OLT), or a multi-user residence in an access network.
  • DSLAM Digital Subscriber Line Access Multiplexer
  • OLT Optical Line Terminal
  • a virtual residential gateway (VRG) is implemented on a device such as a multiple Dwelling Unit (MDU). This allows the user network to obtain routing support while avoiding the replacement of user network edge devices (such as bridged RG). Therefore, the dual stack upgrade of the access network can be centralized in the network device.
  • MDU multiple Dwelling Unit
  • the present invention provides a new IPv6 packet forwarding method for an AN device that supports VRG.
  • the AN device does not need to establish a routing table required for traditional IPv6 packet forwarding and a user side neighbor cache table, thereby saving corresponding design on the AN device. Resource overhead.
  • the embodiment of the present invention provides a packet forwarding method, which implements IPv6 packet forwarding by using a static mapping rule.
  • an embodiment of the present invention provides a packet forwarding method, where the method includes:
  • the first packet is an IPv6 packet of the Internet Protocol version 6, and the first packet includes a destination C-IPv6 address identifying the user host and identifying the subscriber line Purpose of the V-MAC address;
  • Determining, according to the destination C-IPv6 address in the first packet, the destination C-MAC address of the user host required for the MAC encapsulation of the downlink subscriber line, where the destination C-MAC address is in accordance with the first packet The static mapping rule between the C-IPv6 address and the destination C-MAC address identifying the user host is determined;
  • a packet forwarding apparatus configured to receive a first packet message from the network side, where the first packet message is an IPv6 packet message of the Internet Protocol version 6, and the first packet message includes a destination C-IPv6 that identifies the user host. Address and destination V-MAC address identifying the subscriber line;
  • a first determining unit configured to determine, according to the destination C-IPv6 address in the first packet, the destination C-MAC address of the user host required for the MAC encapsulation of the downlink subscriber line, the destination C-MAC address Determining according to a static mapping rule between the C-IPv6 address in the first packet and the destination C-MAC address identifying the user host;
  • a processing unit configured to replace the destination V-MAC address in the first packet with the destination C-MAC address of the user host, and encapsulate the packet into a second packet packet;
  • a second determining unit configured to determine, according to the destination V-MAC address in the first packet, a downlink subscriber line port of the second packet, and a downlink subscriber line port of the second packet Determining a static mapping rule between the destination V-MAC address and the subscriber line port in the first packet message;
  • a further aspect of the embodiments of the present invention provides a packet forwarding device, where the device includes: a network interface;
  • An application physically stored in the memory including instructions operable to cause the processor and the system to perform the following process:
  • the network interface Receiving, by the network interface, a first packet from the network side, where the first packet is an IPv6 packet of the Internet Protocol version 6, and the first packet includes a destination C-IPv6 address that identifies the user host and Identify the destination V-MAC address of the subscriber line;
  • the access node device can determine the report by using a static mapping rule between the destination MAC address and the user line in the packet.
  • the downlink user line port of the text can determine the final destination MAC address by using the destination IPv6 address.
  • the IPv6 packet packet can forward the packet packet without the traditional routing table and the user side neighbor cache table. Thereby reducing the resource consumption of the access node device.
  • FIG. 1 is a network application architecture diagram of a downlink packet forwarding device according to an embodiment of the present invention
  • FIG. 2 is a flowchart of an embodiment of a packet forwarding method according to an embodiment of the present invention
  • FIG. 4 is a structural diagram of an embodiment of a packet forwarding apparatus according to an embodiment of the present invention
  • FIG. 5 is a structural diagram of another embodiment of a packet forwarding apparatus according to an embodiment of the present invention.
  • the network side of the AN device includes an Ethernet Aggregation Node ( ⁇ ) device and a Broadband Network Gateway (BNG) device, on the user side of the AN device.
  • Ethernet Aggregation Node
  • BNG Broadband Network Gateway
  • the access node AN associates the network side with the user side, and is responsible for forwarding the text from the network side and from the user side.
  • the function which has the function of a router in the control plane, supports the DHCPv6-PD protocol as a DHCPv6 client on the network side, and obtains the PD-IPv6 prefix assigned by the operator to the user network;
  • V-MAC Virtual Media Access Control Address
  • IPv6 generated based on the V-MAC address
  • LMA Link-Local Address
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • the VRG corresponding to the subscriber line functions as a DHCPv6 server, and assigns an IPv6 address to the user host through the DHCPv6 protocol.
  • the 128-bit IPv6 address used by the user host that is, the C-IPv6 address can be composed of three parts: PD-IPv6 prefix + Subnet ID + Interface Identifier (IDD); where PD-IPv6 prefix is operated by The quotient is assigned by the DHCPv6-PD protocol, and the subnet ID can be determined by the VRG.
  • the VRG on the AN device may not need to allocate a subnet ID.
  • VRG obtains the MAC address of the user host, that is, the C-MAC address through the DHCPv6 protocol. Since the C-IPv6 address allocated by the user side to the user host through the DHCPv6 protocol can be determined and allocated by the VRG on the AN device, the last 64 bits of the 128-bit IPv6 address of the C-IPv6 address, that is, the IID part can be mapped by the convention. The rules are generated by the C-MAC address - correspondingly.
  • the C-MAC address obtained by VRG through the DHCPv6 protocol is 0x00-AA-00-3F-2A-lC.
  • the IID part of the C-IPv6 address can be generated according to the mapping rules as follows: Fixed in the middle of the C-MAC. After inserting 2 bytes of OxFF-FE, it generates 0x00-AA-00-FF-FE-3F-2A-lC, and then the 7th bit of the 1st byte is "No", and C is generated. - The IID of the IPv6 address is 0x02-AA-00-FF-FE-3F-2A-lC.
  • the VRG obtains the PD-IPv6 prefix of the user host from the network side DHCPv6-PD protocol to 2001: db8:1234:5600:/56, VRG allocates the Subnet ID to the user host as 0x03, and the VRG is based on the C-MAC address of the user host 0x00- AA-00-3F-2A-lC generates an IID of 2AA:FF:FE3F:2A1, which constitutes the C-IPv6 address that the VRG allocates to the user host through the DHCPv6 protocol: 2001:db8:1234:5603:2AA:FF:FE3F: 2AlC /128.
  • the static mapping rule between the C-IPv6 address of the user host and the C-MAC of the user host can be agreed in advance and stored in the AN.
  • the specific static mapping rules also depend on the implementation of the AN device, and may not be limited to the mapping rules specified in the above examples.
  • the static mapping between C-IPv6 and C-MAC is only required.
  • the VRG corresponding to the subscriber line allocates an IPv6 prefix to the user host through a Neighbor Discovery (ND) protocol.
  • ND Neighbor Discovery
  • the above IPv6 prefix is generally a 64-bit IPv6 prefix
  • the IPv6 The prefix can be composed of two parts: PD-IPv6 prefix + Subnet ID;
  • the PD-IPv6 prefix is assigned by the operator through the DHCPv6-PD protocol, and the subnet ID can be determined by the VRG. If the operator's PD-IPv6 prefix assigned to the user host is 64 bits, the VRG on the AN device may not need to allocate a subnet ID.
  • the last 64 bits of the C-IPv6 of the user host, that is, the IID part, are usually generated by the C-MAC according to the algorithm provided by IETF RFC 4291, thereby establishing a static-correspondence between the I-ID of the C-IPv6 and the C-MAC. Mapping rules.
  • VRG obtains the PD-IPv6 prefix of the user host from the network side DHCPv6-PD protocol as 2001:db8: 1234:5600:/56
  • VRG allocates the Subnet ID to 0x01 for the user host.
  • the IPv6 prefix assigned by VRG to the user host through the ND protocol is 2001:db8:1234:5601:/64.
  • the IEEE EUI-64 address generated after statically inserting 2 bytes of OxFF-FE in the middle is 0x00-AA-00- FF-FE-3F-2 A-3C
  • the IID of the C-IPv6 address is generated as 0x02-AA-00-FF-FE- 3F-2A-3C.
  • the C- of the user host can be generated.
  • the IPv6 address is 2001:db8: 1234:5601:2AA:FF:FE3F:2A3C /128.
  • the static mapping rule between the C-MAC and the C-IPv6 saved in the access device which is implemented in the foregoing embodiment, on the forwarding plane, after the downlink packet received by the AN device, directly according to the user host
  • a static mapping rule between the IID of the C-IPv6 address and the C-MAC of the user host, and the destination MAC address is determined by the destination IPv6 address, thereby encapsulating the downlink packet;
  • the destination IPv6 address is the C of the user host.
  • - IPv6 address, the destination MAC address is the C-MAC address of the user host.
  • FIG. 2 is a flowchart of a downlink packet forwarding method according to an embodiment of the present invention.
  • An AN device supporting VRG such as a digital subscriber line access multiplexer DSLAM in an access network; an optical line terminal OLT, a multi-user unit MDU or an Ethernet switch.
  • the method includes:
  • the 201 Receive a first packet message from the network side, where the first packet message is an IPv6 packet message of the Internet Protocol version 6, and the first packet message includes a destination C-IPv6 address and identifier that identifies the user host.
  • the first packet packet may be a packet that is forwarded by the BNG to the AN device.
  • the source IP address of the uplink IPv6 packet of the user host is the C-IPv6 address generated according to the static mapping rule in the foregoing embodiment, and the network side carries the downlink IPv6 packet returned after responding to the uplink packet.
  • the destination IP address is the C-IPv6 of the user host.
  • the source MAC address (that is, the C-MAC address) is replaced with the V-MAC address of the VRG and then forwarded to the BNG device; and the downlink IPv6 packet returned from the BNG device,
  • the destination MAC address carried by it is the V-MAC corresponding to the VRG.
  • the AN device configures the corresponding V-MAC address for each subscriber line port where the VRG is located.
  • the V-MAC address corresponds to the line port on the AN device.
  • the first packet message further includes an active MAC address, that is, a MAC address of a downlink interface corresponding to the AN device on the BNG.
  • the static mapping rule between the destination C-IPv6 address and the C-MAC address can be configured on the AN device. Therefore, after receiving the destination C-IPv6 address in the first packet, the AN device can determine the destination MAC address of the first packet, that is, the destination C-MAC address.
  • step 202 may further include the following steps: 2021. Obtain an interface identifier IID of the last 64 bits in the destination C-IPv6 address.
  • the IID of the next 64 bits can be determined to be 2AA: FF:FE3F:2AlCo is described using the foregoing embodiment.
  • the static mapping rule between the C-IPv6 IID and the C-MAC, through the reverse operation, can further determine that the C-MAC address is 0x00-AA-00-3F-2A-lC.
  • the VRG uses the ND protocol to allocate an IPv6 prefix to the user host
  • the IID of the next 64 bits can be determined to be 2AA: FF:FE3F:2A3Co is described using the foregoing embodiment.
  • the static mapping rule between the C-IPv6 IID and the C-MAC, through the reverse operation, can further determine that the C-MAC address is 0x00-AA-00-3F-2A-3C.
  • the AN device when forwarding the first packet message to the user host, the AN device needs to be re-encapsulated, and the source destination MAC address in the first packet may be the V-MAC of the VRG corresponding to the user line on the AN device.
  • the address is replaced with the destination MAC address of the next link determined in step 202, ie, the C-MAC address of the user host.
  • the source MAC address in the first packet may be replaced by the V-MAC address of the VRG corresponding to the subscriber line on the AN device.
  • the V-MAC address of the VRG corresponding to the subscriber line on the AN device.
  • the destination V-MAC address is also a V-MAC address.
  • the user can configure the corresponding static mapping rule between the V-MAC address and the line port on the AN device, for example, the number of the AN device, the frame number, slot number and port number of the AN device related to the subscriber line.
  • the available address space of the V-MAC address is uniformly programmed. Therefore, after receiving the downlink packet, the AN device can determine the downlink subscriber line port of the downlink packet.
  • the specific embodiment of the static mapping rule between the V-MAC address and the line port can be found in the implementation of the equipment of the manufacturer, and will not be repeated.
  • the static mapping rule between the V-MAC address and the line port requires only one correspondence.
  • the AN device forwards the second packet formed by the MAC encapsulation in step 203 to a downlink subscriber line port on the AN device. Since the destination MAC address of the second packet message is a C-MAC address, the packet message identifies the user host that uses the C-MAC address.
  • the AN device forwards the second packet packet formed by the MAC encapsulation in step 203 to the downlink subscriber line port. Since the destination MAC address of the second packet message is a C-MAC address, the packet message identifies the user host that uses the C-MAC address.
  • the access node AN device can obtain the corresponding static mapping rule between the destination V-MAC address and the subscriber line port in the packet after receiving the packet from the network side. Determining the downlink subscriber line port of the packet; determining the final destination C-MAC address of the downlink packet by using the destination C-IPv6 address.
  • the AN device can The forwarding of the IPv6 packet is implemented in the case that the routing table and the user-side neighbor cache table are not required, so that the resource consumption of the access node AN device can be reduced.
  • an embodiment of the present invention provides a packet forwarding device, where the device may be the access node AN or an Ethernet switch as shown in FIG.
  • the device includes:
  • the receiving unit 401 is configured to receive a first packet from the network side, where the first packet is an IPv6 packet of the Internet Protocol version 6, and the first packet includes a destination C- An IPv6 address and a destination V-MAC address identifying the subscriber line;
  • the first determining unit 402 is configured to determine, according to the destination C-IPv6 address in the first packet, the destination C-MAC address of the user host required for the MAC encapsulation of the downlink subscriber line, and the processing unit 403, configured to: And replacing the destination V-MAC address in the first packet with the destination C-MAC address of the user host, and encapsulating the packet into a second packet packet;
  • the second determining unit 404 is configured to determine, according to the destination V-MAC address in the first packet, the downlink subscriber line port of the second packet, and the downlink subscriber line port of the second packet according to the Determining a static mapping rule between the destination V-MAC address and the subscriber line port in the first packet message;
  • the sending unit 405 is configured to forward the second packet to the downlink subscriber line port. More specifically, in the device, a static mapping rule of the destination V-MAC address and the subscriber line port, a static mapping rule of the destination V-MAC address and the subscriber line port, and the determining unit 402 is also specifically used to:
  • the second determining unit 404 determines the downlink subscriber line port of the second packet message according to the static mapping rule corresponding to the destination V-MAC address and the subscriber line port.
  • the sending unit 405 is specifically configured to: send the second packet message to the downlink subscriber line
  • the port is forwarded to the user host corresponding to the C-MAC address of the user host.
  • the first determining unit 402 acquires an interface identifier IID of the last 64 bits in the destination C-IPv6 address, and determines the destination C-MAC address required by the processing unit 404 according to the IID.
  • the processing unit 403 encapsulates the first packet packet into a second packet after replacing the destination V-MAC address in the first packet with the destination C-MAC address of the user host.
  • the message is further used to: replace the source MAC address with the destination V-MAC address of the identified subscriber line.
  • the C-IPv6 of the user host and the C used by the user host in the downlink packet are used.
  • -MAC exists -
  • the AN device does not even need to retain the routing table required by the traditional routing RG to support packet forwarding and the user-side neighbor cache table required to support the ND protocol.
  • the above message forwarding device is for implementing the method described in FIG. 2, and the specific expression may be set according to a specific application.
  • FIG. 5 is a schematic diagram of another downlink packet forwarding device according to an embodiment of the present invention.
  • the device may be the access node AN or the Ethernet switch in FIG.
  • the apparatus includes a network interface 51, a processor 52, and a memory 53.
  • the system bus 54 is used to connect the network interface 51, the processor 52, and the memory 53.
  • the network interface 51 is used to communicate with a broadband network gateway (BNG) and a user host.
  • BNG broadband network gateway
  • the memory 53 can be a persistent storage such as a hard disk drive and a flash memory having a software module and a device driver.
  • the software modules are capable of executing the various functional modules of the above described method of the present invention; the device drivers can be network and interface drivers.
  • the network interface Receiving, by the network interface, a first packet from the network side, where the first packet is mutual The IPv6 packet message of the networking protocol version 6, the first packet message includes a destination C-IPv6 address identifying the user host and a destination V-MAC address identifying the subscriber line;
  • Determining, according to the destination C-IPv6 address in the first packet, the destination C-MAC address of the user host required for the MAC encapsulation of the downlink subscriber line, where the destination C-MAC address is in accordance with the first packet The static mapping rule between the C-IPv6 address and the destination C-MAC address identifying the user host is determined;
  • the above message forwarding device is for implementing the method described in FIG. 2, and the specific expression may be set according to a specific application.
  • the steps of a method or algorithm described in connection with the embodiments disclosed herein may be implemented in a hardware, a software module executed by a processor, or a combination of both.
  • the software module can be placed in memory, random access memory (RAM), read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or technical field. Any other form of storage medium known.

Landscapes

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

Abstract

提供了一种报文转发方法,所述方法包括:接收来自网络侧的第一分组报文(201),所述第一分组报文为互联网协议版本6的IPv6分组报文,所述第一分组报文包括表示用户主机的目的C-IPv6地址和标识用户线路的目的V-MAC地址;根据所述第一分组报文中的目的C-IPv6地址,确定下行用户线路的MAC封装所需的标识用户主机的目的C-MAC地址(202);将所述第一分组报文中的目的V-MAC地址替换为所述标识用户主机的目的C-MAC地址后,封装为第二分组报文(203);根据所述第一分组报文中的目的V-MAC地址,确定所述第二分组报文的下行用户线路接口(204);向所述下行用户线路接口转发所述第二分组报文(205)。通过上述技术方案提供的报文转发方法,可以通过静态映射规则来实现IPv6报文的转发。

Description

报文转发方法及装置 技术领域
本发明涉及互联网领域, 具体涉及一种报文转发方法及装置。 背景技术
在网际协议 ( Internet Protocol, IP )从网际协议版本 4 ( Internet Protocol version 4, IPv4 ) 向网际十办议版本 6 ( Internet Protocol version 6, IPv6 )过渡 的过程中, 为了获得对 IPv6协议栈的支持, 往往需要用户网络的边缘设备, 例如用户网关( Residential Gateway, RG ) , 在支持 IPv6路由和转发功能的 同时,还需要其在网络侧支持面向网络的基于 IPv6的动态主机配置协议的前 缓委派 ( Dynamic Host Configuration Protocol for IPv6 Prefix Delegation , DHCPv6-PD ) , 以及在用户侧支持面向用户主机的无状态地址的自动配置 ( Stateless Address Auto-Configuration, SLAAC )或基于 IPv6的动态主机配 置( DHCPv6 )等基本协议和功能, 这使得用户网络往往需要更换其边缘路由 设备。
在接入节点 (Access Node, AN )设备, 例如接入网中的数字用户线路 接入复用器( Digital Subscriber Line Access Multiplexer, DSLAM ) 、 光线路 终端( Optical Line Terminal, OLT )或多用户居住单元( Multiple Dwelling Unit, MDU )等设备上实现虚拟用户网关(Virtual Residential Gateway, VRG ) , 可以使用户网络在获得路由支持的同时, 避免了对用户网络边缘设备(如桥 接型 RG ) 的更换, 从而使接入网的双栈升级能够集中在网络设备中解决。
若 AN设备上支持 IPv6路由及转发功能的 VRG采用传统的报文转发机 制, 其路由匹配计算以及相应的路由表 ( Routing Table ) 和邻居緩存表 ( Neighbor Cache )对 AN设备的资源能力要求仍会较高。本发明为支持 VRG 的 AN设备提供了新的 IPv6报文的转发方法, AN设备上无需建立传统 IPv6 报文转发所需的路由表以及用户侧邻居緩存表, 从而在 AN设备的设计上节 省相应的资源开销。
发明内容
本发明实施例提供了一种报文转发方法, 它主要通过静态的映射规则来 实现 IPv6报文的转发。
为实现上述目的, 本发明实施例一方面提供了一种报文转发方法, 所述 方法包括:
接收来自网络侧的第一分组 4艮文,所述第一分组 文为互联网协议版本 6 的 IPv6分组报文, 所述第一分组报文包括标识用户主机的目的 C-IPv6地址 和标识用户线路的目的 V-MAC地址;
根据所述第一分组报文中的目的 C-IPv6地址,确定下行用户线路的 MAC 封装所需的标识用户主机的目的 C-MAC地址,所述目的 C-MAC地址依据第 一分组 4艮文中的 C-IPv6地址与标识用户主机的目的 C-MAC地址之间的静 态映射规则确定;
将所述第一分组 文中的目的 V-MAC地址替换为所述标识用户主机的 目的 C-MAC地址, 封装为第二分组报文;
根据所述第一分组报文中的目的 V-MAC地址, 确定所述第二分组报 文的下行用户线路端口, 所述第二分组 文的下行用户线路端口依据所述 第一分组报文中的目的 V-MAC地址与用户线路端口之间的静态映射规则 确定;
向所述下行用户线路端口转发所述第二分组 文。
本发明实施例另一方面提供了一种报文转发装置, 所述装置包括: 接收单元, 用于接收来自网络侧的第一分组报文, 所述第一分组报文为 互联网协议版本 6的 IPv6分组报文, 所述第一分组报文包括标识用户主机的 目的 C-IPv6地址和标识用户线路的目的 V-MAC地址;
第一确定单元, 用以根据所述第一分组 "¾文中的目的 C-IPv6地址, 确定 下行用户线路的 MAC封装所需的标识用户主机的目的 C-MAC地址,所述目 的 C-MAC地址依据第一分组报文中的 C-IPv6地址与标识用户主机的目的 C-MAC地址之间的静态映射规则确定;
处理单元, 用以将所述第一分组 文中的目的 V-MAC地址替换为所述 标识用户主机的目的 C-MAC地址, 封装为第二分组报文;
第二确定单元, 用以根据所述第一分组报文中的目的 V-MAC地址, 确 定所述第二分组4艮文的下行用户线路端口, 所述第二分组 文的下行用户 线路端口依据所述第一分组报文中的目的 V-MAC地址与用户线路端口之 间的静态映射规则确定;
发送单元, 用以向所述下行用户线路端口转发所述第二分组报文。 本发明实施例再一方面提供了一种报文转发装置, 所述装置包括: 网络接口;
处理器;
存储器;
物理存储在所述存储器中的应用程序, 所述应用程序包括可用于使所述 处理器和所述系统执行以下过程的指令:
通过网络接口接收来自网络侧的第一分组 4艮文, 所述第一分组 文为互 联网协议版本 6的 IPv6分组报文,所述第一分组报文包括标识用户主机的目 的 C-IPv6地址和标识用户线路的目的 V-MAC地址;
根据所述第一分组报文中的目的 C-IPv6地址,确定下行用户线路的 MAC 封装所需的标识用户主机的目的 C-MAC地址,所述目的 C-MAC地址依据第 一分组 4艮文中的 C-IPv6地址与标识用户主机的目的 C-MAC地址之间的静 态映射规则确定;
将所述第一分组 文中的目的 V-MAC地址替换为所述标识用户主机的 目的 C-MAC地址, 封装为第二分组报文;
根据所述第一分组报文中的目的 V-MAC地址, 确定所述第二分组报 文的下行用户线路端口, 所述第二分组 文的下行用户线路端口依据所述 第一分组报文中的目的 V-MAC地址与用户线路端口之间的静态映射规则 确定;
向所述下行用户线路端口转发所述第二分组报文。
通过上述实施例提供的报文转发方法, 接入节点设备在接收到来自于网 络侧的报文之后, 通过报文中的目的 MAC地址和用户线路之间的静态映射 规则, 能够确定所述报文的下行用户线路端口, 通过目的 IPv6地址, 可以确 的最终目的 MAC地址, 通过上述方法 IPv6分组报文能够在不需要传统路由 表和用户侧邻居緩存表的情况下实现分组报文的转发, 从而降低接入节点设 备的资源消耗。
附图说明
为了更清楚地说明本发明实施例中的技术方案, 下面将对实施例或现 有技术描述中所需要使用的附图作筒单地介绍, 显而易见地, 下面描述中 的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不 付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。
图 1是本发明实施例下行报文转发装置的网络应用架构图;
图 2是本发明实施例提供的报文转发方法一种实施例的流程图; 的流程图;
图 4是本发明实施例提供的报文转发装置一种实施例的结构图; 图 5是本发明实施例提供的报文转发装置另一种实施例的结构图。 具体实施方式
以下结合附图, 对本发明实施例做进一步详细叙述。
1 可见, 在所述的网络架构中, 在 AN设备的网络侧包括以太网汇聚节点 ( Ethernet Aggregation Node , ΕΑΝ )设备和宽带网给网关( Broadband Network Gateway, BNG )设备,在 AN设备的用户侧包括桥接型用户网关( Bridged-RG ) 和用户主机(Host ) , 接入节点 AN将网络侧和用户侧联系起来, 负责对来 自网络侧和来自用户侧的 文进行转发。 功能, 其在控制平面将具备路由器的功能, 在网络侧作为 DHCPv6客户机支 持 DHCPv6-PD协议, 获取运营商分配给用户网络的 PD-IPv6前缀;
在 AN设备上为与用户线路对应的每个 VRG可配置按线路端口编址的虚 拟介质接入控制层地址( Virtual Media Access Control Address, V-MAC ) , 基于该 V-MAC地址生成的 IPv6的本地链路地址 ( Link-Local Address, LLA ) 可用于支持 VRG网络侧的 DHCPv6-PD协议。
实施例一:
在 AN设备用户侧, 与用户线路对应的 VRG作为 DHCPv6服务器, 通 过 DHCPv6协议给用户主机分配 IPv6地址。 用户主机使用的 128位比特的 IPv6地址,即 C-IPv6地址可由 3部分组成: PD-IPv6前缀 +子网 ID( Subnet ID ) +接口标识 (Interface Identifier, IID ) ; 其中 PD-IPv6 前缀由运营商通过 DHCPv6-PD协议分配, 子网 ID可由 VRG决定, 两者构成 C-IPv6地址的前 64位; 而 IID为 C-IPv6地址的后 64位。 若运营商如果分配给用户主机的 PD-IPv6前缀本身为 64位, 则 AN设备上的 VRG可不必再分配子网 ID。 在 AN设备用户侧, VRG通过 DHCPv6协议获得用户主机的 MAC地址, 即 C-MAC地址。 由于用户侧通过 DHCPv6协议分配给用户主机的 C-IPv6地址 可由 AN设备上的 VRG来确定和分配, 所以 C-IPv6地址的 128位 IPv6地址 中的后 64位, 即 IID部分可通过约定的映射规则由 C-MAC地址——对应地 生成。
举例说明: VRG 通过 DHCPv6 协议获得的 C-MAC 地址为 0x00-AA-00-3F-2A-lC, 按照如下约定的映射规则可生成 C-IPv6地址的 IID 部分: 在 C-MAC 的正中间固定插入了 2 个字节 OxFF-FE 后生成 0x00-AA-00-FF-FE-3F-2A-lC, 再将第 1个字节的第 7比特进行了 "否"运算 后, 从而生成了 C-IPv6地址的 IID为 0x02-AA-00-FF-FE-3F-2A-lC。 VRG从 网 络侧 DHCPv6-PD 协议中 获得用 户 主机的 PD-IPv6 前缀为 2001:db8:1234:5600:/56, VRG为用户主机分配 Subnet ID为 0x03, VRG根 据用 户 主机的 C-MAC 地址 0x00-AA-00-3F-2A-lC 生成 IID 为 2AA:FF:FE3F:2A1 , 从而构成 VRG 通过 DHCPv6 协议为用户主机分配的 C-IPv6地址为 2001:db8:1234:5603:2AA:FF:FE3F:2AlC /128。
用户主机的 C-IPv6地址与用户主机的 C-MAC之间的静态映射规则, 可 事先约定并存储在 AN中。 具体的静态映射规则也取决于 AN设备的实现, 可不限于上述范例中规定的映射规则。 C-IPv6与 C-MAC之间的静态映射规 贝' J , 仅要求——对应即可。
在另外的一种实施例中, 在 AN设备用户侧, 与用户线路对应的 VRG 通过邻居发现 ( Neighbor Discovery, ND )协议给用户主机分配 IPv6前缀。 用户主机的 C-IPv6地址在由 ND协议获得 IPv6前缀后自动生成。
与前述的实施例相似, 通常上述 IPv6前缀为 64位的 IPv6前缀, 该 IPv6 前缀可由 2部分组成: PD-IPv6前缀 +子网 ID ( Subnet ID ) ; 其中 PD-IPv6 前缀由运营商通过 DHCPv6-PD协议分配, 子网 ID可由 VRG决定。 若运营 商如果分配给用户主机的 PD-IPv6前缀本身为 64位, 则 AN设备上的 VRG 可不必再分配子网 ID。
用户主机的 C-IPv6的后 64位, 即 IID部分, 通常依照 IETF RFC 4291 提供的算法由 C-MAC来生成, 从而确立了 C-IPv6的 IID与 C-MAC之间的 静态的——对应的映射规则。
举例说明:若 VRG从网络侧 DHCPv6-PD协议中获得用户主机的 PD-IPv6 前缀为 2001 :db8: 1234:5600:/56, VRG为用户主机分配 Subnet ID为 0x01。 VRG通过 ND协议为用户主机分配的 IPv6前缀为 2001:db8:1234:5601:/64。
若用户主机的 C-MAC地址为 0x00-AA-00-3F-2A-3C, 在其正中间静态 插入 了 2 个 字 节 OxFF-FE 后 生 成 的 IEEE EUI-64 地址 为 0x00- AA-00-FF-FE-3F-2 A-3C , 再将第 1个字节的第 7比特进行了 "否"运算 后, 从而生成了 C-IPv6地址的 IID为 0x02-AA-00-FF-FE-3F-2A-3C。
用户主机通过 ND协议获得 IPv6前缀 2001:db8:1234:5601:/64后, 加上 上述由 C-MAC通过静态算法生成的 IID, 2AA:FF:FE3F:2A3C, 即可生成用 户主机的 C-IPv6地址为 2001 :db8: 1234:5601 :2AA:FF:FE3F:2A3C /128。
基于上述的实施方式中实现的在接入设备中保存的 C-MAC与 C-IPv6之 间的静态映射规则, 在转发平面上, 当 AN设备收到的下行分组后, 可直接 根据上述用户主机 C-IPv6地址的 IID与用户主机的 C-MAC之间的静态映射 规则, 由其目的 IPv6地址来确定目的 MAC地址, 从而实现对该下行分组的 封装; 上述目的 IPv6地址即标识用户主机的 C-IPv6地址, 上述目的 MAC地 址即标识用户主机的 C-MAC地址。
基于上述方案, 本发明实施例提供一种报文转发方法, 图 2是本发明实 施例提供的下行报文转发方法的流程图, 其中本实施例中的执行主体为图 1 中支持 VRG的 AN设备, 例如接入网中的数字用户线接入复用器 DSLAM; 光线路终端 OLT, 多用户单元 MDU或以太网交换机。 由图 2可见, 所述方 法包括:
201 , 接收来自网络侧的第一分组报文, 所述第一分组报文为互联网协议 版本 6的 IPv6分组报文,所述第一分组报文包括标识用户主机的目的 C-IPv6 地址和标识用户线路的目的 V-MAC地址;
优选的, 在步骤 201中, 所述第一分组报文可以是 BNG转发给 AN设备 的报文。 通常, 用户主机的上行 IPv6分组报文的源 IP地址为按照前述实施 例中静态映射规则生成的 C-IPv6地址; 而网络侧在响应该上行分组报文后返 回的下行 IPv6分组报文所携带的目的 IP地址就是用户主机的 C-IPv6。 用户 主机的上行 IPv6分组报文在经过 AN设备后, 其源 MAC地址(即 C-MAC 地址)被替换为 VRG的 V-MAC地址后转发至 BNG设备; 而从 BNG设备返 回的下行 IPv6分组,其携带的目的 MAC地址就是 VRG对应的 V-MAC。 AN 设备为 VRG所在的每个用户线路端口配置相应的 V-MAC地址, 该 V-MAC 地址与 AN设备上的线路端口——对应。
优选的, 第一分组报文中还包括有源 MAC地址, 即 BNG上与 AN设备 对应的下行接口的 MAC地址。
202, 根据所述第一分组报文中的目的 C-IPv6地址, 确定下行用户线路 的 MAC封装所需的标识用户主机的目的 C-MAC地址;
具体而言,基于前述的实施例, 可以知道, 在 VRG采用 DHCPv6协议为 用户主机分配 C-IPv6地址时, AN设备上可以配置目的 C-IPv6地址与 C-MAC 地址之间的静态映射规则。 因此, AN设备在接收到第一分组报文中的目的 C-IPv6地址之后,即可确定该第一分组报文的目的 MAC地址,即目的 C-MAC 地址。
如图 3所示, 步骤 202可以进一步包括如下的步骤: 2021 , 获取所述目的 C-IPv6地址中后 64位的接口标识 IID;
2022 , 根据所述 IID确定所述目的 CMAC地址。
例 如 , 如 果 所 述 目 的 C-IPv6 地 址 为 2001:db8:1234:5603:2AA:FF:FE3F:2AlC/128 , 可确定其后 64 位的 IID 为 2AA:FF:FE3F:2AlCo运用前述实施例描述的 C-IPv6的 IID与 C-MAC之间的 静态映射规则, 通过反向运算, 可以进一步确定 C-MAC 地址为 0x00-AA-00-3F-2A-lC。
基于前述的实施例, 还可以知道, 在 VRG采用 ND协议为用户主机分配 IPv6前缀时, 用户主机自动生成的 C-IPv6地址与 C-MAC地址之间通常存在 静态的映射规则。 因此, AN设备在接收到第一分组报文中的目的 IP地址之 后, 即可确定该第一分组 文的目的 MAC地址, 即目的 C-MAC地址。
例 如 , 如 果 所 述 目 的 C-IPv6 地 址 为 2001 :db8: 1234:5601 :2AA:FF:FE3F:2A3C/128 , 可确定其后 64 位的 IID 为 2AA:FF:FE3F:2A3Co运用前述实施例描述的 C-IPv6的 IID与 C-MAC之间的 静态映射规则, 通过反向运算, 可以进一步确定 C-MAC 地址为 0x00-AA-00-3F-2A-3C。
203 , 将所述第一分组 "¾文中的目的 V-MAC地址替换为所述标识用户主 机的目的 C-MAC地址, 封装为第二分组报文;
具体而言, AN设备在向用户主机转发第一分组报文时, 需要再次封装, 可将第一分组 4艮文中的源目的 MAC地址, 即 AN设备上与用户线路对应的 VRG的 V-MAC地址替换为根据步骤 202中确定的下一链路的目的 MAC地 址, 即用户主机的 C-MAC地址。
优选的, 还可以同时也可将第一分组 4艮文中的源 MAC地址, 即 BNG上 与 AN设备对应的下行接口的 MAC地址替换为 AN设备上与用户线路对应的 VRG的 V-MAC地址, 从而完成 MAC封装并形成新的分组 文, 也就是第 二分组报文。
204 , 根据所述第一分组报文中的目的 V-MAC地址, 确定所述第二分 组才艮文的下行用户线路端口, 所述第二分组 文的下行用户线路端口依据 所述第一分组报文中的目的 V-MAC地址与用户线路端口之间的静态映射 规则确定;
更具体的, 所述目的 V-MAC地址也就是 V-MAC地址。 由于, 用户可以 在 AN设备上配置 V-MAC地址和线路端口之间的——对应的静态映射规则, 例如将 AN设备的编号, AN设备上与用户线路相关的框号、槽号及端口号统 一编入 V-MAC地址的可用地址空间, 因此, AN设备在接收到下行分组 4艮文 之后, 即可确定此下行分组报文的下行用户线路端口。 具体的 V-MAC地址 和线路端口之间的静态映射规则的实施例, 可在众厂家设备的实现中找到, 不多赘述。 这里的 V-MAC地址和线路端口之间的静态映射规则, 仅要求一 一对应即可。
205 , 向所述下行用户线路端口转发所述第二分组"¾文。
具体而言 AN设备将步骤 203中经过 MAC封装形成的第二分组 文向 该 AN设备上的某个下行用户线路端口转发。 由于第二分组报文的目的 MAC 地址为 C-MAC地址, 该分组报文标识使用 C-MAC地址的用户主机。
更具体的, 通过步骤 204 确定了第二分组 文的下行用户线路端口之 后, AN设备将步骤 203中经过 MAC封装形成的第二分组报文向该下行用户 线路端口转发。 由于第二分组报文的目的 MAC地址为 C-MAC地址, 该分组 报文标识使用 C-MAC地址的用户主机。
通过上述实施例, 实现了接入节点 AN设备在接收到来自于网络侧的报 文之后, 通过报文中的目的 V-MAC地址和用户线路端口之间的——对应的 静态映射规则, 可以确定所述报文的下行用户线路端口; 通过目的 C-IPv6地 址, 可以确定下行报文的最终目的 C-MAC地址。 通过上述方法, AN设备能 够在不需要路由表和用户侧邻居緩存表的情况下 ,实现 IPv6分组报文的转发, 从而能够降低对接入节点 AN设备的资源消耗。
如图 4所示, 本发明实施例提供了一种报文转发装置, 所述装置可以是 图 1所述的接入节点 AN或者以太网交换机。 所述装置包括:
接收单元 401 ,用于接收来自网络侧的第一分组 文,所述第一分组 "¾文 为互联网协议版本 6的 IPv6分组报文, 所述第一分组报文包括标识用户主机 的目的 C-IPv6地址和标识用户线路的目的 V-MAC地址;
第一确定单元 402 , 用以根据所述第一分组 4艮文中的目的 C-IPv6地址, 确定下行用户线路的 MAC封装所需的标识用户主机的目的 C-MAC地址; 处理单元 403 ,用以将所述第一分组 4艮文中的目的 V-MAC地址替换为所 述标识用户主机的目的 C-MAC地址, 封装为第二分组报文;
第二确定单元 404,用以根据所述第一分组 4艮文中的目的 V-MAC地址, 确定所述第二分组 文的下行用户线路端口, 所述第二分组 文的下行用 户线路端口依据所述第一分组报文中的目的 V-MAC地址与用户线路端口 之间的静态映射规则确定;
发送单元 405, 用以向所述下行用户线路端口转发所述第二分组 文。 更具体的, 在所述装置中, 所述目的 V-MAC地址与所述用户线路端口 的静态映射规则, 所述目的 V-MAC地址与所述用户线路端口的静态映射规 则, 所述确定单元 402还具体用以:
根据所所述下行用户线路端口之间的静态映射规则, 确定所述第二分组 文的下行用户线路端口。
也就是说, 第二确定单元 404根据所述目的 V-MAC地址与用户线路端 口之间的——对应的静态映射规则, 确定所述第二分组报文的下行用户线路 端口。
所述发送单元 405具体用于: 将所述第二分组报文在所述下行用户线路 端口中, 向所述用户主机 C-MAC地址对应的用户主机转发。
优选的, 所述第一确定单元 402获取所述目的 C-IPv6地址中后 64位的 接口标识 IID,根据所述 IID确定处理单元 404所需的所述目的 C-MAC地址。
优选的, 所述处理单元 403在将所述第一分组 文中的目的 V-MAC地 址替换为所述标识用户主机的目的 C-MAC地址后, 将所述第一分组报文封 装为第二分组报文时还用于: 将所述源 MAC地址替换为所述标识用户线路 的目的 V-MAC地址。
在上述实施例中, 由于下行报文中的目的 V-MAC地址和用户线路端口 之间存在——对应的静态映射规则, 下行报文中的标识用户主机的 C-IPv6与 用户主机使用的 C-MAC存在——对应的静态映射规则, AN设备甚至不需要 保留传统路由型 RG用于支持报文转发所需的路由表和支持 ND协议所需的 用户侧邻居緩存表。
上述的报文转发装置是为了实现图 2所述的方法,具体表现形式可根据 具体应用设置。
图 5为本发明实施例的另一下行报文转发装置的示意图, 所述装置可以 是图 1所述的接入节点 AN或者以太网交换机。 所述装置包括网络接口 51、 处理器 52和存储器 53。 系统总线 54用于连接网络接口 51、 处理器 52和存 储器 53。
网络接口 51用于与宽带网络网关(BNG ) 以及用户主机通信。
存储器 53可以是永久存储器, 例如硬盘驱动器和闪存, 存储器 53中具 有软件模块和设备驱动程序。 软件模块能够执行本发明上述方法的各种功能 模块; 设备驱动程序可以是网络和接口驱动程序。
在装置启动时, 这些软件组件被加载到存储器 53 中, 然后被处理器 52 访问并执行如下指令:
通过网络接口接收来自网络侧的第一分组 4艮文, 所述第一分组 文为互 联网协议版本 6的 IPv6分组报文,所述第一分组报文包括标识用户主机的目 的 C-IPv6地址和标识用户线路的目的 V-MAC地址;
根据所述第一分组报文中的目的 C-IPv6地址,确定下行用户线路的 MAC 封装所需的标识用户主机的目的 C-MAC地址,所述目的 C-MAC地址依据第 一分组 4艮文中的 C-IPv6地址与标识用户主机的目的 C-MAC地址之间的静 态映射规则确定;
将所述第一分组 文中的目的 V-MAC地址替换为所述标识用户主机的 目的 C-MAC地址, 封装为第二分组报文;
根据所述第一分组报文中的目的 V-MAC地址, 确定所述第二分组报 文的下行用户线路端口, 所述第二分组 文的下行用户线路端口依据所述 第一分组报文中的目的 V-MAC地址与用户线路端口之间的静态映射规则 确定;
向所述下行用户线路端口转发所述第二分组报文。
在较佳的实施方式中, 所述根据所述第一分组报文中的目的 C-IPv6 地址, 确定下行用户线路的 MAC封装所需的标识用户主机的目的 C-MAC地 址, 具体包括: 获取所述目的 C-IPv6地址中后 64位的接口标识 I ID, 之 后 居所述 I ID确定所述目的 CMAC地址。
上述的报文转发装置是为了实现图 2所述的方法,具体表现形式可根据 具体应用设置。
专业人员应该还可以进一步意识到, 结合本文中所公开的实施例描述的 各示例的单元及算法步骤, 能够以电子硬件、 计算机软件或者二者的结合来 实现, 为了清楚地说明硬件和软件的可互换性, 在上述说明中已经按照功能 一般性地描述了各示例的组成及步骤。 这些功能究竟以硬件还是软件方式来 执行, 取决于技术方案的特定应用和设计约束条件。 专业技术人员可以对每 个特定的应用使用不同方法来实现所描述的功能, 但是这种实现不应认为超 出本发明的范围。
结合本文中所公开的实施例描述的方法或算法的步骤, 可以用硬件、 处 理器执行的软件模块, 或者二者的结合来实施。 软件模块可以置于内存、 随 机存储器(RAM )、 只读存储器(ROM )、 电可编程 R0M、 电可擦除可编程 R0M、 寄存器、 硬盘、 可移动磁盘、 CD-ROM, 或技术领域内所公知的任意其它形式 的存储介质中。
以上所述的具体实施方式, 对本发明的目的、 技术方案和有益效果进行 了进一步详细说明, 所应理解的是, 以上所述仅为本发明的具体实施方式而 已, 并不用于限定本发明的保护范围, 凡在本发明的精神和原则之内, 所做 的任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。

Claims

权 利 要 求 书
1、 一种报文转发方法, 其特征在于, 所述方法包括:
接收来自网络侧的第一分组 4艮文,所述第一分组 文为互联网协议版本 6 的 IPv6分组报文, 所述第一分组报文包括标识用户主机的目的 C-IPv6地址 和标识用户线路的目的 V-MAC地址;
根据所述第一分组报文中的目的 C-IPv6地址,确定下行用户线路的 MAC 封装所需的标识用户主机的目的 C-MAC地址,所述目的 C-MAC地址依据第 一分组报文中的目的 C-IPv6地址与标识用户主机的目的 C-MAC地址之间 的静态映射规则确定;
将所述第一分组 文中的目的 V-MAC地址替换为所述标识用户主机的 目的 C-MAC地址, 封装为第二分组报文;
根据所述第一分组报文中的目的 V-MAC地址, 确定所述第二分组报 文的下行用户线路端口, 所述第二分组 文的下行用户线路端口依据所述 第一分组 文中的目的 V-MAC地址与用户线路端口之间的静态映射规则 确定;
向所述下行用户线路端口转发所述第二分组报文。
2、 如权利要求 1所述的报文转发方法, 其特征在于, 所述根据所述第一 分组 文中的目的 C-IPv6地址, 确定下行用户线路的 MAC封装所需的标识 用户主机的目的 C-MAC地址, 具体包括:
获取所述目的 C-IPv6地址中后 64位的接口标识 IID;
根据所述 IID确定所述目的 C-MAC地址。
3、 如权利要求 1所述的报文转发方法, 其特征在于, 所述第一分组报文 中还包括源 MAC地址,
所述将所述第一分组 文中的目的 V-MAC地址替换为所述标识用户主 机的目的 C-MAC地址, 封装为第二分组报文时还包括: 将所述源 MAC地址替换为标识用户线路的 V-MAC地址。
4、 如权利要求 1所述的报文转发方法, 其特征在于, 所述标识用户主机 的目的 C-IPv6地址由本端通过 DHCPv6协议分配给用户主机, 所述 C-IPv6 地址的 128位中后 64位的接口标识 IID根据静态映射规则, 由用户主机的 C-MAC地址生成。
5、 一种报文转发装置, 其特征在于, 所述装置包括:
接收单元, 用于接收来自网络侧的第一分组报文, 所述第一分组报文为 互联网协议版本 6的 IPv6分组报文, 所述第一分组报文包括标识用户主机的 目的 C-IPv6地址和标识用户线路的目的 V-MAC地址;
第一确定单元, 用以根据所述第一分组 "¾文中的目的 C-IPv6地址, 确定 下行用户线路的 MAC封装所需的标识用户主机的目的 C-MAC地址,所述目 的 C-MAC地址依据第一分组 文中的目的 C-IPv6地址与标识用户主机的 目的 C-MAC地址之间的静态映射规则确定;
处理单元, 用以将所述第一分组 文中的目的 V-MAC地址替换为所述 标识用户主机的目的 C-MAC地址, 封装为第二分组报文;
第二确定单元, 用以根据所述第一分组报文中的目的 V-MAC地址, 确 定所述第二分组4艮文的下行用户线路端口, 所述第二分组 文的下行用户 线路端口依据所述第一分组报文中的目的 V-MAC地址与用户线路端口之 间的静态映射规则确定;
发送单元, 用以向所述下行用户线路端口转发所述第二分组 文。
6、 如权利要求 5所述的下行报文转发装置, 其特征在于, 所述第一确定 单元具体用于:
获取所述目的 C-IPv6地址中后 64位的接口标识 IID;
根据所述 IID确定所述目的 C-MAC地址。
7、 如权利要求 5所述的报文转发装置, 其特征在于, 所述第一分组报文 中还包括源 MAC地址,
所述处理单元在将所述第一分组报文中的目的 V-MAC地址替换为所述 标识用户主机的目的 C-MAC地址, 封装为第二分组报文时还用于:
将所述源 MAC地址替换为标识用户线路的 V-MAC地址。
8、 如权利要求 5所述的报文转发装置, 其特征在于, 所述标识用户主机 的目的 C-IPv6地址由所述报文转发装置通过 DHCPv6协议分配给用户主机, 所述目的 C-IPv6地址的 128位中后 64位的接口标识 IID根据静态映射规则, 由用户主机的 C-MAC地址生成。
9、 一种报文转发装置, 其特征在于, 所述装置包括:
网络接口;
处理器;
存储器; 置执行以下过程的指令:
通过网络接口接收来自网络侧的第一分组 4艮文, 所述第一分组 文为互 联网协议版本 6的 IPv6分组报文,所述第一分组报文包括标识用户主机的目 的 C-IPv6地址和标识用户线路的目的 V-MAC地址;
根据所述第一分组报文中的目的 C-IPv6地址,确定下行用户线路的 MAC 封装所需的标识用户主机的目的 C-MAC地址,所述目的 C-MAC地址依据第 一分组报文中的目的 C-IPv6地址与标识用户主机的目的 C-MAC地址之间 的静态映射规则确定;
将所述第一分组 文中的目的 V-MAC地址替换为所述标识用户主机的 目的 C-MAC地址, 封装为第二分组报文;
根据所述第一分组报文中的目的 V-MAC地址, 确定所述第二分组报 文的下行用户线路端口, 所述第二分组 文的下行用户线路端口依据所述 第一分组报文中的目的 V-MAC地址与用户线路端口之间的静态映射规则 确定;
向所述下行用户线路端口转发所述第二分组报文。
1 0、 如权利要求 9所述的报文转发装置, 其特征在于, 所述标识用户 主机的目的 C-IPv6地址由所述报文转发装置通过 DHCPv6协议分配给用户主 机, 所述目的 C-IPv6地址的 128位中后 64位的接口标识 IID根据静态映射 规则, 由用户主机的 C-MAC地址生成。
PCT/CN2012/086304 2012-12-10 2012-12-10 报文转发方法及装置 WO2014089746A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201280002282.8A CN104040986B (zh) 2012-12-10 2012-12-10 报文转发方法及装置
PCT/CN2012/086304 WO2014089746A1 (zh) 2012-12-10 2012-12-10 报文转发方法及装置

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2012/086304 WO2014089746A1 (zh) 2012-12-10 2012-12-10 报文转发方法及装置

Publications (1)

Publication Number Publication Date
WO2014089746A1 true WO2014089746A1 (zh) 2014-06-19

Family

ID=50933670

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/086304 WO2014089746A1 (zh) 2012-12-10 2012-12-10 报文转发方法及装置

Country Status (2)

Country Link
CN (1) CN104040986B (zh)
WO (1) WO2014089746A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112333169B (zh) * 2020-10-28 2023-05-23 锐捷网络股份有限公司 一种报文处理方法、装置、电子设备及计算机可读介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101213817A (zh) * 2005-06-30 2008-07-02 艾利森电话股份有限公司 从终端的原始mac地址到唯一的本地管理虚拟mac地址的映射
CN101299718A (zh) * 2008-06-13 2008-11-05 华为技术有限公司 端口切换方法、网络设备及网络系统
US20090135833A1 (en) * 2007-11-26 2009-05-28 Won-Kyoung Lee Ingress node and egress node with improved packet transfer rate on multi-protocol label switching (MPLS) network, and method of improving packet transfer rate in MPLS network system
CN102025796A (zh) * 2010-11-23 2011-04-20 中兴通讯股份有限公司 一种mac地址更新方法及装置

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127696B (zh) * 2006-08-15 2012-06-27 华为技术有限公司 二层网络中的数据转发方法和网络及节点设备
CN101132285A (zh) * 2006-08-23 2008-02-27 华为技术有限公司 一种实现mac-in-mac的系统及方法
CN101521631B (zh) * 2009-04-14 2012-05-23 华为技术有限公司 Vpls网络报文处理方法、设备及系统
US8194661B2 (en) * 2009-09-30 2012-06-05 International Business Machines Corporation Autoconfiguration of an IPv6 component in a segmented network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101213817A (zh) * 2005-06-30 2008-07-02 艾利森电话股份有限公司 从终端的原始mac地址到唯一的本地管理虚拟mac地址的映射
US20090135833A1 (en) * 2007-11-26 2009-05-28 Won-Kyoung Lee Ingress node and egress node with improved packet transfer rate on multi-protocol label switching (MPLS) network, and method of improving packet transfer rate in MPLS network system
CN101299718A (zh) * 2008-06-13 2008-11-05 华为技术有限公司 端口切换方法、网络设备及网络系统
CN102025796A (zh) * 2010-11-23 2011-04-20 中兴通讯股份有限公司 一种mac地址更新方法及装置

Also Published As

Publication number Publication date
CN104040986A (zh) 2014-09-10
CN104040986B (zh) 2017-03-08

Similar Documents

Publication Publication Date Title
JP4794312B2 (ja) イーサネット・ベースのネットワーク内の擬似ワイヤ・ピア・アドレスの自動検出
US8681695B1 (en) Single address prefix allocation within computer networks
JP4331154B2 (ja) 情報処理システム、トンネル通信装置、及びトンネル通信方法
JP5967173B2 (ja) ネットワーク中継装置、ネットワーク中継装置が有するパケット中継処理部の動作モードを設定する方法、およびコンピュータープログラム
RU2602971C2 (ru) Способ динамического конфигурирования ipv6 для домашнего шлюза
EP2966815A1 (en) Packet forwarding method and vxlan gateway
US20050174998A1 (en) Configuring addresses in a communication network
CN112671628B (zh) 业务服务提供方法及系统
US20110202670A1 (en) Method, device and system for identifying ip session
WO2010139194A1 (zh) 具有IPv4应用的主机进行通信的方法及设备
WO2007006195A1 (fr) Dispositif de routage d’un dispositif d’accès et procédé correspondant acceptant une configuration passive d’adresse
JP5907239B2 (ja) ネットワーク中継装置、ネットワーク中継装置が有するパケット中継処理部の動作モードを設定する方法、およびコンピュータープログラム
CN112671938B (zh) 业务服务提供方法及系统、远端加速网关
WO2021259032A1 (zh) Ipv6网络通信方法、装置及系统
US20220407805A1 (en) Translation between a first version of internet protocol and a second version of internet protocol when an application layer gateway (alg) is involved
KR101311198B1 (ko) Ipv6-가능한 집합 네트워크에 가입자 디바이스들을 접속하기 위한 방법 및 장치
CN112929284A (zh) 一种IPv6 VXLAN场景下的ND报文识别方法与系统
US10164937B2 (en) Method for processing raw IP packet and device thereof
WO2014089746A1 (zh) 报文转发方法及装置
Cowley et al. Network Protocols
JP2016515371A (ja) パケット送信方法および装置、ならびにサーバ
EP4387189A1 (en) Packet forwarding method, apparatus, device, and storage medium
KR101303030B1 (ko) ⅠPv6를 지원하는 프로토콜을 이용한 호스트 동작상태 및 탐색 방법
WO2022083610A1 (zh) 一种ip地址分配方法、装置及系统
JP6233433B2 (ja) ネットワーク中継装置、ネットワーク中継装置が有するパケット中継処理部の動作モードを設定する方法、およびコンピュータープログラム

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

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

Country of ref document: EP

Kind code of ref document: A1