[go: up one dir, main page]

WO2007093095A1 - Procédé pour mettre en oeuvre l'acheminement de messages mpls et équipement correspondant - Google Patents

Procédé pour mettre en oeuvre l'acheminement de messages mpls et équipement correspondant Download PDF

Info

Publication number
WO2007093095A1
WO2007093095A1 PCT/CN2006/002450 CN2006002450W WO2007093095A1 WO 2007093095 A1 WO2007093095 A1 WO 2007093095A1 CN 2006002450 W CN2006002450 W CN 2006002450W WO 2007093095 A1 WO2007093095 A1 WO 2007093095A1
Authority
WO
WIPO (PCT)
Prior art keywords
mac address
mpls packet
mpls
private
packet
Prior art date
Application number
PCT/CN2006/002450
Other languages
English (en)
French (fr)
Inventor
Jian Wu
Yi Wang
Dapeng Zhang
Original Assignee
Huawei Technologies Co., Ltd.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co., Ltd. filed Critical Huawei Technologies Co., Ltd.
Priority to US11/791,596 priority Critical patent/US20090225755A1/en
Priority to CA2590613A priority patent/CA2590613C/en
Priority to DE602006017976T priority patent/DE602006017976D1/de
Priority to AT06791042T priority patent/ATE487306T1/de
Priority to EP06791042A priority patent/EP1858213B1/en
Priority to CNA2006800126747A priority patent/CN101160868A/zh
Publication of WO2007093095A1 publication Critical patent/WO2007093095A1/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/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/30Peripheral units, e.g. input or output ports
    • H04L49/3009Header conversion, routing tables or routing tags
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/35Switches specially adapted for specific applications
    • H04L49/351Switches specially adapted for specific applications for local area network [LAN], e.g. Ethernet switches
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/35Switches specially adapted for specific applications
    • H04L49/354Switches specially adapted for specific applications for supporting virtual local area networks [VLAN]

Definitions

  • the present invention relates to the field of network communication technologies, and in particular, to a method and apparatus for implementing multi-protocol label switching packet forwarding on an Ethernet switching device. Background technique
  • Ethernet technology With the development of Ethernet technology, the cost of Ethernet switching equipment has also dropped significantly. It is widely used in enterprise networks. Due to the performance, security and manageability of Ethernet, the scale and coverage of Ethernet are greatly increased.
  • Ethernet technology is increasingly becoming the most important and most common network solution.
  • MPLS Multi-Protocol Label Switching
  • ATM Asynchronous Transfer Mode
  • the MPLS technology is moved to the access network and the access bearer network, and is carried on the Layer 2 Ethernet network to provide a connection-oriented service channel, so as to provide an end-to-end system solution for users and services. .
  • the MPLS label switching path (LSP, Label Switch Path) is established in the access bearer network to implement data forwarding between the switching nodes through MPLS label switching.
  • LSP Label Switch Path
  • the Layer 2 MAC address in the Ethernet data packet header is encapsulated in the MPLS label.
  • the MAC address of the user packet is not perceived on the carrier device node of the access bearer network. This avoids learning a large number of carriers in the carrier network.
  • the user media access control layer (MAC, Media Access Control) address improves network stability, scalability, and security.
  • MPLS is currently widely used in routing switching equipment based on Layer 3 IP networks to provide users with end-to-end pseudowire emulation (PWE3, Pseudo Wire Emulation End to End), Layer 2 virtual private network (L2VPN) and MPLS traffic engineering.
  • PWE3, Pseudo Wire Emulation End to End Pseudo Wire Emulation End to End
  • L2VPN Layer 2 virtual private network
  • MPLS traffic engineering so the flexibility and scalability of the MPLS label is good, the natural security of the LSP exchange, the more the bearer in the packet switched network The more business hosting functions.
  • the MPLS technology is used in combination with the Ethernet switch hardware platform, when the switching network board is used as the Ethernet switching chip, only the Ethernet packets in the Ethernet switching network can be supported. For the packets such as ATM and MPLS, the packets cannot be directly provided. Support, therefore, when it is necessary to use a Layer 2 Ethernet switch chip as the internal switching hardware of the switching device, the existing technology cannot provide more value-
  • the main object of the present invention is to provide a method and device for implementing MPLS packet forwarding, so that MPLS packets can be forwarded on a common Ethernet switching device.
  • a method for implementing MPLS packet forwarding on an EtherSwitch device includes:
  • the mapping between the private MAC address and the public MAC address includes: mapping a port number, a private MAC address, and a public MAC address.
  • the private MAC address is a reserved MAC address.
  • the MPLS packet Before the public MAC address in the MPLS packet is replaced with the private MAC address, it is determined whether the MPLS packet needs to be exchanged for MPLS label, and if so, the corresponding MAC address is replaced; otherwise, The original Ethernet packet is forwarded normally.
  • the VLAN information is encapsulated in the MPLS packet after the corresponding MAC address replacement is performed;
  • the VLAN information is decapsulated in the MPLS packet.
  • an apparatus for implementing MPLS packet forwarding on an EtherSwitch device is also provided.
  • Set including:
  • the MPLS packet interface board is configured on the Ethernet switching device and provides a dedicated interface for forwarding MPLS packets.
  • the MAC address translation module is configured to convert the public MAC address in the MPLS packet entering the MPLS packet interface board and the private MAC address in the Ethernet switching device.
  • the MAC address translation module replaces the public MAC address in the MPLS packet with the private MAC address, and the EtherSwitch chip follows the private MAC address.
  • the MPLS packet is forwarded to the corresponding port.
  • the MAC address translation module replaces the private MAC address in the MPLS packet with the destination public MAC address for normal forwarding.
  • the MAC address translation module is embedded in the MPLS packet interface board.
  • the device further comprises:
  • An MPLS4 packet exchange confirmation module is configured to confirm whether the MPLS packet needs to be MPLS label exchanged
  • a VLAN encapsulation module configured to encapsulate VLAN information for MPLS packets
  • the VLAN decapsulation module is configured to decapsulate the VLAN information encapsulated by the MPLS packet.
  • the MPLS packet interface board has at least one service port, and each service port is configured with a MAC address.
  • the MAC address is a private MAC address.
  • the Ethernet switch chip is a Layer 2 Ethernet switch chip or a Layer 3 Ethernet switch.
  • the Ethernet switch chip is a Layer 2 Ethernet switch chip or a Layer 3 Ethernet switch.
  • the MPLS packet interface board assigns a private MAC address to the port number of the MPLS packet interface board, and establishes a correspondence between the private MAC address and the public MAC address.
  • the public MAC address in the packet is replaced with the private one according to the corresponding relationship.
  • FIG. 1 is a flow chart of a method in accordance with an embodiment of the present invention.
  • FIG. 2 is a schematic structural diagram of a system according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of an internal structure of an MPLS packet interface board according to an embodiment of the present invention
  • FIG. 4 is a flowchart of an MPLS packet input interface according to an embodiment of the present invention
  • FIG. 5 is a flowchart of an MPLS packet outgoing interface according to an embodiment of the present invention. detailed description
  • the present invention provides an apparatus and method for implementing MPLS packet forwarding on an EtherSwitch device.
  • the core of the present invention is to add an MPLS packet interface board to an EtherSwitch device, where the MPLS packet interface board has at least one service. Port, and each service port is assigned a MAC address.
  • the MAC address may be a private MAC address, and the address does not conflict with the public MAC address that is normally forwarded.
  • the MPLS packet interface board encapsulates the private MAC address of the packet.
  • the EtherSwitch chip in the EtherSwitch device forwards the packet to the port corresponding to the destination public MAC address according to the private MAC address, so as to implement MPLS packet forwarding on the EtherSwitch device.
  • the Ethernet switch chip is a Layer 2 Ethernet switch chip or a Layer 3 Ethernet switch chip.
  • the Ethernet switching chip inside the Ethernet switching device only recognizes the MAC address. Therefore, the MPLS packet cannot be exchanged for the MPLS packet.
  • the MPLS packet structure with Ethernet encapsulation is as follows:
  • the first step is to allocate a private MAC address to each port of the MPLS packet interface board, and then configure a MAC address configuration for the correspondence between the private MAC address and the public MAC address required for MAC address translation. table. For example, you can configure a MAC address mapping table whose entries are:
  • the port number of each MPLS packet interface board is assigned a private MAC address, and the public MAC address connected to the port is displayed in the entry.
  • the forwarding of MPLS packets is mainly performed by label switching.
  • the MPLS packets are searched into the label mapping table ILM to learn the egress label and the corresponding IP address and obtain the required public MAC address information.
  • For the forwarding of MPLS packets we can add a MAC address translation module to enable the MAC address option in the ILM entry to convert the private MAC address and the public MAC address as needed.
  • the MPLS packet interface board searches the MAC address mapping table according to the public MAC address of the packet, and obtains the port corresponding to the destination public MAC address, and the private MAC address corresponding to the port, and the MAC address translation.
  • the module converts the public MAC address of the packet into a required private MAC address, and then the packet enters the Ethernet switch chip for forwarding.
  • the MAC address translation module queries again.
  • MAC address mapping table converting private MAC addresses in ILM entries to public The MAC address is used to implement MPLS packet forwarding on the Ethernet switching device.
  • the configuration of the specific ILM entries can be as follows:
  • the present invention provides an apparatus for implementing MPLS packet forwarding on an Ethernet switching device, including an MPLS packet interface board, which is used for forwarding MPLS packets on the Ethernet switching device to provide a dedicated interface board, and the MPLS packet interface board is configured.
  • an MPLS packet interface board which is used for forwarding MPLS packets on the Ethernet switching device to provide a dedicated interface board, and the MPLS packet interface board is configured.
  • On the EtherSwitch there is at least one service port, and each service port is assigned a MAC address.
  • the MAC address does not conflict with the public MAC address that is normally forwarded.
  • a private MAC address can be used.
  • the MAC address translation module is configured to convert the public MAC address and the private MAC address in the Ethernet switching device.
  • the module can be embedded in the MPLS packet interface board.
  • the device for implementing MPLS packet forwarding includes a VLAN encapsulation module and a VLAN decapsulation module.
  • the VLAN encapsulation module and the VLAN decapsulation module can be configured in an MPLS packet interface board.
  • the VLAN encapsulation module encapsulates the virtual LAN VLAN information for the MPLS packets entering the MPLS packet interface board. This is because the Layer 2 switch chip is generally forwarded based on VLAN and MAC information, so VLAN information needs to be encapsulated.
  • the VLAN decapsulation module is required to decapsulate the encapsulated VLAN information.
  • the device for implementing MPLS packet forwarding provided by the present invention further includes MPLS.
  • the packet exchange confirmation module is configured to confirm whether the MPLS packet entering the MPLS packet interface board still needs to be MPLS exchanged. If yes, the MPLS packet can pass the MAC address translation module and the Ethernet switch chip. The Ethernet packet that is transferred on the EtherSwitch device is sent to the EtherSwitch chip for normal forwarding.
  • Step S01 Input the MPLS packet into the MPLS packet interface board.
  • the MPLS packet does not need to be specially set. Because the MPLS standard protocol specifies that the encapsulation protocol number in the Ethernet packet header is 8847, it indicates that this is an MPLS packet and needs to be handed over to the MPLS packet. The MPLS module handles it. In this way, when an MPLS packet enters the Ethernet switching device, it needs to enter the MPLS packet interface board. Step S02, whether the MPLS packet needs to be MPLS label exchange, if yes, proceed to step S03, otherwise proceed to step S06;
  • the MPLS packet that enters the MPLS packet interface board does not need to perform MPLS label switching in the subsequent forwarding process.
  • the MPLS packet exchange confirmation module is also provided for the MPLS packet entering the MPLS packet interface board according to the label processing mode, such as the Push, the Pop, the Swap, and the label stack bottom flag. Whether the document still needs to be MPLS exchange for confirmation.
  • Step S03 Replace the destination public MAC address of the packet with a private MAC address according to the MAC address mapping table.
  • the packet information may be encapsulated with VLAN information.
  • a private MAC address for example, a reserved address range in a MAC address, such as 8000 - XXXX - XXXX, can be used, such a private address is only used for Ethernet switching inside the device, and does not spread outside the device.
  • Step S04 The EtherSwitch chip transmits the MPLS packet to the port where the private MAC address is located according to the private MAC address.
  • Step S05 The MPLS function module corresponding to the private MAC address replaces the private MAC address in the received MPLS data packet with the destination public MAC address.
  • the VLAN is decapsulated. Then, the packet is forwarded according to the normal forwarding process.
  • Step S06 Send the MPLS packet from the outbound interface.
  • FIG. 4 is a flowchart of an MPLS packet incoming interface according to an embodiment of the present invention, and the specific process is as follows:
  • the MPLS packet will be ejected with an outer Ethernet header and an MPLS label, so that the original Ethernet packet is sent to the Ethernet chip for normal forwarding. .
  • the private MAC address is searched according to the MAC address mapping table, and the public MAC address in the MPLS packet is replaced by the private MAC address. And VLAN encapsulation as needed, and then exchanged by Ether The chip (L2 chip) is forwarded to the outbound interface of the MPLS packet interface board.
  • FIG. 5 is a flowchart of an MPLS packet outgoing interface according to an embodiment of the present invention, and the specific process is as follows:
  • the MPLS packet is encapsulated by the private MAC address according to the destination public MAC address of the packet before the MPLS packet enters the Ethernet switch chip, and then the Ethernet switch chip forwards the MPLS packet according to the encapsulated private MAC address.
  • the content of the packets in the MPLS encapsulation and MPLS encapsulation is transparent to the EtherSwitch chip. In this way, multiple access interfaces and services of the PWE3 can be supported through MPLS.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Debugging And Monitoring (AREA)
  • Communication Control (AREA)

Description

一种实现 MPLS报文转发的方法及装置
技术领域
本发明涉及网絡通信技术领域, 尤其涉及以太交换设备上实现多协 议标签交换报文转发的方法及装置。 背景技术
随着以太网技术的发展, 以太网交换设备成本也大幅度下降, 在企 业网中得到广泛应用, 由于以太网的性能、 安全性和可管理性的增强以 太网的规模和覆盖范围得以大幅度提高, 在运营商网络的接入网、 接入 承载网甚至骨干网中, 以太技术也日益成为最重要、 最普遍的网络解决 方案。 而在传统的骨干网中, 可采用多协议标签交换 ( MPLS, Multi-Protocol Label Switching ) , IP/MPLS技术也取代了异步转发模式 ( ATM, Asynchronous Transfer Mode )技术, 成为优选的解决方案。 在 这种形式下, MPLS技术下移到接入网、 接入承载网, 承载于二层以太 网络之上, 提供面向连接的业务通道, 以便为用户和业务提供端到端的 系统解决方案成为可能。
对于以以太网交换机构建的传统接入承载网,在当前的实现方案中, 需要学习到所有相关用户以太地址, 使得网絡的稳定性和可扩展性受到 一定限制。采用多协议标签交换 ( MPLS , Multi-Protocol Label Switching ) 技术后, 通过在接入承载网中建立标签交换路径 (LSP, Label Switch Path ) , 在各交换节点间通过 MPLS标签交换实现数据转发, 用户以太数 据报文头中的二层 MAC地址被封装在 MPLS标签内, 在接入承载网的运 营商设备节点上不感知用户报文的 MAC地址,也就避免了在运营商网絡 中学习大量的用户介质访问控制层(MAC, Media Access Control )地 址, 提高了网络的稳定性、 扩展性和安全性。
MPLS目前大量应用在基于三层 IP网络的路由交换设备中, 为用户 提供端到端伪线仿真(PWE3 , Pseudo Wire Emulation End to End ), 二层 虚拟专用网 ( L2VPN )和 MPLS流量工程等多种业务, 因此 MPLS标签 的灵活性和扩展性好, LSP交换天然的安全性, 在分组交换网中承担越 来越多的业务承载功能。 当 MPLS技术与以太交换机硬件平台结合使用 时, 交换机中使用交换网板为以太交换芯片时, 以太交换网中能够支持 的只有二层以太报文, 对于如 ATM、 MPLS等报文则无法提供直接的支 持, 因此, 当必须使用二层以太交换芯片作为交换设备的内部交换硬件 时, 现有的技术无法提供更多的增值业务。 发明内容
有鉴于此, 本发明的主要目的是提供一种实现 MPLS报文转发的方 法及装置, 使得 MPLS报文可以在通用的以太交换设备实现转发。
根据本发明提供的一种在以太交换设备上实现 MPLS报文转发的方 法, 包括:
为 MPLS报文接口板的端口号分配私有 MAC地址, 建立私有 MAC地 • 址和公有 MAC地址的对应关系;
根据所述对应关系得到 MPLS报文的目的公有 MAC地址所对应的私 有 MAC地址及端口号;
将 MPLS报文中的公有 MAC地址替换为所述私有 MAC地址; 按照所述私有 MAC地址将所述的 MPLS报文转发到相应端口; 将 MPLS报文中的私有 MAC地址替换为目的公有 MAC地址, 并进行 正常的转发。
所述建立私有 MAC地址和公有 MAC地址的对应关系具体包括: 配置端口号、 私有 MAC地址及公有 MAC地址的映射表。
所述私有 MAC地址为保留的 MAC地址。
更适宜地, 在将 MPLS报文中的公有 MAC地址被替换为所述私有 MAC地址之前,判断所述的 MPLS报文是否需进行 MPLS标签交换,若是, 则进行相应的 MAC地址替换; 否则将原始的以太报文进行正常转发。
更适宜地, 进行相应的 MAC地址替换之后, 在所述的 MPLS报文 封装 VLAN信息;
将 MPLS报文中的私有 MAC地址替换为公有 MAC地址后, 在所 述的 MPLS报文解封装 VLAN信息。
根据本发明还提供一种在以太交换设备上实现 MPLS报文转发的装 置, 包括:
MPLS报文接口板, 设置在以太交换设备上, 用于为 MPLS报文转发 提供专用的接口;
MAC地址转换模块,用于对进入 MPLS报文接口板的 MPLS报文中的 公有 MAC地址和以太交换设备中的私有 MAC地址进行转换;
当 MPLS报文通过 MPLS报文接口板进入以太交换设备后 ,所述 MAC 地址转换模块将 MPLS报文中的公有 MAC地址替换为所述私有 MAC地 址 , 以太交换芯片按照所述私有 MAC地址将所述的 MPLS报文转发到相 应端口; 所述 MAC地址转换模块将 MPLS报文中的私有 MAC地址替换为 目的公有 MAC地址, 以进行正常的转发。
所述的 MAC地址转换模块内嵌在 MPLS报文接口板中。
更适宜地, 该装置还包括:
MPLS4艮文交换确认模块, 用于对所述的 MPLS报文是否需进行 MPLS标签交换进行确认;
VLAN封装模块, 用于对 MPLS报文封装 VLAN信息;
VLAN解封装模块, 用于对所述 MPLS报文封装的 VLAN信息进行解 封装。
优选地, 所述的 MPLS报文接口板至少有一个业务端口, 且每个业 务端口配置有一个 MAC地址。
优选地, 所述的 MAC地址是私有 MAC地址。
优选地, 所述的以太交换芯片为二层以太交换芯片或三层以太交换 由上述本发明的技术方案可以看出, 通过在以太交换设备中配置
MPLS报文接口板, 为 MPLS报文接口板的端口号分配私有 MAC地址, 建 立私有 MAC 地址和公有 MAC地址的对应关系; 根据所述对应关系得到 报文中的公有 MAC地址替换为所述私有 MAC地址; 按照所述私有 MAC地 址将所述的 MPLS报文转发到相应端口,以在二层和三层以太交换芯片上 实现 MPLS报文的转发, 根据本发明, 在二层和三层以太交换芯片上可 支持基于 MPLS的 PWE3、 L2VPN和 MPLS流量工程等多种业务。 附图说明
图 1为根据本发明实施例的方法流程图;
图 2为本发明的实施例的系统构成示意图;
图 3为本发明的实施例的 MPLS报文接口板的内部构成示意图; 图 4为本发明的实施例的 MPLS报文入接口流程图;
图 5为本发明的实施例的 MPLS报文出接口的流程图。 具体实施方式
本发明提供了一种在以太交换设备上实现 MPLS报文转发的装置和 方法, 本发明的核心是在以太交换设备中增加 MPLS报文接口板, 所述 的 MPLS报文接口板至少有一个业务端口, 且为每个业务端口均分配一 个 MAC地址。 所述的 MAC地址可以为私有的 MAC地址, 该地址不与普 通正常转发的公有 MAC地址冲突, 当 MPLS报文进入以太交换设备时, MPLS报文接口板为所述报文封装私有 MAC地址, 以太交换设备中的以 太交换芯片根据私有 MAC地址将所述报文转发到目的公有 MAC地址所 对应的端口, 从而在以太交换设备上实现 MPLS报文的转发。 所述的以 太交换芯片为二层以太交换芯片或三层以太交换芯片。
为使本发明的目的、 技术方案和优点表达得更加清楚明白, 下面结 合附图及具体实施例对本发明再作进一步详细的说明。
当 MPLS报文需要通过以太交换设备进行转发时, 以太交换设备内 部的以太交换芯片只是识别 MAC地址, 所以无法对 MPLS报文实现在以 配来实现 MPLS报文的交换。
具有以太封装的 MPLS报文结构如下所示:
CRC
Load
Mpls Lable
Vlan-Tag(Optional) S-MAC
D-MAC 因此, 本发明在实现过程中, 首先需要为 MPLS报文接口板的各个 端口分配私有 MAC地址, 然后配置进行 MAC地址转换需要的私有 MAC 地址与公用 MAC地址的对应关系的 MAC地址配置表。 例如可以配置 MAC地址映射表, 其表项为:
Figure imgf000007_0001
则每个 MPLS报文接口板的端口号均分配有私有 MAC地址, 且该表 项中显示出和该端口所相连的公有 MAC地址。
MPLS报文进行转发主要是通过标签交换来完成的, MPLS报文通过 查找入标签映射表 ILM来获知出口标签和相应的 IP地址以及获得所需的 公有 MAC地址信息, 为了在以太交换设备上实现 MPLS报文的转发, 我 们可以增加 MAC地址转换模块,使得 ILM表项中的 MAC地址选项能够根 据需要进行私有 MAC地址和公有 MAC地址的转换, 具体来说, 当 MPLS 报文进入以太交换设备进行转发时, MPLS报文接口板根据所述报文的 目的公有 MAC地址查找 MAC地址映射表, 可以得到通往目的公有 MAC 地址所对应的端口, 以及该端口所对应的私有 MAC地址, MAC地址转换 模块将所述报文的公有 MAC地址转换为所需的私有 MAC地址,然后,所 述报文进入以太交换芯片中进行转发, 当所述报文到达目的端口时, 则 MAC地址转换模块再次查询 MAC地址映射表, 将 ILM表项中的私有 MAC地址转换为公有 MAC地址, 从而在以太交换设备上实现 MPLS报文 转发。 具体 ILM的表项的配置可如下所示: 入口标签
出口标签
下一跳 IP地址
MAC地址项
Figure imgf000008_0001
因此, 本发明提供一种以太交换设备上实现 MPLS报文转发的装 置, 包括 MPLS报文接口板, 用于 MPLS报文实现在以太交换设备上转发 提供专用的接口板, MPLS报文接口板设置在以太交换设备上, 且其至 少有一个业务端口, 且为每个业务端口均分配一个 MAC地址, 所述的 MAC地址不与普通正常转发的公有 MAC地址冲突, 比如可采用私有的 MAC地址。 MAC地址转换模块, 用于对公有 MAC地址和以太交换设备 中的私有 MAC地址进行转换, 该模块可以内嵌在 MPLS报文接口板中。
本发明提供的实现 MPLS报文转发的装置还包括 VLAN封装模块和 VLAN解封装模块, 如图 3所示, VLAN封装模块和 VLAN解封装模块可 设置在 MPLS报文接口板中。 VLAN封装模块, 用于对进入 MPLS报文接 口板的 MPLS报文封装虚拟局域网 VLAN信息;这是由于二层交换芯片一 般是基于 VLAN和 MAC信息进行转发的,所以需要封装 VLAN信息。 相应 地, 当所述的 MPLS报文出 MPLS报文接口板时, 需要提供 VLAN解封装 模块, 用于对封装的 VLAN信息进行解封装。 此外, 在具体实施例中, 某些进入 MPLS报文接口板的 MPLS报文在后续转发过程中并不需要进 行 MPLS报文的交换, 所以本发明提供的实现 MPLS报文转发的装置还包 括 MPLS报文交换确认模块, 用于对进入 MPLS报文接口板的 MPLS报文 是否仍需要进行 MPLS交换进行确认, 如果是, 则如前所述, MPLS报文 可通过 MAC地址转换模块和以太交换芯片实现在以太交换设备上的转 的以太报文送入以太交换芯片中进行正常的转发。
为了更清楚地理解本发明,下面本发明的实现流程来进行详细说明, 参照图 1、 图 4及图 5。
步骤 S01、 将 MPLS报文输入 MPLS报文接口板;
在本发明的实施例中, MPLS报文不需要特殊设置, 因为 MPLS标准 协议中已经规定, 当以太报文头中的封装协议号为 8847时, 就表示这是 一个 MPLS报文, 需要交给 MPLS模块来处理。 这样, 当 MPLS报文进入 以太交换设备时, 均需要进入 MPLS报文接口板; 步骤 S02、 所述的 MPLS报文是否需要进行 MPLS标签交换, 若是, 则进行步骤 S03, 否则进行步骤 S06;
在具体实施例中, 某些进入 MPLS报文接口板的 MPLS报文在后续转 发过程中并不需要进行 MPLS标签交换, 一般来说, 如果该 MPLS报文封 装了两层或以上的标签栈, 则根据标签处理方式如 Push、 Pop、 Swap以 及标签栈底标志决定是否还需要进行 MPLS标签交换 , 所以本发明还提 供了 MPLS报文交换确认模块, 用于对进入 MPLS报文接口板的 MPLS报 文是否仍需要进行 MPLS交换进行确认。
步骤 S03、 根据 MAC地址映射表, 将所述报文的目的公有 MAC地址 替换为私有 MAC地址;
具体的实施方式可参考前述, 此外, 如果由于二层转发的需要, 可 以对所述报文封装 VLAN信息。 关于私有 MAC地址的选择, 例如可以用 MAC地址中的保留地址范围, 如 8000 - XXXX - XXXX , 这类私有地址 只用于在设备内部进行以太交换, 不会扩散到设备外部。
步骤 S04、 以太交换芯片根据所述的私有 MAC地址,将所述的 MPLS 报文传送给私有 MAC地址所在的端口;
步骤 S05、 所述的私有 MAC地址对应的 MPLS功能模块将接收到的 MPLS数据报文中的私有 MAC地址替换为目的公有 MAC地址;
如果所述报文进入 MPLS报文接口板时封装 VLAN信息,则此时需要 对 VLAN进行解封装, 之后再对报文按照正常转发流程进行转发。
步骤 S06、 将 MPLS报文从出接口发送出去。 图 4所示为本发明实施例中的 MPLS报文入接口流程图, 具体过程如 下:
若判断所述的 MPLS报文不需进行 MPLS标签交换进行确认, 则所 述 MPLS报文将被弹出外层以太头及 MPLS标签, 从而将原始的以太报 文送入以太芯片中进行正常的转发。
若判断所述的 MPLS报文需进行 MPLS标签交换进行确认, 则根据 MAC地址映射表查找私有 MAC地址,用该私有 MAC地址替换所述 MPLS 报文中的公有 MAC地址。 并根据需要进行 VLAN封装, 再通过以太交换 芯片 (L2芯片)转发到 MPLS报文接口板出接口。
图 5所示为本发明实施例中的 MPLS报文出接口流程图, 具体过程如 下:
先进行 MPLS标签交换, 用所述公有 MAC地址替换私有 MAC地址; 并根据需要进行 VLAN解封装。 之后输出。
这样, 通过本发明, MPLS报文在进入以太交换芯片之前根据所述 报文的目的公有 MAC地址进行私有 MAC地址封装,然后以太交换芯片根 据所封装的私有 MAC地址进行 MPLS报文转发, 此时, MPLS封装及 MPLS封装内的报文内容对以太交换芯片透明, 这样, 就可以通过 MPLS 来支持 PWE3的多种接入接口和业务。
以上所述, 仅为本发明较佳的具体实施方式, 但本发明的保护范围 并不局限于此, 任何熟悉该技术的人在本发明所揭露的技术范围内, 可 轻易想到的变化或替换, 都应涵盖在本发明的保护范围之内。

Claims

权 利 要 求
1、一种在以太交换设备上实现 MPLS报文转发的方法,其特征在于, 包括:
为 MPLS报文接口板的端口号分配私有 MAC地址, 建立私有 MAC地 址和公有 MAC地址的对应关系;
根据所述对应关系得到 MPLS报文的目的公有 MAC地址所对应的私 有 MAC地址及端口号;
将 MPLS报文中的公有 MAC地址替换为所述私有 MAC地址; 按照所述私有 MAC地址将所述的 MPLS报文转发到相应端口; 将 MPLS报文中的私有 MAC地址替换为目的公有 MAC地址, 并进行 正常的转发。
2、 根据权利要求 1所述的方法, 其特征在于, 所述建立私有 MAC地 址和公有 MAC地址的对应关系具体包括:
配置端口号、 私有 MAC地址及公有 MAC地址的映射表。
3、 根据权利要求 1所述的方法, 其特征在于, 所迷私有 MAC地址为 保留的 MAC地址。
4、 根据权利要求 1所述的方法, 其特征在于, 在将 MPLS报文中的 公有 MAC地址被替换为所述私有 MAC地址之前, 判断所述的 MPLS报文 是否需进行 MPLS标签交换, 若是, 则进行相应的 MAC地址替换; 否则 将原始的以太报文进行正常转发。
5、 根据权利要求 1所述的方法, 其特征在于, 进行相应的 MAC地 址替换之后,在所述的 MPLS报文封装 VLAN信息; 将 MPLS报文中的 私有 MAC地址替换为公有 MAC地址后, 在所述的 MPLS报文解封装 VLAN信息。
6、 一种实现 MPLS报文转发的装置, 其特征在于, 包括:
MPLS报文接口板, 用于为 MPLS报文转发提供专用的接口;
MAC地址转换模块,用于对进入 MPLS报文接口板的 MPLS报文中的 公有 MAC地址和以太交换设备中的私有 MAC地址进行转换;
当 MPLS报文通过 MPLS报文接口板进入以太交换设备后,所述 MAC 地址转换模块将 MPLS报文中的公有 MAC地址替换为所述私有 MAC地 址, 以太交换芯片按照所述私有 MAC地址将所述的 MPLS报文转发到相 应端口; 所述 MAC地址转换模块将 MPLS报文中的私有 MAC地址替换为 目的公有 MAC地址, 以进行正常的转发。
7、 根据权利要求 6所述的装置, 其特征在于, 所述的 MAC地址转换 模块内嵌在 MPLS"¾文接口板中。
8、 根据权利要求 6或 7所述的装置, 其特征在于, 还包括 MPLS报文 交换确认模块, 用于对所述的 MPLS报文是否需进行 MPLS标签交换进行 确认。
9、 根据权利要求 6所述的装置, 其特征在于, 还包括 VLAN封装模 块, 用于对 MPLS艮文封装 VLAN信息;
VLAN解封装模块, 用于对所述 MPLS报文封装的 VLAN信息进行解 封装。
10、 根据权利要求 6所述的装置, 其特征在于, 所述的 MPLS报文接 口板至少有一个业务端口, 且每个业务端口配置有一个 MAC地址。
11、 根据权利要求 6所述的装置, 其特征在于, 所述的 MAC地址是 私有 MAC地址。
12、 根据权利要求 6所述的装置, 其特征在于, 所述的以太交换芯 片为二层以太交换芯片或三层以太交换芯片。
PCT/CN2006/002450 2006-02-17 2006-09-19 Procédé pour mettre en oeuvre l'acheminement de messages mpls et équipement correspondant WO2007093095A1 (fr)

Priority Applications (6)

Application Number Priority Date Filing Date Title
US11/791,596 US20090225755A1 (en) 2006-02-17 2006-09-19 Method And System For Forwarding An MPLS Packet
CA2590613A CA2590613C (en) 2006-02-17 2006-09-19 Method and system for forwarding an mpls packet
DE602006017976T DE602006017976D1 (de) 2006-02-17 2006-09-19 Verfahren zur implementierung einer mpls-nachrichten-weiterleitung und vorrichtung dafür
AT06791042T ATE487306T1 (de) 2006-02-17 2006-09-19 Verfahren zur implementierung einer mpls- nachrichten-weiterleitung und vorrichtung dafür
EP06791042A EP1858213B1 (en) 2006-02-17 2006-09-19 A method for implementing mpls message forwarding and an equipment thereof
CNA2006800126747A CN101160868A (zh) 2006-02-17 2006-09-19 一种实现mpls报文转发的方法及装置

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CNA2006100337631A CN1852254A (zh) 2006-02-17 2006-02-17 实现mpls报文转发的以太交换设备和方法
CN200610033763.1 2006-02-17

Publications (1)

Publication Number Publication Date
WO2007093095A1 true WO2007093095A1 (fr) 2007-08-23

Family

ID=37133723

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2006/002450 WO2007093095A1 (fr) 2006-02-17 2006-09-19 Procédé pour mettre en oeuvre l'acheminement de messages mpls et équipement correspondant

Country Status (8)

Country Link
US (1) US20090225755A1 (zh)
EP (1) EP1858213B1 (zh)
CN (2) CN1852254A (zh)
AT (1) ATE487306T1 (zh)
CA (1) CA2590613C (zh)
DE (1) DE602006017976D1 (zh)
ES (1) ES2353113T3 (zh)
WO (1) WO2007093095A1 (zh)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100927126B1 (ko) 2007-11-26 2009-11-18 한국전자통신연구원 패킷 전송 속도를 개선한 mpls 네트워크의 입구 노드및 출구 노드와, mpls 네트워크 시스템의 패킷 전송속도 개선 방법
JP5157685B2 (ja) 2008-07-02 2013-03-06 日本電気株式会社 通信システム、ネットワーク機器及びそれらに用いる通信復旧方法並びにそのプログラム
CN101616014B (zh) * 2009-07-30 2012-01-11 中兴通讯股份有限公司 一种实现跨虚拟专用局域网组播的方法
CN101662426B (zh) * 2009-09-30 2012-06-13 中兴通讯股份有限公司 一种t-mpls隧道保护处理的方法和系统
CN101714937B (zh) * 2009-11-16 2013-08-07 中兴通讯股份有限公司 一种端到端伪线仿真接入的装置和方法
CN101902397B (zh) * 2010-06-23 2015-06-10 中兴通讯股份有限公司 一种报文的转发方法及交换芯片
CN119402420A (zh) * 2024-12-31 2025-02-07 云合智网(上海)技术有限公司 实现网络分流设备业务板卡混插的方法、装置及设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6772219B1 (en) 1998-09-18 2004-08-03 Kabushiki Kaisha Toshiba Message relaying scheme based on switching in units of flows
US20040184408A1 (en) * 2003-03-22 2004-09-23 Sbc Properties, L.P. Ethernet architecture with data packet encapsulation
US20040258069A1 (en) * 2003-06-05 2004-12-23 Sbc, Inc. MAC learning using VC-LSP dedicated for broadcast and unknown frames
EP1583304A1 (en) 2004-03-31 2005-10-05 Alcatel Media gateway
CN1732652A (zh) * 2002-11-07 2006-02-08 Tpack有限公司 虚拟以太网mac交换

Family Cites Families (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6151324A (en) * 1996-06-03 2000-11-21 Cabletron Systems, Inc. Aggregation of mac data flows through pre-established path between ingress and egress switch to reduce number of number connections
JP3490286B2 (ja) * 1998-03-13 2004-01-26 株式会社東芝 ルータ装置及びフレーム転送方法
US6343083B1 (en) * 1998-04-09 2002-01-29 Alcatel Usa Sourcing, L.P. Method and apparatus for supporting a connectionless communication protocol over an ATM network
US6735190B1 (en) * 1998-10-21 2004-05-11 Lucent Technologies Inc. Packet transport method device utilizing header removal fields
US6611532B1 (en) * 1999-12-07 2003-08-26 Telefonaktielbolaget Lm Ericsson (Publ) Methods and apparatus for integrating signaling system number 7 networks with networks using multi-protocol label switching
JP2002271373A (ja) * 2001-03-07 2002-09-20 Hitachi Ltd Mplsポリシールーティング機能を有するインタネットワーク装置
US20040153574A1 (en) * 2002-05-13 2004-08-05 Sandia National Laboratories Method and apparatus for specifying communication indication matching and/or responses
US7180899B2 (en) * 2002-10-29 2007-02-20 Cisco Technology, Inc. Multi-tiered Virtual Local area Network (VLAN) domain mapping mechanism
US7620040B2 (en) * 2002-12-11 2009-11-17 Aspen Networks, Inc. Application non disruptive task migration in a network edge switch
US7386010B2 (en) * 2003-06-13 2008-06-10 Corrigent Systems Ltd Multiprotocol media conversion
US7301949B2 (en) * 2003-07-15 2007-11-27 Telefonaktiebolaget Lm Ericsson (Publ) Arrangements for connection-oriented transport in a packet switched communications network
US20050013307A1 (en) * 2003-07-17 2005-01-20 Sharp Laboratories Of America, Inc. Method for bridging traffic on a PLC LAN segment
US7496688B2 (en) * 2004-01-30 2009-02-24 Ixia Label switched data unit content evaluation
JP4376094B2 (ja) * 2004-03-04 2009-12-02 富士通株式会社 無線通信装置
KR100636273B1 (ko) * 2005-01-11 2006-10-19 삼성전자주식회사 이더넷을 통한 mpls 멀티캐스트 패킷 전송 장치 및 방법
US7660253B2 (en) * 2005-02-14 2010-02-09 Telefonaktiebolaget L M Ericsson (Publ) Method and nodes for aggregating data traffic through unicast messages over an access domain using service bindings
US7974202B2 (en) * 2005-05-06 2011-07-05 Corrigent Systems, Ltd. Tunnel provisioning with link aggregation
US8169924B2 (en) * 2005-08-01 2012-05-01 Cisco Technology, Inc. Optimal bridging over MPLS/IP through alignment of multicast and unicast paths
US7978602B2 (en) * 2005-11-14 2011-07-12 Juniper Networks, Inc. Dynamic construction of label switching protocol interfaces

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6772219B1 (en) 1998-09-18 2004-08-03 Kabushiki Kaisha Toshiba Message relaying scheme based on switching in units of flows
CN1732652A (zh) * 2002-11-07 2006-02-08 Tpack有限公司 虚拟以太网mac交换
US20040184408A1 (en) * 2003-03-22 2004-09-23 Sbc Properties, L.P. Ethernet architecture with data packet encapsulation
US20040258069A1 (en) * 2003-06-05 2004-12-23 Sbc, Inc. MAC learning using VC-LSP dedicated for broadcast and unknown frames
EP1583304A1 (en) 2004-03-31 2005-10-05 Alcatel Media gateway

Also Published As

Publication number Publication date
EP1858213B1 (en) 2010-11-03
CA2590613A1 (en) 2007-08-17
CN101160868A (zh) 2008-04-09
CA2590613C (en) 2011-06-14
DE602006017976D1 (de) 2010-12-16
ATE487306T1 (de) 2010-11-15
US20090225755A1 (en) 2009-09-10
EP1858213A4 (en) 2008-10-15
EP1858213A1 (en) 2007-11-21
CN1852254A (zh) 2006-10-25
ES2353113T3 (es) 2011-02-25

Similar Documents

Publication Publication Date Title
US9166807B2 (en) Transmission of layer two (L2) multicast traffic over multi-protocol label switching networks
US7430210B2 (en) Application of an Ethernet/MPLS “half bridge” to provide emulated Ethernet LAN functions in SONET networks
US20050129059A1 (en) Method of implementing PSEUDO wire emulation edge-to-edge protocol
US7899061B2 (en) Access device and service transmission method
JP2000286853A (ja) パケットをルーティングする方法および装置
CN100555999C (zh) 一种实现边缘到边缘伪线仿真的方法和装置
JP2005086820A (ja) チャネライズイーサネットオーバーソネット(EoS)インターフェースを用いる仮想プライベートネットワーク(VPN)、エッジルータ及び方法
WO2008019614A1 (fr) Procédé et système pour le transfert de données entre plusieurs réseaux ethernet de fournisseurs
JP2005341591A (ja) 仮想プライベートネットワーク、マルチサービスプロビジョニングプラットフォーム及び方法
WO2009021458A1 (en) Method, apparatus and system for connecting layer2 network and layer3 network
WO2007147340A1 (fr) Procédé, système et dispositif de la technique ethernet d'échange et de transfert
WO2011113340A1 (zh) 一种多协议标签交换二层虚拟专用网的接入方法和装置
WO2007012286A1 (fr) Procede de transmission de donnees par paquets et dispositif de commutation lan base sur vlan
WO2007093095A1 (fr) Procédé pour mettre en oeuvre l'acheminement de messages mpls et équipement correspondant
WO2008011818A1 (fr) Procédé de fourniture d'un service réseau local privé virtuel à hiérarchie et système réseau
WO2007134501A1 (fr) Procédé d'interconnexion avec des ponts de fournisseurs de réseau fédérateur et système correspondant
WO2007076679A1 (fr) Procede et dispositif pour la qualite de gestion de service basee sur un ensemble de reseaux locaux virtuels
JP5242702B2 (ja) Ipインターワーキングvllを介する回線エミュレーション
JP2002247089A (ja) パケットルーティング方法および装置
US20100254396A1 (en) Method of connecting vlan systems to other networks via a router
WO2007031006A1 (fr) Procede de commutation virtuelle qui peut etre acheminee
US7031307B2 (en) Packet routing apparatus having label switching function
WO2007104201A1 (fr) Procédé d'acheminement de messages dans un tunnel de services
JP4166609B2 (ja) 通信装置
WO2011079617A1 (zh) 一种ipv6中服务质量的控制方法及系统

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 11791596

Country of ref document: US

WWE Wipo information: entry into national phase

Ref document number: 2590613

Country of ref document: CA

WWE Wipo information: entry into national phase

Ref document number: 2006791042

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 200680012674.7

Country of ref document: CN

121 Ep: the epo has been informed by wipo that ep was designated in this application
WWP Wipo information: published in national office

Ref document number: 2006791042

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE