WO2017036165A1 - Link fault detection method and apparatus - Google Patents

Link fault detection method and apparatus Download PDF

Info

Publication number
WO2017036165A1
WO2017036165A1 PCT/CN2016/081441 CN2016081441W WO2017036165A1 WO 2017036165 A1 WO2017036165 A1 WO 2017036165A1 CN 2016081441 W CN2016081441 W CN 2016081441W WO 2017036165 A1 WO2017036165 A1 WO 2017036165A1
Authority
WO
WIPO (PCT)
Prior art keywords
link
bmp
nodes
bfd
fault
Prior art date
Application number
PCT/CN2016/081441
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 WO2017036165A1 publication Critical patent/WO2017036165A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks

Definitions

  • the present application relates to, but is not limited to, the field of communications, and in particular, to a link fault detection method and apparatus.
  • Border Gateway Protocol (BGP) monitoring protocol (BGP Monitoring Protocol, BMP for short) draft-ietf-grow-bmp-07 defines the method for establishing BMP neighbors, but for some reason, the link An exception occurs, and how to make the BMP quickly perceive this abnormality.
  • BGP Monitoring Protocol draft-ietf-grow-bmp-07 and its related protocol standards are not described.
  • the embodiment of the invention provides a link fault detection method and device, which can solve the problem that the BMP cannot quickly perceive the abnormality when the BMP link is abnormal in the related art.
  • a link fault detection method includes: establishing a link between two nodes based on a Border Gateway Protocol Monitoring Protocol (BMP); and performing bidirectional forwarding detection (Bidirectional Forwarding Detection, referred to as A link failure of the link between the two nodes is detected for BFD; and the link failure detected based on the BFD is processed based on the BMP.
  • BMP Border Gateway Protocol Monitoring Protocol
  • the method further includes: detecting, between the two nodes, based on the BFD, according to the established link triggering The link of the link is faulty.
  • the method further includes: according to the detected link failure, triggering processing, according to the BMP, the link fault detected based on the BFD.
  • processing, according to the BMP, the link fault detected by the BFD includes: determining whether the BMP session states of the two nodes are all closed DOWN; if the determination result is yes, Reestablishing a link between the two nodes based on the BMP.
  • the method further includes: if the determination result is no, the BMP of the two nodes The session state is updated to turn off DOWN.
  • a link fault detecting apparatus including: an establishing module, configured to: establish a link between two nodes based on a Border Gateway Protocol Monitoring Protocol (BMP); and a detecting module And configured to: detect a link failure of the link between the two nodes based on the bidirectional transceiving detection (BFD); and the processing module is configured to: based on the BMP, the chain detected based on the BFD The road fault is processed.
  • BMP Border Gateway Protocol Monitoring Protocol
  • BFD bidirectional transceiving detection
  • the foregoing apparatus further includes: a first triggering module, configured to: after the establishing module establishes the link between the two nodes based on the BMP, according to the established link triggering manner
  • the detecting module detects a link failure of the link between the two nodes based on the BFD.
  • the foregoing apparatus further includes: a second triggering module, configured to: after the detecting module detects the link fault of the link between the two nodes based on the BFD, according to the detecting And the link fault that is triggered, the processing module is triggered to process the link fault detected based on the BFD based on the BMP.
  • a second triggering module configured to: after the detecting module detects the link fault of the link between the two nodes based on the BFD, according to the detecting And the link fault that is triggered, the processing module is triggered to process the link fault detected based on the BFD based on the BMP.
  • the processing module includes: a determining unit, configured to: determine whether the BMP session states of the two nodes are both closed DOWN; and the reconstructing unit is configured to: if the determination result is yes, based on the The BMP re-establishes the link between the two nodes.
  • the processing module further includes: an updating unit, configured to: after the determining unit determines whether the BMP session states of the two nodes are both closed DOWN, and if the determination result is negative, The status of both nodes is updated to turn off DOWN.
  • an updating unit configured to: after the determining unit determines whether the BMP session states of the two nodes are both closed DOWN, and if the determination result is negative, The status of both nodes is updated to turn off DOWN.
  • the embodiment of the invention further provides a computer readable storage medium storing computer executable instructions, which are implemented when the computer executable instructions are executed.
  • the link between the two nodes is established based on the BMP, and the link fault of the link between the two nodes is detected based on the BFD, and the BMP is detected based on the BFD.
  • the method for processing the link fault can be quickly detected by the BFD session and notified to the BMP, and the problem that the BMP cannot quickly sense the abnormality when the BMP link is abnormal in the related art is solved. In turn, the BMP is quickly perceived to be abnormal.
  • FIG. 1 is a flowchart of a link failure detecting method according to an embodiment of the present invention
  • FIG. 2 is a block diagram showing the structure of a link failure detecting apparatus according to an embodiment of the present invention
  • FIG. 3 is a block diagram 1 of an optional structure of a link failure detecting apparatus according to an embodiment of the present invention.
  • FIG. 4 is a block diagram 2 of an optional structure of a link failure detecting apparatus according to an embodiment of the present invention.
  • FIG. 5 is a structural block diagram 1 of a processing module 26 in a link failure detecting apparatus according to an embodiment of the present invention
  • FIG. 6 is a structural block diagram 2 of a processing module 26 in a link failure detecting apparatus according to an embodiment of the present invention
  • FIG. 7 is a schematic diagram of a BMP link and a BFD session in a link fault detection method according to an embodiment of the present invention.
  • FIG. 8 is a flowchart of processing when a BMP link of a link failure detecting method fails in accordance with an embodiment of the present invention
  • Figure 9 is a schematic diagram of a BMP link failure
  • FIG. 10 is a schematic flowchart of a BMP link fault processing process of a link fault detection method according to an embodiment of the present invention
  • FIG. 11 is a schematic diagram of a BMP establishing link according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a link fault detection method according to an embodiment of the present invention. As shown in FIG. 1, the method includes the following steps:
  • Step S102 establishing a link between two nodes based on the BMP
  • Step S104 detecting a link failure of the link between the two nodes based on the BFD
  • Step S106 Process the link fault detected based on the BFD based on the BMP.
  • BFD is a network protocol for detecting faults between two forwarding points, which is described in detail in standard RFC5880.
  • BFD establishes a session on the two devices to monitor the bidirectional forwarding path between the two devices. It serves the upper layer protocol, such as Mutil-Protocol Label Switching (MPLS) and Open Shortest Path First (Open). Shortest Path First (referred to as OSPF), Intermediate System-to-Intermediate System (IS-IS).
  • MPLS Mutil-Protocol Label Switching
  • OSPF Open Shortest Path First
  • IS-IS Intermediate System-to-Intermediate System
  • the BMP is configured as the upper layer protocol of the BFD and the BFD is deployed on the BMP link.
  • the BFD can quickly detect the fault of the BMP link and notify the BMP of the fault.
  • the BMP link is abnormal, the BMP cannot quickly perceive the abnormality, thereby achieving the effect of quickly sensing the abnormality of the BMP.
  • the method may further include: triggering, based on the established link, a link failure of the link between the two nodes based on the BFD. For example, after establishing After the BMP link is sent, the BMP can send a message to the BFD session, or the BMP session can be set to ON. This triggers the BFD to detect the link fault of the BMP link between the two nodes.
  • the method may further include: triggering, according to the detected link fault, the BMP-based detection of the link fault based on the BFD.
  • the message may be sent to the BMP by the BFD, or by changing the node status of the two nodes to the DOWN state, or by setting the session state of the BFD session to DOWN. Therefore, the BMP detects the link fault detected based on the BFD.
  • step S106 can be implemented by: determining whether the BMP session states of the two nodes are both closed DOWN; if the determination result is yes, re-establishing the two nodes based on the BMP The link between.
  • the BMP protocol has no way to cancel the abnormality. By relying on manual intervention, the node status of both nodes is DOWN.
  • it is first determined whether the BMP session state of the two nodes where the link failure occurs is DOWN, and then, if the determination result is yes, the path failure of the generated BMP link is processed, which is efficient and fast. Save manpower.
  • the step S106 further includes: if the determination result is no, the The BMP session status of both nodes is updated to turn off DOWN.
  • the node states of the two nodes can be updated to DOWN without manual intervention, and automatic processing based on the BMP for the node failure is implemented.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation.
  • the technical solution of the present application which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD-ROM, including a number of instructions to make a terminal device (can be a mobile phone, a computer, The server, or network device, etc.) performs the methods described in various embodiments of the present application.
  • a link fault detecting device is provided, which is used to implement the foregoing embodiments and optional embodiments, and details are not described herein.
  • the term “module” may implement a combination of software and/or hardware of a predetermined function.
  • the devices described in the following embodiments are optionally implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 2 is a block diagram showing the structure of a link failure detecting apparatus according to an embodiment of the present invention. As shown in FIG. 2, the apparatus includes an establishing module 22, a detecting module 24, and a processing module 26. The apparatus will be described below.
  • the establishing module 22 is configured to: establish a link between two nodes based on the BMP;
  • the detecting module 24 is connected to the establishing module 22, and is configured to: detect a link failure of the link between the two nodes based on the BFD;
  • the processing module 26 is connected to the detecting module 24 and configured to: process the link fault detected based on the BFD based on the BMP.
  • FIG. 3 is a block diagram of an optional structure of a link fault detecting apparatus according to an embodiment of the present invention. As shown in FIG. 3, the apparatus includes a first triggering module 32, in addition to all the modules shown in FIG. The device will be described.
  • the first triggering module 32 is connected to the establishing module 22 and the detecting module 24, and is configured to: after the establishing module 22 establishes the link between the two nodes based on the BMP, according to the established link trigger detecting module 24 detecting the BFD based on the BFD The link of the link between the two nodes is faulty.
  • FIG. 4 is a block diagram 2 of an optional structure of a link fault detecting apparatus according to an embodiment of the present invention. As shown in FIG. 4, the apparatus includes a second triggering module 42 in addition to all the modules shown in FIG. The device will be described.
  • the second triggering module 42 is connected to the detecting module 24 and the processing module 26, and is configured to: after detecting, by the detecting module 24, the link fault of the link between the two nodes based on the BFD, according to the detected link fault, The trigger processing module 26 processes the link fault detected based on the BFD based on the BMP.
  • FIG. 5 is a structural block diagram of a processing module 26 in a link failure detecting apparatus according to an embodiment of the present invention.
  • the processing module 26 includes a determining unit 52 and a reconstructing unit 54, which will be described below.
  • the determining unit 52 is configured to: determine whether the BMP session states of the two nodes are all closed DOWN;
  • the reconstruction unit 54 connected to the determination unit 52, is configured to re-establish the link between the two nodes based on the BMP in the case where the determination result of the determination unit 52 is YES.
  • FIG. 5 is merely an exemplary illustration, which may also be an example of processing module 26 in an apparatus as shown in FIG. 3, FIG. 4, or a combination thereof.
  • FIG. 6 is a block diagram showing the structure of the processing module 26 in the link fault detecting apparatus according to the embodiment of the present invention. As shown in FIG. 6, the processing module 26 includes an update unit 62, in addition to all the units shown in FIG. The processing module 26 will be described.
  • the updating unit 62 is connected to the judging unit 52, and is configured to: after the judging unit 52 judges whether the BMP session states of the two nodes are both closed DOWN, and if the judgment result of the judging unit 52 is NO, The status of each node is updated to turn off DOWN.
  • a BFD protocol is set up to detect packets. This is referred to as the fast detection mechanism.
  • the "fast detection mechanism” is associated with the upper-layer protocol BMP.
  • the BMP session is UP, the BMP session neighbor information is told to the "fast detection mechanism”.
  • the "fast detection mechanism” then establishes a neighbor relationship based on this information and performs a fast detection mechanism session. If there are multiple links between the two endpoints of a BMP session, a "fast detection mechanism" session can be established for each link.
  • the "fast detection mechanism” detects between the network nodes that establish two sessions (that is, the BMP session and the fast detection mechanism session); if the link failure occurs, the "fast detection mechanism” neighbor is removed, and the upper layer protocol BMP is immediately notified. The upper layer protocol BMP will immediately switch accordingly, that is, convert the state to DOWN; then re-initiate the chain building again.
  • the embodiment of the invention provides a method for quickly detecting a link abnormality of a BMP session that needs to be established.
  • the method does not require manual intervention and is convenient to operate, and can quickly restore the link establishment in a short time to ensure timely BMP packets. Sent to the server.
  • FIG. 7 is a schematic diagram of a BMP link and a BFD session in a link fault detection method according to an embodiment of the present invention. As shown in FIG. 7, when the BMP link and the BFD session are working normally, the following steps are included:
  • Step S702 based on the BMP, initiate a connection between two nodes according to a normal process, and establish a link and a neighbor relationship between the two nodes;
  • Step S704 the neighbor relationship is established based on the BMP, that is, when the BMP session state is UP, the related information of the neighbor relationship of the two nodes is notified to the BFD;
  • step S706 the BFD establishes a BFD neighbor relationship according to the information about the neighbor relationship of the two nodes, and performs link detection on the link between the two nodes that establish the BFD neighbor relationship and the session.
  • FIG. 8 is a flowchart of processing when a BMP link fails in a link fault detection method according to an embodiment of the present invention. As shown in FIG. 8, when a BMP link fails, the following steps are included:
  • Step S802 the links of the two nodes are faulty
  • Step S804 The BFD detects that there is a link fault between the two nodes, and removes the BFD neighbor relationship.
  • Step S806 the BFD notifies that the local BMP link is faulty, and the fault causes the BFD neighbor to be unreachable.
  • Step S808 The BMP changes the BMP session state to DOWN according to the related fault information received from the BFD, and performs corresponding processing.
  • FIG 9 is a schematic diagram of a BMP link failure.
  • the BMP does not have its own keep-alive message according to the BGP Monitoring Protocol draft-ietf-grow-bmp-07 and its related protocol standards.
  • the status of the BMP session is abnormal, that is, the state of one end is UP and the other end is DOWN.
  • the end that keeps the node state UP is no longer receiving the BMP link establishment request.
  • the BMP protocol has no way to solve this abnormality. It requires manual intervention to make the state of both ends of the BMP session DOWN.
  • the two ends of the link fault can be one end as shown in Figure 9, and the other end.
  • the end is a server, and both ends can be nodes.
  • FIG. 10 is a schematic diagram of a BMP link fault processing process according to a link fault detection method according to an embodiment of the present invention.
  • BFD is configured on two network nodes of a BMP session, and BMP is associated, and BFD detects link fault. After that, the BMP will be notified to convert the BMP session state with the status UP to DOWN; then, the BMP chain-building process is initiated according to the normal process, as shown in FIG.
  • the BMP session can quickly detect the link abnormality, correctly and quickly establish a BMP connection, improve efficiency, and reduce manual intervention.
  • each of the above modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple In the processor.
  • the embodiment of the invention further provides a computer readable storage medium.
  • the computer readable storage medium may be configured to store program code for performing the following steps:
  • Step S1 establishing a link between two nodes based on the BMP
  • Step S2 detecting a link failure of the link between the two nodes based on the BFD;
  • Step S3 The BMP detects the link fault detected based on the BMP.
  • the computer readable storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), and a Random Access Memory (Random Access Memory).
  • ROM Read-Only Memory
  • Random Access Memory Random Access Memory
  • the processor performs the above steps S1 to S3 according to the program code stored in the computer readable storage medium.
  • modules or steps of the present application described above may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices. Alternatively, they may be executed by a computing device Implemented so that they can be stored in a storage device by a computing device, and in some cases, the steps shown or described may be performed in an order different than that herein, or separately
  • the integrated circuit modules are implemented by making a plurality of modules or steps of them into a single integrated circuit module.
  • the application is not limited to any particular combination of hardware and software.
  • the embodiment of the present invention provides a link fault detection method and device.
  • the BFD can quickly detect the faults on the BMP link and notify the BMP.
  • the BMP link cannot be quickly perceived when the BMP link is abnormal.
  • the abnormal problem in turn, achieves the effect of making the BMP quickly perceive anomalies.

Abstract

A link fault detection method comprises: establishing a link between two nodes based on a BMP; detecting a link fault of the link between the two nodes based on a BFD; and processing, based on the BMP, the link fault detected based on the BFD. A fault in a link of the BMP can be quickly sensed by means of the BFD, and the BMP is informed of the fault, such that the problem of incapability of enabling the BMP to quickly sense an abnormity when the abnormity occurs in the link of the BMP in the related art is resolved, thereby achieving the effect of enabling a BMP to quickly sense an abnormity.

Description

链路故障检测方法及装置Link fault detection method and device 技术领域Technical field
本申请涉及但不限于通信领域,尤其涉及一种链路故障检测方法及装置。The present application relates to, but is not limited to, the field of communications, and in particular, to a link fault detection method and apparatus.
背景技术Background technique
边界网关协议(Border Gateway Protocol,简称为BGP)监测协议(BGP Monitoring Protocol,简称为BMP)draft-ietf-grow-bmp-07定义了BMP邻居建链的方法,但对于因某种原因,链路出现异常,如何使BMP快速感知到这种异常,BGP Monitoring Protocol draft-ietf-grow-bmp-07及其相关协议标准没有说明。The Border Gateway Protocol (BGP) monitoring protocol (BGP Monitoring Protocol, BMP for short) draft-ietf-grow-bmp-07 defines the method for establishing BMP neighbors, but for some reason, the link An exception occurs, and how to make the BMP quickly perceive this abnormality. The BGP Monitoring Protocol draft-ietf-grow-bmp-07 and its related protocol standards are not described.
针对相关技术中在BMP链路出现异常时无法使BMP快速感知该异常的问题,目前尚无解决方案。There is no solution to the problem that the BMP cannot quickly perceive the abnormality when the BMP link is abnormal in the related art.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本发明实施例提供了一种链路故障检测方法及装置,能够解决相关技术中在BMP链路出现异常时无法使BMP快速感知该异常的问题。The embodiment of the invention provides a link fault detection method and device, which can solve the problem that the BMP cannot quickly perceive the abnormality when the BMP link is abnormal in the related art.
根据本发明实施例的一个方面,提供了一种链路故障检测方法,包括:基于边界网关协议监测协议(BMP)建立两个节点之间的链路;基于双向收发检测(Bidirectional Forwarding Detection,简称为BFD)检测到所述两个节点之间的链路的链路故障;基于所述BMP,对基于所述BFD检测到的所述链路故障进行处理。According to an aspect of the embodiments of the present invention, a link fault detection method includes: establishing a link between two nodes based on a Border Gateway Protocol Monitoring Protocol (BMP); and performing bidirectional forwarding detection (Bidirectional Forwarding Detection, referred to as A link failure of the link between the two nodes is detected for BFD; and the link failure detected based on the BFD is processed based on the BMP.
可选地,在基于所述BMP建立所述两个节点之间的所述链路之后,所述方法还包括:依据建立的所述链路触发基于所述BFD检测所述两个节点之间的链路的链路故障。Optionally, after the establishing the link between the two nodes based on the BMP, the method further includes: detecting, between the two nodes, based on the BFD, according to the established link triggering The link of the link is faulty.
可选地,在基于所述BFD检测到所述两个节点之间的所述链路的所述链 路故障之后,所述方法还包括:依据检测到的所述链路故障,触发基于所述BMP,对基于所述BFD检测到的所述链路故障进行处理。Optionally, detecting the chain of the link between the two nodes based on the BFD After the path is faulty, the method further includes: according to the detected link failure, triggering processing, according to the BMP, the link fault detected based on the BFD.
可选地,基于所述BMP,对基于所述BFD检测到的所述链路故障进行处理包括:判断所述两个节点的BMP会话状态是否均为关闭DOWN;在判断结果为是的情况下,基于所述BMP重新建立所述两个节点之间的链路。Optionally, processing, according to the BMP, the link fault detected by the BFD includes: determining whether the BMP session states of the two nodes are all closed DOWN; if the determination result is yes, Reestablishing a link between the two nodes based on the BMP.
可选地,在判断所述链路故障是否为所述两个节点之间的所述通路故障之后,所述方法还包括:在判断结果为否的情况下,将所述两个节点的BMP会话状态均更新为关闭DOWN。Optionally, after determining whether the link fault is the path fault between the two nodes, the method further includes: if the determination result is no, the BMP of the two nodes The session state is updated to turn off DOWN.
根据本发明实施例的另一个方面,还提供了一种链路故障检测装置,包括:建立模块,设置为:基于边界网关协议监测协议(BMP)建立两个节点之间的链路;检测模块,设置为:基于双向收发检测(BFD)检测到所述两个节点之间的链路的链路故障;处理模块,设置为:基于所述BMP,对基于所述BFD检测到的所述链路故障进行处理。According to another aspect of the present invention, a link fault detecting apparatus is provided, including: an establishing module, configured to: establish a link between two nodes based on a Border Gateway Protocol Monitoring Protocol (BMP); and a detecting module And configured to: detect a link failure of the link between the two nodes based on the bidirectional transceiving detection (BFD); and the processing module is configured to: based on the BMP, the chain detected based on the BFD The road fault is processed.
可选地,上述装置还包括:第一触发模块,设置为:在所述建立模块基于所述BMP建立所述两个节点之间的所述链路之后,依据建立的所述链路触发所述检测模块基于所述BFD检测所述两个节点之间的链路的链路故障。Optionally, the foregoing apparatus further includes: a first triggering module, configured to: after the establishing module establishes the link between the two nodes based on the BMP, according to the established link triggering manner The detecting module detects a link failure of the link between the two nodes based on the BFD.
可选地,上述装置还包括:第二触发模块,设置为:在所述检测模块基于所述BFD检测到所述两个节点之间的所述链路的所述链路故障之后,依据检测到的所述链路故障,触发所述处理模块基于所述BMP,对基于所述BFD检测到的所述链路故障进行处理。Optionally, the foregoing apparatus further includes: a second triggering module, configured to: after the detecting module detects the link fault of the link between the two nodes based on the BFD, according to the detecting And the link fault that is triggered, the processing module is triggered to process the link fault detected based on the BFD based on the BMP.
可选地,所述处理模块包括:判断单元,设置为:判断所述两个节点的BMP会话状态是否均为关闭DOWN;重建单元,设置为:在判断结果为是的情况下,基于所述BMP重新建立所述两个节点之间的链路。Optionally, the processing module includes: a determining unit, configured to: determine whether the BMP session states of the two nodes are both closed DOWN; and the reconstructing unit is configured to: if the determination result is yes, based on the The BMP re-establishes the link between the two nodes.
可选地,上述处理模块还包括:更新单元,设置为:在所述判断单元判断所述两个节点的BMP会话状态是否均为关闭DOWN之后,并在判断结果为否的情况下,将所述两个节点的状态均更新为关闭DOWN。Optionally, the processing module further includes: an updating unit, configured to: after the determining unit determines whether the BMP session states of the two nodes are both closed DOWN, and if the determination result is negative, The status of both nodes is updated to turn off DOWN.
本发明实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现上述的链路故障检测方法。 The embodiment of the invention further provides a computer readable storage medium storing computer executable instructions, which are implemented when the computer executable instructions are executed.
通过本发明实施例,采用基于BMP建立两个节点之间的链路,基于BFD检测到所述两个节点之间的链路的链路故障,基于所述BMP,对基于所述BFD检测到的所述链路故障进行处理的方法,通过BFD可以快速感知BMP链路上存在的故障并通知给BMP,解决了相关技术中在BMP链路出现异常时无法使BMP快速感知该异常的问题,进而达到了使BMP快速感知异常的效果。According to the embodiment of the present invention, the link between the two nodes is established based on the BMP, and the link fault of the link between the two nodes is detected based on the BFD, and the BMP is detected based on the BFD. The method for processing the link fault can be quickly detected by the BFD session and notified to the BMP, and the problem that the BMP cannot quickly sense the abnormality when the BMP link is abnormal in the related art is solved. In turn, the BMP is quickly perceived to be abnormal.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the present application, and are intended to be a part of this application. In the drawing:
图1是根据本发明实施例的链路故障检测方法的流程图;1 is a flowchart of a link failure detecting method according to an embodiment of the present invention;
图2是根据本发明实施例的链路故障检测装置的结构框图;2 is a block diagram showing the structure of a link failure detecting apparatus according to an embodiment of the present invention;
图3是根据本发明实施例的链路故障检测装置的可选结构框图一;3 is a block diagram 1 of an optional structure of a link failure detecting apparatus according to an embodiment of the present invention;
图4是根据本发明实施例的链路故障检测装置的可选结构框图二;4 is a block diagram 2 of an optional structure of a link failure detecting apparatus according to an embodiment of the present invention;
图5是根据本发明实施例的链路故障检测装置中处理模块26的结构框图一;FIG. 5 is a structural block diagram 1 of a processing module 26 in a link failure detecting apparatus according to an embodiment of the present invention;
图6是根据本发明实施例的链路故障检测装置中处理模块26的结构框图二;6 is a structural block diagram 2 of a processing module 26 in a link failure detecting apparatus according to an embodiment of the present invention;
图7是根据本发明实施例的链路故障检测方法的BMP链路及BFD会话正常工作时的示意图;7 is a schematic diagram of a BMP link and a BFD session in a link fault detection method according to an embodiment of the present invention;
图8是根据本发明实施例的链路故障检测方法的BMP链路发生故障时的处理流程图;8 is a flowchart of processing when a BMP link of a link failure detecting method fails in accordance with an embodiment of the present invention;
图9是BMP链路发生故障时的示意图;Figure 9 is a schematic diagram of a BMP link failure;
图10是根据本发明实施例的链路故障检测方法的BMP链路故障处理流程示意图; 10 is a schematic flowchart of a BMP link fault processing process of a link fault detection method according to an embodiment of the present invention;
图11是根据本发明实施例的BMP建立链路的示意图。11 is a schematic diagram of a BMP establishing link according to an embodiment of the present invention.
本发明的实施方式Embodiments of the invention
下文中将参考附图并结合实施例来详细说明本申请。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The present application will be described in detail below with reference to the drawings in conjunction with the embodiments. 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.
需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that the terms "first", "second" and the like in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or order.
在本实施例中提供了一种链路故障检测方法,图1是根据本发明实施例的链路故障检测方法的流程图,如图1所示,该方法包括如下步骤:A link fault detection method is provided in this embodiment. FIG. 1 is a flowchart of a link fault detection method according to an embodiment of the present invention. As shown in FIG. 1, the method includes the following steps:
步骤S102,基于BMP建立两个节点之间的链路;Step S102, establishing a link between two nodes based on the BMP;
步骤S104,基于BFD检测到这两个节点之间的链路的链路故障;Step S104, detecting a link failure of the link between the two nodes based on the BFD;
步骤S106,基于BMP,对基于BFD检测到的链路故障进行处理。Step S106: Process the link fault detected based on the BFD based on the BMP.
其中,BFD是一个用于检测两个转发点之间故障的网络协议,在标准RFC5880有详细的描述。Among them, BFD is a network protocol for detecting faults between two forwarding points, which is described in detail in standard RFC5880.
BFD在两台设备上建立会话,用来监测两台设备间的双向转发路径,为上层协议服务,如多协议标签交换(Mutil-Protocol Label Switching,简称为MPLS)、开放式最短路径优先(Open Shortest Path First,简称为OSPF)、中间系统到中间系统(Intermediate System-to-Intermediate System,简称为IS-IS)。BFD本身并没有发现机制,而是靠被服务的上层协议通知其该与谁建立会话,会话建立后如果在检测时间内没有收到对端的BFD控制报文则认为发生故障,通知被服务的上层协议,上层协议进行相应的处理。BFD establishes a session on the two devices to monitor the bidirectional forwarding path between the two devices. It serves the upper layer protocol, such as Mutil-Protocol Label Switching (MPLS) and Open Shortest Path First (Open). Shortest Path First (referred to as OSPF), Intermediate System-to-Intermediate System (IS-IS). The BFD itself does not discover the mechanism. Instead, it is notified by the upper layer protocol of the service that it should establish a session. If the BFD control packet is not received within the detection time after the session is established, the BFD control packet is considered to be faulty. The protocol and the upper layer protocol are processed accordingly.
在本实施例中,通过上述步骤,设置BMP作为BFD的上层协议,在BMP链路上部署BFD,通过BFD可以快速检测到BMP链路存在的故障,并将该故障通知给BMP,解决了相关技术中在BMP链路出现异常时无法使BMP快速感知该异常的问题,进而达到了使BMP快速感知异常的效果。In this embodiment, the BMP is configured as the upper layer protocol of the BFD and the BFD is deployed on the BMP link. The BFD can quickly detect the fault of the BMP link and notify the BMP of the fault. In the technology, when the BMP link is abnormal, the BMP cannot quickly perceive the abnormality, thereby achieving the effect of quickly sensing the abnormality of the BMP.
在一个可选实施例中,在步骤S102之后,该方法还可以包括:依据建立的链路触发基于BFD检测这两个节点之间的链路的链路故障。例如,在建立 BMP链路后,可以通过由BMP向BFD发送消息,也可以通过将BMP会话的状态设置为开启UP,从而触发BFD对这两个节点之间的BMP链路的链路故障进行检测。In an optional embodiment, after step S102, the method may further include: triggering, based on the established link, a link failure of the link between the two nodes based on the BFD. For example, after establishing After the BMP link is sent, the BMP can send a message to the BFD session, or the BMP session can be set to ON. This triggers the BFD to detect the link fault of the BMP link between the two nodes.
在一个可选的实施例中,在步骤S104之后,该方法还可以包括:依据检测到的链路故障,触发基于BMP,对基于BFD检测到的链路故障进行处理。例如,在检测到存在链路故障后,可以通过由BFD向BMP发送消息,也可以通过将这两个节点的节点状态更改为关闭DOWN,或者还可以通过将BFD会话的会话状态设置为DOWN,从而触发基于BMP对基于BFD检测到的链路故障进行处理。In an optional embodiment, after the step S104, the method may further include: triggering, according to the detected link fault, the BMP-based detection of the link fault based on the BFD. For example, after detecting a link fault, the message may be sent to the BMP by the BFD, or by changing the node status of the two nodes to the DOWN state, or by setting the session state of the BFD session to DOWN. Therefore, the BMP detects the link fault detected based on the BFD.
在一个可选的实施例中,步骤S106可以通过下述方式实现:判断这两个节点的BMP会话状态是否均为关闭DOWN;在判断结果为是的情况下,基于BMP重新建立这两个节点之间的链路。在相关技术中,如果发生了节点故障,且只有一个节点发生了故障,即其中一个节点的节点状态为UP,另一个节点的节点状态为DOWN时,BMP协议自己没有办法解除这种异常,必须依靠人工干预,让这两个节点的节点状态都为DOWN。在本实施例中,首先判断发生链路故障的两个节点的BMP会话状态是否为关闭DOWN,然后在判断结果为是的情况下,对发生的BMP链路的通路故障进行处理,高效快速且节省了人力。In an optional embodiment, step S106 can be implemented by: determining whether the BMP session states of the two nodes are both closed DOWN; if the determination result is yes, re-establishing the two nodes based on the BMP The link between. In the related art, if a node failure occurs and only one node fails, that is, when one node has a node status of UP and another node has a node status of DOWN, the BMP protocol has no way to cancel the abnormality. By relying on manual intervention, the node status of both nodes is DOWN. In this embodiment, it is first determined whether the BMP session state of the two nodes where the link failure occurs is DOWN, and then, if the determination result is yes, the path failure of the generated BMP link is processed, which is efficient and fast. Save manpower.
可选地,在另一个可选的实施例中,如果确定这两个节点的BMP会话状态不是均处在关闭DOWN的状态后,步骤S106还包括:在判断结果为否的情况下,将这两个节点的BMP会话状态均更新为关闭DOWN。如此,在本可选实施例中,可以在不需要人工干预的情况下,将这两个节点的节点状态均更新为DOWN,实现了基于BMP对于节点故障的自动处理。Optionally, in another optional embodiment, if it is determined that the BMP session states of the two nodes are not all in the state of turning off the DOWN, the step S106 further includes: if the determination result is no, the The BMP session status of both nodes is updated to turn off DOWN. In this way, in the optional embodiment, the node states of the two nodes can be updated to DOWN without manual intervention, and automatic processing based on the BMP for the node failure is implemented.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机, 服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation. Based on such understanding, the technical solution of the present application, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD-ROM, including a number of instructions to make a terminal device (can be a mobile phone, a computer, The server, or network device, etc.) performs the methods described in various embodiments of the present application.
在本实施例中还提供了一种链路故障检测装置,该装置用于实现上述实施例及可选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置可选地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In the embodiment, a link fault detecting device is provided, which is used to implement the foregoing embodiments and optional embodiments, and details are not described herein. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the devices described in the following embodiments are optionally implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图2是根据本发明实施例的链路故障检测装置的结构框图,如图2所示,该装置包括建立模块22、检测模块24和处理模块26,下面对该装置进行说明。2 is a block diagram showing the structure of a link failure detecting apparatus according to an embodiment of the present invention. As shown in FIG. 2, the apparatus includes an establishing module 22, a detecting module 24, and a processing module 26. The apparatus will be described below.
建立模块22,设置为:基于BMP建立两个节点之间的链路;The establishing module 22 is configured to: establish a link between two nodes based on the BMP;
检测模块24,连接至建立模块22,设置为:基于BFD检测到这两个节点之间的链路的链路故障;The detecting module 24 is connected to the establishing module 22, and is configured to: detect a link failure of the link between the two nodes based on the BFD;
处理模块26,连接至检测模块24,设置为:基于BMP,对基于BFD检测到的链路故障进行处理。The processing module 26 is connected to the detecting module 24 and configured to: process the link fault detected based on the BFD based on the BMP.
图3是根据本发明实施例的链路故障检测装置的可选结构框图一,如图3所示,该装置除包括图2所示的所有模块外,还包括第一触发模块32,下面对该装置进行说明。3 is a block diagram of an optional structure of a link fault detecting apparatus according to an embodiment of the present invention. As shown in FIG. 3, the apparatus includes a first triggering module 32, in addition to all the modules shown in FIG. The device will be described.
第一触发模块32,连接至建立模块22和检测模块24,设置为:在建立模块22基于BMP建立这两个节点之间的链路之后,依据建立的链路触发检测模块24基于BFD检测这两个节点之间的链路的链路故障。The first triggering module 32 is connected to the establishing module 22 and the detecting module 24, and is configured to: after the establishing module 22 establishes the link between the two nodes based on the BMP, according to the established link trigger detecting module 24 detecting the BFD based on the BFD The link of the link between the two nodes is faulty.
图4是根据本发明实施例的链路故障检测装置的可选结构框图二,如图4所示,该装置除包括图2所示的所有模块外,还包括第二触发模块42,下面对该装置进行说明。4 is a block diagram 2 of an optional structure of a link fault detecting apparatus according to an embodiment of the present invention. As shown in FIG. 4, the apparatus includes a second triggering module 42 in addition to all the modules shown in FIG. The device will be described.
第二触发模块42,连接至检测模块24和处理模块26,设置为:在检测模块24基于BFD检测到这两个节点之间的链路的链路故障之后,依据检测到的链路故障,触发处理模块26基于BMP,对基于BFD检测到的链路故障进行处理。The second triggering module 42 is connected to the detecting module 24 and the processing module 26, and is configured to: after detecting, by the detecting module 24, the link fault of the link between the two nodes based on the BFD, according to the detected link fault, The trigger processing module 26 processes the link fault detected based on the BFD based on the BMP.
图5是根据本发明实施例的链路故障检测装置中处理模块26的结构框图 一,如图5所示,处理模块26包括判断单元52和重建单元54,下面对该处理模块26进行说明。FIG. 5 is a structural block diagram of a processing module 26 in a link failure detecting apparatus according to an embodiment of the present invention. First, as shown in FIG. 5, the processing module 26 includes a determining unit 52 and a reconstructing unit 54, which will be described below.
判断单元52,设置为:判断判断这两个节点的BMP会话状态是否均为关闭DOWN;The determining unit 52 is configured to: determine whether the BMP session states of the two nodes are all closed DOWN;
重建单元54,连接至判断单元52,设置为:在判断单元52的判断结果为是的情况下,基于BMP重新建立这两个节点之间的链路。The reconstruction unit 54, connected to the determination unit 52, is configured to re-establish the link between the two nodes based on the BMP in the case where the determination result of the determination unit 52 is YES.
图5只是一种示例性说明,其也可以在如图3、图4或者其结合所示的装置中进行处理模块26的实例。FIG. 5 is merely an exemplary illustration, which may also be an example of processing module 26 in an apparatus as shown in FIG. 3, FIG. 4, or a combination thereof.
图6是根据本发明实施例的链路故障检测装置中处理模块26的结构框图二,如图6所示,处理模块26除包含图5所示的所有单元外,还包括更新单元62,下面对该处理模块26进行说明。FIG. 6 is a block diagram showing the structure of the processing module 26 in the link fault detecting apparatus according to the embodiment of the present invention. As shown in FIG. 6, the processing module 26 includes an update unit 62, in addition to all the units shown in FIG. The processing module 26 will be described.
更新单元62,连接至判断单元52,设置为:在判断单元52判断这两个节点的BMP会话状态是否均为关闭DOWN之后,并在判断单元52的判断结果为否的情况下,将这两个节点的状态均更新为关闭DOWN。The updating unit 62 is connected to the judging unit 52, and is configured to: after the judging unit 52 judges whether the BMP session states of the two nodes are both closed DOWN, and if the judgment result of the judging unit 52 is NO, The status of each node is updated to turn off DOWN.
下面对于本发明实施例进行举例说明。The embodiments of the present invention are exemplified below.
在需要BMP建链的一条链路上先建立一个双向快速检测收发报文的机制BFD协议,这里简称为“快速检测机制”,除了BFD,还可以为其它检测机制。“快速检测机制”和上层协议BMP关联,当BMP会话UP时,会将BMP会话邻居信息告诉“快速检测机制”,“快速检测机制”再根据这个信息建立邻居关系并进行快速检测机制会话。如果BMP会话的两个端点之间存在多条链路,则可以为每条链路建立一个“快速检测机制”会话。On a link that requires BMP to establish a link, a BFD protocol is set up to detect packets. This is referred to as the fast detection mechanism. In addition to BFD, other detection mechanisms can be used. The "fast detection mechanism" is associated with the upper-layer protocol BMP. When the BMP session is UP, the BMP session neighbor information is told to the "fast detection mechanism". The "fast detection mechanism" then establishes a neighbor relationship based on this information and performs a fast detection mechanism session. If there are multiple links between the two endpoints of a BMP session, a "fast detection mechanism" session can be established for each link.
“快速检测机制”在建立两个会话(即BMP会话和快速检测机制会话)的网络节点之间进行检测;如果发现链路故障就拆除“快速检测机制”邻居,并立即通知上层协议BMP,则上层协议BMP会立刻进行相应的切换,即把状态转换为DOWN;然后再次重新发起建链。The "fast detection mechanism" detects between the network nodes that establish two sessions (that is, the BMP session and the fast detection mechanism session); if the link failure occurs, the "fast detection mechanism" neighbor is removed, and the upper layer protocol BMP is immediately notified. The upper layer protocol BMP will immediately switch accordingly, that is, convert the state to DOWN; then re-initiate the chain building again.
本发明实施例提供了一种能够快速地让需要建链的BMP会话感知链路异常的方法,采用该方法不需要人工干预,操作方便,能够短时间内快速恢复建链,保证BMP报文及时发送给服务器。 The embodiment of the invention provides a method for quickly detecting a link abnormality of a BMP session that needs to be established. The method does not require manual intervention and is convenient to operate, and can quickly restore the link establishment in a short time to ensure timely BMP packets. Sent to the server.
图7是根据本发明实施例的链路故障检测方法的BMP链路及BFD会话正常工作时的示意图,如图7所示,在BMP链路及BFD会话正常工作时,包括如下步骤:FIG. 7 is a schematic diagram of a BMP link and a BFD session in a link fault detection method according to an embodiment of the present invention. As shown in FIG. 7, when the BMP link and the BFD session are working normally, the following steps are included:
步骤S702,基于BMP,按照正常流程,在两个节点发起连接,在这两个节点之间建立链路及邻居关系;Step S702, based on the BMP, initiate a connection between two nodes according to a normal process, and establish a link and a neighbor relationship between the two nodes;
步骤S704,基于BMP建立邻居关系,即BMP会话状态为UP时,将这两个节点的邻居关系的相关信息通知给BFD;Step S704, the neighbor relationship is established based on the BMP, that is, when the BMP session state is UP, the related information of the neighbor relationship of the two nodes is notified to the BFD;
步骤S706,BFD根据收到的这两个节点的邻居关系的相关信息建立BFD邻居关系,并在建立BFD邻居关系及会话的这两个节点之间的链路上进行链路检测。In step S706, the BFD establishes a BFD neighbor relationship according to the information about the neighbor relationship of the two nodes, and performs link detection on the link between the two nodes that establish the BFD neighbor relationship and the session.
图8是根据本发明实施例的链路故障检测方法的BMP链路发生故障时的处理流程图,如图8所示,BMP链路发生故障时,包括如下步骤:FIG. 8 is a flowchart of processing when a BMP link fails in a link fault detection method according to an embodiment of the present invention. As shown in FIG. 8, when a BMP link fails, the following steps are included:
步骤S802,这两个节点的链路出现故障;Step S802, the links of the two nodes are faulty;
步骤S804,基于BFD检测出这两个节点之间存在链路故障,拆除BFD邻居关系;Step S804: The BFD detects that there is a link fault between the two nodes, and removes the BFD neighbor relationship.
步骤S806,BFD通知本地BMP链路存在故障,该故障导致BFD邻居不可达;Step S806, the BFD notifies that the local BMP link is faulty, and the fault causes the BFD neighbor to be unreachable.
步骤S808,BMP根据从BFD收到的相关的故障信息,更改BMP会话状态为DOWN,并进行相应的处理。Step S808: The BMP changes the BMP session state to DOWN according to the related fault information received from the BFD, and performs corresponding processing.
这样就保证了BMP会话能够快速感知链路异常,做出相应的处理。This ensures that the BMP session can quickly detect the link anomaly and handle it accordingly.
图9是BMP链路发生故障时的示意图,如图9所示,按照BGP Monitoring Protocol draft-ietf-grow-bmp-07及其相关协议标准的规定,BMP没有自己的保活报文,即在链路故障的时候,如果恰巧这时候BMP会话由UP转为DOWN,则相应的信息可能因链路故障被丢弃,会导致BMP会话的状态异常,即一端状态为UP,另一端状态为DOWN,这时,保持节点状态为UP的一端不再接收BMP建链请求。这时候BMP协议自己没有办法解除这种异常,需要人工干预,让BMP会话两端的状态都为DOWN。Figure 9 is a schematic diagram of a BMP link failure. As shown in Figure 9, the BMP does not have its own keep-alive message according to the BGP Monitoring Protocol draft-ietf-grow-bmp-07 and its related protocol standards. When the link is faulty, if the BMP session is changed from UP to DOWN, the corresponding information may be discarded due to the link failure. The status of the BMP session is abnormal, that is, the state of one end is UP and the other end is DOWN. At this time, the end that keeps the node state UP is no longer receiving the BMP link establishment request. At this time, the BMP protocol has no way to solve this abnormality. It requires manual intervention to make the state of both ends of the BMP session DOWN.
需要指出的是,发生链路故障的两端可以如图9所示一端为节点,另一 端为服务器,也可以两端都为节点。It should be pointed out that the two ends of the link fault can be one end as shown in Figure 9, and the other end. The end is a server, and both ends can be nodes.
图10是根据本发明实施例的链路故障检测方法的BMP链路故障处理流程示意图,如图10所示,在BMP会话的两个网络节点上部署BFD,关联BMP,BFD检测到链路故障后就会通知BMP,使状态为UP的BMP会话状态转换为DOWN;然后再按照正常流程发起BMP建链的流程,如图11所示。FIG. 10 is a schematic diagram of a BMP link fault processing process according to a link fault detection method according to an embodiment of the present invention. As shown in FIG. 10, BFD is configured on two network nodes of a BMP session, and BMP is associated, and BFD detects link fault. After that, the BMP will be notified to convert the BMP session state with the status UP to DOWN; then, the BMP chain-building process is initiated according to the normal process, as shown in FIG.
在链路异常情况下,使用本发明实施例的链路故障的检测方法,BMP会话能够快速感知链路异常,及时正确地处理、快速地建立BMP连接,提高了效率,减少了人工的干预。In the case of a link abnormality, the BMP session can quickly detect the link abnormality, correctly and quickly establish a BMP connection, improve efficiency, and reduce manual intervention.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述模块分别位于多个处理器中。It should be noted that each of the above modules may be implemented by software or hardware. For the latter, the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple In the processor.
本发明实施例还提供了一种计算机可读存储介质。可选地,在本实施例中,上述计算机可读存储介质可以被设置为存储用于执行以下步骤的程序代码:The embodiment of the invention further provides a computer readable storage medium. Optionally, in the embodiment, the computer readable storage medium may be configured to store program code for performing the following steps:
步骤S1,基于BMP建立两个节点之间的链路;Step S1, establishing a link between two nodes based on the BMP;
步骤S2,基于BFD检测到这两个节点之间的链路的链路故障;Step S2, detecting a link failure of the link between the two nodes based on the BFD;
步骤S3,基于BMP,对基于BFD检测到的链路故障进行处理。Step S3: The BMP detects the link fault detected based on the BMP.
可选地,在本实施例中,上述计算机可读存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in this embodiment, the computer readable storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), and a Random Access Memory (Random Access Memory). A variety of media that can store program code, such as RAM), removable hard drives, disks, or optical disks.
可选地,在本实施例中,处理器根据计算机可读存储介质中已存储的程序代码执行上述的步骤S1至步骤S3。Optionally, in the embodiment, the processor performs the above steps S1 to S3 according to the program code stored in the computer readable storage medium.
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。For example, the specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
本领域的技术人员应该明白,上述的本申请的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码 来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本申请不限制于任何特定的硬件和软件结合。Those skilled in the art will appreciate that the various modules or steps of the present application described above may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices. Alternatively, they may be executed by a computing device Implemented so that they can be stored in a storage device by a computing device, and in some cases, the steps shown or described may be performed in an order different than that herein, or separately The integrated circuit modules are implemented by making a plurality of modules or steps of them into a single integrated circuit module. Thus, the application is not limited to any particular combination of hardware and software.
以上所述仅为本申请的可选实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above description is only an optional embodiment of the present application, and is not intended to limit the present application, and various changes and modifications may be made to the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this application are intended to be included within the scope of the present application.
工业实用性Industrial applicability
本申请实施例提供一种链路故障检测方法及装置,通过BFD可以快速感知BMP链路上存在的故障并通知给BMP,解决了相关技术中在BMP链路出现异常时无法使BMP快速感知该异常的问题,进而达到了使BMP快速感知异常的效果。 The embodiment of the present invention provides a link fault detection method and device. The BFD can quickly detect the faults on the BMP link and notify the BMP. The BMP link cannot be quickly perceived when the BMP link is abnormal. The abnormal problem, in turn, achieves the effect of making the BMP quickly perceive anomalies.

Claims (10)

  1. 一种链路故障检测方法,包括:A link fault detection method includes:
    基于边界网关协议监测协议BMP建立两个节点之间的链路;Establishing a link between two nodes based on the Border Gateway Protocol Monitoring Protocol BMP;
    基于双向收发检测BFD检测到所述两个节点之间的链路的链路故障;Detection of a link failure of a link between the two nodes by BFD based on two-way transceiving;
    基于所述BMP,对基于所述BFD检测到的所述链路故障进行处理。And processing, according to the BMP, the link fault detected based on the BFD.
  2. 根据权利要求1所述的方法,在基于所述BMP建立所述两个节点之间的所述链路之后,所述方法还包括:The method of claim 1, after the establishing the link between the two nodes based on the BMP, the method further comprises:
    依据建立的所述链路触发基于所述BFD检测所述两个节点之间的链路的链路故障。A link failure detecting a link between the two nodes based on the BFD is triggered according to the established link.
  3. 根据权利要求1所述的方法,在基于所述BFD检测到所述两个节点之间的所述链路的所述链路故障之后,所述方法还包括:The method of claim 1, after the detecting the link failure of the link between the two nodes based on the BFD, the method further comprises:
    依据检测到的所述链路故障,触发基于所述BMP,对基于所述BFD检测到的所述链路故障进行处理。And detecting, according to the detected link fault, the link fault detected by the BFD based on the BMP.
  4. 根据权利要求1至3中任一项所述的方法,其中,所述基于所述BMP,对基于所述BFD检测到的所述链路故障进行处理,包括:The method according to any one of claims 1 to 3, wherein the processing, based on the BMP, the link failure detected based on the BFD, comprises:
    判断所述两个节点的BMP会话状态是否均为关闭DOWN;Determining whether the BMP session status of the two nodes is off DOWN;
    在判断结果为是的情况下,基于所述BMP重新建立所述两个节点之间的链路。In the case where the determination result is YES, the link between the two nodes is re-established based on the BMP.
  5. 根据权利要求4所述的方法,在判断所述两个节点的BMP会话状态是否均为关闭DOWN之后,所述方法还包括:The method of claim 4, after determining whether the BMP session states of the two nodes are both DOWN, the method further includes:
    在判断结果为否的情况下,将所述两个节点的BMP会话状态均更新为关闭DOWN。If the judgment result is no, the BMP session states of the two nodes are all updated to be off DOWN.
  6. 一种链路故障检测装置,包括:A link failure detecting device includes:
    建立模块,设置为:基于边界网关协议监测协议BMP建立两个节点之间的链路;Establish a module, set to: establish a link between two nodes based on the Border Gateway Protocol Monitoring Protocol BMP;
    检测模块,设置为:基于双向收发检测BFD检测到所述两个节点之间的链路的链路故障; The detecting module is configured to: detect, according to the bidirectional transceiver, the link fault of the link between the two nodes by the BFD;
    处理模块,设置为:基于所述BMP,对基于所述BFD检测到的所述链路故障进行处理。The processing module is configured to: process the link fault detected based on the BFD based on the BMP.
  7. 根据权利要求6所述的装置,所述装置还包括:The apparatus of claim 6 further comprising:
    第一触发模块,设置为:在所述建立模块基于所述BMP建立所述两个节点之间的所述链路之后,依据建立的所述链路触发所述检测模块基于所述BFD检测所述两个节点之间的链路的链路故障。a first triggering module, configured to: after the establishing module establishes the link between the two nodes based on the BMP, triggering, according to the established link, the detecting module to be based on the BFD detection A link failure of a link between two nodes.
  8. 根据权利要求6所述的装置,所述装置还包括:The apparatus of claim 6 further comprising:
    第二触发模块,设置为:在所述检测模块基于所述BFD检测到所述两个节点之间的所述链路的所述链路故障之后,依据检测到的所述链路故障,触发所述处理模块基于所述BMP,对基于所述BFD检测到的所述链路故障进行处理。a second triggering module, configured to: after the detecting module detects the link fault of the link between the two nodes based on the BFD, triggering according to the detected link fault The processing module processes the link fault detected based on the BFD based on the BMP.
  9. 根据权利要求6至8中任一项所述的装置,其中,所述处理模块包括:The apparatus according to any one of claims 6 to 8, wherein the processing module comprises:
    判断单元,设置为判断所述两个节点的BMP会话状态是否均为关闭DOWN;a determining unit, configured to determine whether the BMP session states of the two nodes are all closed DOWN;
    重建单元,设置为:在判断结果为是的情况下,基于所述BMP重新建立所述两个节点之间的链路。The reconstruction unit is configured to: when the determination result is yes, re-establish the link between the two nodes based on the BMP.
  10. 根据权利要求9所述的装置,其中,所述处理模块还包括:The apparatus of claim 9, wherein the processing module further comprises:
    更新单元,设置为:在所述判断单元判断所述两个节点的BMP会话状态是否均为关闭DOWN之后,并在判断结果为否的情况下,将所述两个节点的状态均更新为关闭DOWN。 And an update unit, configured to: after the determining unit determines whether the BMP session states of the two nodes are both closed DOWN, and if the determination result is no, update the status of the two nodes to be closed. DOWN.
PCT/CN2016/081441 2015-08-28 2016-05-09 Link fault detection method and apparatus WO2017036165A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510542900.3 2015-08-28
CN201510542900.3A CN106487696B (en) 2015-08-28 2015-08-28 Link failure detection method and device

Publications (1)

Publication Number Publication Date
WO2017036165A1 true WO2017036165A1 (en) 2017-03-09

Family

ID=58186533

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/081441 WO2017036165A1 (en) 2015-08-28 2016-05-09 Link fault detection method and apparatus

Country Status (2)

Country Link
CN (1) CN106487696B (en)
WO (1) WO2017036165A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11916783B2 (en) 2020-04-29 2024-02-27 Huawei Technologies Co., Ltd. Information reporting method, information processing method, apparatus, and device

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110557317B (en) * 2018-06-01 2022-05-13 华为技术有限公司 Method and apparatus for managing virtual private network
CN112583623B (en) * 2019-09-30 2023-02-07 中兴通讯股份有限公司 Filtering information configuration method and system
CN111934939B (en) * 2020-09-17 2021-02-02 北京搜狐新媒体信息技术有限公司 Network node fault detection method, device and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101237409A (en) * 2008-02-27 2008-08-06 华为技术有限公司 Method and device for realizing quick re-routing in MPLS VPN
CN101459549A (en) * 2007-12-14 2009-06-17 华为技术有限公司 Link failure processing method and data forwarding device
CN102111325A (en) * 2009-12-23 2011-06-29 杭州华三通信技术有限公司 Method for quickly detecting link failures and device adopting same

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101800676A (en) * 2010-02-20 2010-08-11 中兴通讯股份有限公司 Link detection method, device and system
US8885484B2 (en) * 2011-07-25 2014-11-11 Alcatel Lucent Bootstrapping fault detection sessions over a P2MP tunnel

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459549A (en) * 2007-12-14 2009-06-17 华为技术有限公司 Link failure processing method and data forwarding device
CN101237409A (en) * 2008-02-27 2008-08-06 华为技术有限公司 Method and device for realizing quick re-routing in MPLS VPN
CN102111325A (en) * 2009-12-23 2011-06-29 杭州华三通信技术有限公司 Method for quickly detecting link failures and device adopting same

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
WANG, XUN ET AL.: "ZHONG1GUO2 YUN4YING2SHANG1 HU 4LIAN2WANG3 SDN BU4SHU3 SHI2JIAN4", COMMUNICATION WORLD WEEKLY, 5 April 2015 (2015-04-05) *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11916783B2 (en) 2020-04-29 2024-02-27 Huawei Technologies Co., Ltd. Information reporting method, information processing method, apparatus, and device

Also Published As

Publication number Publication date
CN106487696A (en) 2017-03-08
CN106487696B (en) 2019-07-23

Similar Documents

Publication Publication Date Title
JP5913635B2 (en) Redundant network connection
JP4840236B2 (en) Network system and node device
EP2725743B1 (en) Methods and device for processing location information about fault point
US9674285B2 (en) Bypassing failed hub devices in hub-and-spoke telecommunication networks
WO2017036165A1 (en) Link fault detection method and apparatus
JP6792701B2 (en) Primary backup pseudo line PW switching
US8824275B2 (en) Route calculating after switching occurs from a primary main control board to a standby main control board
WO2015184739A1 (en) Fault detection method and device
US10581669B2 (en) Restoring control-plane connectivity with a network management entity
CN108933818B (en) Communication method and device
CN103490951A (en) Bidirectional forwarding detection method in multi-hop link on basis of BFD
CN107241208B (en) Message forwarding method, first switch and related system
WO2012119522A1 (en) Method and apparatus for processing link fault
CN108289044B (en) Data forwarding method, link state method for determining static route and network equipment
CN109873719B (en) Fault detection method and device
CN108259325B (en) Route maintenance method and route equipment
WO2016070530A1 (en) Method and system for processing operation of primary and standby device
JP2009232263A (en) Communication device, and fault monitoring method
WO2016202015A1 (en) Method and apparatus for protecting active and standby access network elements in data communications network
JP2011166245A (en) Network system, switching method of gateway device, first tunnel termination gateway device and second tunnel termination gateway device
CN106301835B (en) BFD link establishing method and device and router
WO2021018150A1 (en) Link detection method and apparatus
WO2016082343A1 (en) Fault detection method and device
WO2017054471A1 (en) Method of electing designated router and device utilizing same
JP6490167B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, COMPUTER PROGRAM, AND COMMUNICATION SYSTEM

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

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

Country of ref document: EP

Kind code of ref document: A1