WO2012149846A1 - 发送报文的方法、转发报文的方法及装置 - Google Patents

发送报文的方法、转发报文的方法及装置 Download PDF

Info

Publication number
WO2012149846A1
WO2012149846A1 PCT/CN2012/073088 CN2012073088W WO2012149846A1 WO 2012149846 A1 WO2012149846 A1 WO 2012149846A1 CN 2012073088 W CN2012073088 W CN 2012073088W WO 2012149846 A1 WO2012149846 A1 WO 2012149846A1
Authority
WO
WIPO (PCT)
Prior art keywords
packet
label
forwarding path
path information
forwarding
Prior art date
Application number
PCT/CN2012/073088
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 华为技术有限公司
Publication of WO2012149846A1 publication Critical patent/WO2012149846A1/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]

Definitions

  • the present invention relates to a communication technology, and in particular, to a method for transmitting a message, a method and a device for forwarding a message.
  • Pseudo wire refers to simulating a native service on a Packet Switched Network (PSN).
  • PSN Packet Switched Network
  • This native service can be an asynchronous transfer mode.
  • Asynchronous Transfer Mode ATM
  • Frame Relay Ethernet
  • Low-Speed Time Division Multiplexing or Synchronous Optical Network (SONET)
  • SONET Synchronous Optical Network
  • PSN can be Multiprotocol Label Switching (MPLS), Internet Protocol.
  • MPLS Multiprotocol Label Switching
  • IP Internet Protocol
  • L2TP Layer 2 Tunneling Protocol
  • the pseudowire out node When the pseudowire out node forwards the packet, it searches the incoming label map (IMM) according to the PW label allocated by the PW ingress node to determine the forwarding path of the packet.
  • IMM incoming label map
  • the PW egress node When the PW egress node forwards the packet containing the specific PW label, it needs to find the ILM to determine the forwarding path. If the ILM is incorrect, the forwarding error may be caused.
  • the embodiment of the invention provides a method for transmitting a message, a method and a device for forwarding a message, and can solve the problem that the forwarding path is incorrect due to an error of the ILM of the PW out node.
  • an embodiment of the present invention provides a method for sending a message, including:
  • the ingress node of the first PW receives the first packet
  • the ingress node of the first PW encapsulates the first packet into the second packet, and the MPLS label of the second packet carries the forwarding path information of the first PW in the first packet.
  • the ingress node of the first PW sends the second packet by using the first PW.
  • an embodiment of the present invention provides a method for forwarding a packet, including:
  • the egress node of the first PW receives the second packet
  • the MPLS label of the second packet carries the forwarding path information of the first PW in the first packet
  • the first packet is forwarded according to the forwarding path information.
  • the embodiment of the present invention provides a method for forwarding a message, including:
  • the ingress node of the first PW receives the first packet
  • the ingress node of the first PW encapsulates the first packet into a second packet
  • the ingress node of the first PW sends the second packet to the egress node of the first PW;
  • the egress node decapsulates the second packet into the first packet.
  • the egress node forwards the first packet according to the forwarding path information.
  • an embodiment of the present invention provides an apparatus for sending a message, including:
  • the ingress node of the first PW is configured to receive the first packet
  • the encapsulating unit, the ingress node of the first PW is configured to encapsulate the first packet into the second packet, and the MPLS label of the second packet carries the forwarding path information of the first PW in the first packet;
  • the sending unit, the ingress node of the first PW is configured to send the second packet by using the first PW.
  • an embodiment of the present invention provides an apparatus for forwarding a message, including:
  • a receiving unit where the egress node of the first PW is configured to receive the second packet
  • a decapsulating unit configured to decapsulate the second packet into the first packet
  • the first forwarding unit is configured to: when the MPLS label of the second packet carries the forwarding path information of the first PW, the first packet is forwarded according to the forwarding path information.
  • the method for sending a message and the method and device for forwarding a message provided by the embodiment of the present invention can solve the problem that the ILM of the PW out node has an error and the forwarding path is incorrect.
  • DRAWINGS The drawings used in the embodiments or the description of the prior art are described in a single manner. It is obvious that the drawings in the following description are some embodiments of the present invention, and those of ordinary skill in the art do not pay Other drawings can also be obtained from these drawings on the premise of creative labor.
  • FIG. 1 is a flowchart of a method for sending a message according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a reserved label according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of another reserved label according to an embodiment of the present invention.
  • FIG. 4 is a flowchart of a method for forwarding a message according to an embodiment of the present invention.
  • FIG. 5 is a flowchart of another method for forwarding a message according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a method for transmitting a message according to an embodiment of the present invention
  • FIG. 7 is a schematic diagram of an apparatus for sending a message according to an embodiment of the present invention
  • FIG. 8 is a schematic diagram of an apparatus for forwarding a message according to an embodiment of the present invention.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • FIG. 1 is a flowchart of a method for transmitting a message according to an embodiment of the present invention; the method includes:
  • the ingress node of the first PW receives the first packet.
  • the ingress node of the first PW is an edge node of a Layer 2 virtual private network (L2VPN), and the ingress node of the first PW receives the L2VPN.
  • L2VPN Layer 2 virtual private network
  • the inbound node of the first PW is the egress node of the second PW, and the ingress node of the first PW receives the packet provided by the second PW.
  • the ingress node of the first PW encapsulates the first packet into the second packet, and the MPLS label of the second packet carries the forwarding path information of the first PW in the first packet.
  • the implementation may be implemented in various manners, and the present invention does not specifically limit the present invention.
  • the first packet received by the ingress node of the first PW is a packet from the second PW, and the ingress node of the first PW replaces (swap) the PW label corresponding to the second PW in the first packet into the first packet.
  • the PW label corresponding to the PW; or the first packet received by the ingress node of the first PW is a packet from the L2VPN, and the ingress node of the first PW adds (pushes) the PW label corresponding to the first PW to the first packet. .
  • the forwarding path information of the first PW is implemented in a specific manner, and may be implemented in multiple manners, which is not specifically limited by the present invention.
  • the MPLS protocol (such as RFC3031 or RFC3032) can be modified to add a field (field) to the MPLS label to carry the forwarding path information of the PW.
  • the inbound node of the first PW encapsulates the first packet into the second packet
  • the inbound path information of the first packet is encapsulated into the MPLS label of the second packet.
  • the control plane of the first PW egress node generates a forward information base (FIB) according to the added field.
  • FIB forward information base
  • the first PW egress node can forward the first packet to the link indicated by the forwarding path information according to the forwarding path information of the first PW in the MPLS label of the second packet.
  • the reserved label in the MPLS label can be used to carry the forwarding path information of the first PW in the first packet.
  • the ingress node of the first PW sends the second packet by using the first PW.
  • the ingress node of the first PW sends the second packet to the egress node of the first PW.
  • the egress node of the first PW may forward the first packet to the link indicated by the forwarding path information.
  • the egress node of the first PW may send the first packet to the link indicated by the ILM by querying the ILM.
  • the method for sending a packet provided by the embodiment of the present invention can solve the problem that the forwarding path of the PW out node has an error caused by an error in the forwarding path.
  • the forwarding path information is carried in the reserved label in the MPLS label.
  • the reserved label is located between the public network tunnel label and the PW label, or behind the PW label.
  • FIG. 2 is a schematic diagram of a reserved label according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of another reserved label provided by an embodiment of the present invention
  • FIG. 2 provides a reserved label located on a traffic engineering ( ⁇ ) label (public network) A specific implementation between a type of tunnel label and a PW label
  • Figure 3 provides a specific implementation of the reserved label behind the PW label.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • FIG. 4 is a flowchart of a method for forwarding a text according to an embodiment of the present invention; the method includes:
  • the outbound node of the first PW receives the second packet.
  • the egress node of the first PW receives the second packet from the first PW ingress node. That is, the ingress node of the first PW sends the second packet to the egress node of the first PW through the first PW.
  • the first packet received by the ingress node of the first PW is the packet from the second PW, and the ingress node of the first PW replaces the PW label corresponding to the second PW in the first packet with the first PW.
  • the PW label is obtained by the PW label, or the first packet received by the ingress node of the first PW is a packet from the L2VPN, and the ingress node of the first PW adds the PW label corresponding to the first PW to the first packet. , get the second message.
  • the PW label corresponding to the first PW included in the second packet is popped (Pop).
  • the MPLS label of the second packet carries the forwarding path information of the first PW in the first packet
  • the first packet is forwarded according to the forwarding path information
  • multiple implementation manners may be implemented, and the present invention does not specifically limited.
  • the MPLS protocol (which needs to describe the version number and publication time of the current MPLS protocol) can be modified, and a field (field) is added to the MPLS label to carry the forwarding path information of the PW.
  • the ingress node of the first PW encapsulates the first packet into the second packet
  • the inbound path information of the first packet is encapsulated into the MPLS label of the second packet.
  • the control plane of the first PW out node generates an FIB according to the added field.
  • the first PW egress node can forward the first packet to the link indicated by the forwarding path information according to the forwarding path information of the first PW in the MPLS label of the second packet.
  • the reserved label in the MPLS label can be used to carry the forwarding path information of the first PW in the first packet.
  • the MPLS label carries the forwarding path information of the first PW in the first packet.
  • the message, the egress node of the first PW may forward the first packet to the link indicated by the forwarding path information.
  • the egress node of the first PW may send the first packet to the link indicated by the ILM by querying the ILM.
  • the method for forwarding a packet provided by the embodiment of the present invention can solve the problem that the forwarding path of the PW out node has an error caused by an error in the forwarding path.
  • the forwarding path information is carried in the reserved label in the MPLS label.
  • the reserved label is located between the public network tunnel label and the PW label, or behind the PW label.
  • FIG. 2 is a schematic diagram of a specific implementation manner in which a reserved label is located between a TE label (a type of a public network tunnel label) and a PW label.
  • FIG. 3 is a schematic diagram of a specific implementation manner in which a reserved label is located behind a PW label.
  • the MPLS label does not carry the forwarding path information of the first PW in the first packet
  • the first packet is forwarded according to the ILM.
  • Embodiment 3 is a diagrammatic representation of Embodiment 3
  • FIG. 5 is a flowchart of another method for forwarding a message according to an embodiment of the present invention, where the method includes:
  • the ingress node of the first PW receives the first packet.
  • the ingress node of the first PW encapsulates the first packet into the second packet.
  • the ingress node of the first PW When the ingress node of the first PW encapsulates the first packet into a second packet, it can be implemented. 503: The ingress node of the first PW sends the second packet to the egress node of the first PW.
  • the egress node decapsulates the second packet into the first packet.
  • the egress node forwards the first packet according to the forwarding path information.
  • the MPLS label of the second packet carries the forwarding path information of the first PW in the first packet
  • the egress node forwards the first packet according to the forwarding path information
  • multiple implementation manners may be implemented, and the present invention does not. Specific limitations. For details, see 403 of Implementation 2.
  • FIG. 6 is a schematic diagram of a method for forwarding a packet according to the third embodiment applied to a scenario. See Figure 6:
  • the packets sent by the provider edge (PE) reach the primary base station controller site gateway (RSG) through the primary PW.
  • the primary RSG forwards the message to the radio network controller (RNC) through the first L2VPN; on the other hand, the primary PW ⁇ !
  • the squad is forwarded to the standby RSG through the Inter-Chassis Backup PW (ICB PW), and the standby RSG forwards the essay to the RNC through the second L2VPN.
  • IB PW Inter-Chassis Backup PW
  • the RNC sends the packet to the primary RSG through the first L2VPN in the downlink direction.
  • the primary RSG forwards the packet to the standby RSG through the ICB PW.
  • the standby RSG passes the standby PW (which has been upgraded to the primary PW).
  • the packet is forwarded to the PE.
  • the primary RSG forwards the received packet to the standby RSG through the ICB PW, and the standby RSG needs to forward the packet to the second L2VPN.
  • the primary RSG passes the ICB PW.
  • the standby RSG needs to forward the packet to the standby PW.
  • the standby RSG Before and after the failure of the primary PW, the standby RSG needs to forward the received packets from the second L2VPN to the standby PW.
  • the ILM needs to be updated. Since it takes a certain amount of time to update the ILM, this will have an impact on the switching speed.
  • the method for forwarding a message provided in Embodiment 3 can solve the above problem.
  • the specific solution can be:
  • the primary RSG receives the packet from the primary PW.
  • the primary PW sends the packet from the primary PW to the forwarding path information of the ICB PW. That is, the MPLS label (which may be a reserved label in the MPLS label) encapsulated in the new packet is forwarded to the second L2VPN.
  • the control plane of the first PW out node generates the FIB according to the forwarding path information.
  • the egress node of the ICB PW after the egress node of the ICB PW detects that the new packet carries the forwarding path information, it can forward the packet provided by the primary PW to the link indicated by the forwarding path information (ie, the second L2VPN) according to the forwarding path information.
  • the forwarding path information ie, the second L2VPN
  • the primary RSG receives the packets from the first L2VPN and encapsulates the packets provided by the first L2VPN.
  • the forwarding path information is not encapsulated.
  • the egress node of the ICB PW does not detect the forwarding path information after receiving the encapsulation packet of the ingress node, and the egress node of the ICB PW queries the ILM according to the ICB PW label corresponding to the ICB PW included in the encapsulated packet.
  • the decapsulated packet (the packet provided by the first L2VPN) is sent to the standby PW.
  • the PW has been upgraded to the primary PW because the primary PW is faulty.
  • the standby RSG does not need to update the forwarding table when forwarding the received packet to the second L2VPN and forwarding it to the standby PW. Therefore, the user does not perceive that the primary PW has failed.
  • the egress node of the first PW may forward the first packet to the link indicated by the forwarding path information.
  • the egress node of the first PW may send the first packet to the link indicated by the ILM by querying the ILM.
  • the method for forwarding a packet provided by the embodiment of the present invention can solve the problem that the ILM of the PW out node has an error and the forwarding path is incorrect. Further, when the MPLS label of the second packet does not carry the forwarding path information of the first PW in the first packet, the egress node forwards the first packet according to the ILM.
  • Embodiment 4 is a diagrammatic representation of Embodiment 4:
  • FIG. 7 is a schematic diagram of an apparatus for sending a message according to an embodiment of the present invention.
  • the receiving unit 701 the ingress node of the first PW is configured to receive the first packet;
  • the encapsulating unit 702 the ingress node of the first PW is configured to encapsulate the first packet into the second packet, and the MPLS label of the second packet carries the forwarding path information of the first PW in the first packet.
  • the implementation may be implemented in various manners, and the present invention does not specifically limit the present invention.
  • the forwarding path information of the first PW is implemented in a specific manner, and may be implemented in multiple manners, which is not specifically limited by the present invention. See 102 in the first example for details.
  • the sending unit 703 the ingress node of the first PW is configured to send the second “3 ⁇ 4” by the first PW.
  • the ingress node of the first PW sends the second packet to the egress node of the first PW.
  • the egress node of the first PW may forward the first packet to the link indicated by the forwarding path information.
  • the egress node of the first PW may send the first packet to the link indicated by the ILM by querying the ILM.
  • the method for sending a packet provided by the embodiment of the present invention can solve the problem that the forwarding path of the PW out node has an error caused by an error in the forwarding path.
  • Embodiment 5 The embodiment of the invention provides a device for forwarding a message, which can solve the problem that the ILM of the PW out node has an error and the forwarding path is incorrect.
  • FIG. 8 is a schematic diagram of an apparatus for forwarding a message according to an embodiment of the present invention.
  • the receiving unit 801 the egress node of the first PW is configured to receive the second packet;
  • the egress node of the first PW receives the second packet from the first PW ingress node. That is, the ingress node of the first PW sends the second packet to the egress node of the first PW through the first PW.
  • Decapsulating unit 802 configured to decapsulate the second packet into the first packet
  • the PW label corresponding to the first PW included in the second packet is popped.
  • the first forwarding unit 803 is configured to: when the MPLS label of the second packet carries the forwarding path information of the first PW in the first packet, forward the first packet according to the forwarding path information.
  • the MPLS label of the second packet carries the forwarding path information of the first PW in the first packet
  • the first packet is forwarded according to the forwarding path information
  • multiple implementation manners may be implemented, and the present invention does not specifically limited.
  • the egress node of the first PW may forward the first packet to the link indicated by the forwarding path information.
  • the egress node of the first PW may send the first packet to the link indicated by the ILM by querying the ILM.
  • the method for forwarding a packet provided by the embodiment of the present invention can solve the problem that the forwarding path of the PW out node has an error caused by an error in the forwarding path.
  • the second forwarding unit is configured to forward the first packet according to the ILM when the MPLS label does not carry the forwarding path information of the first PW in the first packet.
  • the foregoing method embodiments may be implemented by hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, and when executed, the program includes The foregoing steps of the method embodiment; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

Landscapes

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

Description

发送报文的方法、 转发报文的方法及装置 技术领域 本发明实施例涉及通信技术, 尤其涉及发送报文的方法、 转发报文的 方法及装置。
背景技术 伪线( pseudo wire, PW )是指在分组交换网络( Packet Switched Network, PSN ) 上模拟一个原生业务。 这个原生业务可以是异步传输模式
( Asynchronous Transfer Mode, ATM ) 、 帧中继、 以太网、 低速时分复用、 或者同步光网络(Synchronous Optical Network, SONET ) , 而 PSN可以是 多协议标签交换 (Multiprotocol Label Switching , MPLS ) 、 因特网协议
( Internet Protocol , IP )、 或者二层1¾道十办议 ( Layer 2 Tunneling Protocol , L2TP ) 。
伪线出节点对报文进行转发时, 将根据 PW入节点分配的 PW标签, 查找入标签映射表(incoming label map, ILM ) , 以确定报文的转发路径。 特定的 PW标签对应特定的转发路径, 并且该转发路径是唯一的转发路径。
发明人发现现有技术存在以下技术问题:
PW出节点对包含特定 PW标签的报文进行转发时, 需要查找 ILM确 定转发路径, ILM存在错误可能导致转发错误。
发明内容
本发明实施例提供发送报文的方法、 转发报文的方法及装置, 可以解 决 PW出节点的 ILM存在错误导致转发路径错误的问题。
一方面, 本发明实施例提供一种发送 文的方法, 包括:
第一 PW的入节点接收第一报文;
第一 PW的入节点将第一报文封装为第二报文, 第二报文的 MPLS标 签中携带第一报文出第一 PW的转发路径信息; 第一 PW的入节点通过第一 PW发送第二报文。
另一方面, 本发明实施例提供一种转发报文的方法, 包括:
第一 PW的出节点接收第二报文;
将第二报文解封装为第一报文;
当第二报文的 MPLS标签中携带第一报文出第一 PW的转发路径信息 时, 根据转发路径信息转发第一报文。
又一方面, 本发明实施例提供一种转发报文的方法, 包括:
第一 PW的入节点接收第一报文;
第一 PW的入节点将第一报文封装为第二报文;
第一 PW的入节点将第二报文发送至第一 PW的出节点;
出节点将第二报文解封装为第一报文;
当第二报文的 MPLS标签中携带第一报文出第一 PW的转发路径信息 时, 出节点根据转发路径信息转发第一报文。
又一方面, 本发明实施例提供一种发送报文的装置, 包括:
接收单元, 第一 PW的入节点用于接收第一报文;
封装单元, 第一 PW的入节点用于将第一报文封装为第二报文, 第二 报文的 MPLS标签中携带第一报文出第一 PW的转发路径信息;
发送单元, 第一 PW的入节点用于通过第一 PW发送第二报文。
再一方面, 本发明实施例提供一种转发报文的装置, 包括:
接收单元, 第一 PW的出节点用于接收第二报文;
解封装单元, 用于将第二报文解封装为第一报文;
第一转发单元, 用于当第二报文的 MPLS标签中携带第一报文出第一 PW的转发路径信息时, 根据转发路径信息转发第一报文。
可见, 通过本发明实施例提供的发送报文的方法、 转发报文的方法及 装置, 可以解决 PW出节点的 ILM存在错误导致转发路径错误的问题。 附图说明 实施例或现有技术描述中所需要使用的附图作一筒单地介绍, 显而易见地, 下面描述中的附图是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。
图 1是本发明实施例提供的一种发送报文的方法流程图;
图 2是本发明实施例提供的一种保留标签示意图;
图 3是本发明实施例提供的另一种保留标签示意图;
图 4是本发明实施例提供的一种转发报文的方法流程图;
图 5是本发明实施例提供的另一种转发报文的方法流程图;
图 6是本发明实施例提供的转发报文的方法应用于一种场景示意图; 图 7是本发明实施例提供的一种发送报文的装置示意图;
图 8是本发明实施例提供的一种转发报文的装置示意图。
具体实施方式 为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本 发明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描 述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作出创造性劳动前提 下所获得的所有其他实施例, 都属于本发明保护的范围。
实施例一:
本发明实施例提供了一种发送报文的方法,可以解决 PW出节点的 ILM 存在错误导致转发路径错误的问题。 参见图 1 , 图 1是本发明实施例提供的 一种发送^¾文的方法流程图; 该方法包括:
101: 第一 PW的入节点接收第一报文;
第一 PW 的入节点第一报文具体实现时, 可以有多种实现方式, 本发 明不做具体的限定。 例如, 第一 PW的入节点为二层虚拟专用网 (Layer 2 virtual private network, L2VPN )的边缘节点,第一 PW的入节点收到 L2VPN 提供的报文; 或者第一 PW的入节点为第二 PW的出节点, 第一 PW的入 节点收到第二 PW提供的报文。
102:第一 PW的入节点将第一报文封装为第二报文,第二报文的 MPLS 标签中携带第一报文出第一 PW的转发路径信息;
第一 PW 的入节点将第一报文封装为第二报文具体实现时, 可以有多 种实现方式, 本发明不做具体的限定。 例如, 第一 PW的入节点收到的第 一报文为来自第二 PW的报文,第一 PW的入节点将第一报文中的第二 PW 对应的 PW标签替换 ( swap ) 为第一 PW对应的 PW标签; 或者第一 PW 的入节点收到的第一报文为来自 L2VPN的报文, 第一 PW的入节点向第一 报文添加 ( push ) 第一 PW对应的 PW标签。
第二报文的 MPLS标签中携带第一报文出第一 PW的转发路径信息具 体实现时, 可以有多种实现方式, 本发明不做具体的限定。 例如, 可以对 MPLS协议(例如 RFC3031或者 RFC3032 )进行修订, 在 MPLS标签中增 加一个字段(field ) , 用于承载出 PW的转发路径信息。 第一 PW的入节点 将第一报文封装为第二报文时, 将第一报文出第一 PW的转发路径信息一 并封装到第二报文的 MPLS标签。 第一 PW出节点的控制平面根据增加的 字段生成转发信息库(forward information base, FIB )。 这样, 第一 PW出 节点可以根据第二报文的 MPLS标签中携带第一报文出第一 PW的转发路 径信息, 将第一报文转发至转发路径信息所指示的链路。 另外, 可以利用 MPLS标签中的保留标签(Reserved Label )承载第一报文出第一 PW的转 发路径信息。 第一 PW的入节点将第一报文封装为第二报文时, 将第一报 文出第一 PW的转发路径信息一并承载到 MPLS标签中的保留标签。 第一 PW出节点的控制平面根据保留标签生成 FIB。 这样, 第一 PW出节点可以 根据第二报文的 MPLS标签中携带第一报文出第一 PW的转发路径信息, 将第一报文转发至转发路径信息所指示的链路。
103: 第一 PW的入节点通过第一 PW发送第二报文。 第一 PW的入节点将第二报文发送至第一 PW的出节点。
综上, 对于 MPLS标签中携带第一报文出第一 PW的转发路径信息的 报文, 第一 PW的出节点可以将第一报文转发至转发路径信息所指示的链 路。 另外, 对于 MPLS标签中没有携带第一报文出第一 PW的转发路径信 息的报文, 第一 PW的出节点可以通过查询 ILM, 将第一报文发送至 ILM 所指示的链路。
由此可见, 通过本发明实施例提供的发送报文的方法, 可以解决 PW 出节点的 ILM存在错误导致转发路径错误的问题。
进一步的, 转发路径信息承载于 MPLS标签中的保留标签。
进一步的,保留标签位于公网隧道标签和 PW标签之间, 或者位于 PW 标签后面。
保留标签位于公网隧道标签和 PW标签之间, 或者位于 PW标签后面 具体实现时, 可以有多种实现方式, 本发明不做具体的限定。 参见图 2和 图 3。 图 2是本发明实施例提供的一种保留标签示意图; 图 3是本发明实施 例提供的另一种保留标签示意图;图 2提供了保留标签位于流量工程 ( traffic engineering , ΤΕ )标签(公网隧道标签的一种类型)和 PW标签之间的一 种具体实现方式; 图 3提供了保留标签位于 PW标签后面的一种具体实现 方式。
实施例二:
本发明实施例提供了一种转发报文的方法,可以解决 PW出节点的 ILM 存在错误导致转发路径错误的问题。 参见图 4, 图 4是本发明实施例提供的 一种转发 文的方法流程图; 该方法包括:
401: 第一 PW的出节点接收第二报文;
第一 PW的出节点接收第二报文来源于第一 PW入节点。 即第一 PW 的入节点通过第一 PW, 将第二报文发送至第一 PW的出节点。
第二报文具体实现时, 可以有多种实现方式, 本发明不做具体的限定。 例如, 第一 PW的入节点收到的第一报文为来自第二 PW的报文, 第一 PW 的入节点将第一报文中的第二 PW对应的 PW标签替换为第一 PW对应的 PW标签, 得到第二报文; 或者第一 PW 的入节点收到的第一报文为来自 L2VPN的报文, 第一 PW的入节点向第一报文添加第一 PW对应的 PW标 签, 得到第二报文。
402: 将第二报文解封装为第一报文;
将第二报文解封装为第一报文具体实现时, 可以是将第二报文包含的 第一 PW对应的 PW标签弹出 ( Pop ) 。
403: 当第二报文的 MPLS标签中携带第一报文出第一 PW的转发路径 信息时, 根据转发路径信息转发第一报文。
当第二报文的 MPLS标签中携带第一报文出第一 PW的转发路径信息 时, 根据转发路径信息转发第一报文具体实现时, 可以有多种实现方式, 本发明不做具体的限定。 例如, 可以对 MPLS协议(需要说明当前 MPLS 协议的版本号和出版时间) 进行修订, 在 MPLS 标签中增加一个字段 ( field ) , 用于承载出 PW的转发路径信息。 第一 PW的入节点将第一报 文封装为第二报文时, 将第一报文出第一 PW的转发路径信息一并封装到 第二报文的 MPLS标签。 第一 PW出节点的控制平面根据增加的字段生成 FIB。 这样, 第一 PW出节点可以根据第二报文的 MPLS标签中携带第一 报文出第一 PW的转发路径信息, 将第一报文转发至转发路径信息所指示 的链路。另夕卜,可以利用 MPLS标签中的保留标签承载第一报文出第一 PW 的转发路径信息。 第一 PW的入节点将第一报文封装为第二报文时, 将第 一报文出第一 PW的转发路径信息一并承载到 MPLS标签中的保留标签。 第一 PW出节点的控制平面根据保留标签生成 FIB。 这样, 第一 PW出节 点可以根据第二报文的 MPLS标签中携带第一报文出第一 PW的转发路径 信息, 将第一报文转发至转发路径信息所指示的链路。
综上, 对于 MPLS标签中携带第一报文出第一 PW的转发路径信息的 报文, 第一 PW的出节点可以将第一报文转发至转发路径信息所指示的链 路。 另外, 对于 MPLS标签中没有携带第一报文出第一 PW的转发路径信 息的报文, 第一 PW的出节点可以通过查询 ILM, 将第一报文发送至 ILM 所指示的链路。
由此可见, 通过本发明实施例提供的转发报文的方法, 可以解决 PW 出节点的 ILM存在错误导致转发路径错误的问题。
进一步的, 转发路径信息承载于 MPLS标签中的保留标签。
进一步的,保留标签位于公网隧道标签和 PW标签之间, 或者位于 PW 标签后面。
保留标签位于公网隧道标签和 PW标签之间, 或者位于 PW标签后面 具体实现时, 可以有多种实现方式, 本发明不做具体的限定。 参见图 2和 图 3。 图 2是保留标签位于 TE标签(公网隧道标签的一种类型 )和 PW标 签之间的一种具体实现方式的示意图; 图 3是保留标签位于 PW标签后面 的一种具体实现方式的示意图。
进一步的, 当 MPLS标签中不携带第一报文出第一 PW的转发路径信 息时, 根据 ILM转发第一报文。
实施例三:
本发明实施例提供了另一种转发报文的方法, 可以解决 PW 出节点的 ILM存在错误导致转发路径错误的问题。参见图 5, 图 5是本发明实施例提 供的另一种转发报文的方法流程图, 该方法包括:
501: 第一 PW的入节点接收第一报文;
第一 PW 的入节点第一报文具体实现时, 可以有多种实现方式, 本发 明不做具体的限定。 具体请参见实施一的 101。
502: 第一 PW的入节点将第一报文封装为第二报文;
第一 PW 的入节点将第一报文封装为第二报文具体实现时, 可以有多 503: 第一 PW的入节点将第二报文发送至第一 PW的出节点;
504: 出节点将第二报文解封装为第一报文;
具体请参见实施二的 402。
505: 当第二报文的 MPLS标签中携带第一报文出第一 PW的转发路径 信息时, 出节点根据转发路径信息转发第一报文。
当第二报文的 MPLS标签中携带第一报文出第一 PW的转发路径信息 时, 出节点根据转发路径信息转发第一报文具体实现时, 可以有多种实现 方式, 本发明不做具体的限定。 具体请参见实施二的 403。
实施例三提供的转发报文的方法可以应用于多种场景, 图 6是实施例 三提供的转发报文的方法应用于一种场景的示意图。 参见图 6:
主 PW正常工作的情况下,上行方向,运营商边缘设备 ( provider edge, PE )发出的报文通过主 PW到达主基站控制器站点网关( RNC Site Gateway, RSG ) 。 一方面, 主 RSG通过第一 L2VPN将报文转发至无线网络控制器 ( radio network controller, RNC ); 另一方面, 主 PW ^!夺才艮文通过才匡间备伪 线(Inter-Chassis Backup PW, ICB PW )转发至备 RSG, 备 RSG通过第二 L2VPN将艮文转发至 RNC。
主 PW发生故障后, 下行方向, RNC通过第一 L2VPN将报文发送至 主 RSG, 主 RSG通过 ICB PW将报文转发至备 RSG, 备 RSG通过备 PW (此时已升级为主 PW )将报文转发至 PE。
也就是说, 主 PW发生故障前, 主 RSG通过 ICB PW将收到的报文转 发至备 RSG后, 备 RSG需要将报文转发至第二 L2VPN; 主 PW发生故障 后, 主 RSG通过 ICB PW将收到的报文转发至备 RSG后, 备 RSG需要将 报文转发至备 PW。
主 PW发生故障前后,备 RSG需要将收到的报文从转发至第二 L2VPN 切换为转发至备 PW。切换过程具体实现时, 需要更新 ILM。 由于更新 ILM 需要一定时间, 这将对切换速度造成影响。 实施例三提供的转发报文的方法可以解决上述问题。 具体解决方案可 以是:
作为 ICB PW的入节点,主 RSG收到主 PW提供的报文, 主 RSG将主 PW提供的报文封装为新的报文时,将主 PW提供的报文出 ICB PW的转发 路径信息(即转发至第二 L2VPN )一并封装到新的报文的 MPLS标签(具 体可以是 MPLS标签中的保留标签) 。 第一 PW出节点的控制平面根据转 发路径信息生成 FIB。 这样, ICB PW的出节点检测到新的报文中携带转发 路径信息后, 可以根据转发路径信息, 将主 PW提供的报文转发至转发路 径信息所指示的链路(即第二 L2VPN ) 。
主 PW发生故障后, 主 RSG收到第一 L2VPN提供的报文, 也将第一 L2VPN提供的报文进行封装。 主 RSG对第一 L2VPN提供的报文进行封装 时, 没有封装转发路径信息。 这样, ICB PW的出节点收到入节点封装后报 文后, 不会检测到转发路径信息, ICB PW的出节点将根据封装后的报文中 包含的 ICB PW对应的 ICB PW标签查询 ILM, 并将解封装后的报文(第 一 L2VPN提供的报文 )发送至备 PW (由于主 PW发生故障, 备 PW已升 级为主 PW ) 。
从以上分析可以看出, 主 PW发生故障前后, 备 RSG将收到的报文从 转发至第二 L2VPN切换为转发至备 PW时, 不需要更新转发表。 因此用户 不会感知主 PW发生故障。
综上, 对于 MPLS标签中携带第一报文出第一 PW的转发路径信息的 报文, 第一 PW的出节点可以将第一报文转发至转发路径信息所指示的链 路。 另外, 对于 MPLS标签中没有携带第一报文出第一 PW的转发路径信 息的报文, 第一 PW的出节点可以通过查询 ILM, 将第一报文发送至 ILM 所指示的链路。
由此可见, 通过本发明实施例提供的转发报文的方法, 可以解决 PW 出节点的 ILM存在错误导致转发路径错误的问题。 进一步的, 当第二报文的 MPLS标签中没有携带第一报文出第一 PW 的转发路径信息时, 出节点根据 ILM转发第一报文。
实施例四:
本发明实施例提供了一种发送报文的装置,可以解决 PW出节点的 ILM 存在错误导致转发路径错误的问题。 参见图 7, 图 7是本发明实施例提供的 一种发送报文的装置示意图; 该装置包括:
接收单元 701: 第一 PW的入节点用于接收第一报文;
第一 PW 的入节点第一报文具体实现时, 可以有多种实现方式, 本发 明不做具体的限定。 具体请参见实施例一的 101。
封装单元 702: 第一 PW的入节点用于将第一报文封装为第二报文, 第 二报文的 MPLS标签中携带第一报文出第一 PW的转发路径信息;
第一 PW 的入节点将第一报文封装为第二报文具体实现时, 可以有多 种实现方式, 本发明不做具体的限定。 具体请参见实施例一的 102。
第二报文的 MPLS标签中携带第一报文出第一 PW的转发路径信息具 体实现时, 可以有多种实现方式, 本发明不做具体的限定。 具体请参见实 施例一的 102。
发送单元 703: 第一 PW的入节点用于通过第一 PW发送第二"¾文。 第一 PW的入节点将第二报文发送至第一 PW的出节点。
综上, 对于 MPLS标签中携带第一报文出第一 PW的转发路径信息的 报文, 第一 PW的出节点可以将第一报文转发至转发路径信息所指示的链 路。 另外, 对于 MPLS标签中没有携带第一报文出第一 PW的转发路径信 息的报文, 第一 PW的出节点可以通过查询 ILM, 将第一报文发送至 ILM 所指示的链路。
由此可见, 通过本发明实施例提供的发送报文的方法, 可以解决 PW 出节点的 ILM存在错误导致转发路径错误的问题。
实施例五: 本发明实施例提供了一种转发报文的装置,可以解决 PW出节点的 ILM 存在错误导致转发路径错误的问题。 参见图 8, 图 8是本发明实施例提供的 一种转发报文的装置示意图; 该装置包括:
接收单元 801: 第一 PW的出节点用于接收第二报文;
第一 PW的出节点接收第二报文来源于第一 PW入节点。 即第一 PW 的入节点通过第一 PW, 将第二报文发送至第一 PW的出节点。
第二报文具体实现时, 可以有多种实现方式, 本发明不做具体的限定。 具体请参考实施例二的 401。
解封装单元 802: 用于将第二报文解封装为第一报文;
将第二报文解封装为第一报文具体实现时, 可以是将第二报文包含的 第一 PW对应的 PW标签弹出 ( pop ) 。
第一转发单元 803:用于当第二报文的 MPLS标签中携带第一报文出第 一 PW的转发路径信息时, 根据转发路径信息转发第一报文。
当第二报文的 MPLS标签中携带第一报文出第一 PW的转发路径信息 时, 根据转发路径信息转发第一报文具体实现时, 可以有多种实现方式, 本发明不做具体的限定。 具体请参考实施例二的 403。
综上, 对于 MPLS标签中携带第一报文出第一 PW的转发路径信息的 报文, 第一 PW的出节点可以将第一报文转发至转发路径信息所指示的链 路。 另外, 对于 MPLS标签中没有携带第一报文出第一 PW的转发路径信 息的报文, 第一 PW的出节点可以通过查询 ILM, 将第一报文发送至 ILM 所指示的链路。
由此可见, 通过本发明实施例提供的转发报文的方法, 可以解决 PW 出节点的 ILM存在错误导致转发路径错误的问题。
进一步的, 包括:
第二转发单元, 用于当 MPLS标签中不携带第一报文出第一 PW的转 发路径信息时, 根据 ILM转发第一报文。 本领域普通技术人员可以理解: 实现上述方法实施例的全部或部分步 骤可以通过程序指令相关的硬件来完成, 前述程序可以存储于一计算机可 读取存储介质中, 该程序在执行时, 执行包括上述方法实施例的步骤; 而 前述的存储介质包括: ROM、 RAM, 磁碟或者光盘等各种可以存储程序代 码的介质。
最后应说明的是: 以上实施例仅用以说明本发明的技术方案, 而非对 其限制; 尽管参照前述实施例对本发明进行了详细的说明, 本领域的普通 技术人员应当理解: 其依然可以对前述各实施例所记载的技术方案进行修 改, 或者对其中部分技术特征进行等同替换; 而这些修改或者替换, 并不 使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。

Claims

权利要求
1.一种发送^¾文的方法, 其特征在于:
第一伪线 PW的入节点接收第一报文;
所述第一 PW的入节点将所述第一报文封装为第二报文, 所述第二报 文的多协议标签交换 MPLS标签中携带所述第一报文出所述第一 PW的转 发路径信息;
所述第一 PW的入节点通过所述第一 PW发送所述第二报文。
2.根据权利要求 1所述方法, 其特征在于:
所述转发路径信息承载于所述 MPLS标签中的保留标签。
3.根据权利要求 2所述方法, 其特征在于:
所述保留标签位于公网隧道标签和 PW标签之间, 或者位于所述 PW 标签后面。
4.一种转发4艮文的方法, 其特征在于:
第一 PW的出节点接收第二报文;
将所述第二报文解封装为第一报文;
当所述第二报文的 MPLS标签中携带所述第一报文出所述第一 PW的 转发路径信息时, 根据所述转发路径信息转发所述第一报文。
5.根据权利要求 4所述方法, 其特征在于:
所述转发路径信息承载于所述 MPLS标签中的保留标签。
6.根据权利要求 5所述方法, 其特征在于:
所述保留标签位于公网隧道标签和 PW标签之间, 或者位于所述 PW 标签后面。
7.根据权利要求 4或 5所述方法, 其特征在于, 进一步包括: 当所述 MPLS标签中不携带所述第一报文出所述第一 PW的转发路径 信息时, 根据入标签映射表 ILM转发所述第一报文。
8.—种转发报文的方法, 其特征在于: 第一 PW的入节点接收第一报文;
所述第一 PW的入节点将所述第一报文封装为第二报文;
所述第一 PW的入节点将所述第二报文发送至所述第一 PW的出节点; 所述出节点将所述第二报文解封装为所述第一报文;
当所述第二报文的 MPLS标签中携带所述第一报文出所述第一 PW的 转发路径信息时, 所述出节点根据所述转发路径信息转发所述第一报文。
9.根据权利要求 8所述方法, 其特征在于:
当所述第二报文的 MPLS 标签中没有携带所述第一报文出所述第一 PW的转发路径信息时, 所述出节点根据 ILM转发所述第一报文。
10.—种发送"¾文的装置, 其特征在于, 包括:
接收单元, 所述第一 PW的入节点用于接收第一报文;
封装单元, 所述第一 PW的入节点用于将所述第一报文封装为第二报 文, 所述第二报文的 MPLS标签中携带所述第一报文出所述第一 PW的转 发路径信息;
发送单元, 所述第一 PW的入节点用于通过所述第一 PW发送所述第 二报文。
11.一种转发报文的装置, 其特征在于, 包括:
接收单元, 第一 PW的出节点用于接收第二报文;
解封装单元, 用于将所述第二报文解封装为第一报文;
第一转发单元, 用于当所述第二报文的 MPLS标签中携带所述第一报 文出所述第一 PW的转发路径信息时, 根据所述转发路径信息转发所述第 一报文。
12.根据权利要求 11所述装置, 其特征在于, 进一步包括:
第二转发单元, 用于当所述 MPLS标签中不携带所述第一报文出所述 第一 PW的转发路径信息时, 根据 ILM转发所述第一报文。
PCT/CN2012/073088 2011-07-06 2012-03-27 发送报文的方法、转发报文的方法及装置 WO2012149846A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110188351.6A CN102255805B (zh) 2011-07-06 2011-07-06 发送报文的方法、转发报文的方法及装置
CN201110188351.6 2011-07-06

Publications (1)

Publication Number Publication Date
WO2012149846A1 true WO2012149846A1 (zh) 2012-11-08

Family

ID=44982809

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/073088 WO2012149846A1 (zh) 2011-07-06 2012-03-27 发送报文的方法、转发报文的方法及装置

Country Status (2)

Country Link
CN (1) CN102255805B (zh)
WO (1) WO2012149846A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102255805B (zh) * 2011-07-06 2015-03-25 华为技术有限公司 发送报文的方法、转发报文的方法及装置
CN105591868B (zh) * 2015-07-15 2019-03-15 新华三技术有限公司 一种虚拟专用网络vpn的接入方法和装置
CN111147372B (zh) * 2018-11-05 2021-05-18 华为技术有限公司 下行报文发送、转发方法和装置
CN111200816A (zh) * 2020-01-21 2020-05-26 南通大学 一种无线通信装置及无线通信方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1571359A (zh) * 2003-07-15 2005-01-26 华为技术有限公司 一种标签展开的多级标签转发方法
CN1905517A (zh) * 2005-07-30 2007-01-31 华为技术有限公司 在ngn网络中为媒体流选择转发路径的控制系统及方法
US20090175274A1 (en) * 2005-07-28 2009-07-09 Juniper Networks, Inc. Transmission of layer two (l2) multicast traffic over multi-protocol label switching networks
CN102082738A (zh) * 2011-03-10 2011-06-01 迈普通信技术股份有限公司 通过公用网络延伸mpls vpn接入的方法和pe设备
CN102255805A (zh) * 2011-07-06 2011-11-23 华为技术有限公司 发送报文的方法、转发报文的方法及装置

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7756125B2 (en) * 2005-08-05 2010-07-13 Telefonaktiebolaget Lm Ericsson (Publ) Method and arrangement for routing pseudo-wire encapsulated packets
CN101001196A (zh) * 2007-01-25 2007-07-18 华为技术有限公司 一种建立伪线隧道并利用其传送报文的方法和装置
CN101645836B (zh) * 2009-08-25 2012-04-18 杭州华三通信技术有限公司 多协议标签交换网络中的分组传输方法和装置
CN101674239B (zh) * 2009-10-10 2012-04-25 华为技术有限公司 提供网络服务的方法及其装置
CN102075438B (zh) * 2011-02-14 2016-03-30 中兴通讯股份有限公司 单播数据帧传输方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1571359A (zh) * 2003-07-15 2005-01-26 华为技术有限公司 一种标签展开的多级标签转发方法
US20090175274A1 (en) * 2005-07-28 2009-07-09 Juniper Networks, Inc. Transmission of layer two (l2) multicast traffic over multi-protocol label switching networks
CN1905517A (zh) * 2005-07-30 2007-01-31 华为技术有限公司 在ngn网络中为媒体流选择转发路径的控制系统及方法
CN102082738A (zh) * 2011-03-10 2011-06-01 迈普通信技术股份有限公司 通过公用网络延伸mpls vpn接入的方法和pe设备
CN102255805A (zh) * 2011-07-06 2011-11-23 华为技术有限公司 发送报文的方法、转发报文的方法及装置

Also Published As

Publication number Publication date
CN102255805A (zh) 2011-11-23
CN102255805B (zh) 2015-03-25

Similar Documents

Publication Publication Date Title
WO2017193758A1 (zh) 一种数据传输的方法、设备和系统
US8472438B2 (en) Efficient encapsulation of packets transmitted on a packet-pseudowire over a packet switched network
US20220078114A1 (en) Method and Apparatus for Providing Service for Traffic Flow
JP5209116B2 (ja) パケット交換網における擬似ワイヤの確立
EP3255840B1 (en) Label distribution method and device
AU2011244044A1 (en) Efficient encapsulation of packets transmitted on a packet-pseudowire over a Packet Switched Network
WO2009012688A1 (fr) Procédé, système et appareil de réacheminement de message dans un réseau privé virtuel à trois couches
WO2011029352A1 (zh) 多协议标签交换网络和以太网的互通方法、装置和系统
CN111213345B (zh) 用于发送或接收包含控制信息的报文的设备、方法和系统
KR101699643B1 (ko) 다중 프로토콜 라벨 스위칭에 기반한 oam 방법 및 장치
KR101140453B1 (ko) Ip 인터워킹 vll을 통한 회로 에뮬레이션 방법 및 시스템
WO2012149846A1 (zh) 发送报文的方法、转发报文的方法及装置
JP5444474B2 (ja) 擬似ワイヤエミュレーションエッジトゥエッジアクセス装置及び方法
WO2009117923A1 (zh) 数据发送的方法、装置及通信设备
JP6371399B2 (ja) インターフェースパラメーター同期方法及び装置
Martini et al. Encapsulation methods for transport of PPP/high-level data link control (HDLC) over MPLS networks
WO2013004184A1 (en) L2 virtual private network interworking
WO2016138747A1 (zh) 一种信息同步的方法及装置
WO2012071890A1 (zh) 一种发送响应消息的方法、系统和设备
WO2016197613A1 (zh) 一种静态伪线状态检测方法及装置
WO2022267875A1 (zh) 一种报文传输的方法及相关设备
JP3936319B2 (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: 12779841

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

Country of ref document: EP

Kind code of ref document: A1