WO2010069175A1 - 一种建立双向转发检测的方法、系统及设备 - Google Patents

一种建立双向转发检测的方法、系统及设备 Download PDF

Info

Publication number
WO2010069175A1
WO2010069175A1 PCT/CN2009/073104 CN2009073104W WO2010069175A1 WO 2010069175 A1 WO2010069175 A1 WO 2010069175A1 CN 2009073104 W CN2009073104 W CN 2009073104W WO 2010069175 A1 WO2010069175 A1 WO 2010069175A1
Authority
WO
WIPO (PCT)
Prior art keywords
lsp
bfd
ping packet
identifier
network
Prior art date
Application number
PCT/CN2009/073104
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 WO2010069175A1 publication Critical patent/WO2010069175A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • H04L45/026Details of "hello" or keep-alive messages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery

Definitions

  • the present invention relates to the field of network communications, and in particular, to a method, system and device for establishing bidirectional forwarding detection. Background technique
  • BFD Bidirectional Forwarding Detection
  • MPLS Multiprotocol Label Switch
  • IPSec IPSec tunnels
  • BFD is developed by the IETF to quickly detect connectivity between neighboring nodes. It can detect faults on any type of channel between systems. These channels include direct physical links, virtual circuits, tunnels, and a pair of network elements.
  • MPLS LSP Label Switch Path
  • multi-hop routing channel and indirect channel.
  • BFD is similar to the "Hello" protocol. It can detect the fault between two nodes in a shorter time. After a BFD session is established, the two nodes of the BFD session periodically connect to the other node on the BFD-enabled link. Sends BFD packets and periodically detects the other node on the link. When a packet arrives, if a certain party does not receive a BFD packet from the peer within a certain interval, the link is considered to be faulty.
  • An LSP is a path between MPLS nodes.
  • An LSP can be regarded as a one-way tunnel through an MPLS network.
  • PS Pressure Switching
  • the PS is in the static protection mode.
  • the backup LSP is set up in advance and allocated enough bandwidth to switch the switch when the primary LSP fails. This minimizes the packet loss caused by the LSP failure.
  • the 1+1 dual-selection mode in the PS is a more important protection mode. In the 1+1 dual-selection mode, each primary LSP has its own backup LSP.
  • the source device The two LSPs send the same traffic, but the sink device only receives the traffic transmitted by the primary LSP.
  • the sink device stops receiving packets from the primary LSP and receives the data from the standby LSP.
  • the detection mechanism can be BFD detection.
  • BFD detects the BFD Discriminator (BFD discriminator) by using LSP ping packets to automatically establish a BFD session.
  • the TLV (Type Length Value) format of the BFD Discriminator carried in the LSP ping packet is as shown in Figure 1. It includes the Type, the Length, and the BFD Discriminator 0 LSP Ping and the Ping of the IP.
  • the MPLS Echo Request packet is sent, the LSP data is forwarded to the MPLS domain, and the BFD negotiation packet is sent to the egress to carry the BFD discriminator information of the local end. After a BFD session is established, you can know whether this LSP can be used for data forwarding correctly.
  • the BFD session of the sink device may be established based on the IP link and is not associated with the detected LSP.
  • the sink device cannot guide the forwarding layer to perform traffic switching.
  • the device detects the fault of the LSP, it notifies the upper-layer application protocol.
  • the upper-layer application protocol triggers the LSP protection switching on the sink device through the communication between the signaling protocols.
  • the delay is relatively long, which is far from the carrier-class 50 ms requirement.
  • the embodiment of the present invention provides a method, a system, and a device for establishing a BFD detection, which solves the problem that the sink device cannot directly perform traffic switching after the LSP is faulty, and the LSP protection switching delay is relatively long.
  • An embodiment of the present invention provides a method for establishing BFD detection, including:
  • the LSP ping packet carrying a unique identifier of the LSP in the network and a BFD specifier Di scriminator;
  • the local identifier of the LSP is found according to the unique identifier of the LSP, and the BFD session is bound to the LSP local identifier, and the BFD negotiation packet is sent, and the BFD detection of the LSP is established.
  • An embodiment of the present invention further provides a PE device, including a receiving unit, a parsing unit, an associating unit, and a BFD unit.
  • the receiving unit is configured to receive an LSP ping packet, where the LSP ping packet carries a unique identifier of the LSP in the network;
  • the parsing unit is configured to parse the LSP ping packet, and find a local identifier of the LSP according to the unique identifier of the LSP that is carried in the LSP ping packet;
  • the association unit is configured to bind a BFD session to the local identifier
  • the BFD unit is configured to return a BFD negotiation packet to establish BFD detection on the LSP.
  • the embodiment of the present invention further provides a system for establishing BFD detection, including a first PE device and a second PE device.
  • the first PE device is configured to send an LSP ping packet to the second PE device, where the LSP ping packet carries a unique identifier of the primary LSP in the network;
  • the second PE device is configured to parse the LSP ping packet, query the local identifier of the LSP according to the unique identifier of the LSP that is carried in the LSP ping packet, and locally locate the BFD session and the LSP.
  • the binding is performed, and the BFD negotiation packet is returned to the first PE device to establish BFD detection on the LSP.
  • the embodiment of the present invention has the following advantages:
  • the source end carries the unique identifier of the LSP in the network in the sent LSP ping packet, and the sink end identifies the BFD session and the LSP local identifier. Bind, so that LSP protection switching can be triggered quickly when the LSP is faulty, which enables fast convergence of services and meets the real-time service requirements of users.
  • FIG. 1 is a schematic diagram of a TLV format of a BFD specifier in an LSP ping in the prior art
  • FIG. 2 is a schematic diagram of a typical networking of an MPLS network according to an embodiment of the present invention.
  • Embodiment 3 is a flowchart of Embodiment 1 of a BFD detection method according to the present invention.
  • FIG. 4 is a structural diagram of an embodiment of a PE device according to the present invention. detailed description
  • FIG. 2 it is a schematic diagram of a typical networking of an MPLS network according to an embodiment of the present invention.
  • the PE Provide Edge, the backbone network edge
  • CE Customer Edge
  • CE distributes user network routes.
  • CE can be a router.
  • the traffic enters the primary LSP and the secondary LSP of the source device (PE1).
  • the sink device receives traffic on the primary LSP.
  • the embodiment of the present invention provides that the source device and the sink device are only for ease of understanding. However, in practice, a PE device may be either a source device or a sink device.
  • a PE device will have both the function of the active end PE device and the function of the sink device.
  • PE1 when CE1 traffic is connected, PE1 can be regarded as the source device, and PE2 is the sink device.
  • PE2 when CE1 traffic is accessed, PE2 can be regarded as the source device, and PE1 is the sink device.
  • FIG. 3 it is a flowchart of the first embodiment of the BFD detection method of the present invention.
  • the following is a description of the networking diagram shown in FIG. 2, and the PE1 is used as the source device, and the PE2 is used as the sink device. Examples include:
  • the source device PE1 sends an LSP ping packet carrying a unique identifier of the LSP in the network.
  • PE1 creates a BFD session on the primary LSP and sends an LSP ping (MPLS Echo Request) packet to the sink device PE2.
  • the LSP ping packet carries the BFD Discriminator and the unique identifier of the LSP on the network.
  • the LSP ping packet is extended by the LSP ping packet.
  • the BFD TLV domain carries the LSP quintuple (SrcAddr, DestAddr, TunnelID, LSPID, and ExtendedlD) as the unique identifier of the primary LSP in the network.
  • the extended BFD TLV is as follows: Shown as follows:
  • LSP quintuple can uniquely identify an LSP in the network: The tunnel can be found in the network by source address, destination address, and tunnel identifier. The LSP can be used to find the LSP in the tunnel.
  • the PE is configured to bind the BFD session to the local LSP ID.
  • PE2 After receiving the LSP ping packet, PE2 resolves the BFD TLV.
  • the LSP quintuple carried by the LSP ping packet is queried by the LSP to the local LSP.
  • the local ID of the primary LSP is bound to the local LSP.
  • the association entry between the BFD session and the local LSP is saved and delivered to the forwarding plane.
  • the PE2 returns a BFD negotiation packet to the PE1 to establish BFD detection on the LSP.
  • PE2 sends a BFD negotiation packet (MPLS Echo Reply) to PE1, which carries the BFD specifier information of the local end.
  • MPLS Echo Reply MPLS Echo Reply
  • the LSP protection switching is triggered.
  • the BFD session has been saved with the association between the BFD session and the local LSP.
  • the LSP is faulty and the LSP tunnel protection group is triggered. Switch traffic to the standby LSP to implement
  • the PE device 4 may include:
  • the receiving unit 41 is configured to receive an LSP ping packet, where the LSP ping packet carries a unique identifier of the primary LSP in the network, and the unique identifier may be an LSP quintuple carried by the BFD TLV domain (SrcAddr, DestAddr, Tunnel ID, LSPID) , ExtendedID), or an LSP entry label.
  • the unique identifier may be an LSP quintuple carried by the BFD TLV domain (SrcAddr, DestAddr, Tunnel ID, LSPID) , ExtendedID), or an LSP entry label.
  • LSP quintuple can uniquely identify an LSP in the network: The tunnel can be found in the network by source address, destination address, and tunnel identifier. The LSP can be used to find the LSP in the tunnel.
  • the analysing unit 42 is configured to parse the LSP ping packet, and the LSP ping packet carries the unique identifier of the primary LSP in the network, for example, the LSP inbound label or the LSP quintuple information carried in the BFD TLV domain queries the LSP module for its own allocation. Unique indicates the local identity of the primary LSP.
  • the association unit is configured to bind the BFD session to the local LSP, and save the association entry between the BFD session and the local LSP to the forwarding plane.
  • the BFD unit 44 is configured to return BFD negotiation packets and establish BFD detection for the LSP.
  • the PE device may further include a switching unit, configured to: when the BFD detects that the primary LSP is faulty, and switches traffic to the backup LSP, triggering LSP protection switching.
  • the embodiment of the present invention further provides a BFD detection system, which includes a first PE device and a second PE device, and the second PE device may be the PE device mentioned in the foregoing embodiment of the present invention.
  • the first PE device sends an LSP ping packet to the second PE device, where the LSP ping packet carries the unique identifier of the primary LSP in the network, and the unique identifier may be an LSP ingress label or an LSP carried in the BFD TLV domain.
  • the tuple (SrcAddr, DestAddr, TunnelID, LSPID, and ExtendedID); the second PE device parses the LSP ping packet, and carries the unique identifier of the primary LSP in the network according to the LSP ping packet, for example, the LSP inbound label or the BFD TLV domain carries The LSP quintuple information is queried by the LSP module to the local LSP. The local identities of the primary LSP are bound to the local LSP. The association between the BFD session and the primary LSP is saved. The BFD session is sent to the BFD session.
  • the second PE device switches the traffic to the backup LSP, triggering the LSP protection switching.
  • the source end carries the unique identifier of the LSP in the MPLS ping packet sent by the source end, and the sink end binds the BFD session to the LSP local identifier, so that the LSP protection can be triggered quickly after detecting that the LSP is faulty. Switching to achieve fast convergence of services to meet the real-time business needs of users.
  • 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)

Description

一种建立双向转发检测的方法、 系统及设备 本申请要求 2008年 12月 15日递交的申请号为 200810241220.8、 发明 名称为 "一种建立双向转发检测的方法、 系统和设备" 的中国专利申请的优 先权, 其全部内容通过引用结合在本申请中。 技术领域
本发明涉及网络通信领域, 尤其涉及一种建立双向转发检测的方法、 系 统及设备。 背景技术
随着通信技术的发展, 如何对相邻系统之间通信故障进行快速检测, 在 出现故障时更快的建立起替代通道或倒换到其他链路, 成为一个亟待解决的 重要问题。 BFD (Bidirectional Forwarding Detection, 双向转发检测) 作为一种快速检测机制, 应运而生。 BFD 是从基础传输技术中经过逐步发展 而来的, 因此它可以检测网络各层的故障。 它可以用于检测以太网、 MPLS (Multiprotocol Label Switch, 多协议标签交换) 路径、 普通路由封装以 及 IPSec隧道在内的多种类型的传输正确性。 BFD是 IETF开发的能够快速 检测与邻居节点之间的连通性状态, 能够在系统之间的任何类型通道上进行 故障检测, 这些通道包括直接的物理链路、 虚电路、 隧道、 一对网元之间的 MPLS LSP (Label Switch Path, 标签交换路径) 、 多跳路由通道以及非直 接的通道。
BFD 类似于 "Hello"协议, 可以在更短时间内检测出两个节点间的故 障, 当一个 BFD会话建立之后, BFD会话的双方节点周期性地在使能了 BFD 的链路上向对方节点发送 BFD报文, 同时也在该链路上周期性检测对方节点 报文到达的情况, 如果在一定时间间隔内, 某一方没有收到来自对端的 BFD 报文, 则认为该链路出现故障。
LSP是 MPLS节点之间的路径, 一条 LSP可以看作是一条贯穿 MPLS网络 的单向隧道。 当检测到链路出现故障后对 LSP的保护可以采取两种机制, 一 种为 PS (Protection Switching, 保护倒换) , 另一种为 Rerouting (重路 由) 。 PS为静态保护方式, 预先建立备 LSP, 并为其分配足够的带宽, 以便 当主 LSP 失效时切换使用, 尽量减小由于 LSP 失效而引起的丢包时延等问 题。 PS 中的 1+1双发选收模式是一种比较重要的保护方式, 在 1+1双发选 收模式下, 每条主 LSP都有自己的备 LSP, 正常情况下, 源端设备向这两条 LSP发送相同的流量, 但宿端设备只接收主 LSP传送的流量, 当检测发现主 LSP故障时, 宿端设备停止从主 LSP接收数据包, 转而从备 LSP接收。
保护倒换的实时性需要有快速的检测机制保证, 检测机制可以是 BFD检 测。 BFD 检测通过 LSP Ping 报文来交换 BFD Discriminator ( BFD 区分 符) , 来实现 BFD 会话的自动建立。 LSP Ping 报文中携带的 BFD Discriminator 的 TLV (Type Length Value, 类型长度值) 格式如图 1 所 示, 包括 Type (类型) 、 Length (长度) 和 BFD Discriminator 0 LSP Ping 和 IP的 Ping类似, 在 MPLS网络中, 通过发送 MPLS Echo request报文, 通过 LSP 的数据转发, 到达 MPLS 域的出口后, 在出口返回一个叫做 MPLS echo reply的 BFD协商报文, 携带上本端的 BFD区分符信息, 这样就建立 起了 BFD会话, 就可以知道此条 LSP是否可以正确的用于数据转发。
由于宿端设备的 BFD 会话有可能是基于 IP 链路建立的, 与被检测的 LSP不存在关联, 当宿端设备感知到该 LSP故障时, 无法指导转发层面做流 量切换, 只能由源端设备感知到该 LSP故障后通知上层应用协议, 上层应用 协议通过信令协议之间的通信, 触发宿端设备进行 LSP保护倒换, 时延比较 长, 远远达不到电信级的 50ms的要求。 发明内容
本发明实施例提供了一种建立 BFD检测的方法、 系统及设备, 解决现有 技术中宿端设备感知到 LSP故障后无法直接做流量切换, LSP保护倒换时延 比较长的问题。
本发明实施例提供了一种建立 BFD检测的方法, 包括:
接收标签交换路径 LSP Ping报文, 所述 LSP Ping报文携带所述 LSP在 网络中的唯一标识和 BFD区分符 Di scriminator;
根据所述 LSP在网络中的唯一标识查找到所述 LSP的本地标识, 将 BFD 会话与 LSP本地标识绑定, 发送 BFD协商报文, 建立对所述 LSP的 BFD检 测。
本发明实施例还提供了一种 PE 设备, 包括接收单元、 解析单元、 关联 单元和 BFD单元,
所述接收单元, 用于接收 LSP Ping报文, 所述 LSP Ping报文携带 LSP 在网络中的唯一标识;
所述解析单元, 用于解析所述 LSP Ping报文, 根据所述 LSP Ping报文 携带的所述 LSP在网络中的唯一标识查找到所述 LSP的本地标识;
所述关联单元, 用于将 BFD会话与所述本地标识绑定;
所述 BFD单元, 用于返回 BFD协商报文, 建立对所述 LSP的 BFD检测。 本发明实施例还提供了一种建立 BFD检测的系统, 包括第一 PE设备和 第二 PE设备,
所述第一 PE 设备用于向所述第二 PE 设备发送 LSP Ping 报文, 所述 LSP Ping报文携带主 LSP在网络中的唯一标识;
所述第二 PE设备用于解析所述 LSP Ping报文, 根据所述 LSP Ping报 文携带的所述 LSP在网络中的唯一标识查询所述 LSP的本地标识, 将 BFD会 话与所述 LSP本地标识绑定, 向所述第一 PE设备返回 BFD协商报文, 建立 对所述 LSP的 BFD检测。 与现有技术相比, 本发明实施例具有以下优点: 本发明的实施例中, 源 端在发送的 LSP Ping报文中携带 LSP在网络中的唯一标识, 宿端将 BFD会 话与 LSP本地标识绑定, 从而在检测到 LSP出现故障时可以迅速触发 LSP保 护倒换, 实现业务的快速收敛, 满足用户的实时性业务需求。 附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面 描述中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。 在 附图中:
图 1为现有技术 LSP Ping中 BFD区分符的 TLV格式示意图;
图 2为本发明实施例 MPLS网络典型组网示意图;
图 3为本发明 BFD检测方法实施例一的流程图;
图 4为本发明 PE设备实施例的结构图。 具体实施方式
为使本发明实施例的目的、 技术方案和优点更加清楚明白, 下面结合附 图对本发明实施例做进一步详细说明。 在此, 本发明的示意性实施例及其说 明用于解释本发明, 但并不作为对本发明的限定。
如图 2所示, 为本发明实施例 MPLS网络典型组网示意图。 在 MPLS网络 中, PE ( Provider Edge , 骨干网络边缘) 路由器是主要设备, 负责对用户 进行管理, 建立各 PE间的 LSP连接; CE (Customer Edge , 用户边缘) 分布 用户网络路由, CE 可以是路由器, 也可以是交换机或主机。 流量同时从源 端设备 (PE1)的主 LSP 和备 LSP 进入, 正常情况下, 宿端设备 (PE2)接收主 LSP上的流量。 本发明实施例提出了源端设备和宿端设备只是为了便于理解, 然而在实 际中一个 PE设备既可能是源端设备, 也可能是宿端设备。 因此一个 PE设备 会既有源端 PE设备的功能也会有宿端设备的功能。 例如在图 2 中, CE1流 量接入, 则 PE1就可认为是源端设备, PE2就是宿端设备; 同样 CE2流量接 入, 则 PE2就可认为是源端设备, PE1就是宿端设备。
如图 3所示, 为本发明 BFD检测方法实施例一的流程图, 以下以图 2所 示的组网图进行描述, 并且以 PE1为源端设备, 以 PE2为宿端设备为例, 该 实施例包括:
301, 源端设备 PE1发送携带 LSP在网络中的唯一标识的 LSP Ping报 文。
例如 PE1 在主 LSP上创建 BFD会话并向宿端设备 PE2发送 LSP Ping (MPLS Echo request) 报文, 该 LSP Ping报文携带 BFD Discriminator和 该 LSP在网络中的唯一标识。
本实施例扩展 LSP Ping报文, 通过 LSP Ping报文 BFD TLV域携带 LSP 五元组(SrcAddr、 DestAddr、 TunnelID、 LSPID、 ExtendedlD)作为主 LSP在 网络中的唯一标识, 扩展后的 BFD TLV如下表所示:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+ -+-+-+-+-+-+ -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+ -+-+- I Type = 15 I Length = 20
+-+ -+-+-+-+-+-+ -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+ -+-+-+
BFD Discriminator
+ -+- + -+- + -+-+-+ -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- + -+- + -+- + -+- + -+- + -+-+-+ -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- + -+- + -+- SrcAddr
+ -+- + -+- + -+-+-+ -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- + -+- + -+- + -+- + -+- + -+-+-+ -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- + -+- + -+- DestAddr
+-+ -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +-+ -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
I Turmel l D | LSP I D |
+-+ -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+-+ -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
I ExtendedI D |
+-+ -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
LSP 五元组中各参数含义如下: SrcAddr : 源地址, 在源端设备上配置 的地址; DestAddr: 目的地址, 在宿端路由器上配置的地址; Tunnel lD: 隧 道标识; LSP ID: LSP 标识; Extended ID: 扩展隧道标识。 五元组可以唯 一标识网络中一条 LSP: 在网络中通过源地址, 目的地址, 隧道标识可以找 到该隧道。 通过 LSP标识可以找该隧道中的 LSP。
302, PE2解析 BFD TLV, 将 BFD会话与 LSP本地标识绑定。
例如 PE2收到 LSP Ping报文后解析 BFD TLV, 根据 LSP Ping报文携带 的 LSP五元组向自身 LSP模块查询自身分配的唯一表示主 LSP的本地标识, 将 BFD会话与主 LSP本地标识绑定, 即保存 BFD会话与主 LSP本地标识的关 联表项并下发至自身转发层面。
303, PE2向 PE1返回 BFD协商报文, 建立对 LSP的 BFD检测。
例如 PE2返回 BFD协商报文 (MPLS echo reply) 给 PE1, 携带上本端 的 BFD区分符信息, 从而完成主 LSP上 BFD的自动创建, 可以进行主 LSP 上的双向快速检测。
304, 通过 BFD检测到主 LSP出现故障, 触发 LSP保护倒换。
例如当通过 BFD检测到主 LSP出现故障, 由于 PE2的转发层面已经保存 有 BFD会话与主 LSP本地标识的关联表项, 可以查找到是哪条 LSP 出现故 障, 迅速触发 LSP 隧道保护组的切换, 将流量切换到备 LSP , 从而实现对
LSP的检测和保护。
本发明 BFD检测方法实施例二与实施例一不同之处是提供了另一种携带
LSP 在网络中的唯一标识的方法: 将 LSP 入标签在 PE1 的转发层面与 LSP Ping报文一起封装在 buffer (缓存) 中, 由于 1+1双发选收模式中不允许 配置倒数第二跳弹出, 所以宿端设备 PE2 收到的报文中存在 LSP 入标签, PE2可以从 buffer中解析出此 LSP入标签并根据此 LSP入标签去查询被检 测 LSP本地标识 (即在 PE2的反向标识) ; 建立 BFD会话和被检测 LSP本地 标识的关联表项。 其他与实施例一类似之处不再赘述。 如图 4所示, 为本发明 PE设备实施例的结构图, 该 PE设备 4可以包 括:
接收单元 41, 用于接收 LSP Ping报文, 该 LSP Ping报文携带主 LSP 在网络中的唯一标识, 该唯一标识可以是 BFD TLV 域携带的 LSP 五元组 (SrcAddr , DestAddr , Tunnel ID、 LSPID、 ExtendedID) , 或者是 LSP 入标 签。
LSP 五元组中各参数含义如下: SrcAddr : 源地址, 在源端设备上配置 的地址; DestAddr : 目的地址, 在宿端路由器上配置的地址; Tunnel lD: 隧 道标识; LSP ID : LSP 标识; Extended ID : 扩展隧道标识。 五元组可以唯 一标识网络中一条 LSP: 在网络中通过源地址, 目的地址, 隧道标识可以找 到该隧道。 通过 LSP标识可以找该隧道中的 LSP。
解析单元 42, 用于解析 LSP Ping报文, 根据该 LSP Ping报文携带主 LSP在网络中的唯一标识, 例如 LSP入标签或者 BFD TLV域携带的 LSP五元 组信息向自身 LSP模块查询自身分配的唯一表示主 LSP的本地标识。
关联单元 43, 用于将 BFD会话与主 LSP本地标识绑定, 即保存 BFD会 话与主 LSP本地标识的关联表项并下发至自身转发层面。
BFD单元 44, 用于返回 BFD协商报文, 建立对 LSP的 BFD检测。
进一步地, 该 PE设备还可以包括倒换单元, 用于当通过 BFD检测到主 LSP出现故障, 将流量切换到所述备份 LSP上, 触发 LSP保护倒换。 本发明实施例还提供了一种 BFD检测系统, 包括第一 PE设备和第二 PE 设备, 该第二 PE设备可以是上述本发明实施例提到的 PE设备。 其中, 第一 PE设备向第二 PE设备发送 LSP Ping报文, 该 LSP Ping报文携带主 LSP在 网络中的唯一标识, 该唯一标识可以是 LSP入标签, 或者是 BFD TLV域携带 的 LSP 五元组(SrcAddr、 DestAddr, TunnelID、 LSPID、 ExtendedID) ; 第 二 PE设备解析 LSP Ping报文, 根据该 LSP Ping报文携带主 LSP在网络中 的唯一标识, 例如 LSP入标签或者 BFD TLV域携带的 LSP五元组信息向自身 LSP模块查询自身分配的唯一表示主 LSP的本地标识, 将 BFD会话与主 LSP 本地标识绑定, 即保存 BFD会话与主 LSP本地标识的关联表项并下发至自身 转发层面, 返回 BFD协商报文, 建立对 LSP的 BFD检测。
进一步地, 当通过 BFD检测到通过 BFD检测到主 LSP 出现故障, 第二 PE设备将流量切换到所述备份 LSP上, 触发 LSP保护倒换。
实施本发明上述实施例, 源端在发送的 MPLS Ping报文中携带 LSP在网 络中的唯一标识, 宿端将 BFD会话与 LSP本地标识绑定, 从而在检测到 LSP 出现故障可以迅速触发 LSP保护倒换, 实现业务的快速收敛, 满足用户的实 时性业务需求。
通过以上的实施方式的描述, 本领域的技术人员可以清楚地了解到本发 明可借助软件加必需的通用硬件平台的方式来实现, 当然也可以通过硬件, 但很多情况下前者是更佳的实施方式。 基于这样的理解, 本发明的技术方案 本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来, 该计算机软件产品存储在一个存储介质中, 包括若干指令用以使得一台计算 机设备 (可以是个人计算机, 服务器, 或者网络设备等) 执行本发明各个实 施例所述的方法。
以上所述仅是本发明的优选实施方式, 应当指出, 对于本技术领域的普 通技术人员来说, 在不脱离本发明原理的前提下, 还可以做出若干改进和润 饰, 这些改进和润饰也应视为本发明的保护范围。

Claims

权利要求书
1、 一种建立双向转发检测 BFD的方法, 其特征在于, 包括:
接收标签交换路径 LSP Ping报文, 所述 LSP Ping报文携带所述 LSP在 网络中的唯一标识;
根据所述 LSP在网络中的唯一标识查找到所述 LSP的本地标识, 将 BFD 会话与 LSP本地标识绑定, 发送 BFD协商报文, 建立对所述 LSP的 BFD检
2、 如权利要求 1所述建立 BFD的方法, 其特征在于, 所述 LSP Ping报 文携带所述 LSP在网络中的唯一标识具体包括:
扩展所述 LSP Ping报文, 通过所述 LSP Ping报文的类型长度值 TLV域 携带包括源地址、 目的地址、 隧道标识、 LSP标识和扩展隧道标识的 LSP五 元组。
3、 如权利要求 1所述建立 BFD的方法, 其特征在于, 所述 LSP在网络 中的唯一标识具体为 LSP入标签。
4、 如权利要求 1-3中任意一项所述建立 BFD的方法, 其特征在于, 在 所述建立对 LSP隧道的 BFD检测之后, 还包括:
当通过 BFD检测到所述 LSP出现故障, 将流量切换到备份 LSP上。
5、 如权利要求 1-3中任意一项所述建立 BFD的方法, 其特征在于, 所 述将 BFD会话与 LSP本地标识绑定具体包括:
保存 BFD会话与所述 LSP本地标识的关联表项并下发至转发层面。
6、 一种骨干网络边缘 PE 设备, 其特征在于, 包括接收单元、 解析单 元、 关联单元和 BFD单元,
所述接收单元, 用于接收 LSP Ping报文, 所述 LSP Ping报文携带 LSP 在网络中的唯一标识;
所述解析单元, 用于解析所述 LSP Ping报文, 根据所述 LSP Ping报文 携带的所述 LSP在网络中的唯一标识查找到所述 LSP的本地标识; 所述关联单元, 用于将 BFD会话与所述本地标识绑定;
所述 BFD单元, 用于返回 BFD协商报文, 建立对所述 LSP的 BFD检测。
7、 如权利要求 6所述 PE设备, 其特征在于, 所述 LSP在网络中的唯一 标识为 LSP入标签或者 BFD TLV域携带的 LSP五元组。
8、 如权利要求 6或 7所述 PE设备, 其特征在于, 还包括倒换单元, 用 于当通过 BFD检测到所述 LSP出现故障, 将流量切换到备份 LSP上。
9、 一种建立双向转发检测的系统, 其特征在于, 包括第一 PE设备和第 二 PE设备,
所述第一 PE 设备用于向所述第二 PE 设备发送 LSP Ping 报文, 所述 LSP Ping报文携带所述 LSP在网络中的唯一标识;
所述第二 PE设备用于解析所述 LSP Ping报文, 根据所述 LSP Ping报 文携带的所述 LSP在网络中的唯一标识查询所述 LSP的本地标识, 将 BFD会 话与所述 LSP本地标识绑定, 向所述第一 PE设备返回 BFD协商报文, 建立 对所述 LSP的 BFD检测。
10、 如权利要求 9所述系统, 其特征在于, 所述 LSP在网络中的唯一标 识为 LSP入标签或者是 BFD TLV域携带的 LSP五元组。
PCT/CN2009/073104 2008-12-15 2009-08-05 一种建立双向转发检测的方法、系统及设备 WO2010069175A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CNA2008102412208A CN101447900A (zh) 2008-12-15 2008-12-15 一种建立双向转发检测的方法、系统及设备
CN200810241220.8 2008-12-15

Publications (1)

Publication Number Publication Date
WO2010069175A1 true WO2010069175A1 (zh) 2010-06-24

Family

ID=40743321

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/073104 WO2010069175A1 (zh) 2008-12-15 2009-08-05 一种建立双向转发检测的方法、系统及设备

Country Status (2)

Country Link
CN (1) CN101447900A (zh)
WO (1) WO2010069175A1 (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3499801A4 (en) * 2016-09-19 2019-06-19 New H3C Technologies Co., Ltd. PREVENTING ERROR PROCESSING DELAYS
CN113472642A (zh) * 2021-06-10 2021-10-01 新华三信息安全技术有限公司 一种保护切换方法及装置
CN114172798A (zh) * 2021-11-08 2022-03-11 烽火通信科技股份有限公司 Bier网络故障检测方法、装置、设备及可读存储介质
CN114338459A (zh) * 2021-12-24 2022-04-12 迈普通信技术股份有限公司 路径检测方法、装置、网络设备及计算机可读存储介质

Families Citing this family (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101447900A (zh) * 2008-12-15 2009-06-03 华为技术有限公司 一种建立双向转发检测的方法、系统及设备
CN101800676A (zh) * 2010-02-20 2010-08-11 中兴通讯股份有限公司 链路检测方法、装置和系统
CN102487327B (zh) * 2010-12-01 2015-05-20 中兴通讯股份有限公司 业务切换方法及装置
CN102098218B (zh) * 2011-01-21 2013-07-17 汉柏科技有限公司 基于以太网组播的系统保活方法
CN102571601B (zh) * 2012-02-13 2018-05-15 中兴通讯股份有限公司 一种保证双向转发检测可靠性的方法及标记交换路径设备
CN103491561B (zh) * 2012-06-11 2016-10-19 华为技术有限公司 一种远端控制信息传输方法和系统
CN102752206B (zh) * 2012-07-04 2016-04-06 杭州华三通信技术有限公司 一种双向转发检测方法和路由转发设备
CN102752143B (zh) * 2012-07-05 2015-08-19 杭州华三通信技术有限公司 Mpls te双向隧道的bfd检测方法及路由设备
CN102918807B (zh) * 2012-07-12 2015-04-08 华为技术有限公司 Bfd会话建立的方法及路由设备
CN102769543B (zh) * 2012-07-20 2015-05-20 杭州华三通信技术有限公司 一种基于lsp的bfd检测方法和设备
CN103532781A (zh) * 2013-10-12 2014-01-22 杭州华三通信技术有限公司 一种双向隧道转发可达性的检测方法及装置
CN104270367B (zh) * 2014-09-30 2018-01-09 新华三技术有限公司 一种bfd会话建立方法和设备
CN105610598A (zh) * 2014-11-24 2016-05-25 中兴通讯股份有限公司 故障检测方法及装置
CN106160843A (zh) * 2015-04-23 2016-11-23 中兴通讯股份有限公司 一种单纤故障的响应方法及装置
CN106790011B (zh) * 2016-12-13 2019-09-03 迈普通信技术股份有限公司 一种会话建立方法、系统及lsp出口节点及入口节点
CN107547376B (zh) * 2017-07-21 2020-07-07 新华三技术有限公司 路由探测方法和装置
CN107547383B (zh) * 2017-07-26 2020-04-03 新华三技术有限公司 路径检测方法及装置
CN111064729B (zh) * 2019-12-19 2021-08-31 苏州盛科通信股份有限公司 报文的处理方法及装置、存储介质和电子装置
CN113497740A (zh) * 2020-03-18 2021-10-12 中国电信股份有限公司 网络转发设备、链路故障检测方法、装置及存储介质
CN114189564A (zh) * 2020-08-28 2022-03-15 华为技术有限公司 一种报文传输方法、装置及系统
CN112671647B (zh) * 2020-11-26 2022-07-12 新华三技术有限公司 一种建立路径检测会话的方法以及设备
CN114650241A (zh) * 2020-12-21 2022-06-21 中国移动通信有限公司研究院 一种隧道路径故障检测方法、控制方法、装置及通信节点
CN115665006B (zh) * 2022-12-21 2023-03-28 新华三信息技术有限公司 一种随流检测方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070180104A1 (en) * 2006-01-30 2007-08-02 Clarence Filsfils Technique for enabling bidirectional forwarding detection between edge devices in a computer network
CN101030966A (zh) * 2006-02-28 2007-09-05 华为技术有限公司 一种双向转发检测会话建立方法
CN101141330A (zh) * 2007-10-23 2008-03-12 华为技术有限公司 一种为lsp隧道建立bfd检测的方法、系统及设备
CN101447900A (zh) * 2008-12-15 2009-06-03 华为技术有限公司 一种建立双向转发检测的方法、系统及设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070180104A1 (en) * 2006-01-30 2007-08-02 Clarence Filsfils Technique for enabling bidirectional forwarding detection between edge devices in a computer network
CN101030966A (zh) * 2006-02-28 2007-09-05 华为技术有限公司 一种双向转发检测会话建立方法
CN101141330A (zh) * 2007-10-23 2008-03-12 华为技术有限公司 一种为lsp隧道建立bfd检测的方法、系统及设备
CN101447900A (zh) * 2008-12-15 2009-06-03 华为技术有限公司 一种建立双向转发检测的方法、系统及设备

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3499801A4 (en) * 2016-09-19 2019-06-19 New H3C Technologies Co., Ltd. PREVENTING ERROR PROCESSING DELAYS
US11206176B2 (en) 2016-09-19 2021-12-21 New H3C Technologies Co., Ltd. Preventing failure processing delay
CN113472642A (zh) * 2021-06-10 2021-10-01 新华三信息安全技术有限公司 一种保护切换方法及装置
CN113472642B (zh) * 2021-06-10 2023-06-13 新华三信息安全技术有限公司 一种保护切换方法及装置
CN114172798A (zh) * 2021-11-08 2022-03-11 烽火通信科技股份有限公司 Bier网络故障检测方法、装置、设备及可读存储介质
CN114172798B (zh) * 2021-11-08 2023-10-24 烽火通信科技股份有限公司 Bier网络故障检测方法、装置、设备及可读存储介质
CN114338459A (zh) * 2021-12-24 2022-04-12 迈普通信技术股份有限公司 路径检测方法、装置、网络设备及计算机可读存储介质
CN114338459B (zh) * 2021-12-24 2024-02-13 迈普通信技术股份有限公司 路径检测方法、装置、网络设备及计算机可读存储介质

Also Published As

Publication number Publication date
CN101447900A (zh) 2009-06-03

Similar Documents

Publication Publication Date Title
WO2010069175A1 (zh) 一种建立双向转发检测的方法、系统及设备
KR101488648B1 (ko) 포인트 투 멀티포인트 터널을 통한 결함 검출 세션 부트스트래핑
US8565098B2 (en) Method, device, and system for traffic switching in multi-protocol label switching traffic engineering
EP2242325B1 (en) Method, system and equipment for access of a network device to a packet exchange network
CN101141330B (zh) 一种为lsp隧道建立bfd检测的方法、系统及设备
EP2498454B1 (en) Method, device and system for processing service traffic based on pseudo wires
US9059902B2 (en) Procedures, apparatuses, systems, and computer-readable media for operating primary and backup network elements
CN101771577B (zh) 一种为双向lsp建立双向转发检测的方法、系统及设备
WO2013182059A1 (zh) 多协议标签交换流量工程隧道建立方法及设备
US20130272114A1 (en) Pseudo wire switching method and device
EP1978681B1 (en) Methods and devices for judging pw connection state and notifying ac connection state
US20100189115A1 (en) Edge node redundant system in label switching network
WO2012003743A1 (zh) 组播流量的转发方法及装置
WO2011060667A1 (zh) 一种虚拟专用局域网络中链路保护的方法及设备
WO2008083590A1 (fr) Procédé et appareil de convergence rapide d'un service point à point
WO2012106915A1 (zh) 故障通告方法、检测装置、转发装置、系统及数据结构
US11962491B2 (en) Source routing tunnel ingress protection
WO2012079375A1 (zh) 虚拟专用网络的链路保护方法和系统
WO2014019348A1 (zh) 操作、管理和维护oam配置的方法、设备及系统
WO2009092257A1 (zh) 运营商骨干网传输网络的故障检测方法和装置
WO2020001389A1 (zh) 一种避免环路的通信方法、设备和系统
CN102195822A (zh) 一种故障检测的方法和服务提供商边缘设备
EP2634978B1 (en) Message forwarding method and network device
WO2013139270A1 (zh) 实现三层虚拟专用网络的方法、设备及系统
WO2011127849A2 (zh) 一种数据流传送方法及网络设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 09832857

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

Country of ref document: EP

Kind code of ref document: A1