WO2009036705A1 - Method for detecting interface failure and network node equipment - Google Patents

Method for detecting interface failure and network node equipment Download PDF

Info

Publication number
WO2009036705A1
WO2009036705A1 PCT/CN2008/072389 CN2008072389W WO2009036705A1 WO 2009036705 A1 WO2009036705 A1 WO 2009036705A1 CN 2008072389 W CN2008072389 W CN 2008072389W WO 2009036705 A1 WO2009036705 A1 WO 2009036705A1
Authority
WO
WIPO (PCT)
Prior art keywords
interface
link
fault
member link
state
Prior art date
Application number
PCT/CN2008/072389
Other languages
French (fr)
Chinese (zh)
Inventor
Peng Wang
Yuting Wang
Wei Zhang
Zuliang Wang
Lina Wu
Original Assignee
Huawei Technologies Co., Ltd.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co., Ltd. filed Critical Huawei Technologies Co., Ltd.
Publication of WO2009036705A1 publication Critical patent/WO2009036705A1/en

Links

Classifications

    • 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

Definitions

  • the present invention relates to the field of communications, and in particular, to a method for detecting an interface fault and a network node device. Background technique
  • OAM Operaation Administration and Maintenance
  • ITU International Telecommunication Union
  • BFD Bidirectional Forwarding Detection
  • BFD is gradually developed from the basic transmission technology. It can detect faults at various layers in the network. It can be used to detect multiple types of Ethernet, MPLS path, common route encapsulation, and IPSec (IP network security protocol) tunnels. The correctness of the transmission.
  • the goal of BFD is to provide a low-cost, short-detection failure detection mechanism between adjacent systems, including interfaces, data links, and the detection of the forwarding engine itself.
  • BFD is similar to the "Hello" protocol.
  • the two parties When a BFD session between two systems to be detected is established, the two parties periodically send BFD packets to the peer, and periodically detect the arrival of the other party's packets on the link. If the BFD packet from the peer is not received within a certain interval, the link is considered faulty, so as to quickly discover the link fault.
  • Router A and Router C have a link AC (routers A and C can be directly adjacent or connected through transmission equipment or other systems).
  • link BC between Router B and Router C, on the link AC and link BC.
  • BFD is applied to the AC between the routers A and Router C.
  • the BFD session does not automatically discover neighbors (the other end of the BFD session, where Router A and Router C are BFD sessions).
  • the neighboring mechanism needs to be configured statically or depends on other application protocols to obtain the IP address of the neighbor and the BFD session discriminator. After obtaining the information, the BFD starts to send the session negotiation packet periodically until the session is established. Ls.
  • the BFD session parameters are negotiated to coordinate the speed of sending and receiving BFD packets, the defect confirmation time, and the unified session mode.
  • the neighbors of the BFD session send BFD control packets to the peer at the negotiated interval. This is the same as the function and operation mode of the Hello packets. Is, maybe tens of milliseconds. For the convenience of description, I call this state the fast defect detection phase.
  • the router When the router sends a BFD check packet, it also periodically detects the BFD packet sent by the BFD neighbor. If the number of consecutive BFD packets is lost, the link is disconnected ( Down) and the message is sent. Advertise to other applications (such as: routing module, forwarding module, etc.).
  • the state of the application protocol running on the interface depends on the interface state.
  • the BFD session can be configured as the interface association mode.
  • the interface management sets all the protocols running on the interface to the IDLE state, so that all protocols running on the interface can quickly detect link faults and achieve fast convergence.
  • the meaning of the convergence is that the upper layer application protocols all run the same, accurate routing information enough to reflect the current network topology structure, and fast convergence is the most desirable feature of the routing protocol.
  • the interface association function of the BFD function enables multiple protocols running on the interface to converge at the same time by using one BFD configured on the interface. This improves the efficiency and saves the efficiency of each BFD detection method.
  • the interface is a composite concept.
  • the interface may be corresponding to the link. It may also be that multiple logical interfaces share one physical link. It is also possible that one interface consists of multiple physical links. We lower this ratio interface.
  • Hierarchical, the physical link used to form an interface is called the member link of the interface.
  • the interface can be multiplexed in a plurality of forms, for example, multiple interfaces multiplex one member link, and one interface includes multiple member links. Be effective. For example, if multiple member interfaces are multiplexed with multiple interfaces, at least one BFD session must be configured for each interface. This is very inefficient. For an interface that contains multiple member links, the current interface association function cannot be effectively supported. Summary of the invention
  • An object of the embodiments of the present invention is to provide a method for detecting an interface fault and a network node device.
  • an embodiment of the present invention provides a method for detecting an interface fault, which includes:
  • the fault status of the member link is reported to the interface corresponding to the member link.
  • an embodiment of the present invention further provides a network node device, including:
  • the link detection module is configured to establish a BFD session and perform BFD detection on the member links of the interface.
  • the interface management module is configured to determine, according to the fault state of the member link detected by the link detection module, whether the interface corresponding to the member link is malfunction.
  • the BFD directly detects the member link status of the interface, and then determines the state of the interface according to the member link status, and implements various forms.
  • the member links of the interface perform efficient BFD detection to detect faults on the interface or link and improve the performance of the network system.
  • FIG. 1 is a schematic diagram of the overall application environment of the BFD
  • FIG. 2 is a schematic structural diagram of a network node device according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a link detecting module according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of an interface management module according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of an interface state determining unit illustrated in FIG. 4;
  • FIG. 6 is a flowchart of a method for detecting an interface fault according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of an embodiment in which multiple interfaces share a member link
  • Figure 8 is a process flow diagram of the embodiment of Figure 7;
  • FIG. 9 is a schematic diagram of an embodiment in which an interface includes multiple member links
  • FIG 10 is a process flow diagram of the embodiment of Figure 9. detailed description
  • the method for detecting an interface fault and the technical solution of the network node device are provided by the embodiment of the present invention.
  • the BFD directly detects the member link status of the interface, and then determines the state of the interface according to the member link status, so as to implement various forms.
  • Interface member links perform efficient BFD detection.
  • the network node device includes:
  • the link detection module 1 is configured to establish a BFD session, and perform BFD detection on the member links of the interface.
  • the interface management module 2 is configured to determine, according to the fault state of the member link detected by the link detection module 1, the member link. Whether the interface has failed.
  • the link detection module 1 shown in FIG. 2 includes:
  • the fault detection unit 101 is configured to establish a BFD session for each member link and perform BFD detection.
  • the fault reporting unit 102 reports the fault status of the member link to the interface when the fault detection unit detects that the member link is faulty, specifically:
  • the interface management module 2 shown in FIG. 2 includes:
  • the link state obtaining unit 201 is configured to acquire a fault state of the member link reported by the link detecting module 1;
  • the interface state determining unit 202 is configured to determine, according to the fault state of the member link acquired by the link state acquiring unit 201, whether an interface corresponding to the member link is faulty.
  • the interface management module 2 may further include an interface status sending unit 203, configured to: when the interface status determining unit 202 determines that the status of the interface is a fault state, send the fault status to an upper application running on the interface.
  • the protocol, the upper layer application protocol converges after receiving the fault state of the interface.
  • the interface state determining unit 202 of FIG. 4 includes: a determining unit 2021, configured to determine that the interface includes one of the member links, including at least two member links, and Output the judgment result;
  • the threshold value determining unit 2022 when the determination result output by the determining unit 2021 is that the interface includes at least two member links, is used to determine whether the number of member links having a fault state exceeds a threshold, and outputs a determination result;
  • the link state judging unit 2023 when the judgment result output by the judging unit 2021 is that the interface includes a barrier; , ' , , ' , ' ⁇ , ' ' state changing unit 2024, when the judgment result output by the threshold judging unit 2022 is faulty
  • the state of the interface is changed to a fault state.
  • the interface management module further includes:
  • the interface status sending unit is configured to: when the interface status determining unit determines that the status of the interface is a fault state, send the fault status to an upper layer application protocol running on the interface.
  • the network node device is a router or a switching device.
  • the network node device provided by the embodiment of the present invention is described in detail above.
  • a method for detecting an interface failure according to an embodiment of the present invention will be described in detail with reference to the accompanying drawings. Referring to FIG. 6, which is a flowchart of a method for detecting an interface failure according to an embodiment of the present invention.
  • the method for detecting an interface failure includes:
  • Step S1 Establish a BFD session on each member link of the interface, and perform BFD detection.
  • the interface is a composite concept.
  • the interface may correspond to a link, or multiple interfaces may share a physical link. It is also possible that an interface includes a plurality of physical links, and the physical link is referred to as a member link of the interface;
  • step S2 when the member link is faulty, the fault status of the member link is reported to the interface corresponding to the member link.
  • Step S3 Determine whether the interface is faulty according to a fault state of the member link.
  • the steps of the interface are specifically as follows:
  • the physical port reports the fault status of the member link to the corresponding interface.
  • the method further includes:
  • the upper layer application protocol converges after receiving the fault state of the interface.
  • the BFD is used to directly detect the member link status of the interface, and then determine the state of the interface according to the member link status, thereby implementing efficient BFD detection on various interfaces and member links, and discovering interfaces or links in time. Faults, improve network system performance, and improve QoS (Quality of Service)
  • FIG. 7 a schematic diagram of an embodiment in which multiple interfaces share a member link
  • a typical scenario is to carry multiple logical sub-interfaces on a physical port of a member link.
  • Router A and Router B are connected by a physical link.
  • the physical ports of the physical link carry four interfaces, namely: logical interface 1, logical interface 2, logical interface 3, and logic.
  • Interface 4 that is, the four logical interfaces share a physical link as their common member link.
  • the method for detecting an interface fault in the embodiment of the present invention is to establish a BFD session on the member link, so that the application protocol on each interface can be quickly converge.
  • the processing procedure is as shown in FIG. 8 and includes:
  • Step S71 Establish a BFD session on the member links shared by the four logical interfaces to perform BFD detection.
  • Step S72 When detecting that the member link is faulty, report the fault status to the physical port.
  • Step S73 the physical port quickly reports the fault status of the member link to each logical interface.
  • Step S74 the four logical interfaces determine, according to the fault state of the shared member link, that the respective states are fault states (Down state);
  • step S75 the four logical interfaces respectively send respective fault states to various upper layer application protocols running on the respective ones, thereby triggering fast convergence of the application protocols.
  • N the integers greater than 0
  • N BFD detection packets are transmitted.
  • N tends to infinity (or when there are hundreds of interfaces multiplexed with one member link)
  • there will be a large number of BFD detection packets in the network resulting in inefficient transmission of user service data packets, and even loss of service data.
  • no matter how many logical interfaces are provided only one BFD detection needs to be configured on the member links, and a small amount of BFD detection packets can be detected on the network to detect whether each interface is faulty, thereby improving detection efficiency. It also avoids network congestion caused by the transmission of a large number of detection packets, saves network resources, and improves system performance and QoS.
  • FIG. 10 a schematic diagram of an embodiment of an interface including multiple member links.
  • a trunk interface is bundled with five member links.
  • the trunk interface is a trunk interface or a trunk interface.
  • the physical ports are bundled together and used as a logical interface. Trunk technology is implemented.
  • the internal member links are mutually backup. When a member link fails, the other links are not affected. However, when there are too many member links, the trunk interface and system performance are affected.
  • the method for detecting the fault of the interface provided by the embodiment of the present invention is used to detect the processing flow of the trunk interface in time as shown in FIG. 10, which includes:
  • Step S81 A BFD session is established on each member link, that is, five BFD sessions are to be established. Then, performing BFD detection on each member link;
  • Step S82 When detecting a member link failure, reporting the fault status to the physical port corresponding to the member link;
  • step S83 the physical port reports the fault status of the member links to the trunk interface.
  • step S84 After receiving the status information of all member links, the trunk interface determines whether the number of member links with the fault status exceeds a preset threshold (such as: 3), if yes, proceed to step S86, otherwise, perform step S85;
  • a preset threshold such as: 3
  • Step S85 continue to perform BFD detection, and then proceeds to step S82;
  • Step S86 determining that the state is a fault state
  • Step S87 Send the fault status of the trunk interface to all upper layer application protocols running on the trunk interface.
  • Step S88 The upper layer application protocol performs fast convergence after receiving the fault state of the trunk interface.
  • the current interface linkage mode cannot effectively detect the fault of the interface, and the BFD session is established on the member link by the present invention to perform BFD detection and pass the member chain.
  • a road failure the number of member links that have failed
  • the storage medium includes: a ROM/RAM, a magnetic disk, an optical disk, a flash memory, and the like.
  • the BFD directly detects the member link status of the interface, and then determines the state of the interface according to the member link status, and implements various forms.
  • An interface (such as an interface that includes multiple member links or multiple interfaces to share a member link) performs efficient BFD detection to detect faults on interfaces or links and improve network system performance.
  • a person skilled in the art can understand that all or part of the processes in implementing the embodiments of the present invention can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium.
  • the program when executed, may include the flow of an embodiment of the methods as described above.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
  • ROM read-only memory
  • RAM random access memory

Abstract

A method for detecting interface failure is disclosed. The method includes: building BFD sessions on every member link and carrying out BFD detection, reporting the faulty state of the link to the interface when a fault of the link is detected, determining whether the interface is failure according to the faulty states of the member links received by the interface. A network node device is also disclosed. Then the efficient detection for various kinds of interface is implemented by detecting the member links of the interface directly.

Description

检测接口故障的方法及网络节点设备 技术领域 本发明涉及通信领域, 尤其涉及一种检测接口故障的方法及网络节点设备。 背景技术  TECHNICAL FIELD The present invention relates to the field of communications, and in particular, to a method for detecting an interface fault and a network node device. Background technique
随着通信技术的发展, 尤其是在 IP网络上承载 NGN、 3G等实时、 时延敏 感业务需求的不断增长, 如何保护数据传输质量, 如何在数据传输出现问题时, 快速对故障进行定位, 并通过相应处理以减少丟失数据包, 已成为当前亟待解 决的重要问题。  With the development of communication technologies, especially the demand for real-time and delay-sensitive services such as NGN and 3G on IP networks, how to protect the quality of data transmission, how to quickly locate faults when data transmission problems occur, and Reducing lost packets through corresponding processing has become an important issue that needs to be solved urgently.
为了解决上述问题, 当前业界提出了一种可操作可维护性操作管理及维护 ( OAM, Operation Administration and Maintenance。 )技术。 OAM技术可以对网 络中各种故障进行自动检测, 然后采取对应的补救措施, 以避免故障的扩大, 并消除故障, 减小或消除故障带来的负面影响。 目前的 OAM技术主要包括: 国 际电信联盟 ( ITU ) 提出的多协议标签交换 ( MPLS , Multi-Protocol Label Switching ) OAM技术, 以及双向转发检测 ( Bidirectional Forwarding Detection, BFD )技术。  In order to solve the above problems, the industry has proposed an OAM (Operation Administration and Maintenance) technology. OAM technology can automatically detect various faults in the network, and then take corresponding remedial measures to avoid the expansion of faults, eliminate faults, and reduce or eliminate the negative effects of faults. The current OAM technologies mainly include: Multi-Protocol Label Switching (OAM) technology proposed by the International Telecommunication Union (ITU), and Bidirectional Forwarding Detection (BFD) technology.
BFD是从基础传输技术中逐步发展起来的,它可以检测网络中各层的故障, 可以用于检测以太网、 MPLS路径、普通路由封装以及 IPSec ( IP网络安全协议) 隧道在内的多种类型的传输正确性。 BFD 的目标是在相邻系统之间提供一种低 开销、 短检测周期的失败检测机制, 包括接口、 数据链路以及转发引擎自身的 检测。  BFD is gradually developed from the basic transmission technology. It can detect faults at various layers in the network. It can be used to detect multiple types of Ethernet, MPLS path, common route encapsulation, and IPSec (IP network security protocol) tunnels. The correctness of the transmission. The goal of BFD is to provide a low-cost, short-detection failure detection mechanism between adjacent systems, including interfaces, data links, and the detection of the forwarding engine itself.
BFD类似于 "Hello"协议, 当需要检测的两个系统之间的 BFD会话建立后, 双方周期性地向对方发送 BFD报文, 同时也在该链路上周期性地检测对方报文 到达情况, 如果在一定时间间隔内没有收到来自对端的 BFD报文, 则认为该链 路出现故障, 以此达到快速发现链路故障的目的。  BFD is similar to the "Hello" protocol. When a BFD session between two systems to be detected is established, the two parties periodically send BFD packets to the peer, and periodically detect the arrival of the other party's packets on the link. If the BFD packet from the peer is not received within a certain interval, the link is considered faulty, so as to quickly discover the link fault.
如图 1所示, BFD的总体应用环境组网示意图, 路由器 A和路由器 C之间 有链路 AC (路由器 A和 C可以是直接相邻的, 也可以通过传输设备或其它系 统连接起来), 路由器 B和路由器 C之间有链路 BC, 在链路 AC和链路 BC上 应用 BFD进行链路检测。 一个 BFD会话生命周期主要包括下几个阶段:As shown in Figure 1, the overall application environment of BFD is networked. Router A and Router C have a link AC (routers A and C can be directly adjacent or connected through transmission equipment or other systems). There is a link BC between Router B and Router C, on the link AC and link BC. Apply BFD for link detection. The life cycle of a BFD session mainly includes the following phases:
1、 建立 BFD会话: 1. Establish a BFD session:
如图 1所示, 以在路由器 A和路由器 C之间的链路 AC上应用 BFD为例, 由于 BFD没有自动发现邻居 (BFD会话的另一端, 此处路由器 A和路由器 C 就会为 BFD会话邻居)机制, 需要静态配置或依赖于其它应用协议获取邻居的 IP地址以及 BFD会话鉴别符( Discriminator ), 在获取这些信息后, BFD开始定 时发送会话协商报文直到会话建立, 其发包间隔一般大于 ls。  As shown in Figure 1, BFD is applied to the AC between the routers A and Router C. The BFD session does not automatically discover neighbors (the other end of the BFD session, where Router A and Router C are BFD sessions). The neighboring mechanism needs to be configured statically or depends on other application protocols to obtain the IP address of the neighbor and the BFD session discriminator. After obtaining the information, the BFD starts to send the session negotiation packet periodically until the session is established. Ls.
2、 BFD会话参数协商:  2. BFD session parameter negotiation:
建立 BFD会话之后,需要进行 BFD会话参数的协商,以协调双方收发 BFD 报文的速度、 缺陷确认时间, 以及统一会话模式等。  After a BFD session is established, the BFD session parameters are negotiated to coordinate the speed of sending and receiving BFD packets, the defect confirmation time, and the unified session mode.
3、 BFD缺陷检测:  3. BFD defect detection:
BFD会话建立后, BFD会话的邻居间就按照协商好的间隔向对端发送 BFD 控制报文,这与路由协议 Hello报文的功能和操作方式一样,只是发送频率更快, 其发送间隔一般小于 Is, 可能为几十毫秒。 为了描述方便, 我把这个状态叫做 快速缺陷检测阶段。  After the BFD session is established, the neighbors of the BFD session send BFD control packets to the peer at the negotiated interval. This is the same as the function and operation mode of the Hello packets. Is, maybe tens of milliseconds. For the convenience of description, I call this state the fast defect detection phase.
路由器在发送 BFD检测报文的同时,也定时检测 BFD邻居发送过来的 BFD 报文,如果连续丟失邻居的 BFD报文达到指定的个数,则宣布链路断开( Down ), 并将这个消息通告给其它应用 (如: 路由模块、 转发模块等)。  When the router sends a BFD check packet, it also periodically detects the BFD packet sent by the BFD neighbor. If the number of consecutive BFD packets is lost, the link is disconnected ( Down) and the message is sent. Advertise to other applications (such as: routing module, forwarding module, etc.).
以上筒单介绍了 BFD会话生命周期的几个阶段, 其详细技术可参见互联网 工程任务组 ( IETF ) 公开的 《 IETF: draft-ietf-bfd-base-00》、 《 IETF: draft-ietf-bfd-mpls-00》和《IETF: draft-ietf-mpls-lsp-ping-05》等。  The above single page introduces several stages of the life cycle of a BFD session. For detailed techniques, please refer to the IETF: draft-ietf-bfd-base-00 and IETF: draft-ietf-bfd published by the Internet Engineering Task Force (IETF). -mpls-00 and "IETF: draft-ietf-mpls-lsp-ping-05".
在实际应用过程中, 普遍认为接口上运行的应用协议的状态都依赖接口状 态, 为了在接口上批量通告上层应用协议, BFD 可以配置为接口联动方式, 当 BFD快速检测到链路故障后, 直接通报接口管理, 接口管理会把接口上运行的 所有协议置为 IDLE状态,从而使得接口上运行的所有协议都可以快速感知链路 故障, 达到快速收敛的目的。 所述收敛的含义为所述上层应用协议都运行着相 同、 精确的、 足以反映当前网络拓朴结构的路由信息, 快速收敛是路由选择协 议最希望具有的特征。 BFD 的接口联动功能使得接口上运行的多个协议只依靠 接口上配置的一条 BFD就可以同时快速收敛, 从而相对于传统的每个协议都配 置一个 BFD检测的方式, 提高了效率, 同时也节省了路由器的开销。 但是, 接 口是个复合的概念, 接口可能和链路是——对应的, 也可能多个逻辑接口共享 一个物理链路, 还有可能一个接口由多条物理链路组成, 我们把这种比接口低 一层次的, 用来构成一个接口的物理链路称为接口的成员链路。 In the actual application process, it is generally considered that the state of the application protocol running on the interface depends on the interface state. In order to advertise the upper-layer application protocol on the interface in batches, the BFD session can be configured as the interface association mode. To notify the interface management, the interface management sets all the protocols running on the interface to the IDLE state, so that all protocols running on the interface can quickly detect link faults and achieve fast convergence. The meaning of the convergence is that the upper layer application protocols all run the same, accurate routing information enough to reflect the current network topology structure, and fast convergence is the most desirable feature of the routing protocol. The interface association function of the BFD function enables multiple protocols running on the interface to converge at the same time by using one BFD configured on the interface. This improves the efficiency and saves the efficiency of each BFD detection method. The overhead of the router. However, The interface is a composite concept. The interface may be corresponding to the link. It may also be that multiple logical interfaces share one physical link. It is also possible that one interface consists of multiple physical links. We lower this ratio interface. Hierarchical, the physical link used to form an interface is called the member link of the interface.
发明人在实现本发明的过程中发现, 对 BFD接口联动功能来说, 接口在很 多种形式下, 比如多个接口复用一条成员链路, 一个接口包含多条成员链路等 情况, 都无法做到有效使用。 如: 对于多个接口复用一条成员链路, 必须每个接 口都配置至少一个 BFD会话检测,非常低效;对于一个接口包含多条成员链路, 目前的接口联动功能还无法有效支持。 发明内容  In the process of implementing the present invention, the inventor found that, for the BFD interface linkage function, the interface can be multiplexed in a plurality of forms, for example, multiple interfaces multiplex one member link, and one interface includes multiple member links. Be effective. For example, if multiple member interfaces are multiplexed with multiple interfaces, at least one BFD session must be configured for each interface. This is very inefficient. For an interface that contains multiple member links, the current interface association function cannot be effectively supported. Summary of the invention
本发明实施例的目的在于提供一种检测接口故障的方法及网络节点设备。 通过直接对接口的成员链路进行 BFD检测来确定接口的故障状态, 以实现对多 种形式的接口进行高效的 BFD检测。  An object of the embodiments of the present invention is to provide a method for detecting an interface fault and a network node device. By performing BFD detection on the member links of the interface to determine the fault status of the interface, you can perform efficient BFD detection on multiple interfaces.
为此, 本发明实施例提出了一种检测接口故障的方法, 其包括:  To this end, an embodiment of the present invention provides a method for detecting an interface fault, which includes:
在接口的每一条成员链路上建立 BFD会话, 并进行 BFD检测;  Establish a BFD session on each member link of the interface and perform BFD detection.
当检测到成员链路故障时, 将所述成员链路的故障状态上报给所述成员链 路对应的接口;  When the member link is faulty, the fault status of the member link is reported to the interface corresponding to the member link.
根据所述成员链路的故障状态确定所述接口是否发生故障。  Determining whether the interface is faulty according to a fault state of the member link.
相应地, 本发明实施例还提供了一种网络节点设备, 其包括:  Correspondingly, an embodiment of the present invention further provides a network node device, including:
链路检测模块, 用于建立 BFD会话, 对接口的成员链路进行 BFD检测; 接口管理模块, 用于根据链路检测模块检测到的成员链路的故障状态确定 该成员链路对应的接口是否发生故障。  The link detection module is configured to establish a BFD session and perform BFD detection on the member links of the interface. The interface management module is configured to determine, according to the fault state of the member link detected by the link detection module, whether the interface corresponding to the member link is malfunction.
根据本发明实施例提供的一种检测接口故障的方法及网络节点设备的技术 方案, 通过 BFD直接检测接口的成员链路状态, 然后根据成员链路状态确定接 口的状态, 实现了对各种形式的接口成员链路进行高效的 BFD检测, 及时发现 接口或链路的故障, 提高网络系统的性能。 附图说明 例或现有技术描述中所需要使用的附图作筒单地介绍, 显而易见地, 下面描述 中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付 出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。 According to the method for detecting an interface fault and the technical solution of the network node device, the BFD directly detects the member link status of the interface, and then determines the state of the interface according to the member link status, and implements various forms. The member links of the interface perform efficient BFD detection to detect faults on the interface or link and improve the performance of the network system. BRIEF DESCRIPTION OF THE DRAWINGS The drawings, which are required to be used in the description of the drawings or in the description of the prior art, are described in detail in the drawings. The drawings in the drawings are only some embodiments of the present invention, and those skilled in the art can obtain other drawings according to the drawings without any inventive labor.
图 1是 BFD总体应用环境示意图;  Figure 1 is a schematic diagram of the overall application environment of the BFD;
图 2是本发明实施例的一种网络节点设备的结构示意图;  2 is a schematic structural diagram of a network node device according to an embodiment of the present invention;
图 3是本发明实施例的一种链路检测模块的结构示意图;  3 is a schematic structural diagram of a link detecting module according to an embodiment of the present invention;
图 4是本发明实施例的一种接口管理模块的结构示意图;  4 is a schematic structural diagram of an interface management module according to an embodiment of the present invention;
图 5是图 4所述的接口状态确定单元的结构示意图;  FIG. 5 is a schematic structural diagram of an interface state determining unit illustrated in FIG. 4;
图 6是本发明实施例的一种检测接口故障的方法的流程图;  6 is a flowchart of a method for detecting an interface fault according to an embodiment of the present invention;
图 7是多个接口共享一条成员链路的实施例的示意图;  7 is a schematic diagram of an embodiment in which multiple interfaces share a member link;
图 8是图 7所述实施例的处理流程图;  Figure 8 is a process flow diagram of the embodiment of Figure 7;
图 9是一个接口包括多条成员链路的实施例的示意图;  9 is a schematic diagram of an embodiment in which an interface includes multiple member links;
图 10是图 9所述实施例的处理流程图。 具体实施方式  Figure 10 is a process flow diagram of the embodiment of Figure 9. detailed description
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作出创造 性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。  BRIEF DESCRIPTION OF THE DRAWINGS The technical solutions in the embodiments of the present invention will be described in detail with reference to the accompanying drawings. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative work are within the scope of the present invention.
本发明实施例提供的一种检测接口故障的方法及网络节点设备的技术方 案, 通过 BFD直接检测接口的成员链路状态, 然后根据成员链路状态确定接口 的状态, 以实现对各种形式的接口成员链路进行高效的 BFD检测。  The method for detecting an interface fault and the technical solution of the network node device are provided by the embodiment of the present invention. The BFD directly detects the member link status of the interface, and then determines the state of the interface according to the member link status, so as to implement various forms. Interface member links perform efficient BFD detection.
下面将结合附图具体阐述本发明实施例的技术方案。  The technical solutions of the embodiments of the present invention will be specifically described below with reference to the accompanying drawings.
参考图 2, 本发明实施例的一种网络节点设备的结构示意图。 根据该图, 所 述网络节点设备, 包括:  Referring to FIG. 2, a schematic structural diagram of a network node device according to an embodiment of the present invention. According to the figure, the network node device includes:
链路检测模块 1 , 用于建立 BFD会话, 对接口的成员链路进行 BFD检测; 接口管理模块 2,用于根据链路检测模块 1检测到的成员链路的故障状态确 定该成员链路对应的接口是否发生故障。  The link detection module 1 is configured to establish a BFD session, and perform BFD detection on the member links of the interface. The interface management module 2 is configured to determine, according to the fault state of the member link detected by the link detection module 1, the member link. Whether the interface has failed.
其中, 如图 3所示, 图 2所述的链路检测模块 1包括:  As shown in FIG. 3, the link detection module 1 shown in FIG. 2 includes:
故障检测单元 101 , 用于为每一条成员链路建立 BFD会话, 并进行 BFD检 测; 故障上报单元 102, 当所述故障检测单元检测到成员链路故障时, 将所述成 员链路的故障状态上报给接口, 具体为: The fault detection unit 101 is configured to establish a BFD session for each member link and perform BFD detection. The fault reporting unit 102 reports the fault status of the member link to the interface when the fault detection unit detects that the member link is faulty, specifically:
将所述成员链路的故障状态发送给该成员链路对应的物理端口; 所述物理 端口再将所述成员链路的故障状态上报给对应的接口。  Sending the fault status of the member link to the physical port corresponding to the member link; the physical port reporting the fault status of the member link to the corresponding interface.
其中, 如图 4所示, 图 2所述的接口管理模块 2包括:  As shown in FIG. 4, the interface management module 2 shown in FIG. 2 includes:
链路状态获取单元 201 ,用于获取所述链路检测模块 1上报的成员链路的故 障状态;  The link state obtaining unit 201 is configured to acquire a fault state of the member link reported by the link detecting module 1;
接口状态确定单元 202,用于根据链路状态获取单元 201获取的所述成员链 路的故障状态确定该成员链路对应的接口是否发生故障。  The interface state determining unit 202 is configured to determine, according to the fault state of the member link acquired by the link state acquiring unit 201, whether an interface corresponding to the member link is faulty.
优选地,接口管理模块 2进一步可以包括一接口状态发送单元 203 , 用于当 接口状态确定单元 202判定所述接口的状态为故障状态时, 将所述故障状态发 送给该接口上运行的上层应用协议, 所述上层应用协议接收到所述接口的故障 状态后进行收敛。  Preferably, the interface management module 2 may further include an interface status sending unit 203, configured to: when the interface status determining unit 202 determines that the status of the interface is a fault state, send the fault status to an upper application running on the interface. The protocol, the upper layer application protocol converges after receiving the fault state of the interface.
在具体实现时, 如图 5所示, 图 4所述的接口状态确定单元 202包括: 判断单元 2021 , 用于判断所述接口包括一条所述成员链路, 包括至少两条 成员链路, 并输出判断结果;  In a specific implementation, as shown in FIG. 5, the interface state determining unit 202 of FIG. 4 includes: a determining unit 2021, configured to determine that the interface includes one of the member links, including at least two member links, and Output the judgment result;
阈值判断单元 2022,当判断单元 2021输出的判断结果为所述接口包括至少 两条成员链路时, 用于判断具有故障状态的成员链路的数目是否超过一阈值, 并输出判断结果;  The threshold value determining unit 2022, when the determination result output by the determining unit 2021 is that the interface includes at least two member links, is used to determine whether the number of member links having a fault state exceeds a threshold, and outputs a determination result;
链路状态判断单元 2023 ,当判断单元 2021输出的判断结果为所述接口包括 障; 、 ' 、 、 ' 、 ' ― 、 ' ' 状态更改单元 2024,当阈值判断单元 2022输出的判断结果为具有故障状态 的成员链路的数目超过所述阈值, 或者链路状态判断单元 2023输出的判断结果 为所述成员链路故障时, 将该接口的状态更改为故障状态。  The link state judging unit 2023, when the judgment result output by the judging unit 2021 is that the interface includes a barrier; , ' , , ' , ' ― , ' ' state changing unit 2024, when the judgment result output by the threshold judging unit 2022 is faulty When the number of member links of the state exceeds the threshold, or the result of the determination by the link state determining unit 2023 is that the member link is faulty, the state of the interface is changed to a fault state.
所述接口管理模块还包括:  The interface management module further includes:
接口状态发送单元, 用于当接口状态确定单元判定所述接口的状态为故障 状态时, 将所述故障状态发送给该接口上运行的上层应用协议。  The interface status sending unit is configured to: when the interface status determining unit determines that the status of the interface is a fault state, send the fault status to an upper layer application protocol running on the interface.
值得说明的是, 在实际网络中, 所述网络节点设备为路由器或者交换设备。 以上对本发明实施例提供的一种网络节点设备进行了详细阐述, 下面将结 合附图, 对本发明实施例的一种检测接口故障的方法进行详细说明。 参考图 6, 是本发明实施例的一种检测接口故障的方法的流程图。 所述检测 接口故障的方法包括: It should be noted that, in an actual network, the network node device is a router or a switching device. The network node device provided by the embodiment of the present invention is described in detail above. A method for detecting an interface failure according to an embodiment of the present invention will be described in detail with reference to the accompanying drawings. Referring to FIG. 6, which is a flowchart of a method for detecting an interface failure according to an embodiment of the present invention. The method for detecting an interface failure includes:
步骤 S1 , 在接口的每一条成员链路上建立 BFD会话, 并进行 BFD检测; 所述接口是一个复合的概念, 接口可能和链路——对应, 也可能多个接口共享 一条物理链路, 还有可能一个接口包括多条物理链路, 所述的物理链路称为接 口的成员链路;  Step S1: Establish a BFD session on each member link of the interface, and perform BFD detection. The interface is a composite concept. The interface may correspond to a link, or multiple interfaces may share a physical link. It is also possible that an interface includes a plurality of physical links, and the physical link is referred to as a member link of the interface;
步骤 S2, 当检测到成员链路故障时, 将所述成员链路的故障状态上报给所 述成员链路对应的接口;  In step S2, when the member link is faulty, the fault status of the member link is reported to the interface corresponding to the member link.
步骤 S3 , 根据所述成员链路的故障状态确定所述接口是否发生故障。 接口的步骤具体为:  Step S3: Determine whether the interface is faulty according to a fault state of the member link. The steps of the interface are specifically as follows:
A、 将所述成员链路的故障状态发送给该成员链路对应的物理端口;  A. Send the fault status of the member link to the physical port corresponding to the member link.
B、 所述物理端口将所述成员链路的故障状态上报给对应的接口。  B. The physical port reports the fault status of the member link to the corresponding interface.
值得说明的是, 当确定所述接口的状态为故障状态后, 所述方法进一步包 括:  It is to be noted that, after determining that the state of the interface is a fault state, the method further includes:
将所述接口的故障状态发送给该接口上运行的上层应用协议;  Sending the fault status of the interface to an upper layer application protocol running on the interface;
所述上层应用协议接收到所述接口的故障状态后进行收敛。  The upper layer application protocol converges after receiving the fault state of the interface.
本发明实施例通过 BFD直接检测接口的成员链路状态, 然后根据成员链路 状态确定接口的状态, 实现了对各种形式的接口及成员链路进行高效的 BFD检 测, 及时发现接口或链路的故障,提高网络系统的性能,提高了 QoS ( Quality of Service, 服务质量)  In the embodiment of the present invention, the BFD is used to directly detect the member link status of the interface, and then determine the state of the interface according to the member link status, thereby implementing efficient BFD detection on various interfaces and member links, and discovering interfaces or links in time. Faults, improve network system performance, and improve QoS (Quality of Service)
上述从整体上介绍了本发明实施例提供的一种检测接口故障的方法的技术 方案, 下面结合图 7、 图 8、 图 9和图 10来详细阐述其具体的技术方案。  The technical solution of the method for detecting interface faults provided by the embodiments of the present invention is described in the foregoing. The specific technical solutions are described in detail below with reference to FIG. 7, FIG. 8, FIG. 9, and FIG.
参考图 7, 多个接口共享一条成员链路的实施例的示意图, 其典型的场景是 在一条成员链路的物理端口上承载着多个逻辑子接口。 如图所示, 路由器 A和 路由器 B之间通过一条物理链路连接, 在该物理链路的物理端口上承载了 4个 接口, 分别是: 逻辑接口 1、 逻辑接口 2、 逻辑接口 3和逻辑接口 4, 即这 4个 逻辑接口共享一条物理链路作为它们公共的成员链路。  Referring to FIG. 7, a schematic diagram of an embodiment in which multiple interfaces share a member link, a typical scenario is to carry multiple logical sub-interfaces on a physical port of a member link. As shown in the figure, Router A and Router B are connected by a physical link. The physical ports of the physical link carry four interfaces, namely: logical interface 1, logical interface 2, logical interface 3, and logic. Interface 4, that is, the four logical interfaces share a physical link as their common member link.
在现有的机制里面需要对每个逻辑接口建立一条 BFD会话, 在本实施例的 场景中, 则需要 4条 BFD会话, 才能使 4个逻辑接口上的应用协议快速收敛。 然而, 采用本发明实施例的检测接口故障方法, 则只需在成员链路上建立一条 BFD会话, 就能使各个接口上的应用协议快速收敛, 其处理过程如图 8所示, 包括: In the existing mechanism, a BFD session needs to be established for each logical interface, in this embodiment. In the scenario, four BFD sessions are required to allow the application protocol on the four logical interfaces to converge quickly. However, the method for detecting an interface fault in the embodiment of the present invention is to establish a BFD session on the member link, so that the application protocol on each interface can be quickly converge. The processing procedure is as shown in FIG. 8 and includes:
步骤 S71 , 在所述 4个逻辑接口共享的成员链路上建立一条 BFD会话, 进 行 BFD检测;  Step S71: Establish a BFD session on the member links shared by the four logical interfaces to perform BFD detection.
步骤 S72, 当检测到所述成员链路故障时,将其故障状态上报给所述物理端 口;  Step S72: When detecting that the member link is faulty, report the fault status to the physical port.
步骤 S73,然后所述物理端口迅速将所述成员链路的故障状态上报给每一个 逻辑接口;  Step S73, the physical port quickly reports the fault status of the member link to each logical interface.
步骤 S74 ,所述 4个逻辑接口根据其共享的这一条成员链路的故障状态确定 各自的状态为故障状态 (Down状态);  Step S74, the four logical interfaces determine, according to the fault state of the shared member link, that the respective states are fault states (Down state);
步骤 S75,所述 4个逻辑接口将各自的故障状态上 给运行在各自上面的各 种上层应用协议, 从而触发各应用协议快速收敛。  In step S75, the four logical interfaces respectively send respective fault states to various upper layer application protocols running on the respective ones, thereby triggering fast convergence of the application protocols.
对于图 7所示的应用场景, 当存在 N (为大于 0的整数) 个逻辑接口共享 一条链路时, 利用现行机制检测时, 需要建立 N条 BFD会话, 传输 N个 BFD 检测报文, 当 N趋于无穷大时(或者当存在成百上千个接口复用一条成员链路 时), 网络中将存在大量的 BFD检测报文, 导致用户业务数据报文传输低效, 甚者丟失业务数据, 而采用本发明实施例, 不管有多少个逻辑接口, 只需要在 成员链路上配置一条 BFD检测,网络传输少量的 BFD检测报文就能检测到各个 接口是否发生故障, 提高了检测效率, 并避免了大量检测报文的传输造成网络 拥塞, 节约了网络资源, 提高了系统性能和 QoS。  For the application scenario shown in Figure 7, when there are N (the integers greater than 0) logical interfaces sharing a link, the N-type BFD session needs to be established and N BFD detection packets are transmitted. When N tends to infinity (or when there are hundreds of interfaces multiplexed with one member link), there will be a large number of BFD detection packets in the network, resulting in inefficient transmission of user service data packets, and even loss of service data. With the embodiment of the present invention, no matter how many logical interfaces are provided, only one BFD detection needs to be configured on the member links, and a small amount of BFD detection packets can be detected on the network to detect whether each interface is faulty, thereby improving detection efficiency. It also avoids network congestion caused by the transmission of a large number of detection packets, saves network resources, and improves system performance and QoS.
参考图 9, 一个接口包括多条成员链路的实施例的示意图。 如图所示, 一个 Trunk接口由 5条成员链路捆绑而成, 所述 Trunk接口为主干接口或中继接口, 是把多个物理端口捆绑在一起当作一个逻辑接口使用, Trunk技术实现了内部成 员链路互为备份的功能, 当一条成员链路故障时不影响其它链路的工作, 但当 发生故障的成员链路过多时,会影响 Trunk接口和系统性能。利用本发明实施例 提供的检测接口故障的方法来及时检测 Trunk接口的处理流程如图 10所示, 包 括:  Referring to Figure 9, a schematic diagram of an embodiment of an interface including multiple member links. As shown in the figure, a trunk interface is bundled with five member links. The trunk interface is a trunk interface or a trunk interface. The physical ports are bundled together and used as a logical interface. Trunk technology is implemented. The internal member links are mutually backup. When a member link fails, the other links are not affected. However, when there are too many member links, the trunk interface and system performance are affected. The method for detecting the fault of the interface provided by the embodiment of the present invention is used to detect the processing flow of the trunk interface in time as shown in FIG. 10, which includes:
步骤 S81 ,在每一条成员链路上都建立 BFD会话,即要建立 5条 BFD会话, 然后, 对每一条成员链路进行 BFD检测; Step S81: A BFD session is established on each member link, that is, five BFD sessions are to be established. Then, performing BFD detection on each member link;
步骤 S82, 当检测到成员链路故障时,将故障状态上报给所述成员链路对应 的物理端口;  Step S82: When detecting a member link failure, reporting the fault status to the physical port corresponding to the member link;
步骤 S83,所述物理端口将各自的成员链路的故障状态都上报给 Trunk接口; 步骤 S84, Trunk接口接收到所有成员链路的状态信息后, 判断具有故障状 态的成员链路的数目是否超过预设的阈值(如: 3条),如果是,则执行步骤 S86, 否则, 执行步骤 S85;  In step S83, the physical port reports the fault status of the member links to the trunk interface. Step S84: After receiving the status information of all member links, the trunk interface determines whether the number of member links with the fault status exceeds a preset threshold (such as: 3), if yes, proceed to step S86, otherwise, perform step S85;
步骤 S85, 继续进行 BFD检测, 然后转到步骤 S82;  Step S85, continue to perform BFD detection, and then proceeds to step S82;
步骤 S86, 判断自身状态为故障状态;  Step S86, determining that the state is a fault state;
步骤 S87,将 Trunk接口的故障状态发送给运行在该 Trunk接口上的所有上 层应用协议;  Step S87: Send the fault status of the trunk interface to all upper layer application protocols running on the trunk interface.
步骤 S88, 上层应用协议接收到 Trunk接口的故障状态后进行快速收敛。 对于本发明实施例, 对于包括多条成员链路的接口, 现行接口联动方式并 不能有效地检测所述接口的故障, 通过本发明在成员链路上建立 BFD会话, 进 行 BFD检测, 通过成员链路故障的情况(发生故障的成员链路数目 )来判断接 口是否故障, 来及时发现接口故障, 提高了系统可靠性。  Step S88: The upper layer application protocol performs fast convergence after receiving the fault state of the trunk interface. In the embodiment of the present invention, for an interface that includes multiple member links, the current interface linkage mode cannot effectively detect the fault of the interface, and the BFD session is established on the member link by the present invention to perform BFD detection and pass the member chain. In the case of a road failure (the number of member links that have failed), it is determined whether the interface is faulty, and the interface fault is discovered in time to improve system reliability.
值得说明的是, 本领与普通技术人员可以理解实现上述实施例方法中的全 部或部分步骤是可以通过程序来指示相关的硬件来完成, 所述程序可以存储于 一计算机可读取存储介质中, 所述的存储介质包括: ROM/RAM、 磁碟、 光盘、 闪存等。  It should be noted that those skilled in the art can understand that all or part of the steps of implementing the foregoing embodiments may be completed by a program indicating related hardware, and the program may be stored in a computer readable storage medium. The storage medium includes: a ROM/RAM, a magnetic disk, an optical disk, a flash memory, and the like.
根据本发明实施例提供的一种检测接口故障的方法及网络节点设备的技术 方案, 通过 BFD直接检测接口的成员链路状态, 然后根据成员链路状态确定接 口的状态, 实现了对各种形式的接口 (如: 一个接口包括多条成员链路或多个 接口共享一条成员链路)进行高效的 BFD检测, 及时发现接口或链路的故障, 提高网络系统的性能。  According to the method for detecting an interface fault and the technical solution of the network node device, the BFD directly detects the member link status of the interface, and then determines the state of the interface according to the member link status, and implements various forms. An interface (such as an interface that includes multiple member links or multiple interfaces to share a member link) performs efficient BFD detection to detect faults on interfaces or links and improve network system performance.
本领域普通技术人员可以理解实现本发明各实施例方法中的全部或部分流 程, 是可以通过计算机程序来指令相关的硬件来完成, 所述的程序可存储于一 计算机可读取存储介质中, 该程序在执行时, 可包括如上述各方法的实施例的 流程。 其中, 所述的存储介质可为磁碟、 光盘、 只读存储记忆体(Read-Only Memory, ROM )或随机存^ ^己忆体 ( Random Access Memory, RAM )等。 以上所述是本发明的优选实施方式, 应当指出, 对于本技术领域的普通技 术人员来说, 在不脱离本发明原理的前提下, 还可以做出若干改进和润饰, 这 些改进和润饰也视为本发明的保护范围。 A person skilled in the art can understand that all or part of the processes in implementing the embodiments of the present invention can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. The program, when executed, may include the flow of an embodiment of the methods as described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM). The above is 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. These improvements and retouchings are also considered. It is the scope of protection of the present invention.

Claims

权 利 要 求 Rights request
1、 一种检测接口故障的方法, 其特征在于, 包括:  A method for detecting an interface fault, which is characterized by comprising:
在接口的每一条成员链路上进行 BFD检测 (SI , S71 , S81 ), 所述接口包 括至少一条成员链路, 所述每一条成员链路分别对应一个 BFD会话;  Performing BFD detection (SI, S71, S81) on each member link of the interface, the interface includes at least one member link, and each member link corresponds to one BFD session.
当检测到成员链路故障时, 将所述成员链路的故障状态上报(S2 )给所述 成员链路对应的接口;  When the member link is faulty, the fault status of the member link is reported (S2) to the interface corresponding to the member link;
根据所述接口接收的所述故障状态确定(S3 , S74, S86 )所述接口是否发 生故障。  Determining (S3, S74, S86) whether the interface is faulty according to the fault state received by the interface.
2、 如权利要求 1所述的方法, 其特征在于, 所述将所述成员链路的故障状 态上报(S2 )给所述成员链路对应的接口的步骤具体为: 2. The method according to claim 1, wherein the step of reporting the fault status of the member link (S2) to the interface corresponding to the member link is specifically:
将所述成员链路的故障状态发送(S72, S82 )给该成员链路对应的物理端 口;  Sending a fault status of the member link (S72, S82) to a physical port corresponding to the member link;
所述物理端口将所述成员链路的故障状态上报(S73 , S83 )给所述成员链 路对应的接口。  The physical port reports the fault status of the member link (S73, S83) to the interface corresponding to the member link.
3、 如权利要求 2所述的方法, 其特征在于, 当所述接口包括至少两条成员 链路时, 所述根据所述接口接收的所述故障状态确定(S3 , S74, S86 )所述接 口是否发生故障的步骤具体为: The method according to claim 2, wherein when the interface includes at least two member links, the fault state determination (S3, S74, S86) received according to the interface is The steps for whether the interface is faulty are as follows:
判断(S84 )具有故障状态的成员链路的数目是否超过一阈值,  Judging (S84) whether the number of member links having a fault state exceeds a threshold,
当具有故障状态的成员链路的数目超过所述阈值时, 则判定(S86 )该接口 发生故障。  When the number of member links having a fault state exceeds the threshold, it is determined (S86) that the interface has failed.
4、 一种网络节点设备, 其特征在于, 包括: 4. A network node device, comprising:
链路检测模块( 1 ), 用于在接口的每一条成员链路上进行 BFD检测, 所述 接口包括至少一条成员链路, 所述每一条成员链路分别对应一个 BFD会话, 当 的接口;  The link detection module (1) is configured to perform BFD detection on each member link of the interface, where the interface includes at least one member link, and each member link corresponds to a BFD session and an interface;
接口管理模块( 2 ), 用于根据所述接口接收的所述链路检测模块( 1 )检测 到的成员链路的故障状态确定所述接口是否发生故障, An interface management module (2), configured to detect the link detection module (1) received according to the interface The fault status of the member link to determine whether the interface is faulty,
;、如权利要求 4所述的网络节点设备,其特征在于,所述链路检测模块( 1 ) 包括: The network node device according to claim 4, wherein the link detection module (1) comprises:
故障检测单元( 101 ), 用于为每一条成员链路建立 BFD会话, 并进行 BFD 检测;  The fault detection unit (101) is configured to establish a BFD session for each member link and perform BFD detection.
故障上报单元( 102 ) , 当所述故障检测单元( 101 )检测到成员链路故障时, a fault reporting unit (102), when the fault detecting unit (101) detects a member link failure,
J夂 S k 々 ΛΛ +Λ- 1:咅、】 太 μ ½ έ^ ^ ϊ* m ^ S夂 ;ί ½接口 J夂 S k 々 ΛΛ +Λ- 1:咅,] Too μ 1⁄2 έ^ ^ ϊ* m ^ S夂 ; ί 1⁄2 interface
6、如权利要求 4所述的网络节点设备,其特征在于,所述接口管理单元(2 ) 包括: The network node device according to claim 4, wherein the interface management unit (2) comprises:
链路状态获取单元( 201 ) , 用于从所述接口处获取所述链路检测模块( 1 ) 上报的成员链路的故障状态;  a link state obtaining unit (201), configured to acquire, from the interface, a fault state of a member link reported by the link detecting module (1);
接口状态确定单元(202 ), 用于根据所述链路状态获取单元(201 )获取的 所述成员链路的故障状态确定所述接口是否发生故障。  The interface state determining unit (202) is configured to determine whether the interface is faulty according to the fault state of the member link acquired by the link state acquiring unit (201).
7、 如权利要求 6所述的网络节点设备, 其特征在于, 所述接口状态确定单 元(202 ) 包括: The network node device according to claim 6, wherein the interface state determining unit (202) comprises:
判断单元(2021 ), 用于判断所述接口包括一条所述成员链路, 还是包括至 少两条成员链路, 并输出判断结果;  The determining unit (2021) is configured to determine whether the interface includes one of the member links, or includes at least two member links, and output a judgment result;
阈值判断单元(2022 ), 用于当所述判断单元(2021 )输出的判断结果为所 述接口包括至少两条成员链路时, 判断具有故障状态的成员链路的数目是否超 过一阈值, 并输出判断结果;  a threshold value determining unit (2022), configured to determine, when the judgment result output by the determining unit (2021) is that the interface includes at least two member links, determine whether the number of member links having a fault state exceeds a threshold, and Output the judgment result;
状态更改单元(2024 ), 用于当所述阈值判断单元(2022 )输出的判断结果 为具有故障状态的成员链路的数目超过所述阈值, 或者所述判断单元(2021 ) 输出的判断结果为所述接口包括一条成员链路时, 将该接口的状态更改为故障 状态。  a state changing unit (2024), configured to: when the determination result output by the threshold determining unit (2022) is that the number of member links having a fault state exceeds the threshold, or the judgment result output by the determining unit (2021) is When the interface includes a member link, the state of the interface is changed to a fault state.
8、 如权利要求 6或 7所述的网络节点设备, 其特征在于, 所述接口管理模 块还包括: 接口状态发送单元(203 ), 用于当所述接口状态确定单元(202 )确定所述 接口的状态为故障状态时, 将所述故障状态发送给该接口上运行的上层应用协 议。 The network node device according to claim 6 or 7, wherein the interface management module further comprises: The interface status sending unit (203) is configured to: when the interface status determining unit (202) determines that the status of the interface is a fault state, send the fault status to an upper layer application protocol running on the interface.
9、 如权利要求 8所述的网络节点设备, 其特征在于, 所述网络节点设备为 路由器或交换设备。 9. The network node device of claim 8, wherein the network node device is a router or a switching device.
PCT/CN2008/072389 2007-09-18 2008-09-17 Method for detecting interface failure and network node equipment WO2009036705A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2007100302919A CN101132320B (en) 2007-09-18 2007-09-18 Method for detecting interface trouble and network node equipment
CN200710030291.9 2007-09-18

Publications (1)

Publication Number Publication Date
WO2009036705A1 true WO2009036705A1 (en) 2009-03-26

Family

ID=39129451

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2008/072389 WO2009036705A1 (en) 2007-09-18 2008-09-17 Method for detecting interface failure and network node equipment

Country Status (2)

Country Link
CN (1) CN101132320B (en)
WO (1) WO2009036705A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112737944A (en) * 2020-12-25 2021-04-30 浪潮思科网络科技有限公司 Bfd-based peer-link state detection method, device and medium
CN112953742A (en) * 2019-12-10 2021-06-11 中盈优创资讯科技有限公司 Fault positioning method and device for binding port of network equipment

Families Citing this family (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101132320B (en) * 2007-09-18 2010-06-16 华为技术有限公司 Method for detecting interface trouble and network node equipment
CN102223241B (en) * 2010-04-15 2013-09-11 杭州华三通信技术有限公司 Method and equipment for informing network change
CN101848165B (en) * 2010-06-01 2016-02-10 中兴通讯股份有限公司 The method recovered after controlling interrupted communication link and interface board
CN102271048B (en) * 2010-06-02 2015-08-12 中兴通讯股份有限公司 Service protecting method in aggregated links and device
CN102457409B (en) * 2010-11-02 2014-04-30 中兴通讯股份有限公司 Method and system for link failure detection
CN102006189B (en) * 2010-11-25 2014-09-10 中兴通讯股份有限公司 Primary access server determination method and device for dual-machine redundancy backup
WO2012171164A1 (en) * 2011-06-13 2012-12-20 华为技术有限公司 Network security protection method, device and system
CN102355335A (en) * 2011-09-13 2012-02-15 中兴通讯股份有限公司 Unidirectional link detection result notification method and device
CN102571497B (en) * 2012-01-29 2016-03-30 华为技术有限公司 A kind of method, Apparatus and system of ipsec tunnel fault detect
CN104579736B (en) * 2013-10-29 2019-01-15 华为技术有限公司 A kind of loop data transmission method and node device
CN105591775B (en) 2014-10-23 2019-10-25 华为技术有限公司 A kind of operation management maintainance OAM methods, devices and systems of network
CN107171817B (en) * 2016-03-07 2020-09-11 中国移动通信集团福建有限公司 Fault information acquisition method and device
CN107846292B (en) * 2016-09-19 2020-12-04 新华三技术有限公司 Method and device for preventing fault processing delay
CN109787797B (en) * 2017-11-14 2021-08-20 华为技术有限公司 Link fault detection method, device and system
US10771312B2 (en) * 2018-02-28 2020-09-08 Zte Corporation Failure detection in a data network
CN110120897A (en) * 2019-04-22 2019-08-13 国家计算机网络与信息安全管理中心 Link detection method, apparatus, electronic equipment and machine readable storage medium
CN112751724B (en) * 2019-10-31 2023-07-11 华为技术有限公司 Method and device for detecting link state
CN111277440B (en) * 2020-01-20 2022-04-08 新华三信息安全技术有限公司 Network device
CN112291116A (en) * 2020-11-23 2021-01-29 迈普通信技术股份有限公司 Link fault detection method and device and network equipment
CN113824595B (en) * 2021-09-29 2022-11-22 联想(北京)有限公司 Link switching control method and device and gateway equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1926809A (en) * 2004-03-04 2007-03-07 思科技术公司 Methods and devices for high network availability
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
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
CN1926809A (en) * 2004-03-04 2007-03-07 思科技术公司 Methods and devices for high network availability
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
CN101132320A (en) * 2007-09-18 2008-02-27 华为技术有限公司 Method for detecting interface trouble and network node equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112953742A (en) * 2019-12-10 2021-06-11 中盈优创资讯科技有限公司 Fault positioning method and device for binding port of network equipment
CN112953742B (en) * 2019-12-10 2023-05-12 中盈优创资讯科技有限公司 Fault positioning method and device for binding port of network equipment
CN112737944A (en) * 2020-12-25 2021-04-30 浪潮思科网络科技有限公司 Bfd-based peer-link state detection method, device and medium

Also Published As

Publication number Publication date
CN101132320A (en) 2008-02-27
CN101132320B (en) 2010-06-16

Similar Documents

Publication Publication Date Title
WO2009036705A1 (en) Method for detecting interface failure and network node equipment
EP2319209B1 (en) Methods for establishing a traffic connection and an associated monitoring connection
CN100558111C (en) Metro Ethernet provides reliability processing method and the system under the multi-service networking
EP1933506B1 (en) A method and apparatus for realizing the interworking of oam function between the ethernet and the mpls network
US9509591B2 (en) Technique for dual homing interconnection between communication networks
US9137099B2 (en) Method, device, and system for link aggregation failure protection
US8295160B2 (en) Data communication system, device and method of detecting a failure on an access line in a network
US20100287405A1 (en) Method and apparatus for internetworking networks
WO2009056034A1 (en) Method, system and equipment to establish bfd detection for lsp tunnel
WO2006099784A1 (en) A method for detecting link fault between end-to-end nodes in a hybrid network
WO2008098451A1 (en) Tunnel establishing method, network node device and network system
WO2014026512A1 (en) Processing method for applying rapid spanning tree protocol to single ring network topology
WO2010060284A1 (en) Method and device for protecting multi-ring ethernet
WO2008046358A1 (en) A method and device to realize punch-through of point-to-multipoint network link status
WO2006108352A1 (en) A failure management method and apparatus for interwoeking ethernet and multiple protocol label switch network
WO2013071801A1 (en) Method, device and system for detecting multi-protocol label switching ring network
CN102282805B (en) Method for service protection and access device
CN1514585A (en) Method used for detecting conncetion failure, system and network entity
EP2319210B1 (en) Methods for establishing a traffic connection and an associated monitoring connection
CN108400911B (en) Device and method for realizing Micro-BFD protocol
WO2006089490A1 (en) A method for implementing fec bfd
WO2011131069A1 (en) Binding links detection method and distributed device
GB2448711A (en) Recovering from a failure in a communications network
WO2007036101A1 (en) A system and method for protecting multicast service path
WO2008106892A1 (en) A multicast network system, node and a method for detecting a fault of a multicast network link

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

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

Country of ref document: EP

Kind code of ref document: A1