WO2009056034A1 - Method, system and equipment to establish bfd detection for lsp tunnel - Google Patents
Method, system and equipment to establish bfd detection for lsp tunnel Download PDFInfo
- Publication number
- WO2009056034A1 WO2009056034A1 PCT/CN2008/072768 CN2008072768W WO2009056034A1 WO 2009056034 A1 WO2009056034 A1 WO 2009056034A1 CN 2008072768 W CN2008072768 W CN 2008072768W WO 2009056034 A1 WO2009056034 A1 WO 2009056034A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- group
- bfd
- lsp tunnel
- lsp
- module
- Prior art date
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/50—Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/10—Active monitoring, e.g. heartbeat, ping or trace-route
Definitions
- the present invention relates to the field of network communications, and in particular, to a method, system, and device for establishing BFD detection for an LSP tunnel carrying a pseudowire group. Background technique
- BFD Bidirectional Forwarding Detection
- MPLS Multi-Protocol Label Switching
- IPSec IPSec tunnels
- BFD can also quickly detect connectivity status with neighboring nodes. Fault detection on any type of channel between systems. These channels include direct physical links, virtual circuits, tunnels, and MPLS (Multiprotocol Label Switch) LSPs ( Label Switch Path). , label switched paths), multi-hop routing channels, and indirect channels.
- BFD is similar to the "Hello" protocol. It can detect the fault between two nodes in a short time. After a BFD session is established, the two nodes of the BFD session periodically send BFD reports to the other node. If the peer does not receive the BFD packet from the peer, the link is considered to be faulty.
- An LSP is a path between MPLS nodes.
- An LSP can be regarded as a cross-section. One-way tunnel of the MPLS network.
- PS Protection Switching
- Rerouting does not pre-establish a protection LSP. It only initiates the establishment of a protection LSP when the primary LSP link (node) fails. After the establishment is successful, the traffic is switched to the protection LSP. It can be seen that in general, when the LSP fails, the PS gravity route is reflected more quickly. The real-time performance of the protection switching needs to be ensured by a fast detection mechanism.
- the detection mechanism can be MPLS OAM detection or BFD detection.
- the BFD session exchanges BFD specifiers through MPLS ping packets to automatically establish BFD sessions.
- the MPLS ping is similar to the ping of the IP.
- MPLS Echo Request can be sent.
- MPLS Echo Reply After the LSP is forwarded to the egress, the egress of the MPLS domain returns a BFD called MPLS Echo Reply.
- Negotiation can only be used, so that when reply is returned, you can know whether this LSP can be used for data forwarding correctly.
- the LSP1 and LSP3 are configured to carry the PW1 and PW2.
- the LSP1, the LSP2, the LSP3, and the LSP4 are the pair configured on the UPE1 and the NPE1.
- LSP protection group You need to configure a pair of BFDs on the LSP protection group in the PW group.
- the inventors have found that at least the following problems exist in the prior art: the prior art requires manual configuration to ensure that the PW group uses the same LSP, which has a large workload and a complicated configuration. After the LSP protection group that carries the PW group is configured, the BFD session cannot be automatically established on the LSP protection group that carries the PW group. You need to manually configure a pair of BFDs on the LSP protection group (LSP1 and LSP2). parameter, BFD specifier, and peer BFD parameters and specifiers. Summary of the invention
- the embodiment of the invention provides a method, a system and a device for establishing a BFD detection for an LSP tunnel carrying a pseudowire group, so as to solve the problem of manual configuration of the PW group protection in the prior art, which has a large workload and a complicated configuration, and cannot automatically Establish defects in BFD protection.
- An embodiment of the present invention provides a method for establishing a BFD test for an LSP tunnel carrying a pseudowire group, including:
- the edge of the source backbone network PE device and the sink PE device selects the same pair of LSP tunnels for a group of PWs.
- the PW group is configured with the same group ID.
- the source PE device creates a BFD session on the LSP tunnel, and initiates an MPLS ping packet to the sink PE device by using the LSP tunnel, where the MPLS ping packet carries the Group ID and the BFD specifier;
- the sinking PE device sends a BFD negotiation packet to the source PE device according to the group ID of the MPLS ping packet, and the BFD session of the LSP tunnel is established. .
- the embodiment of the present invention further provides a system for establishing BFD detection for an LSP tunnel carrying a pseudowire group, including a source PE device and a sink PE device. Each PW in the PW group has the same source PE device and sink PE. Equipment,
- the source PE device is configured to select the same pair of LSP tunnels for the PW group, and the PW group is configured with the same group ID; and the BFD session is created on the LSP tunnel, and the LSP tunnel is used to the sink PE.
- the device initiates an MPLS ping packet, where the MPLS ping packet carries the Group ID and the BFD specifier; the same Group ID
- the sink PE device is configured to select a corresponding reverse LSP tunnel according to the Group ID carried in the MPLS ping packet sent by the source PE device, and send the reverse LSP tunnel to the source end on the reverse LSP tunnel.
- the PE device sends a BFD negotiation packet to establish BFD detection on the LSP that carries the PW.
- the embodiment of the invention further provides a PE device, including a configuration module and an LSP tunnel. Select the module and the ping module,
- the configuration module is configured to configure the same Group ID for a group of PW groups when establishing a pseudowire PW;
- the LSP tunnel selection module is configured to allocate the same pair of LSP tunnels to the PW group according to the group ID configured by the configuration module;
- the ping module is configured to send an MPLS ping packet to the PE device at the opposite end of the PW group according to the LSP tunnel selected by the LSP tunnel selection module, where the MPLS ping packet carries the Group ID and the BFD specifier;
- the MPLS ping packet sent by the peer PE device of the PW group is parsed, and the group ID carried in the MPLS ping packet is obtained.
- the embodiment of the present invention has the following advantages:
- a group of PWs are automatically carried on the same pair of LSP tunnels, and the group IDs are carried by the initiated MPLS ping packets.
- Automatically establishes BFD detection on a pair of LSPs that carry the PW group, thereby improving the automation level of establishing a BFD session on the LSP tunnel that carries the PW group, and performing BFD detection on the PW group by BFD detection on the LSP tunnel.
- FIG. 1 is a schematic diagram of a CE device accessing a VPLS through a VLL according to an embodiment of the present invention
- FIG. 2 is a schematic diagram of a typical networking for establishing BFD detection for an LSP tunnel carrying a pseudowire group according to an embodiment of the present invention
- FIG. 3 is a structural diagram of a PE device according to an embodiment of the present invention.
- FIG. 4 is a flowchart of a method for detecting a BFD of a pseudowire group according to an embodiment of the present invention. detailed description
- the schematic diagram shown in FIG. 1 is a specific application scenario of the embodiment of the present invention.
- MPLS L2VPN transparently transmits Layer 2 data of a user on an MPLS network.
- the MPLS network is a Layer 2 switching network.
- a Layer 2 connection is established between different sites.
- the principle of MPLS L2VPN is to use the label stack to transparently transmit user packets in the MPLS network.
- the outer label (called the tunnel label) is used to transfer packets from one PE to another.
- MPLS L2VPN it is called a VC label. It is used to distinguish different connections in different VPNs and connect to the edge of the user network.
- L2VPN is mainly divided into VLL (Virtual Leased Line) and VPLS (Virtual Private LAN Service).
- VLL is a simulation of traditional leased line services.
- IP networks By using IP networks to simulate leased lines, From the perspective of users at both ends of the virtual leased line, the virtual leased line approximates the past leased line.
- VPLS uses the IP public network to interconnect LANs through virtual private network segments, which is an extension of LANs on IP public networks.
- a PE router is the primary device. The PE is responsible for managing VPN users and establishing LSP connections between PEs.
- the CE distributes user network routes.
- the CE can be a router or a switch or a host.
- the VPLS technology uses the signaling protocol to establish a PW across the backbone network between the PEs.
- the PW can transmit the Ethernet data units on the backbone network.
- the PW is established by establishing a pair of unidirectional LSPs between the two PE endpoints.
- the established LSP tunnel can carry multiple VPLS services, and there are multiple LSPs between PEs.
- the PE can be layered into an NPE and a UPE according to the implementation function and the location in the network.
- the NPE and the UPE are exchanged through the MPLS LSP tunnel.
- VPLS technology use The signaling protocol establishes a PW (Peudo Wire) across the backbone network between the PEs.
- the PW can transmit the Ethernet data units on the backbone network.
- the PW establishes a pair of singles between the two PE endpoints.
- the established LSP tunnel can be used to carry multiple VPLS services. There are multiple LSPs between PEs.
- the embodiment of the present invention is not limited to the application of the VLL access to the VPLS, and is applicable to the BFD detection and protection of the PW group in any scenario.
- FIG. 2 it is a set of network diagrams for detecting the BFD of the PW group in the embodiment of the present invention.
- the same group ID is set for the PW group on the PE device at the source end of the PW group.
- setting the same group ID for the PW group specifically includes: In this embodiment, the PW includes only PW1 and PW2, and the same Group ID is set to PW group for PW1 and PW2. Set the same group ID for the PW group to enable the source PE device to select the same LSP tunnel for the PW group with the same group ID, and pass the LDP (Label Distribute Protocol) between the source PE device and the sink PE device.
- LDP Label Distribute Protocol
- the session can also enable the sink PE device to obtain the group ID of the PW group, that is, the PW group, so that the sink PE device also selects the same LSP tunnel for the same group of PWs on the sink PE.
- the BFD For MPLS LSPs scheme in the IETF Internet Engineering Task Force is used to add a Group ID to the MPLS ping packet to automatically establish a BFD session on the LSP that carries the PW group. .
- the system for establishing BFD detection for the LSP tunnel carrying the pseudowire group includes the source PE device and the sink PE device, and the PW in the pseudowire PW group according to the embodiment of the present invention is provided.
- the source PE device and the sink PE device of the PW are the same.
- the source PE device and the sink PE device of PW1 and PW2 in the PW group are both UPE1 and NPE1.
- LSP2 and LSP4, and LSP1 and LSP3 are configured LSP protection groups.
- the embodiment of the present invention provides that the source PE device and the sink PE device are only for the sake of understanding.
- the PW is bidirectional, so a PE device may be a source PE device or a sink PE device.
- PE1 when CE1 traffic is accessed through MPLS L2VPN, PE1 can be considered as the source PE and PE2 is the sink PE. Similarly, when CE2 traffic is accessed through MPLS L2VPN, PE2 can be considered as the source PE. Equipment, PE1 is the sink PE device.
- the source PE device is configured to configure the same group ID for the same PW group as the source PE device and the sink PE device when the PW is established. For example, the PW group on the PE1 is set to be the same as the group.
- a group ID in this embodiment, the PW is only PW1 and PW2, and the same group ID is set to the PW group for the PW1 and PW2.
- the PWs on PE2 are also grouped.
- the PWs on PE2 are classified into Group IDs as PW groups.
- the same pair of LSPs are allocated to the PW group according to the group ID.
- the peer PEs select the same LSP tunnel for the PW group with the same group ID.
- the source PE creates a BFD session on the LSP tunnel where the PW group resides.
- the group LSP corresponding to the MPLS ping packet sent by the MPLS ping packet is sent to the source PE device to send a BFD negotiation packet, and the BFD session of the PW group is set up on the reverse LSP tunnel.
- the following describes the working process of the BFD detection system of the pseudowire group in the embodiment of the present invention, taking PE1 as the source PE and PE2 as the sink PE as an example.
- a PW When a PW is set up, all the PWs between PE1 and PE2 are set up as one PW group.
- PW1 and PW2 are grouped into the same PW group. The same group ID is configured for the PW group.
- an LSP tunnel is selected, only the LSP2 tunnel or the LSP4 tunnel is selected (because LSP2 and LSP4 are LSP protection groups); and PE1 can also know the group ID of the PW group through the LDP session.
- the corresponding reverse LSP tunnel is selected to feed back to PE1. If the LSP2 is connected to PE2 and the PW1 is carried, the PE2 will select the LSP1 tunnel to feed back to PE1. Therefore, the PW group can be automatically carried in the same pair of LSPs by setting the same group ID for the PW group. On the tunnel.
- the embodiment of the present invention provides two ways of transmitting a group ID through an LDP session, as shown in the following figure.
- One method is to directly configure the same group ID in the LDP session of the PW group.
- the other way is to set the group ID by setting the VC ID in the LDP session of the PW group. That is, the range of a VCID can be used to correspond to a group ID. Both of the above methods can achieve the purpose of transmitting the group ID.
- PE1 creates a BFD session on the LSP2 tunnel, waits for BFD negotiation packets, and selects the LSP2 tunnel to send MPLS ping packets to the PE2 according to the configured group ID.
- PE1 adds BFD specifiers to the MPLS ping packets. Group ID of the corresponding PW group.
- the PE2 selects the LSP1 tunnel as the BFD reverse LSP tunnel according to the group ID in the MPLS ping packet, and sends a BFD negotiation packet to the PE1 through the LSP1, and returns the BFD negotiation report of the MPLS echo reply.
- the automatic creation of BFD on LSP1 and LSP2 is performed, and the two-way fast detection of LSP1 and LSP2 carrying the PW group is performed.
- the MPLS ping packet is extended by the TLV domain of the type length of the MPLS ping packet, and the MPLS ping packet extension is as follows:
- FIG. 3 it is a structural diagram of a PE device according to an embodiment of the present invention.
- the PE device can be used as a source PE device or a sink PE device.
- the PE device 1 includes a configuration module 11, an LSP tunnel selection module 12, and a ping module 13.
- the configuration module 11 is configured to configure the same group ID for the same PW group of the source PE device and the sink PE device when the PW group is established, so that the PW group is automatically carried on a pair of LSP tunnels.
- the group ID of the same PW group of the source sink PE device is configured to be 100; or the range of one VC ID is specified as 100, so that all VC IDs in the range share a Group ID (100).
- the LSP tunnel selection module 12 is configured to allocate the same LSP tunnel to the PW group according to the group ID configured by the configuration module 11, as shown in FIG. 2, the PE1 is the PW group (PW1 and PW2), and the LSP2 is used as the LSP tunnel to carry the PW group, and the PE2 is The PW group (PW1 and PW2) selects LSP1 as the LSP tunnel to carry the above PW group.
- the ping module 13 is configured to send an MPLS ping packet to the PE device at the peer end of the PW group according to the LSP tunnel selected by the LSP tunnel selection module 12, where the MPLS ping packet carries the Group ID and the BFD specifier, and is used as the peer end.
- the PE device is configured to parse the MPLS ping packet, and obtain the group ID carried in the MPLS ping packet.
- the PE device 1 further includes a BFD module 15 for waiting for BFD session negotiation on the LSP tunnel, and selecting a corresponding reverse LSP tunnel according to the Group ID obtained by the ping module 13, and transmitting the BFD on the reverse LSP tunnel.
- the BPDU is negotiated to complete the automatic creation of the BFD on the pair of LSPs that carry the PW group.
- the ping module 13 includes a ping packet sending sub-module 131 and a ping packet parsing sub-module 132.
- the ping packet sending sub-module 131 is configured to extend the MPLS ping packet and pass the MPLS Ping packet with the type length value TLV.
- the domain carries the group ID and the BFD specifier.
- the ping packet parsing sub-module 132 is configured to parse the MPLS ping packet on the sink PE to obtain the group ID and the BFD specifier.
- the BFD detection system and the PE device of the pseudowire group in the embodiment of the present invention can automatically carry the PW group on a pair of LSP tunnels by setting the same group ID for the PW group, thereby improving the automation level and initiating the
- the MPLS ping packet carrying the group ID can automatically establish BFD detection on the pair of LSPs that carry the PW group.
- the BFD detection of the LSP tunnel reflects the BFD of the PW group. Detection,
- FIG. 4 it is a flowchart of a BFD detection method for a pseudowire group according to an embodiment of the present invention.
- PE1 is used as a source device
- ⁇ 2 For example, in the figure, PW1 and PW2 are the same PWs of the source device and the sink device, and both are UPE1 and NPE1. Therefore, PW1 and PW2 can be regarded as one PW group.
- LSP2 and LSP4, and LSP1 and LSP3 are configured LSP protection groups. This embodiment includes the following steps:
- Step S401 When the source-side device establishes the pseudo-wire PW, configure the same group ID for the same PW group as the source-side sink device. For example, PE1 configures the same Group ID as 100 for PW1 and PW2. In this case, PE1 selects only the LSP2 tunnel or the LSP4 tunnel when the LSP tunnel is selected for PW1 or PW2 (because LSP2 and LSP4 are LSP protection groups).
- the source PE device uses the LDP session to enable the sink PE device to know the group ID of the PW group. This step is not a necessary step, because the peer PE device can also configure the same group ID for the PW group. .
- the PE device selects the corresponding reverse LSP tunnel to feed back to PE1. For example, PE1 selects LSP2 to carry PW1 to PE2, and PE2. According to the Group ID carried in the LDP session, the LSP1 tunnel is selected to feed back to PE1. Therefore, the PW group can be automatically carried on a pair of LSP tunnels by setting the same Group ID for the PW group.
- the embodiment of the present invention provides two ways of transmitting a group ID through an LDP session, as shown in the following figure.
- One method is to directly configure the same group ID in the LDP session of the PW group.
- Another way is to set the VC ID in the LDP session of the PW group.
- Group ID that is, a range in which a VCID can be used corresponds to a Group ID. The above two methods can achieve the purpose of delivering a Group ID.
- Step S403 The source device and the sink PE device respectively allocate the same pair of LSP tunnels according to the group ID.
- the source PE device allocates an LSP tunnel to the PW, it selects the corresponding LSP tunnel based on the group ID of the PW. For example, when PE1 selects an LSP tunnel for PW1, LSP2 is selected because the group ID of the PW1 is 100, and PE2 selects LSP1 according to the group ID.
- PW1 and PW2 belong to one PW group, that is, PW1 and PW2. The same group ID, PE1 will also select LSP2 when selecting an LSP tunnel for PW2, and PE2 will also select LSP1.
- Step S404 The source PE device creates a BFD session on the selected LSP tunnel, waits for the BFD negotiation packet, and sends an MPLS ping packet to the sink PE device.
- the MPLS ping packet carries the Group ID and the BFD specifier.
- PE1 sends an MPLS ping request to the PE2 based on the configured LSP2 tunnel.
- the PE1 adds the BFD specifier and the group ID of the corresponding PW group to the MPLS ping packet.
- the MPLS ping packet is extended by the MPLS ping packet, and the MPLS ping packet is extended by the TLV domain of the MPLS ping packet.
- the MPLS ping packet extension is as follows:
- Step S405 The sink PE device selects the corresponding reverse LSP tunnel to the source PE according to the Group ID carried in the MPLS ping packet sent by the source PE device.
- the device returns BFD negotiation packets to establish BFD detection for the PW group.
- Step S406 When the BFD detects that the LSP tunnel is faulty, the switchover of the LSP tunnel protection group is automatically triggered to implement detection and protection on the PW group. For example, if the LSP2 is faulty, the BFD session automatically triggers the switching of the LSP tunnel protection group and switches to LSP4 to carry the PW group to detect and protect the PW group.
- the PW group is automatically carried on the same pair of LSP tunnels by setting the same group ID for the PW group, thereby improving the automation level of the PW group carried by the LSP tunnel, and
- the BFD detection of the PW group is performed by the BFD detection of the LSP tunnel by the BFD detection of the LSP tunnel.
- the present invention can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is a better implementation. the way.
- the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium, including a plurality of instructions for making a A computer device (which may be a personal computer, server, or network device, etc.) performs the methods described in various embodiments of the present invention.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
A BFD test method for LSP Tunnel with the spurious line series is provided. The method includes following steps as the source backbone network's edge PE equipment and the sink PE equipment are a group of PW which chooses the same couple of LSP Tunnel. The PW group is provided with the same Group ID; the source PE equipment creates the BFD conversation on LSP Tunnel and sends MPLS Ping message to the sink PE equipment via LSP Tunnel. The MPLS Ping message carries the Group ID and BFD specifications; the sink PE equipment chooses the reversal LSP Tunnel hereof as per the Group ID carried by MPLS Ping message, so as to send the BFD protocol message to the source PE equipment. Thus, BFD test can be established for LSP Tunnel. In this case, BFD test for the PW group can be reflected via BFD test on LSP Tunnel.
Description
一种为 LSP隧道建立 BFD检测的方法、 系统及设备 技术领域 Method, system and device for establishing BFD detection for LSP tunnel
本发明涉及网络通信领域, 尤其涉及一种为承载伪线组的 LSP 隧道建立 BFD检测的方法、 系统及设备。 背景技术 The present invention relates to the field of network communications, and in particular, to a method, system, and device for establishing BFD detection for an LSP tunnel carrying a pseudowire group. Background technique
由于以太网技术的高宽带和低成本的特点, 运营商在组建接入 网、城域网甚至广域网时越来越多的考虑釆用以太网技术; 电信级以 太网 ( Carrier Ethernet ) 已经被越来越多的运营商所认可。 Due to the high bandwidth and low cost of Ethernet technology, operators are increasingly considering the use of Ethernet technology when setting up access networks, metropolitan area networks and even WANs; Carrier Ethernet has been More and more operators are recognized.
随着通信技术的发展, 对相邻系统之间通信故障进行快速检测, 在出现故障时更快的建立起替代通道或倒换到其他链路,成为亟待解 决的重要问题。 目前, 很多硬件或者软件均无法提供这个功能, 比如 以太网, 还有一些无法实现路径检测, 比如转发引擎或者接口等, 无 法实现端到端的检测。 BFD ( Bidirectional Forwarding Detection, 双 向转发检测)是一种快速检测机制, 从基础传输技术中经过逐步发展 而来, 它可以检测出网络各层的故障。 BFD 可以用于检测以太网、 多协议标记交换(MPLS )路径、 普通路由封装以及 IPSec隧道在内 的多种类型的传输正确性, BFD还能够快速检测与邻居节点之间的 连通性状态, 能够在系统之间的任何类型通道上进行故障检测, 这些 通道包括直接的物理链路、 虚电路、 隧道、 一对网元之间的 MPLS ( Multiprotocol Label Switch, 多协议标签交换 ) LSP ( Label Switch Path, 标记交换路径)、 多跳路由通道以及非直接的通道。 With the development of communication technology, the rapid detection of communication faults between adjacent systems, the establishment of alternative channels or the switching to other links in the event of a failure becomes an important problem to be solved. At present, many hardware or software can not provide this function, such as Ethernet, and some can not achieve path detection, such as forwarding engine or interface, can not achieve end-to-end detection. BFD (Bidirectional Forwarding Detection) is a fast detection mechanism. It is gradually developed from the basic transmission technology. It can detect faults in various layers of the network. BFD can be used to detect multiple types of transmissions, such as Ethernet, Multi-Protocol Label Switching (MPLS) paths, common routing encapsulation, and IPSec tunnels. BFD can also quickly detect connectivity status with neighboring nodes. Fault detection on any type of channel between systems. These channels include direct physical links, virtual circuits, tunnels, and MPLS (Multiprotocol Label Switch) LSPs ( Label Switch Path). , label switched paths), multi-hop routing channels, and indirect channels.
BFD 类似于 " Hello "协议, 可以在短时间内检测出两个节点间 的故障, 当一个 BFD会话建立之后, BFD会话的双方节点周期性地 在使 BFD的链路上向对方节点发送 BFD报文, 同时也在该链路上周 期性检测对方节点报文到达的情况, 如果在一定时间间隔内, 某一方 没有收到来自对端的 BFD报文, 则认为该链路出现故障。 BFD is similar to the "Hello" protocol. It can detect the fault between two nodes in a short time. After a BFD session is established, the two nodes of the BFD session periodically send BFD reports to the other node. If the peer does not receive the BFD packet from the peer, the link is considered to be faulty.
LSP是 MPLS节点之间的路径, 一条 LSP可以看作是一条贯穿
MPLS网络的单向隧道。当检测到链路出现故障后对 LSP的保护可以 釆取两种机制, 一种为 PS ( Protection Switching, 保护切换), 另一 种为 Rerouting (重路由)。 其中, PS为静态保护方式, 预先建立保护 LSP, 并为其分配足够的带宽, 以便当主 LSP链路(节点)失效时切 换使用,尽量减小由于 LSP失效而引起的丟包时延等问题。 Rerouting 不预先建立保护 LSP, 只有当检测到主 LSP链路(节点) 失效的时 候才发起保护 LSP的建立, 并在建立成功后将流量切换到保护 LSP 上。 可见, 一般来说当 LSP发生故障时, PS比重路由的反映速度更 加迅速。 保护倒换的实时性需要有快速的检测机制保证,检测机制可 以是 MPLS OAM检测 , 也可以是 BFD检测。 An LSP is a path between MPLS nodes. An LSP can be regarded as a cross-section. One-way tunnel of the MPLS network. When detecting a link failure, the protection of the LSP can take two mechanisms, one is PS (Protection Switching) and the other is Rerouting. The PS is in the static protection mode, and the protection LSP is pre-established and allocated enough bandwidth to switch the use when the primary LSP link (node) fails, so as to minimize the packet loss delay caused by the LSP failure. Rerouting does not pre-establish a protection LSP. It only initiates the establishment of a protection LSP when the primary LSP link (node) fails. After the establishment is successful, the traffic is switched to the protection LSP. It can be seen that in general, when the LSP fails, the PS gravity route is reflected more quickly. The real-time performance of the protection switching needs to be ensured by a fast detection mechanism. The detection mechanism can be MPLS OAM detection or BFD detection.
其中 , BFD检测通过 MPLS Ping报文来交换 BFD区分符 , 来实 现 BFD会话的自动建立。 MPLS Ping和 IP的 Ping类似, 在 MPLS 网络中, 可以通过发送一个叫做 MPLS Echo request的 MPLS报文, 通过 LSP的数据转发, 到达出口后, 在 MPLS域的 egress, 返回一个 叫做 MPLS echo reply的 BFD协商才艮文, 这样, 当 reply才艮文回来后, 可以知道此条 LSP是否可以正确的用于数据转发。 The BFD session exchanges BFD specifiers through MPLS ping packets to automatically establish BFD sessions. The MPLS ping is similar to the ping of the IP. In the MPLS network, an MPLS packet called MPLS Echo Request can be sent. After the LSP is forwarded to the egress, the egress of the MPLS domain returns a BFD called MPLS Echo Reply. Negotiation can only be used, so that when reply is returned, you can know whether this LSP can be used for data forwarding correctly.
现有技术中实现 PW组( PW1和 PW2 )的 BFD检测保护, 首先 需要通过配置指定的 LSP1和 LSP3承载 PW1和 PW2, 其中, LSP1、 LSP2和 LSP3、 LSP4为在 UPE1和 NPE1上配置的一对 LSP保护组。 载 PW组的 LSP保护组上手动配置一对 BFD,即需要在 LSP1和 LSP3 上手工配置一对 BFD, 需要指定本端参数、 BFD 区分符, 以及对端 BFD参数和区分符。在 BFD检测到主 LSP出现故障时,触发 LSP倒 换, 实现对 PW组的保护。 In the prior art, the BFD detection and protection of the PW group (PW1 and PW2) is implemented. The LSP1 and LSP3 are configured to carry the PW1 and PW2. The LSP1, the LSP2, the LSP3, and the LSP4 are the pair configured on the UPE1 and the NPE1. LSP protection group. You need to configure a pair of BFDs on the LSP protection group in the PW group. You need to configure a pair of BFDs on the LSP1 and LSP3. You need to specify local parameters, BFD specifiers, and peer BFD parameters and specifiers. When the BFD detects that the primary LSP is faulty, the LSP is triggered to protect the PW group.
在实现本发明实施例过程中,发明人发现现有技术中至少存在如 下问题:现有技术需要手工配置保证 PW组用相同的 LSP,工作量大, 配置繁瑣。 并且手工配置承载 PW组的 LSP保护组后, 依然无法在 承载 PW组的 LSP保护组上自动建立 BFD会话,仍然需要在 LSP保 护组(LSP1 和 LSP2 )上手动配置一对 BFD, 需要指定本端参数,
BFD区分符, 以及对端 BFD参数和区分符。 发明内容 In the process of implementing the embodiments of the present invention, the inventors have found that at least the following problems exist in the prior art: the prior art requires manual configuration to ensure that the PW group uses the same LSP, which has a large workload and a complicated configuration. After the LSP protection group that carries the PW group is configured, the BFD session cannot be automatically established on the LSP protection group that carries the PW group. You need to manually configure a pair of BFDs on the LSP protection group (LSP1 and LSP2). parameter, BFD specifier, and peer BFD parameters and specifiers. Summary of the invention
本发明实施例提供了一种为承载伪线组的 LSP隧道建立 BFD检 测的方法、 系统及设备, 以解决现有技术中手工配置 PW组保护, 工 作量大, 配置繁瑣的问题, 以及无法自动建立 BFD保护的缺陷。 The embodiment of the invention provides a method, a system and a device for establishing a BFD detection for an LSP tunnel carrying a pseudowire group, so as to solve the problem of manual configuration of the PW group protection in the prior art, which has a large workload and a complicated configuration, and cannot automatically Establish defects in BFD protection.
本发明实施例提供了一种为承载伪线组的 LSP隧道建立 BFD检 测的方法, 包括: An embodiment of the present invention provides a method for establishing a BFD test for an LSP tunnel carrying a pseudowire group, including:
源端骨干网络边缘 PE设备和宿端 PE设备为一组 PW分别选择 同一对 LSP隧道, 所述 PW组配置有同一个 Group ID; The edge of the source backbone network PE device and the sink PE device selects the same pair of LSP tunnels for a group of PWs. The PW group is configured with the same group ID.
所述源端 PE设备在所述 LSP隧道上创建 BFD会话,并通过 LSP 隧道向宿端 PE设备发起 MPLS Ping报文,所述 MPLS Ping报文携带 所述 Group ID和 BFD区分符; The source PE device creates a BFD session on the LSP tunnel, and initiates an MPLS ping packet to the sink PE device by using the LSP tunnel, where the MPLS ping packet carries the Group ID and the BFD specifier;
所述宿端 PE设备根据所述 MPLS Ping报文携带的 Group ID选 择所述 LSP隧道对应的反向 LSP隧道向所述源端 PE设备发送 BFD 协商报文, 建立对所述 LSP隧道的 BFD检测。 And the sinking PE device sends a BFD negotiation packet to the source PE device according to the group ID of the MPLS ping packet, and the BFD session of the LSP tunnel is established. .
本发明实施例还提供了一种为承载伪线组的 LSP隧道建立 BFD 检测的系统 , 包括源端 PE设备和宿端 PE设备, PW组中各个 PW具 有相同的源端 PE设备和宿端 PE设备, The embodiment of the present invention further provides a system for establishing BFD detection for an LSP tunnel carrying a pseudowire group, including a source PE device and a sink PE device. Each PW in the PW group has the same source PE device and sink PE. Equipment,
所述源端 PE设备,用于为所述 PW组分别选择同一对 LSP隧道, 所述 PW组配置有同一个 Group ID; 并在所述 LSP隧道上创建 BFD 会话,通过 LSP隧道向宿端 PE设备发起 MPLS Ping报文,所述 MPLS Ping报文携带所述 Group ID和 BFD区分符; 同一个 Group ID The source PE device is configured to select the same pair of LSP tunnels for the PW group, and the PW group is configured with the same group ID; and the BFD session is created on the LSP tunnel, and the LSP tunnel is used to the sink PE. The device initiates an MPLS ping packet, where the MPLS ping packet carries the Group ID and the BFD specifier; the same Group ID
所述宿端 PE设备,用于根据所述源端 PE设备发送的所述 MPLS Ping报文携带的 Group ID选择对应的反向 LSP隧道, 并在所述反向 LSP隧道上向所述源端 PE设备发送 BFD协商报文,建立对所述承载 PW的 LSP的 BFD检测。 The sink PE device is configured to select a corresponding reverse LSP tunnel according to the Group ID carried in the MPLS ping packet sent by the source PE device, and send the reverse LSP tunnel to the source end on the reverse LSP tunnel. The PE device sends a BFD negotiation packet to establish BFD detection on the LSP that carries the PW.
本发明实施例还提供了一种 PE设备, 包括配置模块、 LSP隧道
选择模块和 Ping模块, The embodiment of the invention further provides a PE device, including a configuration module and an LSP tunnel. Select the module and the ping module,
所述配置模块, 用于在建立伪线 PW时, 为一组 PW组配置同一 个 Group ID; The configuration module is configured to configure the same Group ID for a group of PW groups when establishing a pseudowire PW;
所述 LSP隧道选择模块,用于根据所述配置模块配置的 Group ID 为所述 PW组分配同一对 LSP隧道; The LSP tunnel selection module is configured to allocate the same pair of LSP tunnels to the PW group according to the group ID configured by the configuration module;
所述 Ping模块, 用于根据所述 LSP隧道选择模块选择的 LSP隧 道向所述 PW组对端的 PE设备发起 MPLS Ping报文,所述 MPLS Ping 报文携带所述 Group ID和 BFD区分符; 还用于解析所述 PW组对端 PE设备发起的 MPLS Ping报文, 得到所述 MPLS Ping报文携带的所 述 Group ID。 The ping module is configured to send an MPLS ping packet to the PE device at the opposite end of the PW group according to the LSP tunnel selected by the LSP tunnel selection module, where the MPLS ping packet carries the Group ID and the BFD specifier; The MPLS ping packet sent by the peer PE device of the PW group is parsed, and the group ID carried in the MPLS ping packet is obtained.
与现有技术相比, 本发明实施例具有以下优点: 本发明的实施例 中, 通过将一组 PW 自动承载在同一对 LSP隧道上, 并通过发起的 MPLS Ping报文携带 Group ID的方式能够自动在承载上述 PW组的 一对 LSP隧道上建立 BFD检测,从而提高了在承载 PW组的 LSP隧 道上建立 BFD会话的自动化水平,并通过对 LSP隧道的 BFD检测体 现对 PW组的 BFD检测。 附图说明 Compared with the prior art, the embodiment of the present invention has the following advantages: In the embodiment of the present invention, a group of PWs are automatically carried on the same pair of LSP tunnels, and the group IDs are carried by the initiated MPLS ping packets. Automatically establishes BFD detection on a pair of LSPs that carry the PW group, thereby improving the automation level of establishing a BFD session on the LSP tunnel that carries the PW group, and performing BFD detection on the PW group by BFD detection on the LSP tunnel. DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面 将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而 易见地, 下面描述中的附图仅仅是本发明的一些实施例, 对于本领域 普通技术人员来讲, 在不付出创造性劳动性的前提下, 还可以根据这 些附图获得其他的附图。 In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any inventive labor.
图 1为本发明实施例中 CE设备通过 VLL接入 VPLS的示意图; 图 2为本发明实施例为承载伪线组的 LSP隧道建立 BFD检测的 典型组网示意图; 1 is a schematic diagram of a CE device accessing a VPLS through a VLL according to an embodiment of the present invention; FIG. 2 is a schematic diagram of a typical networking for establishing BFD detection for an LSP tunnel carrying a pseudowire group according to an embodiment of the present invention;
图 3为本发明实施例 PE设备的结构图; 3 is a structural diagram of a PE device according to an embodiment of the present invention;
图 4为本发明实施例伪线组的 BFD检测方法的流程图。
具体实施方式 FIG. 4 is a flowchart of a method for detecting a BFD of a pseudowire group according to an embodiment of the present invention. detailed description
下面将结合本发明实施例中的附图, 对本发明实施例中的技 术方案进行清楚、 完整地描述, 显然, 所描述的实施例仅仅是本 发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施 例, 本领域普通技术人员在没有作出创造性劳动前提下所获得的 所有其他实施例, 都属于本发明保护的范围。 The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
如图 1 所示的示意图为本发明实施例的一种具体应用场景, MPLS L2VPN是在 MPLS网络上透明传递用户的二层数据, 从用户 的角度看, 该 MPLS网络是一个二层的交换网络, 通过该网络, 在不 同站点之间建立二层连接。 MPLS L2VPN的原理主要是利用标签栈 来实现用户报文在 MPLS网络中的透明传送: 外层标签(称为 tunnel 标签)用于将报文从一个 PE传递到另一个 PE, 内层标签(在 MPLS L2VPN中, 称为 VC标签)用于区分不同的 VPN中的不同连接, 接 用户网边缘)。 L2VPN主要分为 VLL ( Virtual Leased Line,虚拟专线 ) 和 VPLS ( Virtual Private LAN Service , 虚拟专用局域网服务) 两种, VLL是对传统租用线业务的仿真, 通过使用 IP网络对租用线进行模 拟, 从虚拟租用线两端的用户来看, 该虚拟租用线近似于过去的租用 线。 VPLS借助 IP公共网络实现 LAN之间通过虚拟专用网段互连, 是局域网在 IP公共网络上的延伸。 如图 1所示, 在 MPLS网络中, PE路由器是主要设备, PE负责对 VPN用户进行管理, 建立各 PE间 LSP连接; CE分布用户网络路由, CE可以是路由器, 也可以是交换 机或主机。 VPLS技术使用信令协议在 PE之间建立相应横跨骨干网 络的 PW, 通过 PW可将以太网数据单元在骨干网络上传输, PW是 通过在两个 PE端点间建立一对单向 LSP建立起来的, 建立起来的 LSP隧道可以承载多个 VPLS服务, PE间有多条 LSP。 根据实现功 能以及在网络中所处的位置不同, 可将 PE分层为 NPE和 UPE, 其 中, NPE和 UPE之间通过 MPLS的 LSP隧道交换。 VPLS技术使用
信令协议在 PE之间建立相应横跨骨干网络的 PW ( Peeudo Wire, 伪 线), 通过 PW可将以太网数据单元在骨干网络上传输, PW是通过 在两个 PE端点间建立一对单向 LSP建立起来的, 建立起来的 LSP 隧道可以承载多个 VPLS服务, PE间有多条 LSP。 The schematic diagram shown in FIG. 1 is a specific application scenario of the embodiment of the present invention. MPLS L2VPN transparently transmits Layer 2 data of a user on an MPLS network. From the perspective of the user, the MPLS network is a Layer 2 switching network. Through the network, a Layer 2 connection is established between different sites. The principle of MPLS L2VPN is to use the label stack to transparently transmit user packets in the MPLS network. The outer label (called the tunnel label) is used to transfer packets from one PE to another. In MPLS L2VPN, it is called a VC label. It is used to distinguish different connections in different VPNs and connect to the edge of the user network. L2VPN is mainly divided into VLL (Virtual Leased Line) and VPLS (Virtual Private LAN Service). VLL is a simulation of traditional leased line services. By using IP networks to simulate leased lines, From the perspective of users at both ends of the virtual leased line, the virtual leased line approximates the past leased line. VPLS uses the IP public network to interconnect LANs through virtual private network segments, which is an extension of LANs on IP public networks. As shown in Figure 1, in an MPLS network, a PE router is the primary device. The PE is responsible for managing VPN users and establishing LSP connections between PEs. The CE distributes user network routes. The CE can be a router or a switch or a host. The VPLS technology uses the signaling protocol to establish a PW across the backbone network between the PEs. The PW can transmit the Ethernet data units on the backbone network. The PW is established by establishing a pair of unidirectional LSPs between the two PE endpoints. The established LSP tunnel can carry multiple VPLS services, and there are multiple LSPs between PEs. The PE can be layered into an NPE and a UPE according to the implementation function and the location in the network. The NPE and the UPE are exchanged through the MPLS LSP tunnel. VPLS technology use The signaling protocol establishes a PW (Peudo Wire) across the backbone network between the PEs. The PW can transmit the Ethernet data units on the backbone network. The PW establishes a pair of singles between the two PE endpoints. The established LSP tunnel can be used to carry multiple VPLS services. There are multiple LSPs between PEs.
然而本发明实施例不仅仅限于通过 VLL接入 VPLS的应用 , 对 于任何场景的 PW组 BFD检测保护均适用, 如图 2所示, 为本发明 实施例 PW组 BFD检测的一组网示意图。 However, the embodiment of the present invention is not limited to the application of the VLL access to the VPLS, and is applicable to the BFD detection and protection of the PW group in any scenario. As shown in FIG. 2, it is a set of network diagrams for detecting the BFD of the PW group in the embodiment of the present invention.
本发明实施例在 PW组源端的 PE设备上, 为该 PW组设置同一 个 Group ID,在本发明的所有实施例中,为该 PW组设置同一个 Group ID具体包括: 为 PE上的所有 PW进行分组, 本实施例中 , PW只包 括 PW1和 PW2, 为 PW1和 PW2设置同一个 Group ID为 PW组。 为 PW组设置同一个 Group ID使得源端 PE设备能够为 Group ID相同的 PW组选择同一对 LSP隧道, 并且通过源端 PE设备和宿端 PE设备 之间的 LDP ( Label Distribute Protocol,标签分配协议)会话, 也能够使 宿端 PE设备得到该 PW组的 Group ID, 即 PW组, 从而宿端 PE设 备也会为宿端 PE上相同组的 PW选择相同的 LSP隧道。并且本发明 实施例还通过扩展 IETF (Internet Engineering Task Force, Internet工程 任务组)中的 BFD For MPLS LSPs方案, 在 MPLS Ping报文中添加 Group ID, 从而在承载 PW组的 LSP上自动建立 BFD会话。 In the embodiment of the present invention, the same group ID is set for the PW group on the PE device at the source end of the PW group. In all the embodiments of the present invention, setting the same group ID for the PW group specifically includes: In this embodiment, the PW includes only PW1 and PW2, and the same Group ID is set to PW group for PW1 and PW2. Set the same group ID for the PW group to enable the source PE device to select the same LSP tunnel for the PW group with the same group ID, and pass the LDP (Label Distribute Protocol) between the source PE device and the sink PE device. The session can also enable the sink PE device to obtain the group ID of the PW group, that is, the PW group, so that the sink PE device also selects the same LSP tunnel for the same group of PWs on the sink PE. In addition, the BFD For MPLS LSPs scheme in the IETF (Internet Engineering Task Force) is used to add a Group ID to the MPLS ping packet to automatically establish a BFD session on the LSP that carries the PW group. .
下面结合附图和实施例,对本发明的具体实施方式作进一步详细 描述: The specific embodiments of the present invention are further described in detail below with reference to the accompanying drawings and embodiments.
在如图 2所示的组网图中, 为 载伪线组的 LSP隧道建立 BFD 检测的系统包括源端 PE设备和宿端 PE设备, 本发明实施例所提出 的伪线 PW组中的 PW的源端 PE设备和该 PW的宿端 PE设备是相 同 , 例如图中 PW组中的 PW1和 PW2的源端 PE设备和宿端 PE设 备均为 UPE1和 NPE1。 其中 LSP2和 LSP4以及 LSP1和 LSP3为配 置的 LSP保护组。 本发明实施例提出了源端 PE设备和宿端 PE设备 只是为了便于理解, 然而在实际中由于 PW是双向的, 因此一个 PE 设备即可能是源端 PE设备, 也可能是宿端 PE设备。 因此一个 PE设
备会既有源端 PE设备的功能也会有宿端 PE设备的功能。例如在图 2 中, CE1流量通过 MPLS L2VPN接入, 则 PE1就可认为是源端 PE 设备, PE2就是宿端 PE设备; 同样 CE2流量通过 MPLS L2VPN接 入, 则 PE2就可认为是源端 PE设备, PE1就是宿端 PE设备。 其中, 源端 PE设备用于在建立伪线 PW时为源端 PE设备和宿端 PE设备相 同的 PW组配置同一个 Group ID , 例如, 将 PE1上的 PW分组 , 为 该分的组设置同一个 Group ID, 本实施例中 PW只有 PW1和 PW2, 为该 PW1和 PW2设置同一个 Group ID为 PW组。 同样的, 在 PE2 上, 也需要为 PE2上的 PW进行分组, 与 PE1相对应 , 将 PE2上的 PW分为 Group ID为 PW组。 根据上述 Group ID为 PW组分配同一 对 LSP隧道, 宿端 PE在建立 PW时会为 Group ID相同的 PW组选 择同一对 LSP隧道,源端 PE在该 PW组所在的 LSP隧道上创建 BFD 会话, 等待 BFD协商报文, 并通过所述 LSP隧道向宿端 PE设备发 起 MPLS Ping报文,所述 MPLS Ping报文携带所述 Group ID和 BFD 区分符; 宿端 PE设备用于根据源端 PE设备发送的所述 MPLS Ping 报文携带的 Group ID选择对应的反向 LSP隧道向所述源端 PE设备 发送 BFD协商报文,在所述反向 LSP隧道上建立对所述 PW组的 BFD 检测。 In the networking diagram shown in FIG. 2, the system for establishing BFD detection for the LSP tunnel carrying the pseudowire group includes the source PE device and the sink PE device, and the PW in the pseudowire PW group according to the embodiment of the present invention is provided. The source PE device and the sink PE device of the PW are the same. For example, the source PE device and the sink PE device of PW1 and PW2 in the PW group are both UPE1 and NPE1. LSP2 and LSP4, and LSP1 and LSP3 are configured LSP protection groups. The embodiment of the present invention provides that the source PE device and the sink PE device are only for the sake of understanding. However, in practice, the PW is bidirectional, so a PE device may be a source PE device or a sink PE device. Therefore a PE set The functions of both the active end PE device and the sink PE device are also available. For example, in Figure 2, when CE1 traffic is accessed through MPLS L2VPN, PE1 can be considered as the source PE and PE2 is the sink PE. Similarly, when CE2 traffic is accessed through MPLS L2VPN, PE2 can be considered as the source PE. Equipment, PE1 is the sink PE device. The source PE device is configured to configure the same group ID for the same PW group as the source PE device and the sink PE device when the PW is established. For example, the PW group on the PE1 is set to be the same as the group. A group ID, in this embodiment, the PW is only PW1 and PW2, and the same group ID is set to the PW group for the PW1 and PW2. Similarly, on PE2, the PWs on PE2 are also grouped. The PWs on PE2 are classified into Group IDs as PW groups. The same pair of LSPs are allocated to the PW group according to the group ID. The peer PEs select the same LSP tunnel for the PW group with the same group ID. The source PE creates a BFD session on the LSP tunnel where the PW group resides. Waiting for the BFD negotiation packet, and initiating the MPLS ping packet to the sink PE device by using the LSP tunnel, the MPLS ping packet carrying the Group ID and the BFD specifier; and the sink PE device for using the source PE device The group LSP corresponding to the MPLS ping packet sent by the MPLS ping packet is sent to the source PE device to send a BFD negotiation packet, and the BFD session of the PW group is set up on the reverse LSP tunnel.
为了便于理解本发明实施例所体现的思想, 以下以 PE1 为源端 PE设备, PE2为宿端 PE设备为例对本发明实施例伪线组的 BFD检 测系统的工作过程进行描述。 在建立 PW时, 将 PE1和 PE2之间的 所有 PW建立为一个 PW组(将 PW1和 PW2分为同一个 PW组), 并为该 PW组配置同一个 Group ID,这样 PE1在为该 PW组选择 LSP 隧道时, 只会选择 LSP2隧道或 LSP4隧道(因为 LSP2和 LSP4互为 LSP保护组);并且 PE1会通过 LDP会话使 PE2也能够得知该 PW组 的 Group ID, 从而在收到 PE1的报文后, 会选择相应的反向 LSP隧 道向 PE1反馈, ^列 ^口 PE1选中 LSP2向 PE2 载 PW1 , 则 PE2才艮据 LDP会话携带的 Group ID会选择 LSP1隧道向 PE1反馈。 因此通过 为 PW组设置同一个 Group ID能够将 PW组自动承载在同一对 LSP
隧道上。 In order to facilitate the understanding of the embodiments of the present invention, the following describes the working process of the BFD detection system of the pseudowire group in the embodiment of the present invention, taking PE1 as the source PE and PE2 as the sink PE as an example. When a PW is set up, all the PWs between PE1 and PE2 are set up as one PW group. PW1 and PW2 are grouped into the same PW group. The same group ID is configured for the PW group. When an LSP tunnel is selected, only the LSP2 tunnel or the LSP4 tunnel is selected (because LSP2 and LSP4 are LSP protection groups); and PE1 can also know the group ID of the PW group through the LDP session. After the packet is sent, the corresponding reverse LSP tunnel is selected to feed back to PE1. If the LSP2 is connected to PE2 and the PW1 is carried, the PE2 will select the LSP1 tunnel to feed back to PE1. Therefore, the PW group can be automatically carried in the same pair of LSPs by setting the same group ID for the PW group. On the tunnel.
本发明实施例提出了两种通过 LDP会话传送 Group ID的方式, 如下所示为 LDP会话报文结构图。 The embodiment of the present invention provides two ways of transmitting a group ID through an LDP session, as shown in the following figure.
VC 信 VC letter
控制字 VC类型 VC信息长度 息长度 Control word VC type VC information length
Group ID Group ID
VCID VCID
接口参数 Interface parameter
一种方式是直接将 PW组的 LDP会话中的 Group ID配置相同。 另一种方式是通过设置 PW组的 LDP会话 ^艮文中的 VC ID体现所述 Group ID, 即可以使用一个 VCID的范围对应一个 Group ID,上述两 种方式均能够达到传递 Group ID的目的。 One method is to directly configure the same group ID in the LDP session of the PW group. The other way is to set the group ID by setting the VC ID in the LDP session of the PW group. That is, the range of a VCID can be used to correspond to a group ID. Both of the above methods can achieve the purpose of transmitting the group ID.
PE1在 LSP2隧道上创建 BFD会话, 等待 BFD协商报文, 并根 据配置的 Group ID选择 LSP2隧道向 PE2发起 MPLS Ping报文( MPLS Echo request ), PE1在该 MPLS Ping报文中添加 BFD区分符和相应 的 PW组的 Group ID。 PE2在收到该 MPLS Ping报文后,根据该 MPLS Ping报文中的 Group ID选择 LSPl隧道作为 BFD反向 LSP隧道, 并 通过 LSPl向 PE1发送 BFD协商报文,返回 MPLS echo reply的 BFD 协商报文, 从而完成 LSPl和 LSP2上的 BFD的自动创建, 进行承载 上述 PW组的 LSP1和 LSP2的双向快速检测。 本发明实施例通过扩 展所述 MPLS Ping报文 , 通过 MPLS Ping报文所述类型长度值 TLV 域携带所述 Group ID , 其 MPLS Ping报文扩展如下表所示: PE1 creates a BFD session on the LSP2 tunnel, waits for BFD negotiation packets, and selects the LSP2 tunnel to send MPLS ping packets to the PE2 according to the configured group ID. PE1 adds BFD specifiers to the MPLS ping packets. Group ID of the corresponding PW group. After receiving the MPLS ping packet, the PE2 selects the LSP1 tunnel as the BFD reverse LSP tunnel according to the group ID in the MPLS ping packet, and sends a BFD negotiation packet to the PE1 through the LSP1, and returns the BFD negotiation report of the MPLS echo reply. The automatic creation of BFD on LSP1 and LSP2 is performed, and the two-way fast detection of LSP1 and LSP2 carrying the PW group is performed. In the embodiment of the present invention, the MPLS ping packet is extended by the TLV domain of the type length of the MPLS ping packet, and the MPLS ping packet extension is as follows:
01234567890123456789012345678901 01234567890123456789012345678901
+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+ +■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+++++■+■+■ +■+■+■+■+■+■+■+
( Type ) PW GroupID Length ( 4 ) ( Type ) PW GroupID Length ( 4 )
+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■++■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+++++■+■+■ +■+■+■+■+■+■+■+
I Value |I Value |
+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+
如图 3所示, 为本发明实施例 PE设备的结构图, 该 PE设备可 以作为源端 PE设备, 也可以作为宿端 PE设备。 该 PE设备 1包括配 置模块 11、 LSP隧道选择模块 12和 Ping模块 13。 配置模块 11用于 在建立伪线 PW时, 为源端 PE设备和宿端 PE设备相同的 PW组配 置同一个 Group ID, 从而实现将 PW组自动承载在一对 LSP隧道上。 例如将源端宿端 PE设备相同的 PW组的 Group ID都配置为 100; 或 将一个 VC ID的范围指定为 100,使得该范围内的所有 VC ID都共用 一个 Group ID ( 100 )。 LSP隧道选择模块 12用于根据配置模块 11配 置的 Group ID为 PW组分配相同的 LSP隧道,如图 2,则 PE1为 PW 组( PW1和 PW2 )选择 LSP2作为 LSP隧道承载上述 PW组, PE2 为 PW组( PW1和 PW2 )选择 LSP1作为 LSP隧道承载上述 PW组。 +■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+++++■+■+■ +■+■+■+■+■+■+■+ As shown in FIG. 3, it is a structural diagram of a PE device according to an embodiment of the present invention. The PE device can be used as a source PE device or a sink PE device. The PE device 1 includes a configuration module 11, an LSP tunnel selection module 12, and a ping module 13. The configuration module 11 is configured to configure the same group ID for the same PW group of the source PE device and the sink PE device when the PW group is established, so that the PW group is automatically carried on a pair of LSP tunnels. For example, the group ID of the same PW group of the source sink PE device is configured to be 100; or the range of one VC ID is specified as 100, so that all VC IDs in the range share a Group ID (100). The LSP tunnel selection module 12 is configured to allocate the same LSP tunnel to the PW group according to the group ID configured by the configuration module 11, as shown in FIG. 2, the PE1 is the PW group (PW1 and PW2), and the LSP2 is used as the LSP tunnel to carry the PW group, and the PE2 is The PW group (PW1 and PW2) selects LSP1 as the LSP tunnel to carry the above PW group.
Ping模块 13用于根据 LSP隧道选择模块 12选择的 LSP隧道向所述 PW组对端的 PE设备发起 MPLS Ping报文,该 MPLS Ping报文携带 所述 Group ID和 BFD 区分符, 并在作为对端 PE设备时用于解析 MPLS Ping报文, 得到所述 MPLS Ping报文携带的所述 Group ID。 The ping module 13 is configured to send an MPLS ping packet to the PE device at the peer end of the PW group according to the LSP tunnel selected by the LSP tunnel selection module 12, where the MPLS ping packet carries the Group ID and the BFD specifier, and is used as the peer end. The PE device is configured to parse the MPLS ping packet, and obtain the group ID carried in the MPLS ping packet.
其中, PE设备 1还包括 BFD模块 15 , 用于在 LSP隧道上等待 BFD会话协商, 并根据 Ping模块 13得到的所述 Group ID选择对应 的反向 LSP隧道, 并在反向 LSP隧道上发送 BFD协商报文, 从而在 承载上述 PW组的一对 LSP完成 BFD的自动创建。 The PE device 1 further includes a BFD module 15 for waiting for BFD session negotiation on the LSP tunnel, and selecting a corresponding reverse LSP tunnel according to the Group ID obtained by the ping module 13, and transmitting the BFD on the reverse LSP tunnel. The BPDU is negotiated to complete the automatic creation of the BFD on the pair of LSPs that carry the PW group.
其中, Ping模块 13包括 Ping报文发送子模块 131和 Ping报文 解析子模块 132, Ping报文发送子模块 131用于扩展所述 MPLS Ping 报文,通过 MPLS Ping报文所述类型长度值 TLV域携带所述 Group ID 和 BFD区分符; Ping报文解析子模块 132用于在宿端 PE上解析 MPLS Ping报文, 获取 Group ID和 BFD区分符。 The ping module 13 includes a ping packet sending sub-module 131 and a ping packet parsing sub-module 132. The ping packet sending sub-module 131 is configured to extend the MPLS ping packet and pass the MPLS Ping packet with the type length value TLV. The domain carries the group ID and the BFD specifier. The ping packet parsing sub-module 132 is configured to parse the MPLS ping packet on the sink PE to obtain the group ID and the BFD specifier.
通过本发明实施例上述伪线组的 BFD检测系统及 PE设备,能够 通过为 PW组设置同一个 Group ID, 从而将 PW组自动承载在一对 LSP隧道上,提高了自动化水平,并且通过发起的 MPLS Ping报文携 带 Group ID的方式能够自动在承载上述 PW组的一对 LSP隧道上建 立 BFD检测,从而通过对 LSP隧道的 BFD检测体现对 PW组的 BFD
检测 , The BFD detection system and the PE device of the pseudowire group in the embodiment of the present invention can automatically carry the PW group on a pair of LSP tunnels by setting the same group ID for the PW group, thereby improving the automation level and initiating the The MPLS ping packet carrying the group ID can automatically establish BFD detection on the pair of LSPs that carry the PW group. The BFD detection of the LSP tunnel reflects the BFD of the PW group. Detection,
如图 4所示,为本发明实施例伪线组的 BFD检测方法的流程图 , 为了便于描述以下步骤以图 2 所示的组网图进行描述, 并且以 PE1 为源端 ΡΕ设备,以 ΡΕ2为宿端 ΡΕ设备为例,在该图中, PW1和 PW2 是源端 ΡΕ设备和宿端 ΡΕ设备相同的两个 PW,同为 UPE1和 NPE1 , 因此可将 PW1和 PW2视为一个 PW组 ,并且 LSP2和 LSP4以及 LSP1 和 LSP3为配置的 LSP保护组。 该实施例包括以下步骤: As shown in FIG. 4, it is a flowchart of a BFD detection method for a pseudowire group according to an embodiment of the present invention. For convenience of description, the following steps are described in the networking diagram shown in FIG. 2, and PE1 is used as a source device, and ΡΕ2 For example, in the figure, PW1 and PW2 are the same PWs of the source device and the sink device, and both are UPE1 and NPE1. Therefore, PW1 and PW2 can be regarded as one PW group. LSP2 and LSP4, and LSP1 and LSP3 are configured LSP protection groups. This embodiment includes the following steps:
步骤 S401 , 源端 ΡΕ设备在建立伪线 PW时, 为源端宿端 ΡΕ设 备相同的 PW组配置同一个 Group ID。 例如 PE1为 PW1和 PW2配 置同一个 Group ID, 为 100。 这样 PE1在为 PW1或 PW2选择 LSP 隧道时, 都只会选择 LSP2隧道或 LSP4隧道(因为 LSP2和 LSP4互 为 LSP保护组)。 Step S401: When the source-side device establishes the pseudo-wire PW, configure the same group ID for the same PW group as the source-side sink device. For example, PE1 configures the same Group ID as 100 for PW1 and PW2. In this case, PE1 selects only the LSP2 tunnel or the LSP4 tunnel when the LSP tunnel is selected for PW1 or PW2 (because LSP2 and LSP4 are LSP protection groups).
步骤 S402, 源端 PE设备通过 LDP会话使宿端 PE设备得知该 PW组的 Group ID, 当然该步骤并不是必须的步骤, 因为也可在宿端 PE设备为该 PW组配置同一个 Group ID。在宿端 PE设备得知该 PW 组的 Group ID, 从而在收到源端 PE设备的报文后, 会选择相应的反 向 LSP隧道向 PE1反馈, 例如 PE1选中 LSP2向 PE2承载 PW1 , 则 PE2根据 LDP会话携带的 Group ID会选择 LSP1隧道向 PE1反馈。 因此通过为 PW组设置同一个 Group ID能够将 PW组自动承载在一 对 LSP隧道上。本发明实施例提出了两种通过 LDP会话传送 Group ID 的方式, 如下所示为 LDP会话报文结构图。 In the step S402, the source PE device uses the LDP session to enable the sink PE device to know the group ID of the PW group. This step is not a necessary step, because the peer PE device can also configure the same group ID for the PW group. . After receiving the packet from the source PE device, the PE device selects the corresponding reverse LSP tunnel to feed back to PE1. For example, PE1 selects LSP2 to carry PW1 to PE2, and PE2. According to the Group ID carried in the LDP session, the LSP1 tunnel is selected to feed back to PE1. Therefore, the PW group can be automatically carried on a pair of LSP tunnels by setting the same Group ID for the PW group. The embodiment of the present invention provides two ways of transmitting a group ID through an LDP session, as shown in the following figure.
VC 信 VC letter
控制字 VC类型 VC信息长度 息长度 Control word VC type VC information length
Group ID Group ID
VC ID VC ID
接口参数 Interface parameter
一种方式是直接将 PW组的 LDP会话中的 Group ID配置相同。 另一种方式是通过设置 PW组的 LDP会话 ^艮文中的 VC ID体现所述
Group ID, 即可以使用一个 VCID的范围对应一个 Group ID,上述两 种方式据能够达到传递 Group ID的目的。 One method is to directly configure the same group ID in the LDP session of the PW group. Another way is to set the VC ID in the LDP session of the PW group. Group ID, that is, a range in which a VCID can be used corresponds to a Group ID. The above two methods can achieve the purpose of delivering a Group ID.
步骤 S403, 源端和宿端 PE设备分别根据 Group ID为 PW组分 配同一对 LSP隧道。 源端 PE设备在为 PW分配 LSP隧道时,会根据 该 PW的 Group ID选择相应的 LSP隧道。 例如 PE1在为 PW1选择 LSP隧道时, 会因为该 PW1的 Group ID为 100从而选中 LSP2, 而 PE2则会根据 Group ID选中 LSP1; 同样, 因为 PW1和 PW2同属于 一个 PW组,即 PW1和 PW2有同一个 Group ID,因此 PEl在为 PW2 选择 LSP隧道时也会选中 LSP2, PE2也会选中 LSP1。 Step S403: The source device and the sink PE device respectively allocate the same pair of LSP tunnels according to the group ID. When the source PE device allocates an LSP tunnel to the PW, it selects the corresponding LSP tunnel based on the group ID of the PW. For example, when PE1 selects an LSP tunnel for PW1, LSP2 is selected because the group ID of the PW1 is 100, and PE2 selects LSP1 according to the group ID. Similarly, PW1 and PW2 belong to one PW group, that is, PW1 and PW2. The same group ID, PE1 will also select LSP2 when selecting an LSP tunnel for PW2, and PE2 will also select LSP1.
步骤 S404 , 源端 PE设备在选中的 LSP隧道上创建 BFD会话, 等待 BFD协商报文,并向宿端 PE设备发起 MPLS Ping报文,该 MPLS Ping报文携带 Group ID和 BFD区分符。 例如 PE1根据配置的 Group ID选择 LSP2隧道向 PE2发起 MPLS Ping报文( MPLS Echo request ), PEl在该 MPLS Ping报文中添加 BFD区分符和相应的 PW组的 Group ID。 本发明实施例通过扩展所述 MPLS Ping才艮文, 通过 MPLS Ping 报文所述类型长度值 TLV域携带所述 Group ID, 其 MPLS Ping报文 扩展如下表所示: Step S404: The source PE device creates a BFD session on the selected LSP tunnel, waits for the BFD negotiation packet, and sends an MPLS ping packet to the sink PE device. The MPLS ping packet carries the Group ID and the BFD specifier. For example, PE1 sends an MPLS ping request to the PE2 based on the configured LSP2 tunnel. The PE1 adds the BFD specifier and the group ID of the corresponding PW group to the MPLS ping packet. In the embodiment of the present invention, the MPLS ping packet is extended by the MPLS ping packet, and the MPLS ping packet is extended by the TLV domain of the MPLS ping packet. The MPLS ping packet extension is as follows:
01234567890123456789012345678901 01234567890123456789012345678901
+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■++■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+++++■+■+■ +■+■+■+■+■+■+■+
1 ( Type ) PW GroupID | Length (4) | +■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+1 ( Type ) PW GroupID | Length (4) | +■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■ +■+■+■+■+■+■+■+■+■+■+■+■+■+
I Value |I Value |
+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+ 步骤 S405, 宿端 PE设备根据源端 PE设备发送的 MPLS Ping报 文携带的 Group ID选择对应的反向 LSP隧道向所述源端 PE设备返 回 BFD协商报文, 建立对所述 PW组的 BFD检测。 例如 PE2在收到 该 MPLS Ping报文后, 根据该 MPLS Ping报文中的 Group ID选择 LSP1隧道作为 BFD反向 LSP隧道, 并通过 LSP1向 PE1返回 MPLS echo reply的 BFD协商报文, 从而完成 LSP1和 LSP2上的 BFD的自
动创建 , 进行承载上述 PW组的 LSP1和 LSP2的双向快速检测。 步骤 S406, 当 BFD检测 LSP隧道出现故障时, 自动触发 LSP 隧道保护组的切换, 实现对所述 PW组的检测和保护。 例如 BFD检 测到 LSP2出现故障, 则会自动触发 LSP隧道保护组的切换, 切换到 LSP4来承载 PW组, 从而实现对该 PW组的检测和保护。 +■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+■+++++■+■+■ +■+■+■+■+■+■+■+ Step S405: The sink PE device selects the corresponding reverse LSP tunnel to the source PE according to the Group ID carried in the MPLS ping packet sent by the source PE device. The device returns BFD negotiation packets to establish BFD detection for the PW group. For example, after receiving the MPLS ping packet, the PE2 selects the LSP1 tunnel as the BFD reverse LSP tunnel according to the group ID in the MPLS ping packet, and returns the BFD negotiation packet of the MPLS echo reply to the PE1 through the LSP1, thereby completing the LSP1. And BFD on LSP2 The two-way fast detection of LSP1 and LSP2 carrying the PW group is performed. Step S406: When the BFD detects that the LSP tunnel is faulty, the switchover of the LSP tunnel protection group is automatically triggered to implement detection and protection on the PW group. For example, if the LSP2 is faulty, the BFD session automatically triggers the switching of the LSP tunnel protection group and switches to LSP4 to carry the PW group to detect and protect the PW group.
通过本发明上述实施例伪线组的 BFD检测方法, 通过将为 PW 组设置同一个 Group ID , 从而将 PW组自动承载在同一对 LSP隧道 上,提高了 LSP隧道承载 PW组的自动化水平,并且通过发起的 MPLS Ping报文携带 Group ID的方式能够自动在承载上述 PW组的一对 LSP 隧道上建立 BFD检测 ,从而通过对 LSP隧道的 BFD检测体现对 PW 组的 BFD检测。 According to the BFD detection method of the pseudowire group in the foregoing embodiment of the present invention, the PW group is automatically carried on the same pair of LSP tunnels by setting the same group ID for the PW group, thereby improving the automation level of the PW group carried by the LSP tunnel, and The BFD detection of the PW group is performed by the BFD detection of the LSP tunnel by the BFD detection of the LSP tunnel.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解 到本发明可借助软件加必需的通用硬件平台的方式来实现, 当然也可 以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解, 本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以 软件产品的形式体现出来, 该计算机软件产品存储在一个存储介质 中, 包括若干指令用以使得一台计算机设备(可以是个人计算机, 服 务器, 或者网络设备等)执行本发明各个实施例所述的方法。 Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is a better implementation. the way. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium, including a plurality of instructions for making a A computer device (which may be a personal computer, server, or network device, etc.) performs the methods described in various embodiments of the present invention.
以上所述仅是本发明的优选实施方式, 应当指出, 对于本技术领 域的普通技术人员来说, 在不脱离本发明原理的前提下, 还可以做出 若干改进和润饰, 这些改进和润饰也应视为本发明的保护范围。
The above description is only a preferred embodiment of the present invention, and it should be noted that those skilled in the art can also make several improvements and retouchings without departing from the principles of the present invention. It should be considered as the scope of protection of the present invention.
Claims
1、 一种为承载伪线组的 LSP隧道建立 BFD检测的方法,其特征 在于, 包括: A method for establishing a BFD detection for an LSP tunnel carrying a pseudowire group, and the method includes the following steps:
源端骨干网络边缘 PE设备和宿端 PE设备为一组 PW分别选择 同一对 LSP隧道, 所述 PW组配置有同一个 Group ID; The edge of the source backbone network PE device and the sink PE device selects the same pair of LSP tunnels for a group of PWs. The PW group is configured with the same group ID.
所述源端 PE设备在所述 LSP隧道上创建 BFD会话,并通过 LSP 隧道向宿端 PE设备发起 MPLS Ping报文,所述 MPLS Ping报文携带 所述 Group ID和 BFD区分符; The source PE device creates a BFD session on the LSP tunnel, and initiates an MPLS ping packet to the sink PE device by using the LSP tunnel, where the MPLS ping packet carries the Group ID and the BFD specifier;
所述宿端 PE设备根据所述 MPLS Ping报文携带的 Group ID选 择所述 LSP隧道对应的反向 LSP隧道向所述源端 PE设备发送 BFD 协商报文, 建立对所述 LSP隧道的 BFD检测。 And the sinking PE device sends a BFD negotiation packet to the source PE device according to the group ID of the MPLS ping packet, and the BFD session of the LSP tunnel is established. .
2、如权利要求 1所述为承载伪线组的 LSP隧道建立 BFD检测的 方法, 其特征在于, 所述 PW组配置有同一个 Group ID具体包括: 所述源端和宿端 PE设备将所述 PW组的 LDP会话艮文中的 Group ID配置相同或设置 PW组的 LDP会话报文中的 VC ID的范围 体现同一个 Group ID。 The method for establishing a BFD for an LSP that carries a pseudowire group according to claim 1, wherein the PW group is configured with the same group ID, and the source and sink PE devices are The range of the VC IDs in the LDP session packets of the PW group is the same as the group ID of the LDP session.
3、如权利要求 1所述为承载伪线组的 LSP隧道建立 BFD检测的 方法, 其特征在于, 所述 MPLS Ping报文携带 Group ID通过以下步 骤实现: The method for establishing BFD for the LSP tunnel carrying the pseudowire group according to claim 1, wherein the MPLS ping packet carrying the Group ID is implemented by the following steps:
扩展所述 MPLS Ping报文, 通过 MPLS Ping报文所述类型长度 值 TLV域携带所述 Group ID。 The MPLS ping packet is extended, and the group ID is carried by the TLV domain of the type length of the MPLS ping packet.
4、如权利要求 1所述为承载伪线组的 LSP隧道建立 BFD检测的 方法, 其特征在于, 在所述建立对 LSP隧道的 BFD检测之后, 还包 括: The method of establishing BFD for the LSP tunnel carrying the pseudowire group according to claim 1, wherein after the BFD detection of the LSP tunnel is established, the method further includes:
当 BFD检测所述 LSP隧道出现故障时, 自动触发所述 LSP隧道 保护组的切换, 实现对所述 PW组的保护。 When the BFD detects that the LSP is faulty, the switchover of the LSP tunnel protection group is automatically triggered to protect the PW group.
5、 一种为承载伪线组的 LSP隧道建立 BFD检测的系统,其特征 在于, 包括源端 PE设备和宿端 PE设备, PW组中各个 PW具有相同
的源端 PE设备和宿端 PE设备, A system for establishing a BFD session for an LSP tunnel carrying a pseudowire group, which is characterized in that it includes a source PE device and a sink PE device, and each PW in the PW group has the same Source PE device and sink PE device,
所述源端 PE设备,用于为所述 PW组分别选择同一对 LSP隧道, 所述 PW组配置有同一个 Group ID; 并在所述 LSP隧道上创建 BFD 会话,通过 LSP隧道向宿端 PE设备发起 MPLS Ping报文,所述 MPLS Ping报文携带所述 Group ID和 BFD区分符; The source PE device is configured to select the same pair of LSP tunnels for the PW group, and the PW group is configured with the same group ID; and the BFD session is created on the LSP tunnel, and the LSP tunnel is used to the sink PE. The device initiates an MPLS ping packet, where the MPLS ping packet carries the Group ID and the BFD specifier;
所述宿端 PE设备,用于根据所述源端 PE设备发送的所述 MPLS Ping报文携带的 Group ID选择对应的反向 LSP隧道, 并在所述反向 LSP隧道上向所述源端 PE设备发送 BFD协商报文,建立对所述承载 PW的 LSP的 BFD检测。 The sink PE device is configured to select a corresponding reverse LSP tunnel according to the Group ID carried in the MPLS ping packet sent by the source PE device, and send the reverse LSP tunnel to the source end on the reverse LSP tunnel. The PE device sends a BFD negotiation packet to establish BFD detection on the LSP that carries the PW.
6、如权利要求 5所述为承载伪线组的 LSP隧道建立 BFD检测的 系统, 其特征在于, 所述源端 PE设备包括配置模块、 LSP隧道选择 模块和 Ping模块和 BFD模块, The system for establishing BFD for the LSP tunnel carrying the pseudowire group according to claim 5, wherein the source PE device includes a configuration module, an LSP tunnel selection module, a ping module, and a BFD module.
所述配置模块, 用于在建立 PW时, 为源端宿端 PE设备相同的 PW组配置同一个 Group ID; The configuration module is configured to configure the same group ID for the same PW group as the source end PE device when the PW is established;
所述 LSP隧道选择模块,用于根据所述配置模块配置的 Group ID 为所述 PW组分配相同的 LSP隧道; The LSP tunnel selection module is configured to allocate the same LSP tunnel to the PW group according to the group ID configured by the configuration module.
所述 Ping模块, 用于根据所述 LSP隧道分配模块分配的 LSP隧 道向所述宿端 PE设备发起 MPLS Ping报文,所述 MPLS Ping报文携 带所述 Group ID和 BFD区分符; The ping module is configured to send an MPLS ping packet to the sink PE device according to the LSP tunnel allocated by the LSP tunnel allocation module, where the MPLS ping packet carries the Group ID and the BFD specifier;
所述 BFD模块, 用于在 LSP隧道上等待 BFD会话协商。 The BFD module is configured to wait for BFD session negotiation on the LSP tunnel.
7、如权利要求 5所述为承载伪线组的 LSP隧道建立 BFD检测的 系统, 其特征在于, 所述宿端 PE设备包括 Ping模块、 LSP隧道选择 模块和 BFD模块, The system for establishing BFD for the LSP tunnel carrying the pseudowire group according to claim 5, wherein the sink PE device includes a ping module, an LSP tunnel selection module, and a BFD module.
所述 Ping模块, 用于解析所述源端 PE设备发起的 MPLS Ping 报文, 得到所述 MPLS Ping报文携带的所述 Group ID; The ping module is configured to parse the MPLS ping packet sent by the source PE device, and obtain the group ID carried in the MPLS ping packet;
所述 LSP隧道选择模块, 用于宿端 PE在创建 PW组时, 根据所 述 Group ID为所述 PW组选择对应的反向 LSP隧道; The LSP tunnel selection module is used by the sink PE to select a corresponding reverse LSP tunnel for the PW group according to the Group ID when creating a PW group;
所述 BFD模块,用于根据所述 Ping模块得到的所述 Group ID选 择对应的反向 LSP隧道, 并在所述反向 LSP隧道上发送 BFD协商报
文。 The BFD module is configured to select a corresponding reverse LSP tunnel according to the group ID obtained by the ping module, and send a BFD negotiation report on the reverse LSP tunnel. Text.
8、 一种 PE设备, 其特征在于, 包括配置模块、 LSP隧道选择模 块和 Ping模块, A PE device, comprising: a configuration module, an LSP tunnel selection module, and a ping module,
所述配置模块, 用于在建立伪线 PW时, 为一组 PW组配置同一 个 Group ID; The configuration module is configured to configure the same Group ID for a group of PW groups when establishing a pseudowire PW;
所述 LSP隧道选择模块,用于根据所述配置模块配置的 Group ID 为所述 PW组分配同一对 LSP隧道; The LSP tunnel selection module is configured to allocate the same pair of LSP tunnels to the PW group according to the group ID configured by the configuration module;
所述 Ping模块, 用于根据所述 LSP隧道选择模块选择的 LSP隧 道向所述 PW组对端的 PE设备发起 MPLS Ping报文,所述 MPLS Ping 报文携带所述 Group ID和 BFD区分符; 还用于解析所述 PW组对端 PE设备发起的 MPLS Ping报文, 得到所述 MPLS Ping报文携带的所 述 Group ID。 The ping module is configured to send an MPLS ping packet to the PE device at the opposite end of the PW group according to the LSP tunnel selected by the LSP tunnel selection module, where the MPLS ping packet carries the Group ID and the BFD specifier; The MPLS ping packet sent by the peer PE device of the PW group is parsed, and the group ID carried in the MPLS ping packet is obtained.
9、 如权利要求 8所述 PE设备, 其特征在于, 还包括 BFD模块, 用于在所述 LSP隧道上协商 BFD会话。 The PE device of claim 8, further comprising a BFD module, configured to negotiate a BFD session on the LSP tunnel.
10、 如权利要求 8所述 PE设备, 其特征在于, 所述 Ping模块包 括 Ping报文发送子模块和 Ping报文解析子模块, The PE device according to claim 8, wherein the ping module includes a ping packet sending submodule and a ping packet parsing submodule,
所述 Ping报文发送子模块, 用于扩展所述 MPLS Ping报文, 通 过 MPLS Ping报文所述类型长度值 TLV域携带所述 Group ID; The ping packet sending submodule is configured to extend the MPLS ping packet, and carry the group ID by using a TLV domain of the type length value of the MPLS ping packet;
所述 Ping报文解析子模块, 用于解析 MPLS Ping报文, 用于得 到才艮文中的 Group ID和 BFD区分符。
The ping packet parsing sub-module is configured to parse the MPLS ping packet, and is used to obtain the group ID and the BFD specifier in the packet.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200710181733.X | 2007-10-23 | ||
CN200710181733XA CN101141330B (en) | 2007-10-23 | 2007-10-23 | Method, system and equipment to establish BFD detection for LSP tunnel |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2009056034A1 true WO2009056034A1 (en) | 2009-05-07 |
Family
ID=39193092
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2008/072768 WO2009056034A1 (en) | 2007-10-23 | 2008-10-21 | Method, system and equipment to establish bfd detection for lsp tunnel |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN101141330B (en) |
WO (1) | WO2009056034A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017125001A1 (en) * | 2016-01-21 | 2017-07-27 | 中兴通讯股份有限公司 | Protection group processing method and device |
CN114208129A (en) * | 2020-06-30 | 2022-03-18 | 新华三技术有限公司 | Fault detection method and device and PE equipment |
Families Citing this family (26)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101141330B (en) * | 2007-10-23 | 2010-06-16 | 华为技术有限公司 | Method, system and equipment to establish BFD detection for LSP tunnel |
CN101447900A (en) * | 2008-12-15 | 2009-06-03 | 华为技术有限公司 | Method, system and device for building bidirectional forwarding detection |
CN101771577B (en) * | 2008-12-31 | 2012-10-17 | 华为技术有限公司 | Method, system and equipment for establishing bidirectional forwarding detection (BFD) for bidirectional LSP |
CN101795235B (en) * | 2010-03-18 | 2014-03-19 | 中兴通讯股份有限公司 | Route map treatment method and operator edge device |
WO2012016392A1 (en) * | 2010-08-05 | 2012-02-09 | 中兴通讯股份有限公司 | Method and system for multi-segment pseudo wire sharing bandwidth and provider edge node thereof |
CN102487327B (en) * | 2010-12-01 | 2015-05-20 | 中兴通讯股份有限公司 | Service switch method and device |
US8553533B2 (en) * | 2010-12-10 | 2013-10-08 | Cisco Technology, Inc. | System and method for providing improved failover performance for pseudowires |
CN102571601B (en) * | 2012-02-13 | 2018-05-15 | 中兴通讯股份有限公司 | A method for ensuring the reliability of bidirectional forwarding detection and label switching path equipment |
CN102611577A (en) * | 2012-03-02 | 2012-07-25 | 中兴通讯股份有限公司 | LDP (Label Distribution Protocol) conversation-based method, device and system for protecting PWs (Pseudo Wires) |
CN102918807B (en) * | 2012-07-12 | 2015-04-08 | 华为技术有限公司 | Method and routing equipment for BFD session establishment |
CN102769543B (en) * | 2012-07-20 | 2015-05-20 | 杭州华三通信技术有限公司 | BFD (Bidirectional Forwarding Detection) method and equipment based on LSP (Label Switching Path) |
CN102904816B (en) * | 2012-09-26 | 2017-04-12 | 华为技术有限公司 | Service traffic protection method and device |
CN103117949B (en) * | 2013-01-24 | 2016-08-10 | 杭州华三通信技术有限公司 | A kind of message transmitting method based on lsp tunnel and equipment |
CN103428067B (en) * | 2013-08-14 | 2017-03-15 | 杭州华三通信技术有限公司 | A kind of message forwarding method and equipment based on two-layer virtual private network |
CN103457820B (en) * | 2013-08-27 | 2018-06-26 | 华为技术有限公司 | The implementation method and device of hierarchical virtual private local area network service |
US10164863B2 (en) | 2013-09-11 | 2018-12-25 | Telefonaktiebolaget Lm Ericsson (Publ) | Inter-chassis peer and method used therein |
US9979515B2 (en) | 2014-06-30 | 2018-05-22 | Telefonaktiebolaget Lm Ericsson (Publ) | Control for BFD return path |
CN105656776B (en) * | 2014-12-01 | 2020-03-27 | 中兴通讯股份有限公司 | Pseudo wire dual-homing protection switching system, method and device |
CN106506179A (en) * | 2015-09-06 | 2017-03-15 | 中兴通讯股份有限公司 | A kind of collocation method, device and router |
CN107241206B (en) * | 2016-03-29 | 2022-02-18 | 中兴通讯股份有限公司 | Method, device and storage medium for judging service state |
CN107317753B (en) * | 2016-04-27 | 2021-02-05 | 华为技术有限公司 | Method, device and system for Bidirectional Forwarding Detection (BFD) session establishment |
CN107566266B (en) * | 2016-06-30 | 2019-09-27 | 中兴通讯股份有限公司 | Fast rerouting forwarding method, device, and network equipment |
CN109327390B (en) * | 2018-11-29 | 2021-06-29 | 新华三技术有限公司 | Traffic scheduling method and device |
CN109474495B (en) * | 2018-12-07 | 2020-08-28 | 新华三技术有限公司 | Tunnel detection method and device |
CN109768925B (en) * | 2019-03-27 | 2021-05-25 | 新华三技术有限公司 | Method and device for switching active/standby pseudo wires |
CN114650241B (en) * | 2020-12-21 | 2025-02-11 | 中国移动通信有限公司研究院 | A tunnel path fault detection method, control method, device and communication node |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1829191A (en) * | 2005-02-28 | 2006-09-06 | 华为技术有限公司 | A method for realizing bidirectional forwarding detection of equivalent forwarding class |
CN1838620A (en) * | 2005-03-25 | 2006-09-27 | 华为技术有限公司 | Method for detecting chain circuit fault between end-to-end notes in mixed network |
CN101141330A (en) * | 2007-10-23 | 2008-03-12 | 华为技术有限公司 | Method, system and equipment to establish BFD detection for LSP tunnel |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100531223C (en) * | 2005-04-30 | 2009-08-19 | 中兴通讯股份有限公司 | Method for realizing two-way marked exchange path |
CN100459531C (en) * | 2006-06-28 | 2009-02-04 | 华为技术有限公司 | Method for notifying pseudo-lines fault based on bidirectional transmission detecting protocol |
-
2007
- 2007-10-23 CN CN200710181733XA patent/CN101141330B/en not_active Expired - Fee Related
-
2008
- 2008-10-21 WO PCT/CN2008/072768 patent/WO2009056034A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1829191A (en) * | 2005-02-28 | 2006-09-06 | 华为技术有限公司 | A method for realizing bidirectional forwarding detection of equivalent forwarding class |
CN1838620A (en) * | 2005-03-25 | 2006-09-27 | 华为技术有限公司 | Method for detecting chain circuit fault between end-to-end notes in mixed network |
CN101141330A (en) * | 2007-10-23 | 2008-03-12 | 华为技术有限公司 | Method, system and equipment to establish BFD detection for LSP tunnel |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017125001A1 (en) * | 2016-01-21 | 2017-07-27 | 中兴通讯股份有限公司 | Protection group processing method and device |
CN114208129A (en) * | 2020-06-30 | 2022-03-18 | 新华三技术有限公司 | Fault detection method and device and PE equipment |
EP4145797A4 (en) * | 2020-06-30 | 2023-06-21 | New H3C Technologies Co., Ltd. | FAULT DETECTION METHOD AND DEVICE AND PE DEVICE |
Also Published As
Publication number | Publication date |
---|---|
CN101141330A (en) | 2008-03-12 |
CN101141330B (en) | 2010-06-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2009056034A1 (en) | Method, system and equipment to establish bfd detection for lsp tunnel | |
EP2498454B1 (en) | Method, device and system for processing service traffic based on pseudo wires | |
CN102396193B (en) | By the method for client data transmission of packet switching provider network | |
CN101212400B (en) | Method and system for negotiating bidirectional forwarding detection session identifier for pseudo wire | |
CN102195865B (en) | Communicating network path and status information in multi-homed networks | |
US9059902B2 (en) | Procedures, apparatuses, systems, and computer-readable media for operating primary and backup network elements | |
WO2009056053A1 (en) | A method, device and system of multi-protocol label exchange traffic engineering flow capacity switch | |
WO2010069175A1 (en) | Method, system and equipment for establishing bidirectional forwarding detection | |
WO2006007769A1 (en) | Pseudo wire label reflector, edge apparatus, two-layer virtual private network, and the method to provide pseudo wire service | |
WO2007143952A1 (en) | A method for accessing virtual private network, virtual private system, virtual private network and provider edge device | |
WO2010051699A1 (en) | Method, system and network node for establishing label switching path | |
CN102282805B (en) | Method for service protection and access device | |
WO2005006670A1 (en) | Session establishment method in label switch network and label switch node | |
CN107332683A (en) | A kind of link switch-over method and system | |
WO2012031217A1 (en) | System and method for virtual private local area network service to use the flow aware pseudowire | |
CN111245644A (en) | A method and system for automatically creating a tunnel by extending the PCEP protocol in an SDN scenario | |
CN101252492A (en) | A method and device for accessing a multi-protocol label switching virtual private network | |
CN102185712B (en) | The reverse method of VPLS network and ethernet ring network and device | |
EP2239956B1 (en) | Method, apparatus and system for ip/optical convergence | |
CN101321077A (en) | Reliable multicast method, operator edge upper layer equipment and system | |
WO2008119277A1 (en) | A method and device for implementing mpls te on vlan interface | |
CN103634210B (en) | Find the method and apparatus of the opposite end PE equipment of VPLS example | |
CN101895409B (en) | Method, device and system for processing operation, administration and maintenance mechanism in multipath domain | |
WO2012103729A1 (en) | Tunnel configuration method and device | |
WO2012109860A1 (en) | Method, device and system for establishing label switching path |
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: 08843788 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: 08843788 Country of ref document: EP Kind code of ref document: A1 |