WO2011038646A1 - 一种pw业务的二层转发方法及系统 - Google Patents

一种pw业务的二层转发方法及系统 Download PDF

Info

Publication number
WO2011038646A1
WO2011038646A1 PCT/CN2010/077095 CN2010077095W WO2011038646A1 WO 2011038646 A1 WO2011038646 A1 WO 2011038646A1 CN 2010077095 W CN2010077095 W CN 2010077095W WO 2011038646 A1 WO2011038646 A1 WO 2011038646A1
Authority
WO
WIPO (PCT)
Prior art keywords
label
module
mac
processing module
routing module
Prior art date
Application number
PCT/CN2010/077095
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 BR112012007031-2A priority Critical patent/BR112012007031B1/pt
Priority to EP10819875.5A priority patent/EP2485451B1/en
Publication of WO2011038646A1 publication Critical patent/WO2011038646A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/68Pseudowire emulation, e.g. IETF WG PWE3
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2212/00Encapsulation of packets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]

Definitions

  • the present invention relates to a pseudowire (PW) communication technology, and in particular, to a Layer 2 forwarding method and system for a PW service.
  • PW pseudowire
  • PW Pseudo Wire Emulation Edge-to-Edge
  • CE Customer Edge
  • AC Acttachment circuit
  • the ordinary Ethernet packet For the pre-processing, from the CE device to the PE device, the ordinary Ethernet packet, the time division multiplexing (TDM) packet, the asynchronous transfer mode (ATM) packet, or the E1 packet is encapsulated into a VPN format.
  • TDM time division multiplexing
  • ATM asynchronous transfer mode
  • the packet For the MPLS VPN, the packet is a two-layer label. From the PE device to the CE device, the label packet is stripped into the original payload packet, that is, the Ethernet packet, the TDM packet, the ATM packet, or the E1 packet. Text.
  • For the routing from the CE device to the PE device, select the appropriate PE device for forwarding. From the PE device to the CE device, select the appropriate CE device for forwarding.
  • the PWE3 emulation service For the PWE3 emulation service, it is usually added to the online card to add a sub-card, which is responsible for converting the emulation " ⁇ (such as TDM, ATM or El>3 ⁇ 4 ⁇ ) into Ethernet. And sending to the network processor, and then the network processor completes label encapsulation, routing, etc., because the prior art processes the pre-processing and forwarding to the network processor, and performs the forwarding operation while pre-processing , and network processors often need to perform other business flows. Therefore, the existing forwarding method greatly reduces the performance of the system, affects the processing speed of the network processor, and is not easy to maintain. Summary of the invention
  • the main purpose of the present invention is to provide a Layer 2 forwarding method and system for PW services, which can improve the processing speed of the network processor and is easy to maintain.
  • a Layer 2 forwarding method for a PW service includes:
  • the pre-processing module writes the encapsulation table and the label table according to the PW information, and the routing module writes the MAC table according to the PW information;
  • the pre-processing module and the routing module perform packet forwarding from the customer boundary CE to the device provider border PE according to the encapsulation table and the MAC table, and perform packet forwarding from the PE to the CE according to the label table and the MAC table.
  • a plurality of Layer 3 interfaces are configured on the interface between the pre-processing module and the routing module, and are used as VLAN keys used in the MAC table.
  • the pre-processing module and the routing module perform packet forwarding from the CE to the PE according to the encapsulation table and the MAC table:
  • the pre-processing module After receiving the simulated service flow from the AC side, the pre-processing module encapsulates the service flow into a label message according to the encapsulation table, and sends the encapsulated label message to the routing module;
  • the routing module After receiving the label packet, the routing module forwards the label packet through the destination MAC+ Layer 3 interface VLAN query MAC table.
  • the routing module receives the label message from the PW side, and forwards the label message to the pre-processing module through the destination MAC+3 interface VLAN query MAC table;
  • the pre-processing module strips the label information, and according to the label table, the simulation industry after stripping the label information
  • the traffic is sent from the AC side.
  • the preprocessing module is a simulation chip, and the routing module is a network processor.
  • a Layer 2 forwarding system of a PW service comprising: a pre-processing module and a routing module, wherein the pre-processing module is configured to write a package table and a label table according to the PW information;
  • the MAC table performs packet forwarding from the CE to the PE, and performs packet forwarding from the PE to the CE through the label table and the MAC table of the routing module.
  • the routing module is configured to write a MAC table according to the PW information, perform packet forwarding from the CE to the PE by using the MAC table and the encapsulation table of the pre-processing module, and adopt a label table of the MAC table and the pre-processing module. Perform packet forwarding from the PE to the CE.
  • a plurality of Layer 3 interfaces are configured on the interface between the pre-processing module and the routing module, and are used as VLAN keys used in the MAC table.
  • the pre-processing module performs packet forwarding from the CE to the PE through the encapsulation table and the MAC table of the routing module, or the routing module performs the CE from the MAC table and the encapsulation table of the pre-processing module.
  • the packet forwarding of the PE is as follows:
  • the pre-processing module After receiving the simulated service flow from the AC side, the pre-processing module encapsulates the service flow into a label message according to the encapsulation table, and sends the encapsulated label message to the routing module;
  • the routing module After receiving the label message from the pre-processing module, the routing module forwards the label message through the destination MAC+ Layer 3 interface VLAN query MAC table.
  • the pre-processing module performs packet forwarding from the PE to the CE through the label table and the MAC table of the routing module, or the routing module performs the PE from the MAC table and the label table of the pre-processing module.
  • the packet forwarding of the CE is as follows:
  • the routing module After receiving the label message from the PW side, the routing module forwards the label message to the pre-processing module through the destination MAC+ Layer 3 interface VLAN query MAC table;
  • the pre-processing module strips the label information, and sends the simulated service flow after the label information is stripped from the AC side according to the label table.
  • the preprocessing module is a simulation chip, and the routing module is a network processor.
  • the second layer forwarding method and system for the PW service of the present invention separates the preprocessing and forwarding functions, and combines the two by configuring a static MAC routing method.
  • the preprocessing module first performs simulation preprocessing to TDM ⁇ , ATM ⁇ The ⁇ or El ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ , , El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El El
  • FIG. 1 is a schematic flowchart of a Layer 2 forwarding method of a PW service according to the present invention
  • FIG. 2 is a schematic diagram of a packet forwarding architecture of the present invention
  • FIG. 3 is a schematic flowchart of packet forwarding from a CE to a PE according to the present invention
  • FIG. 4 is a schematic flowchart of packet forwarding from a PE to a CE according to the present invention
  • FIG. 5 is a schematic flowchart of packet forwarding from a CE to a PE according to Embodiment 1 of the present invention
  • FIG. 6 is a schematic flowchart of packet forwarding from a PE to a CE according to Embodiment 1 of the present invention.
  • the basic idea of the present invention is to: separate the pre-processing and forwarding functions, and combine the two by configuring a static MAC routing method.
  • the pre-processing module first performs simulation pre-processing to convert TDM messages, ATM messages, or E1 messages.
  • the VPN label is added to the pre-processing and sent to the routing module.
  • the routing module forwards the Ethernet packet to the corresponding PW through the query of the MAC table.
  • the Layer 2 forwarding method of a PW service of the present invention generally includes the following steps: Step 11: After the user configures the PW information, the pre-processing module writes the encapsulation table and the label table according to the PW information, and the routing module writes the MAC table from the CE to the PE and the MAC table from the PE to the CE according to the PW information.
  • the pre-processing module mainly refers to a simulation chip
  • the routing module mainly refers to a network processor.
  • the interface between the pre-processing module and the routing module is generally configured with a plurality of Layer 3 interfaces (VLAN interfaces), which are used as VLANs used in the MAC table. Keys, the interface between the pre-processing module and the routing module is configured with several Layer 3 interfaces. That is, the pre-processing module and the routing module are connected through a virtual VLAN interface, and this VLAN is used as the key in the MAC table.
  • VLAN interfaces Layer 3 interfaces
  • the switch After the PW information is configured, the switch sends the PW information to the pre-processing module and the routing module respectively.
  • the pre-processing module After receiving the PW information, the pre-processing module writes the encapsulation table information according to the entry AC in the PW information. For example, the public network label, the private network label, the next hop MAC, and the egress VLAN) are in the encapsulation table; and the label table is written according to the private network label, and the corresponding AC egress related information is written into the table; and the routing module is based on the next The sent PW information is obtained from the local Layer 3 interface (that is, the VLAN interface connected to the preprocessing module), and the MAC address from the CE to the PE is written according to the MAC address + VLAN interface of the preprocessing module, and the next hop exit information is obtained.
  • the MAC table Write to the MAC table, and write the MAC address from the PE to the CE according to the MAC address + VLAN interface of the next hop device
  • Step 12 The pre-processing module and the routing module perform packet forwarding from the CE to the PE according to the encapsulation table and the MAC table from the CE to the PE, and perform the slave according to the label table and the MAC table from the PE to the CE. Packet forwarding from the PE to the CE.
  • FIG. 2 is a schematic diagram of a packet forwarding architecture of the present invention. As shown in FIG. 2, one end of the pre-processing module is connected to the AC, and the other end is connected to the routing module through a VLAN interface, and the other end of the routing module is connected to the PW.
  • FIG. 3 is a schematic flowchart of packet forwarding from a CE to a PE according to the present invention.
  • the packet forwarding process from the CE to the PE includes the following steps: Step 31: After receiving the simulated service flow from the AC side, the pre-processing module encapsulates the service flow into a label message according to the encapsulation table.
  • the pre-processing module first performs the simulation pre-processing to convert the TDM packet, the ATM packet, or the E1 packet into the Ethernet packet, and then performs pre-processing to add the VPN label to the routing module, that is, the pre-processing module specifically includes the simulation conversion pre-processing.
  • Module and label preprocessing module are two parts.
  • Step 32 The pre-processing module sends the encapsulated label message to the routing module.
  • Step 33 After receiving the label packet, the routing module forwards the label packet by querying the MAC table from the CE to the PE.
  • the routing module queries the MAC table from the CE to the PE through the DA1+VLAN, finds the corresponding PW exit and forwards it, and DA1 is the destination MAC in the text described in step 31.
  • the source MAC address is the MAC address of the pre-processing module. Therefore, after receiving the label packet, the routing module can determine that the label packet is from the pre-processing module.
  • FIG. 4 is a schematic flowchart of packet forwarding from a PE to a CE according to the present invention. As shown in FIG. 4, the packet forwarding process from the PE to the CE includes the following steps:
  • Step 41 The routing module receives the label message from the PW side.
  • Step 42 The routing module forwards the label packet by querying the MAC table from the PE to the CE. Specifically, the routing module queries the MAC table from the PE to the CE through the DA2+VLAN, obtains the interface information corresponding to the pre-processing module, and forwards the label packet to the corresponding pre-processing mode.
  • the block, DA2 is the destination MAC in the text described in step 41.
  • Step 43 The pre-processing module strips the label information, and sends the simulated service flow after the label information is stripped from the AC side according to the label table.
  • the present invention also provides a Layer 2 forwarding system for a PW service, the system comprising: a pre-processing module and a routing module;
  • the pre-processing module is configured to write a package table and a label table according to the PW information; perform packet forwarding from the CE to the PE through the encapsulation table and the MAC table of the routing module, and pass the label table and the routing module
  • the MAC table performs packet forwarding from the PE to the CE.
  • the routing module is configured to write a MAC table according to the PW information, perform packet forwarding from the CE to the PE by using the MAC table and the encapsulation table of the pre-processing module, and adopt a label table of the MAC table and the pre-processing module. Perform packet forwarding from the PE to the CE.
  • a plurality of Layer 3 interfaces are configured on the interface between the pre-processing module and the routing module, and are used as VLAN keys used in the MAC table.
  • the pre-processing module performs packet forwarding from the CE to the PE through the encapsulation table and the MAC table of the routing module, or the routing module performs the CE from the MAC table and the encapsulation table of the pre-processing module.
  • the packet forwarding of the PE is as follows:
  • the pre-processing module After receiving the simulated service flow from the AC side, the pre-processing module encapsulates the service flow into a label message according to the encapsulation table, and sends the encapsulated label message to the routing module;
  • the routing module After receiving the label message from the pre-processing module, the routing module forwards the label message through the destination MAC+ Layer 3 interface VLAN query MAC table.
  • the pre-processing module performs packet forwarding from the PE to the CE through the label table and the MAC table of the routing module, or the routing module performs the PE from the MAC table and the label table of the pre-processing module.
  • the packet forwarding of the CE is as follows:
  • the routing module After receiving the label message from the PW side, the routing module forwards the label message to the pre-processing module through the destination MAC+Layer 3 interface VLAN query MAC table; The pre-processing module strips the label information, and sends the simulated service flow after the label information is stripped from the AC side according to the label table.
  • the preprocessing module is a simulation chip, and the routing module is a network processor.
  • the pre-processing module is a simulation chip
  • the routing module is a network processor.
  • Each emulation interface in the emulation chip corresponds to 63 channels, and each channel corresponds to one PW; when the configuration PW1 access service is configured, The corresponding port channel is assigned VLAN 1 of the Layer 3 interface.
  • the MAC address of the emulation chip is MACA, the PW label is PwLabell, and the tunnel label is TunnelLabell.
  • the frame MAC address of the next hop P device is MACB, and the Layer 3 interface is VLAN1.
  • the interface (connected to the network processor) is PORT1, and the interface with the P device is PORT2;
  • the encapsulation table is set, specific: Key value: Ingress channel information
  • FIG. 5 is a schematic flowchart of packet forwarding from a CE to a PE according to Embodiment 1 of the present invention. As shown in FIG. 5, the packet forwarding from the CE to the PE in the first embodiment of the present invention includes the following steps:
  • Step 51 After receiving the simulated service flow from the AC side, the emulation chip queries the encapsulation table according to the ingress AC.
  • Step 52 The emulation chip encapsulates the service flow according to the encapsulation information obtained by querying the encapsulation table.
  • Step 53 The emulation chip sends the encapsulated packet to the network processor.
  • Step 54 The network processor determines that the received packet is from the emulation chip, and queries the MAC table through the MACB+VLAN1 in the packet to obtain the corresponding egress information PORT2.
  • Step 55 The network processor sends the packet from PORT2 to the next hop P device.
  • FIG. 6 is a schematic flowchart of packet forwarding from a PE to a CE according to Embodiment 1 of the present invention, as shown in FIG.
  • the packet forwarding from the PE to the CE in the embodiment 1 of the present invention includes the following steps:
  • Step 61 The packet is sent from the P device and reaches the PE device.
  • Step 62 The network processor determines that the destination MAC address MACA of the >3 ⁇ 4 text is the emulation chip MAC address.
  • the network processor determines that the destination MAC address of the message is not the emulation chip MAC When you address, you can transfer to other processes.
  • Step 63 The network processor queries the MAC table through MACA+VLAN1, obtains the corresponding channel interface PORT1, and sends the packet to the emulation chip.
  • Step 64 The emulation chip queries the corresponding label table through PwLabell to obtain corresponding AC export information.
  • Step 65 The emulation chip strips the label according to the configuration information in the forwarding table, and sends the simulated service flow after the label information is stripped from the corresponding AC.
  • the present invention separates the packet pre-processing and routing by the ordinary L2 forwarding mode, and the emulation chip completes the label encapsulation of the packet, and the network processor completes the routing operation, and configures the static MAC selection.
  • the emulation chip completes the label encapsulation of the packet
  • the network processor completes the routing operation, and configures the static MAC selection.
  • different Layer 3 interface VLANs correspond to different PWs, and the two are effectively combined.

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

本发明公开了一种PW业务的二层转发方法,包括:预处理模块根据PW信息写封装表和标签表,选路模块根据PW信息写MAC表;预处理模块和选路模块根据封装表和MAC表,执行从客户边界(CE)到设备供应商边界(PE)的报文转发,以及根据标签表和MAC表执行从PE到CE的报文转发。本发明还相应地公开了一种PW业务的二层转发系统。由于预处理模块分担了通常作为选路模块的网络处理器的处理能力,而网络处理器仅做普通的二层业务转发, 所以,本发明能够提高网络处理器的处理速度,且易于维护。

Description

一种 PW业务的二层转发方法及系统 技术领域
本发明涉及伪线( PW )通信技术, 尤其涉及一种 PW业务的二层转发 方法及系统。 背景技术
PW 业务如边缘到边缘的伪线仿真 ( Pseudo Wire Emulation Edge-to-Edge, PWE3 ) 业务的处理过程中, 业务流从客户边界 ( Customer Edge, CE )设备通过接入链路(Acttachment circuit, AC )流入到设备供应 商边界(Provider Edge, PE )设备上, 在 PE设备上进行一系列操作后, 通 过 PW发送到设备供应商设备(P设备)上。 一般情况下, 在 PE设备上可 以划分预处理和选路两部分功能:
对于预处理而言, 从 CE设备到 PE设备, 即将普通的以太网报文、 时 分多路复用 (TDM )报文、 异步转移模式(ATM )报文或 E1 报文封装成 VPN格式的报文, 对于 MPLS VPN而言就是两层标签的报文; 从 PE设备 到 CE设备, 将标签报文剥离成原始的负载报文, 即以太网报文、 TDM报 文、 ATM报文或 E1报文。
对于选路而言, 从 CE设备到 PE设备, 即选取合适的 PE设备进行转 发; 从 PE设备到 CE设备, 即选取合适的 CE设备进行转发。
对于 PWE3仿真业务而言, 目前通常都是在线卡上增加一个子卡, 由 该子卡负责将仿真" ^艮文(如 TDM、 ATM或者 El的>¾文)转换成以太网才艮 文之后, 发送给网络处理器, 再由网络处理器完成标签的封装、 选路等操 作, 由于现有技术将预处理和转发放到网络处理器这一个模块进行处理, 在预处理的同时进行转发操作, 而网络处理器往往还需要执行其他业务流 程, 所以, 现有转发方法大大降低了系统的性能, 影响网络处理器的处理 速度, 且不易维护。 发明内容
有鉴于此, 本发明的主要目的在于提供一种 PW业务的二层转发方法 及系统, 能够提高网络处理器的处理速度, 且易于维护。
为达到上述目的, 本发明的技术方案是这样实现的:
一种 PW业务的二层转发方法, 该方法包括:
预处理模块根据 PW信息写封装表和标签表, 选路模块根据 PW信息 写 MAC表;
预处理模块和选路模块根据封装表和 MAC表, 执行从客户边界 CE到 设备供应商边界 PE的报文转发, 以及根据标签表和 MAC表执行从 PE到 CE的报文转发。
所述预处理模块与选路模块的接口上配置若干三层接口,用作 MAC表 中使用的 VLAN键值。
所述预处理模块和所述选路模块根据所述封装表和所述 MAC表,执行 从 CE到 PE的报文转发为:
预处理模块收到来自 AC侧的仿真业务流后,根据封装表将所述业务流 封装为标签报文 , 并将封装后的标签报文发送至选路模块;
选路模块收到所述标签报文后, 通过目的 MAC+三层接口 VLAN查询 MAC表转发所述标签报文。
所述预处理模块和所述选路模块根据所述标签表和所述 MAC 表执行 从 PE到 CE的报文转发为:
选路模块接收到来自 PW侧的标签报文, 通过目的 MAC+三层接口 VLAN查询 MAC表转发所述标签报文至预处理模块;
预处理模块剥离标签信息, 并根据标签表将剥离标签信息后的仿真业 务流从 AC侧发送。
所述预处理模块为仿真芯片, 选路模块为网络处理器。
一种 PW业务的二层转发系统, 包括: 预处理模块和选路模块, 其中, 所述预处理模块, 用于根据 PW信息写封装表和标签表; 通过所述封 装表与选路模块的 MAC表执行从 CE到 PE的报文转发, 以及通过所述标 签表和选路模块的 MAC表执行从 PE到 CE的报文转发;
所述选路模块, 用于根据 PW信息写 MAC表; 通过所述 MAC表与预 处理模块的封装表执行从 CE到 PE的报文转发, 以及通过所述 MAC表与 预处理模块的标签表执行从 PE到 CE的报文转发。
所述预处理模块与选路模块的接口上配置若干三层接口,用作 MAC表 中使用的 VLAN键值。
所述预处理模块通过所述封装表与选路模块的 MAC表执行从 CE到 PE 的报文转发, 或者, 所述选路模块通过所述 MAC表与预处理模块的封装表 执行从 CE到 PE的报文转发为:
所述预处理模块在收到来自 AC侧的仿真业务流后,根据封装表将所述 业务流封装为标签报文, 并将封装后的标签报文发送至选路模块;
所述选路模块在收到来自预处理模块的标签报文后, 通过目的 MAC+ 三层接口 VLAN查询 MAC表转发所述标签报文。
所述预处理模块通过所述标签表和选路模块的 MAC表执行从 PE到 CE 的报文转发, 或者, 所述选路模块通过所述 MAC表与预处理模块的标签表 执行从 PE到 CE的报文转发为:
所述选路模块在接收来自 PW侧的标签报文后, 通过目的 MAC+三层 接口 VLAN查询 MAC表转发所述标签报文至预处理模块;
所述预处理模块剥离标签信息, 并根据标签表将剥离标签信息后的仿 真业务流从 AC侧发送。 所述预处理模块为仿真芯片, 所述选路模块为网络处理器。 本发明 PW业务的二层转发方法及系统, 将预处理和转发功能分离, 通过配置静态 MAC选路的方法将二者结合起来,预处理模块首先进行仿真 预处理将 TDM ^艮文、 ATM ^艮文或 El ^艮文转换为以太 ^艮文, 再进行预处理 添加 VPN标签, 发送到选路模块; 选路模块通过 MAC表的查询判断, 将 以太报文转发到对应的 PW上。 由于预处理模块分担了通常作为选路模块 的网络处理器的处理能力,而网络处理器仅做普通的二层业务转发, 所以, 本发明能够提高网络处理器的处理速度, 且易于维护。 附图说明
图 1为本发明 PW业务的二层转发方法流程示意图;
图 2为本发明报文转发架构示意图;
图 3为本发明从 CE到 PE进行报文转发的流程示意图
图 4为本发明从 PE到 CE进行报文转发的流程示意图;
图 5为本发明实施例 1从 CE到 PE进行报文转发的流程示意图; 图 6为本发明实施例 1从 PE到 CE进行报文转发的流程示意图。 具体实施方式
本发明的基本思想是: 将预处理和转发功能分离, 通过配置静态 MAC 选路的方法将二者结合起来, 预处理模块首先进行仿真预处理将 TDM报 文、 ATM报文或 E1报文转换为以太报文, 再进行预处理添加 VPN标签, 发送到选路模块; 选路模块通过 MAC表的查询判断,将以太报文转发到对 应的 PW上。
下面结合附图对技术方案的实施作进一步的详细描述。
图 1为本发明 PW业务的二层转发方法流程示意图, 如图 1所示, 本 发明 PW业务的二层转发方法一般包括以下步骤: 步骤 11 : 用户配置 PW信息后, 预处理模块根据所述 PW信息写封装 表和标签表,选路模块根据所述 PW信息写从 CE到 PE的 MAC表和从 PE 到 CE的 MAC表。
本发明中, 预处理模块主要指仿真芯片, 选路模块主要指网络处理器, 预处理模块与选路模块的接口上一般配置若干三层接口 (VLAN接口), 用 作 MAC表中使用的 VLAN键值, 预处理模块与选路模块的接口上配置若 干三层接口, 即配置上预处理模块和选路模块通过一个虚拟的 VLAN接口 连接, 而这个 VLAN用作 MAC表中的键值。
当 PW信息配置下来后, 交换机会分别下发所述 PW信息到预处理模 块和选路模块, 预处理模块收到 PW信息后, 会根据 PW信息中的入口 AC 为键值写封装表信息(如公网标签、私网标签、 下一跳 MAC , 出口 VLAN ) 到封装表中; 以及根据私网标签写标签表,将对应的 AC出口相关信息写入 表中; 而选路模块会根据下发下来的 PW信息, 获取本地的三层接口 (即 与预处理模块相连的 VLAN接口),并根据预处理模块的 MAC地址 +VLAN 接口写从 CE到 PE的 MAC表, 将下一跳出口信息写入 MAC表中 , 以及 根据下一跳设备的 MAC地址 +VLAN接口写从 PE到 CE的 MAC表,将与 预处理模块相连的接口地址写入 MAC表中。
步骤 12:预处理模块和选路模块根据所述封装表和从 CE到 PE的 MAC 表, 执行从 CE到 PE的报文转发, 以及根据所述标签表和从 PE到 CE的 MAC表执行从 PE到 CE的报文转发。
图 2为本发明报文转发架构示意图, 如图 2所示, 预处理模块的一端 与 AC连接, 另一端通过 VLAN接口与选路模块相连, 选路模块的另一端 与 PW连接。
图 3为本发明从 CE到 PE进行报文转发的流程示意图, 如图 2所示, 本发明从 CE到 PE进行报文转发包括步骤: 步骤 31 : 预处理模块收到来自 AC侧的仿真业务流后, 根据封装表将 所述业务流封装为标签报文。
预处理模块首先进行仿真预处理将 TDM报文、 ATM报文或 E1报文转 换为以太报文, 再进行预处理添加 VPN标签, 发送到选路模块, 即预处理 模块具体包括仿真转换预处理模块和标签预处理模块两部分。
封装后的标签报文格式如下:
Figure imgf000008_0001
步骤 32: 预处理模块将封装后的标签报文发送至选路模块。
步骤 33:选路模块收到所述标签报文后,通过查询从 CE到 PE的 MAC 表转发所述标签报文。
具体的, 选路模块通过 DA1+VLAN查询从 CE到 PE的 MAC表, 找 到对应的 PW的出口并转发, DA1为步骤 31所述 4艮文中的目的 MAC。
由于源 MAC地址为预处理模块的 MAC地址, 所以, 选路模块接收到 标签报文后能够判断出该标签报文来自预处理模块。
图 4为本发明从 PE到 CE进行报文转发的流程示意图, 如图 4所示, 本发明从 PE到 CE进行报文转发包括步骤:
步骤 41 : 选路模块接收到来自 PW侧的标签报文。
这里, 当标签报文从 PW侧发送到 PE设备时候, 选路模块收到的报文 格式如下:
Figure imgf000008_0002
步骤 42:选路模块通过查询从 PE到 CE的 MAC表转发所述标签报文。 具体的, 选路模块通过 DA2+VLAN查询从 PE到 CE的 MAC表, 获 取预处理模块对应的接口信息, 并将所述标签报文转发到对应的预处理模 块, DA2为步骤 41所述 ^艮文中的目的 MAC。
步骤 43: 预处理模块剥离标签信息, 并根据标签表将剥离标签信息后 的仿真业务流从 AC侧发送出去。
本发明还提出一种 PW业务的二层转发系统, 该系统包括: 预处理模 块和选路模块; 其中,
所述预处理模块, 用于根据 PW信息写封装表和标签表; 通过所述封 装表与选路模块的 MAC表执行从 CE到 PE的报文转发, 以及通过所述标 签表和选路模块的 MAC表执行从 PE到 CE的报文转发;
所述选路模块, 用于根据 PW信息写 MAC表; 通过所述 MAC表与预 处理模块的封装表执行从 CE到 PE的报文转发, 以及通过所述 MAC表与 预处理模块的标签表执行从 PE到 CE的报文转发。
所述预处理模块与选路模块的接口上配置若干三层接口,用作 MAC表 中使用的 VLAN键值。
所述预处理模块通过所述封装表与选路模块的 MAC表执行从 CE到 PE 的报文转发, 或者, 所述选路模块通过所述 MAC表与预处理模块的封装表 执行从 CE到 PE的报文转发为:
所述预处理模块在收到来自 AC侧的仿真业务流后,根据封装表将所述 业务流封装为标签报文, 并将封装后的标签报文发送至选路模块;
所述选路模块在收到来自预处理模块的标签报文后, 通过目的 MAC+ 三层接口 VLAN查询 MAC表转发所述标签报文。
所述预处理模块通过所述标签表和选路模块的 MAC表执行从 PE到 CE 的报文转发, 或者, 所述选路模块通过所述 MAC表与预处理模块的标签表 执行从 PE到 CE的报文转发为:
所述选路模块在接收来自 PW侧的标签报文后, 通过目的 MAC+三层 接口 VLAN查询 MAC表转发所述标签报文至预处理模块; 所述预处理模块剥离标签信息, 并根据标签表将剥离标签信息后的仿 真业务流从 AC侧发送。
所述预处理模块为仿真芯片, 所述选路模块为网络处理器。
下面通过具体实施例对本发明的技术方案作进一步详细描述。
实施例 1
本实施例中, 预处理模块为仿真芯片, 选路模块为网络处理器, 仿真 芯片中每个仿真接口对应 63条通道, 每个通道对应一个 PW; 当配置仿真 PW1接入的业务时 , 给对应的端口通道分配三层接口的 VLAN1 ,仿真芯片 对应的 MAC 地址为 MACA , PW 标签为 PwLabell , 隧道标签为 TunnelLabell; 下一跳 P设备对应的机架 MAC 为 MACB , 三层接口为 VLAN1 ; 通道接口 (与网络处理器相连)为 PORT1 , 与 P设备的接口为 PORT2;
在网络处理器上配置静态 MAC地址, 具体的:
键值: MACA + VLAN1
结果: PORT 1对应的端口信息
键值: MACB + VLAN1
结果: PORT2对应的端口信息
另外, 在仿真芯片中, 根据入口 AC信息, 设置封装表, 具体的: 键值: 入口通道信息
结果: 封装信息
(关联 PwLabell、 TunnelLabell , 出口 MAC 即 MACB、 三层接口 VLAN1 , 以及对应的网络处理器芯片的接口 )
以及根据 PW标签信息, 设置标签表, 具体的:
键值: PwLabell
结果: 出口 AC信息 图 5为本发明实施例 1从 CE到 PE进行报文转发的流程示意图, 如图 5所示, 本发明实施例 1从 CE到 PE进行报文转发包括步骤:
步骤 51 : 仿真芯片收到来自 AC侧的仿真业务流后, 根据入口 AC查 询封装表。
步骤 52: 仿真芯片根据查询封装表获取的封装信息封装业务流。
这里, 封装后的报文格式如下:
Figure imgf000011_0001
步骤 53: 仿真芯片将封装后的报文发送到网络处理器。
步骤 54: 网络处理器判断收到的报文来自仿真芯片, 则通过报文中的 MACB+VLAN1查询 MAC表, 获取对应的出口信息 PORT2。
具体的, 网络处理器收到报文后, 判断收到的报文是否来自仿真芯片 步骤 55: 网络处理器将报文从 PORT2发送到下一跳 P设备上。
图 6为本发明实施例 1从 PE到 CE进行报文转发的流程示意图, 如图
6所示, 本发明实施例 1从 PE到 CE进行报文转发包括步骤:
步骤 61 : 报文从 P设备发送过来, 到达 PE设备。
这里, 报文格式如下:
Figure imgf000011_0002
步骤 62: 网络处理器判断>¾文的目的 MAC地址 MACA为仿真芯片 MAC地址。
这里, 如果网络处理器判断报文的目的 MAC地址不是仿真芯片 MAC 地址时, 可以转其他流程。
步骤 63: 网络处理器通过 MACA+VLAN1查询 MAC表, 获取对应的 通道接口 PORT1 , 并将报文发送到仿真芯片中。
步骤 64: 仿真芯片通过 PwLabell查询对应的标签表, 获取对应的 AC 出口信息。
步骤 65: 仿真芯片根据转发表中配置信息剥离标签, 并将剥离标签信 息后的仿真业务流从对应的 AC发送出去。
通过上述描述可以看出, 本发明通过普通 L2转发模式, 将报文预处理 和选路分离开来, 仿真芯片完成报文的标签封装, 网络处理器完成选路的 操作, 通过配置静态 MAC选路的方法, 不同的三层接口 VLAN对应不同 的 PW, 将两者有效的结合起来。
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围。

Claims

权利要求书
1、 一种伪线 PW业务的二层转发方法, 其特征在于, 该方法包括: 预处理模块根据 PW信息写封装表和标签表, 选路模块根据 PW信息 写 MAC表;
所述预处理模块和所述选路模块根据所述封装表和所述 MAC表,执行 从客户边界 CE到设备供应商边界 PE的报文转发, 以及根据所述标签表和 所述 MAC表执行从 PE到 CE的报文转发。
2、 根据权利要求 1所述的方法, 其特征在于, 所述预处理模块与选路 模块的接口上配置若干三层接口, 用作 MAC表中使用的 VLAN键值。
3、 根据权利要求 2所述的方法, 其特征在于, 所述预处理模块和所述 选路模块根据所述封装表和所述 MAC表,执行从 CE到 PE的报文转发为: 所述预处理模块收到来自 AC侧的仿真业务流后,根据所述封装表将所 述业务流封装为标签报文, 并将封装后的标签报文发送至所述选路模块; 所述选路模块收到所述标签报文后, 通过目的 MAC+三层接口 VLAN 查询 MAC表转发所述标签报文。
4、 根据权利要求 2所述的方法, 其特征在于, 所述预处理模块和所述 选路模块根据所述标签表和所述 MAC表执行从 PE到 CE的报文转发为: 选路模块接收到来自 PW侧的标签报文, 通过目的 MAC+三层接口 VLAN查询 MAC表转发所述标签报文至预处理模块;
预处理模块剥离标签信息, 并根据标签表将剥离标签信息后的仿真业 务流从 AC侧发送。
5、 根据权利要求 1至 4任一项所述的方法, 其特征在于, 所述预处理 模块为仿真芯片, 所述选路模块为网络处理器。
6、 一种 PW业务的二层转发系统, 其特征在于, 该系统包括: 预处理 模块和选路模块; 其中, 所述预处理模块, 用于根据 PW信息写封装表和标签表; 通过所述封 装表与选路模块的 MAC表执行从 CE到 PE的报文转发, 以及通过所述标 签表和选路模块的 MAC表执行从 PE到 CE的报文转发;
所述选路模块, 用于根据 PW信息写 MAC表; 通过所述 MAC表与预 处理模块的封装表执行从 CE到 PE的报文转发, 以及通过所述 MAC表与 预处理模块的标签表执行从 PE到 CE的报文转发。
7、 根据权利要求 6所述的 PW业务的系统, 其特征在于, 所述预处理 模块与选路模块的接口上配置若干三层接口,用作 MAC表中使用的 VLAN 键值。
8、 根据权利要求 7所述的 PW业务的系统, 其特征在于, 所述预处理 模块通过所述封装表与选路模块的 MAC表执行从 CE到 PE的报文转发, 或者, 所述选路模块通过所述 MAC表与预处理模块的封装表执行从 CE到 PE的报文转发为:
所述预处理模块在收到来自 AC侧的仿真业务流后,根据封装表将所述 业务流封装为标签报文, 并将封装后的标签报文发送至选路模块;
所述选路模块在收到来自预处理模块的标签报文后, 通过目的 MAC+ 三层接口 VLAN查询 MAC表转发所述标签报文。
9、 根据权利要求 7所述的 PW业务的系统, 其特征在于, 所述预处理 模块通过所述标签表和选路模块的 MAC表执行从 PE到 CE的报文转发, 或者, 所述选路模块通过所述 MAC表与预处理模块的标签表执行从 PE到 CE的报文转发为:
所述选路模块在接收来自 PW侧的标签报文后, 通过目的 MAC+三层 接口 VLAN查询 MAC表转发所述标签报文至预处理模块;
所述预处理模块剥离标签信息, 并根据标签表将剥离标签信息后的仿 真业务流从 AC侧发送。
10、 根据权利要求 6至 9任一项所述的 PW业务的系统, 其特征在于: 所述预处理模块为仿真芯片, 所述选路模块为网络处理器。
PCT/CN2010/077095 2009-09-30 2010-09-19 一种pw业务的二层转发方法及系统 WO2011038646A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
BR112012007031-2A BR112012007031B1 (pt) 2009-09-30 2010-09-19 Método de encaminhamento de duas camadas para um serviço de pseudo wire (pw) , sistema de encaminhamento de duas camadas para um serviço pw e sistema para um serviço pw
EP10819875.5A EP2485451B1 (en) 2009-09-30 2010-09-19 Two-layer forwarding method for a pseudo wire (pw) service and system thereof

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200910235289.4 2009-09-30
CN200910235289A CN101697547B (zh) 2009-09-30 2009-09-30 一种pw业务的二层转发方法及系统

Publications (1)

Publication Number Publication Date
WO2011038646A1 true WO2011038646A1 (zh) 2011-04-07

Family

ID=42142621

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/077095 WO2011038646A1 (zh) 2009-09-30 2010-09-19 一种pw业务的二层转发方法及系统

Country Status (4)

Country Link
EP (1) EP2485451B1 (zh)
CN (1) CN101697547B (zh)
BR (1) BR112012007031B1 (zh)
WO (1) WO2011038646A1 (zh)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101697547B (zh) * 2009-09-30 2012-09-26 中兴通讯股份有限公司 一种pw业务的二层转发方法及系统
CN101895480B (zh) * 2010-08-18 2012-11-28 杭州华三通信技术有限公司 一种报文的传输方法和设备
ES2559447T3 (es) * 2010-09-03 2016-02-12 Huawei Technologies Co., Ltd. Sistema y método para Servicio de Red de Área Local Privada Virtual para utilizar el denominado pseudo-circuito consciente del flujo
CN102025626B (zh) * 2010-12-09 2014-12-10 中兴通讯股份有限公司 转发组播数据报文的方法和提供商边缘设备
CN103532850B (zh) * 2013-09-29 2017-05-24 福建星网锐捷网络有限公司 一种上行报文转发方法、装置及接入点ap设备
CN104702477B (zh) * 2013-12-06 2019-04-05 中兴通讯股份有限公司 一种实现隧道保护的方法及装置、网络设备
CN105119824B (zh) * 2015-06-30 2018-11-16 华为技术有限公司 一种报文转发方法和装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1905509A (zh) * 2006-08-03 2007-01-31 华为技术有限公司 用户接入虚拟专用局域网服务的方法和系统
CN101355514A (zh) * 2008-09-03 2009-01-28 中兴通讯股份有限公司 一种带vlan标签的数据报文在二层vpn中的传输方法
CN101697547A (zh) * 2009-09-30 2010-04-21 中兴通讯股份有限公司 一种pw业务的二层转发方法及系统

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7417950B2 (en) * 2003-02-03 2008-08-26 Ciena Corporation Method and apparatus for performing data flow ingress/egress admission control in a provider network
US20060182113A1 (en) * 2005-02-17 2006-08-17 Lucent Technologies Inc. Automatic discovery of pseudo-wire peer addresses in ethernet-based networks
CN101001196A (zh) * 2007-01-25 2007-07-18 华为技术有限公司 一种建立伪线隧道并利用其传送报文的方法和装置
US7948874B2 (en) * 2007-05-24 2011-05-24 World Wide Packets, Inc. Transitioning a virtual interface from one tunnel to another tunnel
CN101521631B (zh) * 2009-04-14 2012-05-23 华为技术有限公司 Vpls网络报文处理方法、设备及系统

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1905509A (zh) * 2006-08-03 2007-01-31 华为技术有限公司 用户接入虚拟专用局域网服务的方法和系统
CN101355514A (zh) * 2008-09-03 2009-01-28 中兴通讯股份有限公司 一种带vlan标签的数据报文在二层vpn中的传输方法
CN101697547A (zh) * 2009-09-30 2010-04-21 中兴通讯股份有限公司 一种pw业务的二层转发方法及系统

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
XU MINGHAI ET AL: "VPLS Technology and its Applications", ZTE COMMUNICATIONS, vol. 14, no. 6, December 2008 (2008-12-01), pages 13 - 17, XP008160579 *

Also Published As

Publication number Publication date
BR112012007031A2 (pt) 2016-04-12
EP2485451B1 (en) 2018-04-18
BR112012007031B1 (pt) 2021-08-03
EP2485451A1 (en) 2012-08-08
CN101697547B (zh) 2012-09-26
EP2485451A4 (en) 2013-07-31
CN101697547A (zh) 2010-04-21

Similar Documents

Publication Publication Date Title
US7697528B2 (en) Multilink trunking for encapsulated traffic
US7782841B2 (en) Method and system for transporting data using pseudowire circuits over a bridged network
US7593398B2 (en) Layer-two interworking applied to L2-L3 pseudowires
US9166807B2 (en) Transmission of layer two (L2) multicast traffic over multi-protocol label switching networks
WO2011038646A1 (zh) 一种pw业务的二层转发方法及系统
JP5472664B2 (ja) ネットワーク通信方法およびネットワークノード装置
US7516224B2 (en) Pseudowire termination directly on a router
US20070280267A1 (en) Completely Dry Pseudowires
CN102170385A (zh) 一种以太树业务中以太网帧的发送方法和运营商边缘设备
WO2008092357A1 (fr) Procédé et dispositif pour établir un tunnel pseudocâblé et transmettre un message à l'aide de celui-ci
CN108040135B (zh) 一种vpws报文穿越三层ip网络的方法及装置
US20120147893A1 (en) E-Tree Interoperability Between MPLS Domain Devices and Ethernet Domain Devices
WO2009021371A1 (fr) Procédé et dispositif permettant de réaliser une émulation pseudo-filaire de bout en bout
WO2011160517A1 (zh) 一种多协议标签交换业务隧道切换的方法及系统
US10616097B2 (en) Local switching for flexible cross-connect VLAN-aware based service
WO2016206432A1 (zh) 一种时分复用数据的传输方法、装置及网络侧边缘设备
US10432515B1 (en) Reducing number of Ethernet segment MPLS labels for all-active multi-homing
CN106506315B (zh) 一种报文转发的透明配置方法
WO2021093463A1 (zh) 报文转发的方法、第一网络设备以及第一设备组
US20110242988A1 (en) System and method for providing pseudowire group labels in a network environment
JP5444474B2 (ja) 擬似ワイヤエミュレーションエッジトゥエッジアクセス装置及び方法
EP2587742A1 (en) Method for forwarding message and switch chip
US8848716B2 (en) Termination of a pseudowires on multiple line cards
US9860162B2 (en) Securing inter-autonomous system links
CN106961412B (zh) 一种报文转换方法、装置及系统

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

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2010819875

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE

REG Reference to national code

Ref country code: BR

Ref legal event code: B01A

Ref document number: 112012007031

Country of ref document: BR

ENP Entry into the national phase

Ref document number: 112012007031

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20120329