WO2012058930A1 - Method and system for link failure detection - Google Patents

Method and system for link failure detection Download PDF

Info

Publication number
WO2012058930A1
WO2012058930A1 PCT/CN2011/075861 CN2011075861W WO2012058930A1 WO 2012058930 A1 WO2012058930 A1 WO 2012058930A1 CN 2011075861 W CN2011075861 W CN 2011075861W WO 2012058930 A1 WO2012058930 A1 WO 2012058930A1
Authority
WO
WIPO (PCT)
Prior art keywords
bfd
link
port
bound
packet
Prior art date
Application number
PCT/CN2011/075861
Other languages
French (fr)
Chinese (zh)
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 WO2012058930A1 publication Critical patent/WO2012058930A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/55Prevention, detection or correction of errors
    • H04L49/555Error detection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • 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

  • BFD Bidirectional Forwarding Detection Protocol
  • UDP User Datagram Protocol
  • the format of the BFD protocol is as shown in Figure 1. It includes the version, data, test, length, source distinguisher, destination distinguisher, minimum TX interval, minimum RX interval, and minimum reflection RX interval of the BFD protocol.
  • the BFD processing module assigns the relevant field of the BFD control packet, and then sends the processed BFD control packet to the protocol stack, encapsulates the transport layer, the network layer, and the link layer, and sends the packet to the directly connected device.
  • the BFD processing module assigns the relevant field of the BFD control packet, and then sends the processed BFD control packet to the protocol stack, encapsulates the transport layer, the network layer, and the link layer, and sends the packet to the directly connected device.
  • the BFD control of the application layer is parsed and then submitted to the BFD processing module.
  • the BFD protocol is used to configure the session.
  • the configuration information cannot be distinguished from the equivalent link.
  • the BFD packet between device A and device B needs to select the physical link according to the load sharing mode used by the two devices. For example, as shown in Figure 2, device A and device B are directly connected through n links, and the n links are aggregated equivalent links. Only one BFD session can be configured between device A and device B. Then, the link selected by the BFD session is indeterminate, and may be any one of Ti to Tn, which is determined by a load sharing strategy used by the device used.
  • the transmission capability of the link is the number of links X and the transmission capability of a single link. If any of the equivalent links fails, because other equivalent links are still connected In this case, the link between the two devices is still connected, so the fault is difficult to be discovered in time. However, the transmission capacity of the entire link has been affected at this time, affecting the transmission performance of the link, and buried. The hidden danger of the entire equivalent link failure. In view of the problem that the link failure in the related art is difficult to be discovered in time, thereby affecting the transmission performance of the link, an effective solution has not been proposed yet.
  • a primary object of the present invention is to provide a link fault detection method and system, which at least solves the problem that the link fault is difficult to be discovered in time, thereby affecting the transmission performance of the link.
  • a link fault detection method is provided, which is applied to a multi-equivalent link direct connection scenario, including: a first device at one end of the link receives a second device sent at the other end of the link The two-way forwarding detection protocol BFD packet, the first device and the second device are pre-configured with at least one BFD session bound to the own port; and when the first device determines the port bound to the BFD session When the BFD packet sent by the second device is not received within the detection time, the link connected to the port is determined to be faulty.
  • the method further includes: discarding the received BFD packet.
  • the method further includes: when the first device determines that the port bound to the BFD session receives the BFD packet sent by the second device within the detection time, determining that the link connected to the port does not fail. .
  • the method further includes: when all the ports of the first device and the second device are bound to the BFD session, and each port of the second device has a BFD packet, if one or more of the first device The port does not receive the BFD packet sent by the second device within the detection time, and determines that the link connected to the port that does not receive the BFD packet sent by the second device is faulty.
  • a link failure detecting apparatus which is applied to a multi-equivalent link direct connection scenario, including a first device at one end of the link and a second device at the other end of the link:
  • the first device is configured to receive the bidirectional forwarding detection protocol BFD packet sent by the second device, where the first device and the second device are pre-configured with at least one BFD session bound to the own port;
  • the port bound to the BFD session does not receive the BFD sent by the second device within the detection time.
  • the packet is faulty, and the second device is configured to send the BFD packet to the first device.
  • the first device is configured to: after determining that the link connected to the port bound to the BFD session is faulty, discard the received BFD message.
  • the first device is configured to: when it is determined that the port bound to the BFD session receives the BFD packet sent by the second device within the detection time, it is determined that the link connected to the port does not fail.
  • the second device is configured to: send a BFD packet on each port; the first device is configured to: If each port sends a BFD packet, if one or more ports of the port do not receive the BFD packet sent by the second device within the detection time, the device does not receive the second device.
  • the link connected to the port of the BFD packet is faulty.
  • FIG. 1 is a BFD protocol message format according to the related art
  • FIG. 2 is a schematic diagram of device A and device B directly connected through n links according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram of a direct connection between a device and a receiving device through n links according to an embodiment of the present invention
  • FIG. 5 is a link failure according to an embodiment of the present invention
  • FIG. 6 is a schematic diagram of a second structure of a link fault detection system according to an embodiment of the present invention
  • FIG. FIG. 2 is a flowchart of a link failure detecting method implemented by a second link failure detecting system according to an embodiment of the present invention.
  • the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
  • the embodiment of the present invention provides a link fault detection method, which is applied to a multi-equivalent link direct connection scenario. The processing flow is as shown in FIG.
  • Step 302 A device receives a bidirectional forwarding detection protocol BFD packet sent by the second device at the other end of the link, and the first device and the second device are pre-configured with at least one BFD session bound to the own port;
  • Step 304 When the first device If the port bound to the BFD session does not receive the BFD packet sent by the second device within the detection time, the link connected to the port is determined to be faulty.
  • the link fault detection method provided by the embodiment of the present invention can quickly determine a link with a link fault in a scenario where multiple equivalent links are directly connected, and can subsequently process the link with the link fault in time to avoid The link communication capability is degraded.
  • the link that is connected to the port that is bound to the BFD session is faulty, the following is also included: Discarding the received BFD 4 message.
  • the first device determines that the port bound to the BFD session receives the BFD packet sent by the second device within the detection time, it determines that the link connected to the port is not faulty. Since there are multiple equivalent direct links between the first device and the second device, multiple equivalent direct links can be detected by using an equivalent link full port configuration, that is, in the second Each port of the device is bound to a BFD session. In this case, if one or more ports of the first device do not receive BFD packets within the detection time, the link connected to the port that has not received the BFD packet is faulty. .
  • the first device and the second device are only configured to distinguish different devices at both ends of the link.
  • the first device may receive the BFD message sent by the second device, or send the BFD packet to the device.
  • the second device that is, the sender and the receiver can be mutually. Detailed descriptions are made from the perspective of the receiver and the sender respectively. For details, please refer to the following. In order to describe the process more clearly, the names of the first device and the second device are not used here, but directly called the transmitting device and the receiving device. Of course, in the following text, both the sending device and the receiving device are corresponding, and the roles can be exchanged.
  • a BFD session Before the detection, you can configure a BFD session to detect the equivalent link on the sending device and the receiving device, and specify the port number when configuring the BFD session. Specifically, for example, as shown in FIG. 4, the BFD session configured on the device is sent, and the source/destination address is the equivalent link address S of the sending device, the equivalent link address R of the receiving device, and the port number to be detected is specified.
  • the sending device sends the encapsulated BFD packet from the designated port P.
  • the receiving device records the port D that receives the packet. If the port receives the BFD control packet. If the number D' does not match the specified port number P', the 4 files are discarded.
  • the sending device sends the encapsulated BFD packet from the designated port P, and the method includes: the sending device determines the BFD protocol packet information according to the configuration information, and the information format is as shown in FIG. 1 , and the BFD protocol packet is completed by using the encapsulating module. The encapsulation of the text is finally sent out through the detection port P specified in the configuration.
  • the receiving device receives the BFD packet and records the receiving port number.
  • the packet is discarded.
  • the following includes: After receiving the packet received by the device, record the port D that receives the packet, and receive the received packet. If the packet is decapsulated and determined to be BFD 4, the BFD session is queried. If no BFD session is specified, the BFD session is discarded.
  • both the transmitting device and the receiving device are corresponding and can exchange roles. Therefore, the receiving device also initiates the same process to the transmitting device. If both the sending device and the receiving device are in each check During the measurement period, the BFD control with the port number matching the configuration is received, and the session is established and maintained.
  • the embodiment of the present invention provides a link fault detection system.
  • the structure is shown in FIG. 5, and is applied to a multi-equivalent link direct connection scenario, including a first device 501 and a chain at one end of the link.
  • the second device 502 is located at the other end of the path.
  • the first device 501 is configured to receive the bidirectional forwarding detection protocol BFD packet sent by the second device 502.
  • the first device 501 and the second device 502 are pre-configured with at least one port tied to the port.
  • the BFD packet is sent to the first device 501.
  • the first device 501 may be configured to: after determining that the link connected to the port bound to the BFD session is faulty, discard the received BFD packet.
  • the first device 501 may be configured to: when it is determined that the port bound to the BFD session receives the BFD message sent by the second device 502 within the detection time, determine the chain connected to the port. The road has not failed.
  • the second device 502 when all the ports of the first device 501 and the second device 502 are bound to the BFD session, the second device 502 may be configured to: send a BFD message on each port; the first device 501 may When the BFD packet is sent to each port of the second device 502, if one or more ports of the second device 502 do not receive the BFD packet sent by the second device 502 within the detection time, the device determines that the BFD packet is not received.
  • the link connected to the port of the BFD packet sent by the device 502 is faulty.
  • the device A and the device B are still used as an example.
  • the link fault detection system may be as shown in FIG. 6 , and includes the device A and the device B.
  • the device A may include a BFD processing module and a package decapsulation module.
  • the physical layer transceiver module and correspondingly, the device B also includes a BFD processing module, a package decapsulation module, and a physical layer transceiver module, and the BFD 4 files are transmitted between the two.
  • the implementation process of the device includes: BFD processing module: Implements the BFD protocol, configures the parameters of the BFD protocol packet, encapsulates the BFD packet, and determines the sending port specified by the session, and brings the port information specified in the configuration to the encapsulation module.
  • Encapsulation module BFD provided by the BFD processing module
  • the protocol packet is encapsulated, including the transport layer, the network layer, and the link layer.
  • the port provided by the BFD processing module is designated as the sending port.
  • the sending module sends the BFD 4 packet through the designated port.
  • the device includes: receiving the module: receiving the BFD packet, and recording the receiving port number; and parsing the module: decapsulating the packet, and according to UDP
  • the port number is determined to be a BFD packet; the BFD protocol packet and the receiving port number are sent to the BFD processing module.
  • the sending end may include the following steps: Step 702: Configure a BFD session for detecting a valid link, and specify a detection port number. Step 704: The BFD processing module sends the BFD session to the encapsulating module when the BFD session is generated. The encapsulating module encapsulates the BFD protocol packet and sends the port specified by the BFD session to the sending port.
  • Step 706 The sending module sends the encapsulated BFD message to the designated port.
  • the receiving end may include the following steps: Step 708: Configure a BFD session for detecting a valid link, and specify a detection port number; Step 710: The receiving module receives the BFD packet, and records The receiving port sends the BFD packet and the port number to the parsing module. The parsing module decapsulates the packet until it resolves to the UDP layer, and determines the BFD packet according to the UDP port number.
  • Step 712 The BFD packet and the receiving port number are transmitted to the BFD processing module.
  • the BFD processing module After receiving the BFD packet, the BFD processing module finds whether the specified port number included in the BFD packet configuration includes the BFD packet receiving port number. If the specified port matches the receiving port number of the BFD packet, the packet is discarded; otherwise, a valid BFD session packet is received. From the above description, it can be seen that the present invention achieves the following technical effects:
  • the link fault detection method provided by the embodiment of the present invention can quickly determine the link fault in a scenario where multiple equivalent links are directly connected.
  • the link can be processed in time for the link with link failure to avoid the link communication capability.
  • the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices.
  • the computing device may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the scope of the present invention are intended to be included within the scope of the present invention.

Abstract

The present invention provides a method and system for link failure detection. The method is applied to the directly-connected scenes of multi-equivalent links. The method includes the following steps: the first device on one end of the links receives Bidirectional Forwarding Detection (BFD) messages sent from the second device on the other end of the links, wherein the first device and the second device are both pre-configured with at least one BFD session bound with their own ports; when judging that the port bound with the BFD session does not receive a BFD message sent from the second device in a detection time, the first device confirms the failure of the link connected with the port occurs. With the present invention, the problem that the link failure is difficult to be discovered in time, which influences the transmission performance of the link, can be resolved.

Description

^^故障检测方法及系统 技术领域 本发明涉及通信领域, 具体而言, 涉及一种链路故障检测方法及系统。 背景技术 随着通信网络的发展, 网络设备越来越需要具备快速发现与其相邻设备之 间的网络故障的功能。 BFD ( Bidirectional Forwarding Detection , 双向转发检测 协议)是国际标准协议, 与传输介质无关, 可以实现直连链路两端设备传输层 转发故障的检测。 双向转发检测是通过在特定 UDP ( User Datagram Protocol, 用户数据包协 议)端口号的 UDP 4艮文上携带 BFD协议 4艮文, 相邻设备检测对方发送的 BFD 报文, 来实现对链路以及设备转发功能的检测。  TECHNICAL FIELD The present invention relates to the field of communications, and in particular to a link fault detection method and system. BACKGROUND OF THE INVENTION With the development of communication networks, network devices are increasingly required to have the ability to quickly discover network failures between their neighbors. BFD (Bidirectional Forwarding Detection Protocol) is an international standard protocol. It is independent of the transmission medium and can detect the transmission fault of the transmission layer at both ends of the direct link. The bidirectional forwarding detection is performed by transmitting the BFD protocol message on the UDP port of the UDP (User Datagram Protocol) port number, and the neighboring device detects the BFD packet sent by the peer to implement the link and Detection of device forwarding function.
BFD协议 4艮文格式如图 1所示, 包括 BFD协议 4艮文的版本、 数据、 测试、 长度、 源区别符、 目的区别符、 最小 TX间隔、 最小 RX间隔及最小反射 RX 间隔等等。 在设备中, 由 BFD处理模块将 BFD控制报文的相关字段赋值, 然 后将处理完成的 BFD 控制 4艮文送协议栈, 封装传输层、 网络层及链路层, 并 发送给直连设备。 同样的, 在接收到 BFD报文时, 需要通过协议栈进行解析, 将应用层的 BFD控制 4艮文解析出之后交由 BFD处理模块。 当两个设备(例如设备 A和设备 B )之间链路是多条等效链路(如聚合链 路) 时, 在运用 BFD 协议进行配置会话, 配置信息中不能区分等效链路中的 每一条链路, 因此, 设备 A和设备 B之间的 BFD报文是需要根据两设备各自 使用的负荷分担方式来选择物理链路。 举例说明, 如图 2所示, 设备 A和设备 B之间通过 n条链路直连, 且这 n 条链路为聚合等效链路, 设备 A和设备 B之间只能配置一条 BFD会话, 那么 该 BFD会话所选择的链路是不确定的, 可以是 Ti到 Tn中的任意一条, 具体 是由所使用设备釆用的负荷分担策略所决定。 在相关技术中, 在链路聚合的情景下, 链路的传输能力是链路数 X单条链 路传输能力。 如果等效链路中的任意一条产生故障, 因为其他等效链路还是连 通的, 此时两设备之间的链路仍然是连通的, 所以故障很难被及时发现, 但是, 此时的整个链路的传输能力已经受到影响, 影响链路的传输性能, 埋下了整个 等效链路故障的隐患。 针对相关技术中链路故障很难被及时发现, 从而影响链路的传输性能的问 题, 目前尚未提出有效的解决方案。 发明内容 本发明的主要目的在于提供一种链路故障检测方法及系统, 以至少解决上 述链路故障很难被及时发现, 从而影响链路的传输性能的问题。 根据本发明的一个方面, 提供了一种链路故障检测方法, 应用于多等效链 路直连场景中, 包括: 链路一端的第一设备接收所述链路另一端的第二设备发 送的双向转发检测协议 BFD报文, 所述第一设备和第二设备均预配置了至少 一条与自身端口绑定的 BFD会话; 以及当所述第一设备判断出其与 BFD会话 绑定的端口在检测时间内没有收到所述第二设备发送的 BFD报文时, 确定与 该端口相连的链路故障。 所述确定与该端口相连的链路故障之后, 还包括: 丢弃已接收的 BFD报 文。 上述方法还包括: 当所述第一设备判断出其与 BFD 会话绑定的端口在检 测时间内接收到所述第二设备发送的 BFD报文时, 确定与该端口相连的链路 未发生故障。 上述方法还包括: 所述第一设备和第二设备的所有端口均与 BFD 会话绑 定, 且第二设备的每个端口均有 BFD报文发出时, 若所述第一设备的一个或 多个端口在检测时间内没有收到所述第二设备发送的 BFD报文, 确定与没有 收到所述第二设备发出的 BFD报文的端口相连的链路故障。 根据本发明的另一方面, 提供了一种链路故障检测装置, 应用于多等效链 路直连场景中, 包括链路一端的第一设备和链路另一端的第二设备: 所述第一 设备, 设置为接收所述第二设备发送的双向转发检测协议 BFD报文, 所述第 一设备和第二设备均预配置了至少一条与自身端口绑定的 BFD 会话; 当判断 出其与 BFD会话绑定的端口在检测时间内没有收到所述第二设备发送的 BFD 报文时, 确定与该端口相连的链路故障; 所述第二设备, 设置为向所述第一设 备发送所述 BFD报文。 所述第一设备设置为: 确定与 BFD会话绑定的端口相连的链路故障之后, 丢弃已接收的 BFD 4艮文。 所述第一设备设置为: 当判断出其与 BFD 会话绑定的端口在检测时间内 接收到所述第二设备发送的 BFD报文时, 确定与该端口相连的链路未发生故 障。 所述第一设备和第二设备的所有端口均与 BFD 会话绑定时, 第二设备设 置为: 在每个端口均发出 BFD报文; 所述第一设备设置为: 在所述第二设备 的每个端口均发出 BFD 4艮文时, 若自身的一个或多个端口在检测时间内没有 收到所述第二设备发送的 BFD报文,确定与没有收到所述第二设备发送的 BFD 报文的端口相连的链路故障。 釆用本发明实施例提供的链路故障检测方法, 能够在多等效链路直连的场 景中快速确定出现链路故障的链路, 后续可以对出现链路故障的链路及时处 理, 避免链路通信能力的下降。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部 分, 本发明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的不 当限定。 在附图中: 图 1是根据相关技术的 BFD协议报文格式; 图 2是根据本发明实施例的设备 A和设备 B之间通过 n条链路直连的示意 图; 图 3是根据本发明实施例的链路故障检测方法的处理流程图; 图 4是根据本发明实施例的设备和接收设备之间通过 n条链路直连的示意 图; 图 5是根据本发明实施例的链路故障检测系统的第一种结构示意图; 图 6是根据本发明实施例的链路故障检测系统的第二种结构示意图; 图 Ί是根据本发明实施例的第二种链路故障检测系统实施的链路故障检测 方法的流程图。 具体实施方式 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在不 冲突的情况下, 本申请中的实施例及实施例中的特征可以相互组合。 在相关技术中, 如果等效链路中的任意一条产生故障, 因为其他等效链路 还是连通的,此时两设备之间的链路仍然是连通的,所以故障很难被及时发现, 从而影响链路的传输性能, 埋下了整个等效链路故障的隐患。 为解决上述技术 问题, 本发明实施例提供了一种链路故障检测方法, 应用于多等效链路直连场 景中, 处理流程如图 3所示, 包括: 步骤 302、 链路一端的第一设备接收链路另一端的第二设备发送的双向转 发检测协议 BFD报文, 第一设备和第二设备均预配置了至少一条与自身端口 绑定的 BFD会话; 步骤 304、 当第一设备判断出其与 BFD会话绑定的端口在检测时间内没有 收到第二设备发送的 BFD报文时, 确定与该端口相连的链路故障。 釆用本发明实施例提供的链路故障检测方法, 能够在多等效链路直连的场 景中快速确定出现链路故障的链路, 后续可以对出现链路故障的链路及时处 理, 避免链路通信能力的下降。 实施时, 确定与绑定 BFD 会话的端口相连的链路故障时, 还包括: 丢弃 已接收的 BFD 4艮文。 实施时, 相应的, 当第一设备判断出其与 BFD 会话绑定的端口在检测时 间内接收到第二设备发送的 BFD报文时, 则确定该端口相连的链路未发生故 障。 由于第一设备和第二设备间存在多条等效直连链路, 所以, 可以使用等效 链路全端口配置的方式对多条等效直连链路均进行检测, 即, 在第二设备的每 个端口均绑定 BFD 会话, 此时, 若第一设备的一个或多个端口在检测时间内 没有收到 BFD报文, 确定与没有收到 BFD报文的端口相连的链路故障。 在上述实施例中,第一设备、第二设备仅设置为区分链路两端的不同设备, 具体实施时, 第一设备可以接收第二设备发送的 BFD 4艮文, 也可以发送 BFD 报文至第二设备, 即, 可以互为发送方和接收方。 现分别从接收方和发送方的角度进行详细说明, 具体请参见下文, 为将过 程描述地更清楚, 此处不再使用第一设备、 第二设备的称呼, 而直接称发送设 备和接收设备, 当然了, 在后文中, 发送设备和接收设备都是对应的, 可以互 换角色。 The format of the BFD protocol is as shown in Figure 1. It includes the version, data, test, length, source distinguisher, destination distinguisher, minimum TX interval, minimum RX interval, and minimum reflection RX interval of the BFD protocol. In the device, the BFD processing module assigns the relevant field of the BFD control packet, and then sends the processed BFD control packet to the protocol stack, encapsulates the transport layer, the network layer, and the link layer, and sends the packet to the directly connected device. Similarly, when receiving a BFD packet, it needs to be parsed by the protocol stack, and the BFD control of the application layer is parsed and then submitted to the BFD processing module. When the link between two devices (for example, device A and device B) is multiple equivalent links (such as an aggregation link), the BFD protocol is used to configure the session. The configuration information cannot be distinguished from the equivalent link. For each link, the BFD packet between device A and device B needs to select the physical link according to the load sharing mode used by the two devices. For example, as shown in Figure 2, device A and device B are directly connected through n links, and the n links are aggregated equivalent links. Only one BFD session can be configured between device A and device B. Then, the link selected by the BFD session is indeterminate, and may be any one of Ti to Tn, which is determined by a load sharing strategy used by the device used. In the related art, in the case of link aggregation, the transmission capability of the link is the number of links X and the transmission capability of a single link. If any of the equivalent links fails, because other equivalent links are still connected In this case, the link between the two devices is still connected, so the fault is difficult to be discovered in time. However, the transmission capacity of the entire link has been affected at this time, affecting the transmission performance of the link, and buried. The hidden danger of the entire equivalent link failure. In view of the problem that the link failure in the related art is difficult to be discovered in time, thereby affecting the transmission performance of the link, an effective solution has not been proposed yet. SUMMARY OF THE INVENTION A primary object of the present invention is to provide a link fault detection method and system, which at least solves the problem that the link fault is difficult to be discovered in time, thereby affecting the transmission performance of the link. According to an aspect of the present invention, a link fault detection method is provided, which is applied to a multi-equivalent link direct connection scenario, including: a first device at one end of the link receives a second device sent at the other end of the link The two-way forwarding detection protocol BFD packet, the first device and the second device are pre-configured with at least one BFD session bound to the own port; and when the first device determines the port bound to the BFD session When the BFD packet sent by the second device is not received within the detection time, the link connected to the port is determined to be faulty. After the link fault is determined, the method further includes: discarding the received BFD packet. The method further includes: when the first device determines that the port bound to the BFD session receives the BFD packet sent by the second device within the detection time, determining that the link connected to the port does not fail. . The method further includes: when all the ports of the first device and the second device are bound to the BFD session, and each port of the second device has a BFD packet, if one or more of the first device The port does not receive the BFD packet sent by the second device within the detection time, and determines that the link connected to the port that does not receive the BFD packet sent by the second device is faulty. According to another aspect of the present invention, a link failure detecting apparatus is provided, which is applied to a multi-equivalent link direct connection scenario, including a first device at one end of the link and a second device at the other end of the link: The first device is configured to receive the bidirectional forwarding detection protocol BFD packet sent by the second device, where the first device and the second device are pre-configured with at least one BFD session bound to the own port; The port bound to the BFD session does not receive the BFD sent by the second device within the detection time. The packet is faulty, and the second device is configured to send the BFD packet to the first device. The first device is configured to: after determining that the link connected to the port bound to the BFD session is faulty, discard the received BFD message. The first device is configured to: when it is determined that the port bound to the BFD session receives the BFD packet sent by the second device within the detection time, it is determined that the link connected to the port does not fail. When all the ports of the first device and the second device are bound to the BFD session, the second device is configured to: send a BFD packet on each port; the first device is configured to: If each port sends a BFD packet, if one or more ports of the port do not receive the BFD packet sent by the second device within the detection time, the device does not receive the second device. The link connected to the port of the BFD packet is faulty. The link fault detection method provided by the embodiment of the present invention can quickly determine a link with a link fault in a scenario where multiple equivalent links are directly connected, and can subsequently process the link with the link fault in time to avoid The link communication capability is degraded. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are set to illustrate,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, In the drawings: FIG. 1 is a BFD protocol message format according to the related art; FIG. 2 is a schematic diagram of device A and device B directly connected through n links according to an embodiment of the present invention; FIG. 4 is a schematic diagram of a direct connection between a device and a receiving device through n links according to an embodiment of the present invention; FIG. 5 is a link failure according to an embodiment of the present invention; FIG. 6 is a schematic diagram of a second structure of a link fault detection system according to an embodiment of the present invention; FIG. FIG. 2 is a flowchart of a link failure detecting method implemented by a second link failure detecting system according to an embodiment of the present invention. BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, the present invention will be described in detail with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. In the related art, if any one of the equivalent links fails, because the other equivalent links are still connected, the link between the two devices is still connected, so that the fault is difficult to be discovered in time, thereby Affecting the transmission performance of the link, the hidden danger of the entire equivalent link failure is buried. To solve the above technical problem, the embodiment of the present invention provides a link fault detection method, which is applied to a multi-equivalent link direct connection scenario. The processing flow is as shown in FIG. 3, and includes: Step 302: A device receives a bidirectional forwarding detection protocol BFD packet sent by the second device at the other end of the link, and the first device and the second device are pre-configured with at least one BFD session bound to the own port; Step 304: When the first device If the port bound to the BFD session does not receive the BFD packet sent by the second device within the detection time, the link connected to the port is determined to be faulty. The link fault detection method provided by the embodiment of the present invention can quickly determine a link with a link fault in a scenario where multiple equivalent links are directly connected, and can subsequently process the link with the link fault in time to avoid The link communication capability is degraded. In the implementation, when the link that is connected to the port that is bound to the BFD session is faulty, the following is also included: Discarding the received BFD 4 message. In the implementation, when the first device determines that the port bound to the BFD session receives the BFD packet sent by the second device within the detection time, it determines that the link connected to the port is not faulty. Since there are multiple equivalent direct links between the first device and the second device, multiple equivalent direct links can be detected by using an equivalent link full port configuration, that is, in the second Each port of the device is bound to a BFD session. In this case, if one or more ports of the first device do not receive BFD packets within the detection time, the link connected to the port that has not received the BFD packet is faulty. . In the above embodiment, the first device and the second device are only configured to distinguish different devices at both ends of the link. In a specific implementation, the first device may receive the BFD message sent by the second device, or send the BFD packet to the device. The second device, that is, the sender and the receiver can be mutually. Detailed descriptions are made from the perspective of the receiver and the sender respectively. For details, please refer to the following. In order to describe the process more clearly, the names of the first device and the second device are not used here, but directly called the transmitting device and the receiving device. Of course, in the following text, both the sending device and the receiving device are corresponding, and the roles can be exchanged.
1 ) 在检测之前, 可以在发送设备和接收设备上分别配置检测等效链路的 BFD会话, 并在配置 BFD会话时, 指定端口号。 具体地, 例如, 可以如图 4所示, 发送设备上配置的 BFD会话, 源 /目的 地址为发送设备等效链路地址 S/接收设备等效链路地址 R, 并指定需要检测的 端口号 P(1<=P<=N, N为端口总数); 相应的, 接收设备上配置的 BFD会话, 源 /目的地址为接收设备等效链路 地址 R/发送设备等效链路地址 S , 并指定需要检测的端口号 P,(1<=P,<=N), 其 中, 端口 P和 P,为同一物理连接的两个端口。 1) Before the detection, you can configure a BFD session to detect the equivalent link on the sending device and the receiving device, and specify the port number when configuring the BFD session. Specifically, for example, as shown in FIG. 4, the BFD session configured on the device is sent, and the source/destination address is the equivalent link address S of the sending device, the equivalent link address R of the receiving device, and the port number to be detected is specified. P(1<=P<=N, N is the total number of ports); correspondingly, the BFD session configured on the receiving device, the source/destination address is the equivalent link address R of the receiving device/the equivalent link address S of the transmitting device, And specify the port number P to be detected, (1<=P, <=N), where ports P and P are the two ports of the same physical connection.
2 ) 配置结束后, 发送设备将封装后的 BFD报文, 从指定端口 P发出; 接 收设备收到报文后, 记录接收此报文的端口 D,, 如果接收到该 BFD控制报文 的端口号 D'与指定的端口号 P'不符, 则丢弃该 4艮文。 所述发送设备将封装后的 BFD报文, 从指定端口 P发出, 具体包括: 发 送设备根据配置信息确定 BFD协议报文信息, 信息格式如图 1所示, 并且通 过封装模块完成对 BFD 协议报文的封装, 最后通过配置中指定的检测端口 P 发送出去。 所述接收设备接收此 BFD报文, 并记录接收端口号。 如果接收到该 BFD 艮文的端口号与指定的端口号不符, 则丢弃该 4艮文, 具体包括: 接收设备收到的报文之后, 记录接收此报文的端口 D,, 对接收到的报文进 行解封装确定为 BFD 4艮文, 则在配置的 BFD会话中查询, 如果不存在指定端 口为 D'的 BFD会话, 则丢弃该 BFD 4艮文。 正如上文所说, 发送设备和接收设备都是对应的, 可以互换角色, 因此, 接收设备向发送设备也发起同样的流程。 如果发送设备和接收设备均在每个检 测周期内收到端口号与配置相符的 BFD 控制 4艮文, 那么会话建立并保持。 如 其中一方在检测时间内没有收到一个有效的 BFD 4艮文, 则认为该指定端口所 对应的链路发生故障。 基于同一发明构思, 本发明实施例提供了一种链路故障检测系统, 结构示 意如图 5所示, 应用于多等效链路直连场景中, 包括链路一端的第一设备 501 和链路另一端的第二设备 502: 第一设备 501 ,设置为接收第二设备 502发送的双向转发检测协议 BFD报 文,第一设备 501和第二设备 502均预配置了至少一条与自身端口绑定的 BFD 会话; 当判断出其与 BFD会话绑定的端口在检测时间内没有收到第二设备 502 发送的 BFD 4艮文时, 确定与该端口相连的链路故障; 第二设备 502, 设置为向第一设备 501发送 BFD报文。 在一个实施例中, 第一设备 501可以设置为: 确定与 BFD会话绑定的端 口相连的链路故障之后, 丢弃已接收的 BFD报文。 在一个实施例中, 第一设备 501可以设置为: 当判断出其与 BFD会话绑 定的端口在检测时间内接收到第二设备 502发送的 BFD 4艮文时, 确定与该端 口相连的链路未发生故障。 在一个实施例中, 第一设备 501和第二设备 502的所有端口均与 BFD会 话绑定时, 第二设备 502可以设置为: 在每个端口均发出 BFD 4艮文; 第一设备 501可以设置为: 在第二设备 502的每个端口均发出 BFD报文 时,若自身的一个或多个端口在检测时间内没有收到第二设备 502发送的 BFD 报文, 确定与没有收到第二设备 502发送的 BFD报文的端口相连的链路故障。 现仍以设备 A与设备 B为例, 在具体实施时,链路故障检测系统可以由图 6所示, 包括设备 A与设备 B, 其中, 设备 A中可以包括 BFD处理模块、 封 装解封装模块以及物理层收发模块, 相应的, 设备 B中也包括 BFD处理模块、 封装解封装模块以及物理层收发模块, 两者间互相传输 BFD 4艮文。 当设备 A或设备 B中任意一个设备被作为发送设备时,该设备的实现过程 包括: BFD处理模块: 实现 BFD协议, 配置 BFD协议报文参数、 封装 BFD报 文, 并确定会话指定的发送端口, 将配置中指定的端口信息带给封装模块; 封装模块: 对 BFD处理模块提供的 BFD协议报文进行封装, 包括传输层、 网络层及链路层; 并将 BFD处理模块提供的端口指定为发送端口; 发送模块: 通过指定端口发送 BFD 4艮文。 当设备 A或设备 B中任意一个设备被作为发送设备时,该设备的实现过程 包括: 接收模块: 接收 BFD报文, 并记录接收端口号; 解析模块: 对报文进行解封装, 并根据 UDP端口号判断是否为 BFD报文; 将接封装后的 BFD协议报文和接收端口号送给 BFD处理模块; 2) After the configuration is complete, the sending device sends the encapsulated BFD packet from the designated port P. After receiving the packet, the receiving device records the port D that receives the packet. If the port receives the BFD control packet. If the number D' does not match the specified port number P', the 4 files are discarded. The sending device sends the encapsulated BFD packet from the designated port P, and the method includes: the sending device determines the BFD protocol packet information according to the configuration information, and the information format is as shown in FIG. 1 , and the BFD protocol packet is completed by using the encapsulating module. The encapsulation of the text is finally sent out through the detection port P specified in the configuration. The receiving device receives the BFD packet and records the receiving port number. If the port number of the BFD packet does not match the specified port number, the packet is discarded. The following includes: After receiving the packet received by the device, record the port D that receives the packet, and receive the received packet. If the packet is decapsulated and determined to be BFD 4, the BFD session is queried. If no BFD session is specified, the BFD session is discarded. As mentioned above, both the transmitting device and the receiving device are corresponding and can exchange roles. Therefore, the receiving device also initiates the same process to the transmitting device. If both the sending device and the receiving device are in each check During the measurement period, the BFD control with the port number matching the configuration is received, and the session is established and maintained. If one of the ports does not receive a valid BFD message within the detection time, the link corresponding to the designated port is considered to be faulty. Based on the same inventive concept, the embodiment of the present invention provides a link fault detection system. The structure is shown in FIG. 5, and is applied to a multi-equivalent link direct connection scenario, including a first device 501 and a chain at one end of the link. The second device 502 is located at the other end of the path. The first device 501 is configured to receive the bidirectional forwarding detection protocol BFD packet sent by the second device 502. The first device 501 and the second device 502 are pre-configured with at least one port tied to the port. Determining a BFD session; determining that the port bound to the BFD session does not receive the BFD message sent by the second device 502 within the detection time, determining that the link connected to the port is faulty; the second device 502, The BFD packet is sent to the first device 501. In an embodiment, the first device 501 may be configured to: after determining that the link connected to the port bound to the BFD session is faulty, discard the received BFD packet. In an embodiment, the first device 501 may be configured to: when it is determined that the port bound to the BFD session receives the BFD message sent by the second device 502 within the detection time, determine the chain connected to the port. The road has not failed. In an embodiment, when all the ports of the first device 501 and the second device 502 are bound to the BFD session, the second device 502 may be configured to: send a BFD message on each port; the first device 501 may When the BFD packet is sent to each port of the second device 502, if one or more ports of the second device 502 do not receive the BFD packet sent by the second device 502 within the detection time, the device determines that the BFD packet is not received. The link connected to the port of the BFD packet sent by the device 502 is faulty. The device A and the device B are still used as an example. In the specific implementation, the link fault detection system may be as shown in FIG. 6 , and includes the device A and the device B. The device A may include a BFD processing module and a package decapsulation module. And the physical layer transceiver module, and correspondingly, the device B also includes a BFD processing module, a package decapsulation module, and a physical layer transceiver module, and the BFD 4 files are transmitted between the two. When any one of device A or device B is used as a transmitting device, the implementation process of the device includes: BFD processing module: Implements the BFD protocol, configures the parameters of the BFD protocol packet, encapsulates the BFD packet, and determines the sending port specified by the session, and brings the port information specified in the configuration to the encapsulation module. Encapsulation module: BFD provided by the BFD processing module The protocol packet is encapsulated, including the transport layer, the network layer, and the link layer. The port provided by the BFD processing module is designated as the sending port. The sending module: sends the BFD 4 packet through the designated port. When any one of the device A or the device B is used as the sending device, the device includes: receiving the module: receiving the BFD packet, and recording the receiving port number; and parsing the module: decapsulating the packet, and according to UDP The port number is determined to be a BFD packet; the BFD protocol packet and the receiving port number are sent to the BFD processing module.
BFD处理模块: 对该 BFD协议报文的源目的地址, 在 BFD会话配置中进 行查找, 确定配置中该源目的地址的会话中是否有指定端口号为接收该报文的 端口, 如果没有, 则丢弃该 4艮文。 利用图 6所示的设备实施链路故障检测方法时, 参见图 7, 发送端在实施 时可以包括以下步 4聚: 步骤 702、 配置等检测效链路的 BFD会话, 并指定检测端口号; 步骤 704、 BFD处理模块在生成 BFD协议报文时, 将配置该 BFD会话时 所指定的端口发送给封装模块;封装模块对 BFD协议报文进行封装,将此 BFD 会话所指定的端口传递给发送模块; 步骤 706、 发送模块将封装好的 BFD 4艮文, 通过指定端口发送出去。 对应的, 如图 7所示, 接收端在实施时可以包括以下步骤: 步骤 708、 配置等检测效链路的 BFD会话, 并指定检测端口号; 步骤 710、 接收模块收到 BFD报文, 记录接收端口, 并将 BFD报文和端 口号传给解析模块; 解析模块对报文进行解封装处理, 直至解析到 UDP 层, 才艮据 UDP端口号确定为 BFD 4艮文; 步骤 712、 将 BFD报文和接收端口号传给 BFD处理模块; BFD处理模块 收到 BFD 报文后, 查找该 BFD 报文配置中所包括的指定端口号是否包含该 BFD的报文接收端口号; 如果没有与指定端口与该 BFD报文的接收端口号相 匹配, 那么丢弃该报文; 反之, 认为接收到一次有效的 BFD会话报文。 从以上的描述中, 可以看出, 本发明实现了如下技术效果: 釆用本发明实施例提供的链路故障检测方法, 能够在多等效链路直连的场 景中快速确定出现链路故障的链路, 后续可以对出现链路故障的链路及时处 理, 避免链路通信能力的下降。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可以 用通用的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布在多 个计算装置所组成的网络上, 可选地, 它们可以用计算装置可执行的程序代码 来实现, 从而, 可以将它们存储在存储装置中由计算装置来执行, 并且在某些 情况下, 可以以不同于此处的顺序执行所示出或描述的步骤, 或者将它们分别 制作成各个集成电路模块, 或者将它们中的多个模块或步骤制作成单个集成电 路模块来实现。 这样, 本发明不限制于任何特定的硬件和软件结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领 域的技术人员来说, 本发明可以有各种更改和变化。 凡在本发明的 ^"神和原则 之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之 内。 BFD processing module: The source IP address of the BFD session is searched in the BFD session configuration to determine whether the specified port number is the port that receives the packet in the session where the source destination address is configured. If not, Discard the 4 texts. When the link fault detection method is implemented by using the device shown in FIG. 6 , referring to FIG. 7 , the sending end may include the following steps: Step 702: Configure a BFD session for detecting a valid link, and specify a detection port number. Step 704: The BFD processing module sends the BFD session to the encapsulating module when the BFD session is generated. The encapsulating module encapsulates the BFD protocol packet and sends the port specified by the BFD session to the sending port. Step 706: The sending module sends the encapsulated BFD message to the designated port. Correspondingly, as shown in FIG. 7, the receiving end may include the following steps: Step 708: Configure a BFD session for detecting a valid link, and specify a detection port number; Step 710: The receiving module receives the BFD packet, and records The receiving port sends the BFD packet and the port number to the parsing module. The parsing module decapsulates the packet until it resolves to the UDP layer, and determines the BFD packet according to the UDP port number. Step 712: The BFD packet and the receiving port number are transmitted to the BFD processing module. After receiving the BFD packet, the BFD processing module finds whether the specified port number included in the BFD packet configuration includes the BFD packet receiving port number. If the specified port matches the receiving port number of the BFD packet, the packet is discarded; otherwise, a valid BFD session packet is received. From the above description, it can be seen that the present invention achieves the following technical effects: The link fault detection method provided by the embodiment of the present invention can quickly determine the link fault in a scenario where multiple equivalent links are directly connected. The link can be processed in time for the link with link failure to avoid the link communication capability. Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software. The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the scope of the present invention are intended to be included within the scope of the present invention.

Claims

权 利 要 求 书 Claim
1. 一种链路故障检测方法, 应用于多等效链路直连场景中, 包括: A link fault detection method is applied to a multi-equivalent link direct connection scenario, including:
链路一端的第一设备接收所述链路另一端的第二设备发送的双向转 发检测协议 BFD报文,所述第一设备和第二设备均预配置了至少一条与 自身端口绑定的 BFD会话; 以及  The first device at one end of the link receives the bidirectional forwarding detection protocol BFD packet sent by the second device at the other end of the link, and the first device and the second device are pre-configured with at least one BFD bound to the own port. Conversation;
当所述第一设备判断出其与 BFD 会话绑定的端口在检测时间内没 有收到所述第二设备发送的 BFD 报文时, 确定与该端口相连的链路故 障。  When the first device determines that the port bound to the BFD session does not receive the BFD packet sent by the second device within the detection time, it determines that the link connected to the port is faulty.
2. 根据权利要求 1所述的方法, 其中, 所述确定与该端口相连的链路故障 之后, 还包括: 丢弃已接收的 BFD报文。 The method according to claim 1, wherein, after the determining that the link connected to the port is faulty, the method further includes: discarding the received BFD packet.
3. 根据权利要求 1所述的方法, 其中, 还包括: 3. The method according to claim 1, further comprising:
当所述第一设备判断出其与 BFD 会话绑定的端口在检测时间内接 收到所述第二设备发送的 BFD报文时,确定与该端口相连的链路未发生 故障。  When the first device determines that the port bound to the BFD session receives the BFD packet sent by the second device within the detection time, it determines that the link connected to the port does not fail.
4. 根据权利要求 1至 3任一项所述的方法, 其中, 还包括: The method according to any one of claims 1 to 3, further comprising:
所述第一设备和第二设备的所有端口均与 BFD会话绑定,且第二设 备的每个端口均有 BFD 4艮文发出时,若所述第一设备的一个或多个端口 在检测时间内没有收到所述第二设备发送的 BFD 4艮文,确定与没有收到 所述第二设备发出的 BFD报文的端口相连的链路故障。  All the ports of the first device and the second device are bound to the BFD session, and each port of the second device has a BFD 4 message, if one or more ports of the first device are detected. The link failure of the BFD packet sent by the second device is not received, and the link connected to the port that does not receive the BFD packet sent by the second device is determined to be faulty.
5. —种链路故障检测系统, 应用于多等效链路直连场景中, 包括链路一端 的第一设备和链路另一端的第二设备: 5. A link fault detection system, which is applied to a multi-equivalent link direct connection scenario, including a first device at one end of the link and a second device at the other end of the link:
所述第一设备, 设置为接收所述第二设备发送的双向转发检测协议 BFD报文, 所述第一设备和第二设备均预配置了至少一条与自身端口绑 定的 BFD会话; 当判断出其与 BFD会话绑定的端口在检测时间内没有 收到所述第二设备发送的 BFD报文时, 确定与该端口相连的链路故障; 所述第二设备, 设置为向所述第一设备发送所述 BFD报文。 根据权利要求 5所述的系统, 其中, 所述第一设备设置为: 确定与 BFD 会话绑定的端口相连的链路故障之后, 丢弃已接收的 BFD报文。 根据权利要求 5所述的系统, 其中, 所述第一设备设置为: 当判断出其 与 BFD会话绑定的端口在检测时间内接收到所述第二设备发送的 BFD 报文时, 确定与该端口相连的链路未发生故障。 根据权利要求 5至 7任一项所述的系统, 其中, 所述第一设备和第二设 备的所有端口均与 BFD会话绑定时, 第二设备设置为: 在每个端口均发 出 BFD 4艮文; The first device is configured to receive a bidirectional forwarding detection protocol BFD packet sent by the second device, where the first device and the second device are pre-configured with at least one BFD session bound to the own port; If the port bound to the BFD session does not receive the BFD packet sent by the second device within the detection time, the link connected to the port is determined to be faulty; the second device is set to the first A device sends the BFD packet. The system according to claim 5, wherein the first device is configured to: after determining that the link connected to the port bound to the BFD session is faulty, discard the received BFD packet. The system according to claim 5, wherein the first device is configured to: when it is determined that the port bound to the BFD session receives the BFD packet sent by the second device within the detection time, The link connected to this port has not failed. The system according to any one of claims 5 to 7, wherein when all the ports of the first device and the second device are bound to the BFD session, the second device is configured to: issue BFD 4 on each port. Obituary
所述第一设备设置为:在所述第二设备的每个端口均发出 BFD报文 时, 若自身的一个或多个端口在检测时间内没有收到所述第二设备发送 的 BFD报文, 确定与没有收到所述第二设备发送的 BFD 4艮文的端口相 连的链路故障。  The first device is configured to: when each port of the second device sends a BFD packet, if one or more ports of the second device do not receive the BFD packet sent by the second device within the detection time, And determining a link failure connected to the port that does not receive the BFD 4 message sent by the second device.
PCT/CN2011/075861 2010-11-02 2011-06-20 Method and system for link failure detection WO2012058930A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010530212.2 2010-11-02
CN201010530212.2A CN102457409B (en) 2010-11-02 2010-11-02 Method and system for link failure detection

Publications (1)

Publication Number Publication Date
WO2012058930A1 true WO2012058930A1 (en) 2012-05-10

Family

ID=46023971

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/075861 WO2012058930A1 (en) 2010-11-02 2011-06-20 Method and system for link failure detection

Country Status (2)

Country Link
CN (1) CN102457409B (en)
WO (1) WO2012058930A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105227393A (en) * 2015-08-25 2016-01-06 上海斐讯数据通信技术有限公司 A kind of bidirectional forwarding detection (BFD) method
CN105099805B (en) * 2014-05-16 2019-05-07 新华三技术有限公司 A kind of bidirectional forwarding detection (BFD) method and system

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105847460B (en) * 2016-03-15 2018-12-28 迈普通信技术股份有限公司 A kind of method and apparatus for realizing two-way converting detection
CN106375143B (en) * 2016-08-29 2020-03-06 新华三技术有限公司 Link detection message sending method and device
CN107872309B (en) * 2016-09-26 2021-12-14 中兴通讯股份有限公司 Self-adaptive method, device and equipment for network transmission medium and rate
CN106453074A (en) * 2016-10-21 2017-02-22 杭州华三通信技术有限公司 Switching method and apparatus
CN112514524B (en) * 2018-07-27 2023-05-02 华为技术有限公司 Link failure recovery for C-DRX mode
CN111654406B (en) * 2020-02-29 2022-08-30 新华三信息安全技术有限公司 Bidirectional forwarding detection method and device
CN111682982B (en) * 2020-06-03 2022-09-27 北京东土军悦科技有限公司 Path fault detection method, device, equipment, system and storage medium
CN115242693A (en) * 2021-04-22 2022-10-25 中兴通讯股份有限公司 Network detection method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070180105A1 (en) * 2006-01-30 2007-08-02 Clarence Filsfils Technique for distinguishing between link and node failure using bidirectional forwarding detection (BFD)
CN101030966A (en) * 2006-02-28 2007-09-05 华为技术有限公司 Method for establishing two-way transmitted inspecting session
CN101087211A (en) * 2007-07-20 2007-12-12 华为技术有限公司 A method and system for realizing echo function in BFD mechanism and its function entity
CN101132320A (en) * 2007-09-18 2008-02-27 华为技术有限公司 Method for detecting interface trouble and network node equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070180105A1 (en) * 2006-01-30 2007-08-02 Clarence Filsfils Technique for distinguishing between link and node failure using bidirectional forwarding detection (BFD)
CN101030966A (en) * 2006-02-28 2007-09-05 华为技术有限公司 Method for establishing two-way transmitted inspecting session
CN101087211A (en) * 2007-07-20 2007-12-12 华为技术有限公司 A method and system for realizing echo function in BFD mechanism and its function entity
CN101132320A (en) * 2007-09-18 2008-02-27 华为技术有限公司 Method for detecting interface trouble and network node equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105099805B (en) * 2014-05-16 2019-05-07 新华三技术有限公司 A kind of bidirectional forwarding detection (BFD) method and system
CN105227393A (en) * 2015-08-25 2016-01-06 上海斐讯数据通信技术有限公司 A kind of bidirectional forwarding detection (BFD) method

Also Published As

Publication number Publication date
CN102457409B (en) 2014-04-30
CN102457409A (en) 2012-05-16

Similar Documents

Publication Publication Date Title
WO2012058930A1 (en) Method and system for link failure detection
US8634308B2 (en) Path detection in trill networks
US7853691B2 (en) Method and system for securing a network utilizing IPsec and MACsec protocols
JP4567367B2 (en) Insert address to enable OAM function
US7940658B2 (en) ERSPAN dynamic session negotiation
CN108601043B (en) Method and apparatus for controlling wireless access point
WO2017054547A1 (en) Bidirectional forwarding detection method and apparatus
JP2013070381A (en) Ethernet oam at intermediate nodes in pbt network
WO2018210213A1 (en) Method and device for implementing ioam packaging and storage medium
WO2013071801A1 (en) Method, device and system for detecting multi-protocol label switching ring network
WO2013128483A1 (en) Relay device, relay device control method, and network system
WO2009092257A1 (en) Fault detection method and device for provider backbone transport network
CN107147655A (en) A kind of network dual stack parallel process model and its processing method
WO2022042503A1 (en) Message transmission method, apparatus, and system
CN109787878A (en) A kind of tunnel links detection method and relevant device
WO2021088813A1 (en) Packet encapsulating method and apparatus, and packet decapsulating method and apparatus
CN108737183B (en) Method and device for monitoring forwarding table item
US8462952B2 (en) Synchronizing management signaling in a network
WO2011131069A1 (en) Binding links detection method and distributed device
JP5672836B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION PROGRAM
WO2014161421A1 (en) Data transmission method, device, and system
WO2019062268A1 (en) Method, apparatus and system for transmitting multicast message
CN105703997B (en) A kind of tunnel control method and device
JP2006253867A (en) Frame transmission system and method
CN103036984B (en) One-way flow detection method and network equipment

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

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

Country of ref document: EP

Kind code of ref document: A1