WO2017054547A1 - Bidirectional forwarding detection method and apparatus - Google Patents

Bidirectional forwarding detection method and apparatus Download PDF

Info

Publication number
WO2017054547A1
WO2017054547A1 PCT/CN2016/089458 CN2016089458W WO2017054547A1 WO 2017054547 A1 WO2017054547 A1 WO 2017054547A1 CN 2016089458 W CN2016089458 W CN 2016089458W WO 2017054547 A1 WO2017054547 A1 WO 2017054547A1
Authority
WO
WIPO (PCT)
Prior art keywords
bfd
local
state
down state
session
Prior art date
Application number
PCT/CN2016/089458
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 WO2017054547A1 publication Critical patent/WO2017054547A1/en

Links

Images

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 application relates to, but is not limited to, the field of communications, and in particular, to a method and apparatus for bidirectional forwarding detection.
  • Bidirectional Forwarding Detection is a simple "Hello" protocol. In many respects, it is similar to the neighbor detection part of the well-known routing protocols. A pair of systems periodically send detection messages on the channel of the established session between them if one of the systems in the pair does not receive detection of another system for a sufficient amount of time The message is considered to have failed in a certain part of the bidirectional channel to the other system. Under certain conditions, in order to reduce the load, the transmission and reception rates between systems need to be negotiated.
  • the detection packet sent by the BFD protocol is a User Datagram Protocol (UDP) packet.
  • UDP User Datagram Protocol
  • the format of the BFD control packet is as shown in Figure 1.
  • the meanings of the fields in the control packet format are as follows: :
  • Diag Diagnostic word indicating the reason for the last session of the local BFD system to go Down;
  • F The F flag must be set in the response message in response to the P flag being set.
  • D Query request, the setting indicates that the query mode in the transmission system is valid, and is set to instruct the remote system to stop the periodic transmission of the BFD control message;
  • Detect Mult Detects the timeout multiple and sets the detection time to the detection time.
  • Length length of the packet
  • the BFD session connects to the remote identifier
  • Desired Min Tx Interval Minimum interval for sending BFD packets.
  • FIG. 2 is a flowchart of a method of bidirectional forwarding detection according to the related art, and a process of determining that a BFD session is Down is shown in FIG.
  • the system periodically sends BFD control packets to each other. If a system does not receive BFD control packets from the other system within the detection time, it determines that the session is in the Down state. Or in query mode, assume that each system has an independent method to confirm that it is connected to the other system. After the BFD session is established, the system stops sending BFD control packets unless a system needs to explicitly verify connectivity. In the case that the connectivity needs to be explicitly verified, the system sends a series of short BFD control packets. If the returned packets are not received within the detection time, the system determines that the session is in the Down state (system shutdown). Repeat the above process for a system response message.
  • FIG. 3 is a schematic diagram of a topology structure of an MPLS VPN protection network according to the related art. As shown in FIG. 3, a multi-protocol label switch (MPLS) virtual private network (VPN) protection is provided. In the environment, the service is configured with the active and standby protection paths, and the outer layer of the main service is forwarded through the tunnel.
  • MPLS multi-protocol label switch
  • VPN virtual private network
  • the devices at both ends of the faulty link can receive the BFD keep-alive message and the session is not received.
  • the state is switched to the Down state, and the service protection function can be switched during the detection period.
  • the inventor of the present application found that when the virtual interface of the tunnel fails and the physical port and the Layer 3 interface are normal, the local A device service does not send BFD packets because the output interface is in the Down state.
  • the specified BFD packet is not received, and the state of the session is switched to the Down state.
  • the BFD packet is not sent continuously. However, in the session.
  • the B device will continue to send BFD packets before the state is switched to the Down state.
  • the device can also receive the BPDUs.
  • the process will not immediately change the state of the BFD session to the Down state.
  • the A device will switch the state of the session to the Down state. In the process, the A device needs to be in the BFD session to switch the state of the BFD session to the Down state.
  • the present application provides a method and apparatus for bidirectional forwarding detection, in order to solve the problem that at least two BFD detection periods are required to determine the state of a BFD session in the case where the virtual interface fails and the physical interface and the Layer 3 interface are normal.
  • the problem of switching to the Down state is not limited.
  • a method for bidirectional forwarding detection includes: determining, by a local device, whether a BFD packet sent by a peer device is received in a detection period of a bidirectional forwarding detection BFD; In the case of the BFD packet, the local device detects the status of the specific flag bit of the BFD packet, where the specific flag bit is set to indicate whether the local BFD session of the peer device is in the Down state. The local device switches the state of the local BFD session of the local device when the local BFD session in the BFD packet indicates that the local BFD session of the peer device is in the Down state. It is in the Down state.
  • the specific flag bit includes: a local state Sta bit in the BFD message.
  • the method further includes: determining, by the peer device, whether the BFD packet sent by the local device is received in a BFD detection period; and determining that the local device sends the In the case of a BFD packet, the peer device sends the BFD packet to the local device, and the state of the local BFD session of the peer device is switched to the Down state, where the BFD packet is sent.
  • the specific flag bit indicates that the local BFD session of the peer device is in the Down state.
  • the method further includes: the local device device The state of the local BFD session of the local device is switched to the Down state.
  • a method for bidirectional forwarding detection including: determining, by a peer device, whether a BFD packet sent by the local device is received in a detection period of a bidirectional forwarding detection BFD; In the case of the BFD packet sent by the local device, the peer device sends a BFD packet to the local device, and the state of the local BFD session of the peer device is switched to the Down state, where The BFD packet sent by the peer device includes a specific flag bit, and the specific flag bit is set to indicate whether the local BFD session of the peer device is in the Down state.
  • the specific flag bit includes: a local state Sta bit in the BFD message.
  • the method further includes: The local device determines whether the BFD packet of the peer device is received in the detection period of the BFD session. If the BFD packet of the peer device is received, the local device detects the peer end. The state of the specific flag bit of the BFD packet of the device; the local device detects the local device when the local device indicates that the local BFD session of the peer device is in the Down state. The state of the local BFD session is switched to the Down state.
  • the method further includes: the local device, the local BFD session of the local device The state is switched to the Down state.
  • the application further provides a computer readable storage medium storing computer executable instructions that are implemented when the computer executable instructions are executed.
  • a device for detecting bidirectional forwarding is further applied to the local device, including: a first determining module, configured to determine whether a pair is received during a detection period of a bidirectional forwarding detection BFD a BFD packet sent by the end device; the detecting module is configured to detect a state of the specific flag bit of the BFD packet when the BFD packet is received, where the specific flag bit is set to indicate the Whether the local BFD session of the peer device is in the Down state; the switching module is configured to detect the specific flag bit indication in the BFD packet If the local BFD session of the peer device is in the Down state, the state of the local BFD session of the local device is switched to the Down state.
  • a device for bidirectional forwarding detection which is applied to a peer device, and includes: a second judging module, configured to determine whether the local end is received during a detection period of a bidirectional forwarding detection BFD a BFD packet sent by the device, where the processing module is configured to send the BFD packet to the local device, and the peer device, if the BFD packet sent by the local device is not received.
  • the state of the local BFD session is switched to the Down state, where the BFD packet sent by the peer device includes a specific flag bit, and the specific flag bit is set to indicate whether the local BFD session of the peer device is in the Down state.
  • the local device determines whether the BFD packet sent by the peer device is received in the detection period of the bidirectional forwarding detection BFD.
  • the local device detects the BFD packet.
  • the status of the specific flag bit of the packet where the specific flag bit is set to indicate whether the local BFD session of the peer device is in the Down state; the specific flag bit in the BFD packet is detected to indicate that the local BFD session of the peer device is Down.
  • the local device switches the state of the local BFD session of the local device to the Down state.
  • the virtual interface fails and the physical port and the Layer 3 interface are normal, two BFDs are required.
  • the detection period can detect the problem that the BFD session is in the Down state, which improves the efficiency of BFD.
  • FIG. 1 is a schematic structural diagram of a BFD packet according to the related art
  • FIG. 3 is a schematic diagram of a topology structure of an MPLS VPN protection network according to the related art
  • FIG. 4 is a flowchart 1 of a method for bidirectional forwarding detection according to an embodiment of the present invention.
  • FIG. 5 is a second flowchart of a method for bidirectional forwarding detection according to an embodiment of the present invention.
  • FIG. 6 is a block diagram 1 of an apparatus for bidirectional forwarding detection according to an embodiment of the present invention.
  • FIG. 7 is a block diagram 2 of an apparatus for bidirectional forwarding detection according to an embodiment of the present invention.
  • FIG. 8 is a flow chart of a method of bidirectional forwarding detection in accordance with a preferred embodiment of the present invention.
  • FIG. 4 is a flowchart 1 of a method for bidirectional forwarding detection according to an embodiment of the present invention. As shown in FIG. 4, the process includes the following steps:
  • Step S402 the local device determines whether the BFD packet of the peer device is received in the detection period of the bidirectional forwarding detection BFD.
  • Step S404 If the BFD packet is received, the local device detects the status of the specific flag bit of the BFD packet, where the specific flag bit is set to indicate whether the local BFD session of the peer device is in the Down state.
  • step S406 if the specific flag bit in the BFD packet is detected to indicate that the local BFD session of the peer device is in the Down state, the local device switches the state of the local BFD session of the local device to the Down state.
  • the local BFD session of the local device is switched to the Down state.
  • the time required for detecting the Down state of the peer device is shortened, and the time required for detecting the Down state of the peer device is shortened, and the physical interface and the Layer 3 interface are faulty in the related art.
  • the BFD session detection period is required to detect the BFD session status to the Down state, which improves the timeliness of BFD.
  • the method for bidirectional forwarding detection provided by the embodiment of the present invention can be applied to an asynchronous mode or a query. mode.
  • the MPLS VPN scenario is taken as an example in the embodiment of the present invention
  • the method of the bidirectional forwarding detection provided by the embodiment of the present invention may be applied in other application scenarios, which is not limited herein.
  • the specific flag bit may be a new field, or may use an original field.
  • the specific flag bit may be the local state Sta bit in the BFD message.
  • the peer device determines whether the BFD packet sent by the local device is received in the detection period of the BFD session. If the BFD packet sent by the local device is not received, the peer device sends the BFD packet. The packet is sent to the local device, and the local BFD session of the peer device is switched to the Down state. The specific BFD packet indicates that the local BFD session of the peer device is Down. In this way, a BFD packet carrying a specific flag bit is generated.
  • the local device switches the state of the local BFD session of the local device to the Down state when the local device does not receive the BFD packet. In this manner, another manner of switching the state of the local BFD session of the local device to the Down state is provided.
  • FIG. 5 is a second flowchart of a method for bidirectional forwarding detection according to an embodiment of the present invention. As shown in FIG. 5, the method includes the following steps:
  • step S502 the peer device determines whether the BFD packet sent by the local device is received in the detection period of the bidirectional forwarding detection BFD.
  • Step S504 If the BFD packet sent by the local device is not received, the peer device sends the BFD packet to the local device, and the state of the local BFD session of the peer device is switched to the Down state, where the peer device sends
  • the BFD packet includes a specific flag bit, and the specific flag bit is set to indicate whether the local BFD session of the peer device is in the Down state.
  • the specific flag bit includes: a local state Sta bit in the BFD message.
  • the method for detecting the bidirectional forwarding further includes: determining by the local device Whether the BFD packet of the peer device is received during the detection period of the BFD session.
  • the local device detects the state of the specific flag bit of the BFD packet of the peer device.
  • the local device will perform local BFD session of the local device when the local device indicates that the local BFD session of the peer device is in the Down state. The state is switched to the Down state.
  • the local device switches the state of the local BFD session of the local device to the Down state when the local device does not receive the BFD packet from the peer device.
  • 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 related art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD-ROM).
  • the instructions include a number of instructions for causing a terminal device (which may be a cell phone, computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention.
  • Embodiments of the present invention further provide a computer readable storage medium storing computer executable instructions that are implemented when the computer executable instructions are executed.
  • a device for bidirectional forwarding detection is further provided, which is applied to the local device.
  • the device is configured to implement the foregoing embodiments and preferred embodiments, and details are not described herein.
  • the term "module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 6 is a block diagram of an apparatus for bidirectional forwarding detection according to an embodiment of the present invention. As shown in FIG. 6, the apparatus includes: a first judging module 62, a detecting module 64, and a switching module 66, where
  • the first judging module 62 is configured to determine whether the BFD packet sent by the peer device is received during the detection period of the bidirectional forwarding detection BFD.
  • the detecting module 64 is coupled to the first judging module 62 and configured to receive the BFD. In the case of the packet, the state of the specific flag bit of the BFD packet is detected, wherein the specific flag bit is set to indicate whether the local BFD session of the peer device is in the Down state; the switching module 66 is coupled to the detecting module 64, and is configured to be in the If the local BFD session of the local device is in the Down state, the local BFD session of the local device is switched to the Down state.
  • the specific flag bit includes: a local state Sta bit in the BFD message.
  • the switching module 66 is further configured to: when the local device does not receive the BFD packet.
  • the state of the local BFD session of the local device is switched to the Down state.
  • the embodiment also provides a device for detecting the bidirectional forwarding, which is applied to the peer device, and the device is configured to implement the foregoing embodiments and preferred embodiments, and details are not described herein.
  • the term "module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 7 is a block diagram 2 of an apparatus for bidirectional forwarding detection according to an embodiment of the present invention. As shown in FIG. 7, the apparatus includes: a second judging module 72 and a processing module 74, where
  • the second judging module 72 is configured to determine whether the BFD packet sent by the local device is received in the detection period of the bidirectional forwarding detection BFD; the processing module 74 is coupled to the second judging module 72, and is configured not to receive the BFD packet.
  • the BFD packet is sent to the local device, and the state of the local BFD session of the peer device is switched to the Down state.
  • the BFD packet sent by the peer device includes the specific flag. The bit is set to indicate whether the local BFD session of the peer device is in the Down state.
  • the specific flag bit includes: a local state Sta bit in the BFD message.
  • 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 further provides a system for bidirectional forwarding detection, which includes the above-mentioned device applied to the bidirectional forwarding detection of the local device and the device applied to the bidirectional forwarding detection of the peer device.
  • Embodiments of the present invention also provide a software for performing the technical solutions described in the above embodiments and preferred embodiments.
  • Embodiments of the present invention also provide a storage medium.
  • the above storage medium may be configured to store program code for performing the following steps:
  • Step S402 the local device determines whether a BFD packet sent by the peer device is received in a detection period of the bidirectional forwarding detection BFD.
  • step S404 the local device detects the status of the specific flag bit of the BFD packet, where the specific flag bit is set to indicate that the local BFD session of the peer device is Whether it is in the Down state;
  • step S406 the local device switches the state of the local BFD session of the local device to the Down state when the local BFD session of the local device is in the Down state.
  • Embodiments of the present invention also provide a storage medium.
  • the above storage medium may be configured to store program code for performing the following steps:
  • step S502 the peer device determines whether the BFD packet sent by the local device is received in the detection period of the bidirectional forwarding detection BFD.
  • Step S504 If the BFD packet sent by the local device is not received, the peer device sends the BFD packet to the local device, and the state of the local BFD session of the peer device is switched to the Down state.
  • the BFD packet sent by the end device includes a specific flag bit, and the specific flag bit is set to indicate whether the local BFD session of the peer device is in the Down state.
  • the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), and a Random Access Memory (RAM).
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • the preferred embodiment of the present invention provides an MPLS VPN protection network as an example, and provides a method for improving the efficiency of the BFD in the MPLS VPN protection network.
  • the BFD can be more effectively and quickly perceived. Requirements for fast service switching in an MPLS VPN network environment.
  • the device when the tunnel virtual interface is faulty, the device can still receive the BFD packet.
  • the state of the BFD session is switched to the Down state.
  • the BFD session is received in the detection period.
  • the device B in the above scenario is not in the time of one detection cycle, in consideration of the presence of the Sta flag in the local BFD packet.
  • the Stabit bit in the BFD packet is set to "01", that is, the local BFD session is in the Down state.
  • the device A After receiving the packet, the device A first checks the Sta bit. If it is "01", Even if a BFD packet is received, the local session is still Down.
  • FIG. 8 is a flowchart of a method for bidirectional forwarding detection according to a preferred embodiment of the present invention. As shown in FIG. 8, the process includes the following steps:
  • Step S801 determining whether a BFD keep-alive packet (ie, a BFD packet) is received in one cycle;
  • Step S802 when receiving the BFD keep-alive message, detecting whether the Sta bit is set to "01";
  • Step S803 if the Sta bit is not set to "01", the BFD session remains in the Up state, and waits for the next period of BFD;
  • Step S804 if the Sta position is "01”, step S806 is performed;
  • step S805 if the BFD keep-alive packet is not detected, the Sta location is set to "01" when the BFD packet is encapsulated.
  • step S806 the state of the local BFD session is switched to the Down state.
  • the rule for determining that the BFD session is in the Down state is improved.
  • the conditions for determining that the BFD session is in the Down state are two, namely:
  • modules or steps of the present application can be implemented by a general computing device, which can be concentrated on a single computing device or distributed in a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the application is not limited to any particular hardware and software. Combine.
  • each module/unit in the above embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program stored in the memory by a processor. / instruction to achieve its corresponding function.
  • Embodiments of the invention are not limited to any specific form of combination of hardware and software.
  • the local device determines whether the BFD packet sent by the peer device is received in the detection period of the bidirectional forwarding detection BFD; if the BFD packet is received, the local device detects the BFD packet. If the local BFD session of the local device is in the Down state, the local device will switch the state of the local BFD session of the local device to the Down state. If the physical interface and the Layer 3 interface are faulty, the two BFD sessions can detect the BFD session in the Down state and improve the efficiency of BFD.

Landscapes

  • Engineering & Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Disclosed are a bidirectional forwarding detection method and apparatus. The method comprises: a local end device judging whether a BFD message sent by an opposite end device is received within a bidirectional forwarding detection (BFD) detection period; in the case where the BFD message is received, the local end device detecting the state of a specific flag bit of the BFD message, wherein the specific flag bit is configured to indicate whether a local BFD session of the opposite end device is in a Down state; and in the case where it is detected that the specific flag bit in the BFD message indicates that the local BFD session of the opposite end device is in the Down state, the local end device switching the state of a local BFD session of the local end device to the Down state. By means of the technical solution, the problem in the related art that in the case where a virtual interface fails while a physical port and a three-layer interface are normal, two BFD detection periods are needed to switch the state of a BFD session to a Down state is solved, thereby improving the efficiency of BFD.

Description

双向转发检测的方法和装置Method and device for bidirectional forwarding detection 技术领域Technical field
本申请涉及但不限于通信领域,特别是一种双向转发检测的方法和装置。The present application relates to, but is not limited to, the field of communications, and in particular, to a method and apparatus for bidirectional forwarding detection.
背景技术Background technique
双向转发检测(Bidirectional Forwarding Detection,简称为BFD)是一个简单的“Hello”协议,在很多方面,它与那些著名的路由协议的邻居检测部分相似。一对系统在它们之间的所建立会话的通道上周期性地发送检测报文,如果在所述一对系统中的某个系统在足够长的时间内没有收到其中的另一个系统的检测报文,则认为在这条到所述另一个系统的双向通道的某个部分发生了故障。在某些条件下,为了减少负荷,系统之间的发送和接收速率需要协商。Bidirectional Forwarding Detection (BFD) is a simple "Hello" protocol. In many respects, it is similar to the neighbor detection part of the well-known routing protocols. A pair of systems periodically send detection messages on the channel of the established session between them if one of the systems in the pair does not receive detection of another system for a sufficient amount of time The message is considered to have failed in a certain part of the bidirectional channel to the other system. Under certain conditions, in order to reduce the load, the transmission and reception rates between systems need to be negotiated.
根据BFD协议发送的检测报文是用户数据报协议(User Datagram Protocol,简称为UDP)报文,其中,BFD的控制报文格式如图1所示,控制报文格式中各字段表示的含义如下:The detection packet sent by the BFD protocol is a User Datagram Protocol (UDP) packet. The format of the BFD control packet is as shown in Figure 1. The meanings of the fields in the control packet format are as follows: :
Vers:BFD协议版本号,目前为1;Vers: BFD version number, currently 1;
Diag:诊断字,标明本地BFD系统最后一次会话Down的原因;Diag: Diagnostic word indicating the reason for the last session of the local BFD system to go Down;
Sta:BFD本地状态;Sta: BFD local status;
P:如果标记该标志,表示参数发生改变或发送系统进行连接时,请求对方立即进行确认和响应。否则,不请求对方进行确认和响应;P: If the flag is marked, indicating that the parameter has changed or the transmitting system is connected, the requesting party immediately confirms and responds. Otherwise, the other party is not requested to confirm and respond;
F:响应P标志置位的回应报文中必须将F标志置位;F: The F flag must be set in the response message in response to the P flag being set.
C:转发/控制分离标志;C: forwarding/control separation flag;
A:认证标识;A: certification mark;
D:查询请求,置位表示传输系统中的查询模式有效,设置成指示远端系统停止BFD控制报文的周期传输;D: Query request, the setting indicates that the query mode in the transmission system is valid, and is set to instruct the remote system to stop the periodic transmission of the BFD control message;
R:预留位; R: reserved bit;
Detect Mult:检测超时倍数,设置成检测方计算检测超时时间;Detect Mult: Detects the timeout multiple and sets the detection time to the detection time.
Length:报文长度;Length: length of the packet;
My Discreaminator:BFD会话连接本地标识符;My Discreaminator: BFD session connection local identifier;
Your Discreaminator:BFD会话连接远端标识符;Your Discreaminator: The BFD session connects to the remote identifier;
Desired Min Tx Interval:本地支持的最小BFD报文发送间隔;Desired Min Tx Interval: Minimum interval for sending BFD packets.
Required Min RX Interval:本地支持的最小BFD接收间隔;Required Min RX Interval: Minimum supported BFD reception interval;
Required Min Echo RX Interval:本地支持的最小Echo报文接收间隔。Required Min Echo RX Interval: Minimum supported Echo packet reception interval.
图2是根据相关技术的双向转发检测的方法的流程图,在图2中示出了判断BFD会话为Down的过程。例如,在异步模式下,系统之间相互周期性地发送BFD控制包,如果某个系统在检测时间内没有收到所述另一个系统发来的BFD控制报文,就确定会话处于Down状态。或者在查询模式下,假定每个系统都有一个独立的方法确认它连接到所述另一个系统。这样一旦建立一个BFD会话以后,系统停止发送BFD控制报文,除非某个系统需要显式地验证连接性。在需要显式验证连接性的情况下,系统发送一系列短的BFD控制包,如果在检测时间内没有收到返回的报文就确定会话处于Down状态(系统停机),如果收到所述另一个系统的回应报文,则重复上述过程。2 is a flowchart of a method of bidirectional forwarding detection according to the related art, and a process of determining that a BFD session is Down is shown in FIG. For example, in the asynchronous mode, the system periodically sends BFD control packets to each other. If a system does not receive BFD control packets from the other system within the detection time, it determines that the session is in the Down state. Or in query mode, assume that each system has an independent method to confirm that it is connected to the other system. After the BFD session is established, the system stops sending BFD control packets unless a system needs to explicitly verify connectivity. In the case that the connectivity needs to be explicitly verified, the system sends a series of short BFD control packets. If the returned packets are not received within the detection time, the system determines that the session is in the Down state (system shutdown). Repeat the above process for a system response message.
图3是根据相关技术的MPLS VPN保护网络拓扑结构示意图,如图3所示,在多协议标签交换(Multi-Protocol Label Switch,简称为MPLS)虚拟专用网(Virtual Private Network,简称为VPN)保护环境中,业务配置主备保护路径,且主业务外层通过隧道转发,主业务启用BFD检测。FIG. 3 is a schematic diagram of a topology structure of an MPLS VPN protection network according to the related art. As shown in FIG. 3, a multi-protocol label switch (MPLS) virtual private network (VPN) protection is provided. In the environment, the service is configured with the active and standby protection paths, and the outer layer of the main service is forwarded through the tunnel.
当一般情况下主业务外层隧道的物理输出端口或者三层输出接口出现故障时,故障链路的两端设备在BFD的检测周期内都可以因为没有收到BFD保活报文而将会话的状态切换为Down状态,业务保护功能可以在检测周期内进行切换。When the physical output port or the Layer 3 output interface of the primary service is faulty, the devices at both ends of the faulty link can receive the BFD keep-alive message and the session is not received. The state is switched to the Down state, and the service protection function can be switched during the detection period.
本申请的发明人在研究过程中发现:当隧道的虚接口出现故障,而物理端口和三层接口正常时,本地A设备业务因为输出接口处于Down状态而不再发送BFD报文,B设备在检测周期内没有收到规定的BFD报文而将会话的状态切换为Down状态,同时也不再继续发送BFD报文,但是,在会话的 状态切换为Down状态之前B设备会继续发送BFD报文,且A设备也可以收到该报文,此过程导致A设备不会立即将BFD会话的状态切换为Down状态,只有等到下一个BFD的检测周期,A设备才会将会话的状态切换为Down状态,实际在该过程中A设备需要两个BFD的检测周期才将BFD会话的状态切换为Down状态。The inventor of the present application found that when the virtual interface of the tunnel fails and the physical port and the Layer 3 interface are normal, the local A device service does not send BFD packets because the output interface is in the Down state. During the detection period, the specified BFD packet is not received, and the state of the session is switched to the Down state. The BFD packet is not sent continuously. However, in the session. The B device will continue to send BFD packets before the state is switched to the Down state. The device can also receive the BPDUs. The process will not immediately change the state of the BFD session to the Down state. During the detection period, the A device will switch the state of the session to the Down state. In the process, the A device needs to be in the BFD session to switch the state of the BFD session to the Down state.
针对相关技术中在虚接口出现故障而物理端口和三层接口正常的情况下,需要两个BFD的检测周期才能将BFD会话的状态切换为Down状态的问题,目前尚未提出有效的解决方案。In the related art, when the virtual interface fails and the physical port and the Layer 3 interface are normal, two BFD detection cycles are required to switch the BFD session state to the Down state. Currently, no effective solution has been proposed.
发明内容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.
本申请提供了一种双向转发检测的方法和装置,以至少解决相关技术中在虚接口出现故障而物理端口和三层接口正常的情况下,需要两个BFD的检测周期才能将BFD会话的状态切换为Down状态的问题。The present application provides a method and apparatus for bidirectional forwarding detection, in order to solve the problem that at least two BFD detection periods are required to determine the state of a BFD session in the case where the virtual interface fails and the physical interface and the Layer 3 interface are normal. The problem of switching to the Down state.
根据本申请的一个方面,提供了一种双向转发检测的方法,包括:本端设备判断在一个双向转发检测BFD的检测周期内是否接收到由对端设备发送的BFD报文;在接收到所述BFD报文的情况下,所述本端设备检测所述BFD报文的特定标志位的状态,其中,所述特定标志位设置成指示所述对端设备的本地BFD会话是否处于Down状态;在检测到所述BFD报文中的所述特定标志位指示所述对端设备的本地BFD会话处于Down状态的情况下,所述本端设备将所述本端设备的本地BFD会话的状态切换为Down状态。According to an aspect of the present application, a method for bidirectional forwarding detection is provided, which includes: determining, by a local device, whether a BFD packet sent by a peer device is received in a detection period of a bidirectional forwarding detection BFD; In the case of the BFD packet, the local device detects the status of the specific flag bit of the BFD packet, where the specific flag bit is set to indicate whether the local BFD session of the peer device is in the Down state. The local device switches the state of the local BFD session of the local device when the local BFD session in the BFD packet indicates that the local BFD session of the peer device is in the Down state. It is in the Down state.
可选地,所述特定标志位包括:BFD报文中的本地状态Sta位。Optionally, the specific flag bit includes: a local state Sta bit in the BFD message.
可选地,所述方法还包括:所述对端设备判断在一个BFD的检测周期内是否接收到所述本端设备发送的BFD报文;在判断到未接收到所述本端设备发送的BFD报文的情况下,所述对端设备发送所述BFD报文至所述本端设备,并将所述对端设备的本地BFD会话的状态切换为Down状态,其中,所述BFD报文的所述特定标志位指示所述对端设备的本地BFD会话处于Down状态。 Optionally, the method further includes: determining, by the peer device, whether the BFD packet sent by the local device is received in a BFD detection period; and determining that the local device sends the In the case of a BFD packet, the peer device sends the BFD packet to the local device, and the state of the local BFD session of the peer device is switched to the Down state, where the BFD packet is sent. The specific flag bit indicates that the local BFD session of the peer device is in the Down state.
可选地,在所述本端设备在一个BFD的检测周期内未接收到由所述对端设备发送的所述BFD报文的情况下,所述方法还包括:所述本端设备将所述本端设备的本地BFD会话的状态切换为Down状态。Optionally, in a case that the local device does not receive the BFD packet sent by the peer device in a BFD detection period, the method further includes: the local device device The state of the local BFD session of the local device is switched to the Down state.
根据本申请的另一个方面,还提供了一种双向转发检测的方法,包括:对端设备判断在一个双向转发检测BFD的检测周期内是否接收到由本端设备发送的BFD报文;在未接收到所述本端设备发送的BFD报文的情况下,所述对端设备发送BFD报文至所述本端设备,并将所述对端设备的本地BFD会话的状态切换为Down状态,其中,所述对端设备发送的BFD报文包括特定标志位,所述特定标志位设置成指示所述对端设备的本地BFD会话是否处于Down状态。According to another aspect of the present application, a method for bidirectional forwarding detection is provided, including: determining, by a peer device, whether a BFD packet sent by the local device is received in a detection period of a bidirectional forwarding detection BFD; In the case of the BFD packet sent by the local device, the peer device sends a BFD packet to the local device, and the state of the local BFD session of the peer device is switched to the Down state, where The BFD packet sent by the peer device includes a specific flag bit, and the specific flag bit is set to indicate whether the local BFD session of the peer device is in the Down state.
可选地,所述特定标志位包括:BFD报文中的本地状态Sta位。Optionally, the specific flag bit includes: a local state Sta bit in the BFD message.
可选地,在所述对端设备发送BFD报文至所述本端设备,并将所述对端设备的本地BFD会话的状态切换为Down状态的步骤之后,所述方法还包括:所述本端设备判断在一个BFD的检测周期内是否接收到所述对端设备的BFD报文;在接收到所述对端设备的BFD报文的情况下,所述本端设备检测所述对端设备的BFD报文的所述特定标志位的状态;在检测到所述特定标志位指示所述对端设备的本地BFD会话处于Down状态的情况下,所述本端设备将所述本端设备的本地BFD会话的状态切换为Down状态。Optionally, after the step of the BFD packet being sent to the local device by the peer device, and the state of the local BFD session of the peer device is switched to the Down state, the method further includes: The local device determines whether the BFD packet of the peer device is received in the detection period of the BFD session. If the BFD packet of the peer device is received, the local device detects the peer end. The state of the specific flag bit of the BFD packet of the device; the local device detects the local device when the local device indicates that the local BFD session of the peer device is in the Down state. The state of the local BFD session is switched to the Down state.
可选地,在所述本端设备未接收到由所述对端设备发送的BFD报文的情况下,所述方法还包括:所述本端设备将所述本端设备的本地BFD会话的状态切换为Down状态。Optionally, in a case that the local device does not receive the BFD packet sent by the peer device, the method further includes: the local device, the local BFD session of the local device The state is switched to the Down state.
本申请另外提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现所述方法。The application further provides a computer readable storage medium storing computer executable instructions that are implemented when the computer executable instructions are executed.
根据本申请的另一个方面,还提供了一种双向转发检测的装置,应用于本端设备,包括:第一判断模块,设置成判断在一个双向转发检测BFD的检测周期内是否接收到由对端设备发送的BFD报文;检测模块,设置成在接收到所述BFD报文的情况下,检测所述BFD报文的特定标志位的状态,其中,所述特定标志位设置成指示所述对端设备的本地BFD会话是否处于Down状态;切换模块,设置成在检测到所述BFD报文中的所述特定标志位指示所 述对端设备的本地BFD会话处于Down状态的情况下,将所述本端设备的本地BFD会话的状态切换为Down状态。According to another aspect of the present application, a device for detecting bidirectional forwarding is further applied to the local device, including: a first determining module, configured to determine whether a pair is received during a detection period of a bidirectional forwarding detection BFD a BFD packet sent by the end device; the detecting module is configured to detect a state of the specific flag bit of the BFD packet when the BFD packet is received, where the specific flag bit is set to indicate the Whether the local BFD session of the peer device is in the Down state; the switching module is configured to detect the specific flag bit indication in the BFD packet If the local BFD session of the peer device is in the Down state, the state of the local BFD session of the local device is switched to the Down state.
根据本申请的另一个方面,还提供了一种双向转发检测的装置,应用于对端设备,包括:第二判断模块,设置成判断在一个双向转发检测BFD的检测周期内是否接收到由本端设备发送的BFD报文;处理模块,设置成在未接收到由所述本端设备发送的BFD报文的情况下,发送BFD报文至所述本端设备,并将所述对端设备的本地BFD会话的状态切换为Down状态,其中,由所述对端设备发送的BFD报文包括特定标志位,所述特定标志位设置成指示所述对端设备的本地BFD会话是否处于Down状态。According to another aspect of the present application, a device for bidirectional forwarding detection is provided, which is applied to a peer device, and includes: a second judging module, configured to determine whether the local end is received during a detection period of a bidirectional forwarding detection BFD a BFD packet sent by the device, where the processing module is configured to send the BFD packet to the local device, and the peer device, if the BFD packet sent by the local device is not received. The state of the local BFD session is switched to the Down state, where the BFD packet sent by the peer device includes a specific flag bit, and the specific flag bit is set to indicate whether the local BFD session of the peer device is in the Down state.
在本申请的技术方案中,本端设备判断在一个双向转发检测BFD的检测周期内是否接收到由对端设备发送的BFD报文;在接收到BFD报文的情况下,本端设备检测BFD报文的特定标志位的状态,其中,特定标志位设置成指示对端设备的本地BFD会话是否处于Down状态;在检测到BFD报文中的特定标志位指示对端设备的本地BFD会话处于Down状态的情况下,本端设备将本端设备的本地BFD会话的状态切换为Down状态,解决了相关技术中在虚接口出现故障而物理端口和三层接口正常的情况下,需要两个BFD的检测周期才能检测到BFD会话处于Down状态的问题,提高了BFD的效率。In the technical solution of the present application, the local device determines whether the BFD packet sent by the peer device is received in the detection period of the bidirectional forwarding detection BFD. When the BFD packet is received, the local device detects the BFD packet. The status of the specific flag bit of the packet, where the specific flag bit is set to indicate whether the local BFD session of the peer device is in the Down state; the specific flag bit in the BFD packet is detected to indicate that the local BFD session of the peer device is Down. In the case of the state, the local device switches the state of the local BFD session of the local device to the Down state. In the related art, when the virtual interface fails and the physical port and the Layer 3 interface are normal, two BFDs are required. The detection period can detect the problem that the BFD session is in the Down state, which improves the efficiency of BFD.
在阅读并理解了附图和详细描述后,可以明白其他方面。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是根据相关技术的BFD报文的结构示意图;1 is a schematic structural diagram of a BFD packet according to the related art;
图2是根据相关技术的双向转发检测的方法的流程图;2 is a flowchart of a method of bidirectional forwarding detection according to the related art;
图3是根据相关技术的MPLS VPN保护网络拓扑结构示意图;3 is a schematic diagram of a topology structure of an MPLS VPN protection network according to the related art;
图4是根据本发明实施例的双向转发检测的方法的流程图一;4 is a flowchart 1 of a method for bidirectional forwarding detection according to an embodiment of the present invention;
图5是根据本发明实施例的双向转发检测的方法的流程图二; FIG. 5 is a second flowchart of a method for bidirectional forwarding detection according to an embodiment of the present invention; FIG.
图6是根据本发明实施例的双向转发检测的装置的框图一;6 is a block diagram 1 of an apparatus for bidirectional forwarding detection according to an embodiment of the present invention;
图7是根据本发明实施例的双向转发检测的装置的框图二;7 is a block diagram 2 of an apparatus for bidirectional forwarding detection according to an embodiment of the present invention;
图8是根据本发明优选实施例的双向转发检测的方法的流程图。8 is a flow chart of a method of bidirectional forwarding detection in accordance with a preferred embodiment of the present invention.
本发明的较佳实施方式Preferred embodiment 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.
在本实施例中提供了一种双向转发检测的方法,图4是根据本发明实施例的双向转发检测的方法的流程图一,如图4所示,该流程包括如下步骤:In this embodiment, a method for bidirectional forwarding detection is provided. FIG. 4 is a flowchart 1 of a method for bidirectional forwarding detection according to an embodiment of the present invention. As shown in FIG. 4, the process includes the following steps:
步骤S402,本端设备判断在一个双向转发检测BFD的检测周期内是否接收到对端设备的BFD报文;Step S402, the local device determines whether the BFD packet of the peer device is received in the detection period of the bidirectional forwarding detection BFD.
步骤S404,若接收到BFD报文,本端设备检测BFD报文的特定标志位的状态,其中,特定标志位设置成指示对端设备的本地BFD会话是否处于Down状态;Step S404: If the BFD packet is received, the local device detects the status of the specific flag bit of the BFD packet, where the specific flag bit is set to indicate whether the local BFD session of the peer device is in the Down state.
步骤S406,若检测到BFD报文中的特定标志位指示对端设备的本地BFD会话处于Down状态,本端设备将本端设备的本地BFD会话的状态切换为Down状态。In step S406, if the specific flag bit in the BFD packet is detected to indicate that the local BFD session of the peer device is in the Down state, the local device switches the state of the local BFD session of the local device to the Down state.
通过上述步骤,在接收到BFD报文后,若检测到BFD报文中的特定标志位指示对端设备的本地BFD会话处于Down状态,则将本端设备的本地BFD会话的状态切换为Down状态,不必再等待下一个BFD的检测周期,从而缩短了对对端设备的Down状态的进行检测所需的时间,解决了相关技术中在虚接口出现故障而物理端口和三层接口正常的情况下,需要两个BFD的检测周期进行检测才能将BFD会话的状态切换为Down状态的问题,提高了BFD的时效性。After the BFD packet is received, if the BFD packet is in the Down state, the local BFD session of the local device is switched to the Down state. The time required for detecting the Down state of the peer device is shortened, and the time required for detecting the Down state of the peer device is shortened, and the physical interface and the Layer 3 interface are faulty in the related art. The BFD session detection period is required to detect the BFD session status to the Down state, which improves the timeliness of BFD.
本发明实施例提供的双向转发检测的方法可以应用于异步模式或者查询 模式。另外,虽然在本发明实施例中将以MPLS VPN场景为例进行描述说明,但是在其他的应用场景可以应用本发明实施例提供的双向转发检测的方法的,在此并不限制。The method for bidirectional forwarding detection provided by the embodiment of the present invention can be applied to an asynchronous mode or a query. mode. In addition, although the MPLS VPN scenario is taken as an example in the embodiment of the present invention, the method of the bidirectional forwarding detection provided by the embodiment of the present invention may be applied in other application scenarios, which is not limited herein.
可选地,上述的特定标志位可以是新增的字段,也可以是利用原有的字段。例如,特定标志位可以是BFD报文中的本地状态Sta位。Optionally, the specific flag bit may be a new field, or may use an original field. For example, the specific flag bit may be the local state Sta bit in the BFD message.
可选地,对端设备判断在一个BFD的检测周期内是否接收到本端设备发送的BFD报文;在判断到未接收到本端设备发送的BFD报文的情况下,对端设备发送BFD报文至本端设备,并将对端设备的本地BFD会话切换为Down状态,其中,BFD报文的特定标志位指示对端设备的本地BFD会话处于Down状态。通过该方式,从而生成了携带特定标志位的BFD报文。Optionally, the peer device determines whether the BFD packet sent by the local device is received in the detection period of the BFD session. If the BFD packet sent by the local device is not received, the peer device sends the BFD packet. The packet is sent to the local device, and the local BFD session of the peer device is switched to the Down state. The specific BFD packet indicates that the local BFD session of the peer device is Down. In this way, a BFD packet carrying a specific flag bit is generated.
可选地,在本端设备未接收到BFD报文的情况下,本端设备将本端设备的本地BFD会话的状态切换为Down状态。通过该方式,提供了另一种将本端设备的本地BFD会话的状态切换为Down状态的方式。Optionally, the local device switches the state of the local BFD session of the local device to the Down state when the local device does not receive the BFD packet. In this manner, another manner of switching the state of the local BFD session of the local device to the Down state is provided.
本发明实施例还提供了一种双向转发检测的方法,图5是根据本发明实施例的双向转发检测的方法的流程图二,如图5所示,该方法包括如下步骤:The embodiment of the present invention further provides a method for bidirectional forwarding detection. FIG. 5 is a second flowchart of a method for bidirectional forwarding detection according to an embodiment of the present invention. As shown in FIG. 5, the method includes the following steps:
步骤S502,对端设备判断在一个双向转发检测BFD的检测周期内是否接收到由本端设备发送的BFD报文;In step S502, the peer device determines whether the BFD packet sent by the local device is received in the detection period of the bidirectional forwarding detection BFD.
步骤S504,若未接收到由本端设备发送的BFD报文,对端设备发送BFD报文至本端设备,并将对端设备的本地BFD会话的状态切换为Down状态,其中,对端设备发送的BFD报文包括特定标志位,特定标志位设置成指示对端设备的本地BFD会话是否处于Down状态。Step S504: If the BFD packet sent by the local device is not received, the peer device sends the BFD packet to the local device, and the state of the local BFD session of the peer device is switched to the Down state, where the peer device sends The BFD packet includes a specific flag bit, and the specific flag bit is set to indicate whether the local BFD session of the peer device is in the Down state.
可选地,特定标志位包括:BFD报文中的本地状态Sta位。Optionally, the specific flag bit includes: a local state Sta bit in the BFD message.
可选地,在对端设备发送BFD报文至本端设备,并将对端设备的本地BFD会话的状态切换为Down状态的步骤之后,所述双向转发检测的方法还包括:本端设备判断在一个BFD的检测周期内是否接收到对端设备的BFD报文;在接收到对端设备的BFD报文的情况下,本端设备检测对端设备的BFD报文的特定标志位的状态;在检测到特定标志位指示对端设备的本地BFD会话处于Down状态的情况下,本端设备将本端设备的本地BFD会话 的状态切换为Down状态。Optionally, after the step of the BFD packet sent by the peer device to the local device and the state of the local BFD session of the peer device is switched to the Down state, the method for detecting the bidirectional forwarding further includes: determining by the local device Whether the BFD packet of the peer device is received during the detection period of the BFD session. When the BFD packet of the peer device is received, the local device detects the state of the specific flag bit of the BFD packet of the peer device. The local device will perform local BFD session of the local device when the local device indicates that the local BFD session of the peer device is in the Down state. The state is switched to the Down state.
可选地,在本端设备未接收到对端设备的BFD报文的情况下,本端设备将本端设备的本地BFD会话的状态切换为Down状态。Optionally, the local device switches the state of the local BFD session of the local device to the Down state when the local device does not receive the BFD packet from the peer device.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如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 related art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD-ROM). The instructions include a number of instructions for causing a terminal device (which may be a cell phone, computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention.
本发明实施例另外提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现上述方法。Embodiments of the present invention further provide a computer readable storage medium storing computer executable instructions that are implemented when the computer executable instructions are executed.
在本实施例中还提供了一种双向转发检测的装置,应用于本端设备,该装置设置成实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, a device for bidirectional forwarding detection is further provided, which is applied to the local device. The device is configured to implement the foregoing embodiments and preferred 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 apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图6是根据本发明实施例的双向转发检测的装置的框图一,如图6所示,该装置包括:第一判断模块62、检测模块64和切换模块66,其中,FIG. 6 is a block diagram of an apparatus for bidirectional forwarding detection according to an embodiment of the present invention. As shown in FIG. 6, the apparatus includes: a first judging module 62, a detecting module 64, and a switching module 66, where
第一判断模块62,设置成判断在一个双向转发检测BFD的检测周期内是否接收到由对端设备发送的BFD报文;检测模块64,耦合至第一判断模块62,设置成在接收到BFD报文的情况下,检测BFD报文的特定标志位的状态,其中,特定标志位设置成指示对端设备的本地BFD会话是否处于Down状态;切换模块66,耦合至检测模块64,设置成在检测到BFD报文的特定标志位指示对端设备的本地BFD会话处于Down状态的情况下,将本端设备的本地BFD会话的状态切换为Down状态。The first judging module 62 is configured to determine whether the BFD packet sent by the peer device is received during the detection period of the bidirectional forwarding detection BFD. The detecting module 64 is coupled to the first judging module 62 and configured to receive the BFD. In the case of the packet, the state of the specific flag bit of the BFD packet is detected, wherein the specific flag bit is set to indicate whether the local BFD session of the peer device is in the Down state; the switching module 66 is coupled to the detecting module 64, and is configured to be in the If the local BFD session of the local device is in the Down state, the local BFD session of the local device is switched to the Down state.
可选地,特定标志位包括:BFD报文中的本地状态Sta位。Optionally, the specific flag bit includes: a local state Sta bit in the BFD message.
可选地,切换模块66还设置成:在本端设备未接收到BFD报文的情况 下,将本端设备的本地BFD会话的状态切换为Down状态。Optionally, the switching module 66 is further configured to: when the local device does not receive the BFD packet. The state of the local BFD session of the local device is switched to the Down state.
本实施例还提供了一种双向转发检测的装置,应用于对端设备,该装置设置成实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。The embodiment also provides a device for detecting the bidirectional forwarding, which is applied to the peer device, and the device is configured to implement the foregoing embodiments and preferred 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 apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图7是根据本发明实施例的双向转发检测的装置的框图二,如图7所示,该装置包括:第二判断模块72和处理模块74,其中,FIG. 7 is a block diagram 2 of an apparatus for bidirectional forwarding detection according to an embodiment of the present invention. As shown in FIG. 7, the apparatus includes: a second judging module 72 and a processing module 74, where
第二判断模块72,设置成判断在一个双向转发检测BFD的检测周期内是否接收到由本端设备发送的BFD报文;处理模块74,耦合至第二判断模块72,设置成在未接收到由本端设备发送的BFD报文的情况下,发送BFD报文至本端设备,并将对端设备的本地BFD会话的状态切换为Down状态,其中,由对端设备发送的BFD报文包括特定标志位,特定标志位设置成指示对端设备的本地BFD会话是否处于Down状态。The second judging module 72 is configured to determine whether the BFD packet sent by the local device is received in the detection period of the bidirectional forwarding detection BFD; the processing module 74 is coupled to the second judging module 72, and is configured not to receive the BFD packet. In the case of a BFD packet sent by the peer device, the BFD packet is sent to the local device, and the state of the local BFD session of the peer device is switched to the Down state. The BFD packet sent by the peer device includes the specific flag. The bit is set to indicate whether the local BFD session of the peer device is in the Down state.
可选地,特定标志位包括:BFD报文中的本地状态Sta位。Optionally, the specific flag bit includes: a local state Sta bit in the BFD message.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述模块分别位于多个处理器中。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 further provides a system for bidirectional forwarding detection, which includes the above-mentioned device applied to the bidirectional forwarding detection of the local device and the device applied to the bidirectional forwarding detection of the peer device.
本发明的实施例还提供了一种软件,该软件用于执行上述实施例及优选实施方式中描述的技术方案。Embodiments of the present invention also provide a software for performing the technical solutions described in the above embodiments and preferred embodiments.
本发明的实施例还提供了一种存储介质。在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:Embodiments of the present invention also provide a storage medium. In this embodiment, the above storage medium may be configured to store program code for performing the following steps:
步骤S402,本端设备判断在一个双向转发检测BFD的检测周期内是否接收到由对端设备发送的BFD报文;Step S402, the local device determines whether a BFD packet sent by the peer device is received in a detection period of the bidirectional forwarding detection BFD.
步骤S404,在接收到BFD报文的情况下,本端设备检测BFD报文的特定标志位的状态,其中,特定标志位设置成指示对端设备的本地BFD会话是 否处于Down状态;In step S404, the local device detects the status of the specific flag bit of the BFD packet, where the specific flag bit is set to indicate that the local BFD session of the peer device is Whether it is in the Down state;
步骤S406,在检测到BFD报文的特定标志位指示对端设备的本地BFD会话处于Down状态的情况下,本端设备将本端设备的本地BFD会话的状态切换为Down状态。In step S406, the local device switches the state of the local BFD session of the local device to the Down state when the local BFD session of the local device is in the Down state.
本发明的实施例还提供了一种存储介质。在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:Embodiments of the present invention also provide a storage medium. In this embodiment, the above storage medium may be configured to store program code for performing the following steps:
步骤S502,对端设备判断在一个双向转发检测BFD的检测周期内是否接收到由本端设备发送的BFD报文;In step S502, the peer device determines whether the BFD packet sent by the local device is received in the detection period of the bidirectional forwarding detection BFD.
步骤S504,在未接收到由本端设备发送的BFD报文的情况下,对端设备发送BFD报文至本端设备,并将对端设备的本地BFD会话的状态切换为Down状态,其中,对端设备发送的BFD报文包括特定标志位,特定标志位设置成指示对端设备的本地BFD会话是否处于Down状态。Step S504: If the BFD packet sent by the local device is not received, the peer device sends the BFD packet to the local device, and the state of the local BFD session of the peer device is switched to the Down state. The BFD packet sent by the end device includes a specific flag bit, and the specific flag bit is set to indicate whether the local BFD session of the peer device is in the Down state.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in the embodiment, the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), and a Random Access Memory (RAM). A variety of media that can store program code, such as a hard disk, a disk, or an optical disk.
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。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.
为了使本发明实施例的描述更加清楚,下面结合优选实施例进行描述和说明。In order to make the description of the embodiments of the present invention more clear, the following description and description are given in conjunction with the preferred embodiments.
本发明优选实施例以MPLS VPN保护网络为例,提供了一种提高MPLS VPN保护网络中BFD的效率的方法,当网络侧链路发生故障时可以保证BFD更有效和快速的进行感知,以达到MPLS VPN网络环境中业务快速切换的要求。The preferred embodiment of the present invention provides an MPLS VPN protection network as an example, and provides a method for improving the efficiency of the BFD in the MPLS VPN protection network. When the network side link fails, the BFD can be more effectively and quickly perceived. Requirements for fast service switching in an MPLS VPN network environment.
在相关技术中,隧道虚接口故障时本地仍能接收到BFD报文,BFD会话的状态切换为Down状态完全依赖于是否在检测周期内接收到BFD报文。In the related art, when the tunnel virtual interface is faulty, the device can still receive the BFD packet. The state of the BFD session is switched to the Down state. The BFD session is received in the detection period.
在本发明优选实施例中,考虑到实际BFD报文中存在本地状态的Sta标志位,本发明优选实施例中在上述场景的设备B在一个检测周期的时间内未 收到BFD报文时,将BFD报文中的Sta位置位“01”,即本地BFD会话处于Down状态,设备A端在收到该报文后首先检查该Sta位,如果为“01”,则即使收到了BFD报文,本地仍会话Down。In a preferred embodiment of the present invention, in the preferred embodiment of the present invention, the device B in the above scenario is not in the time of one detection cycle, in consideration of the presence of the Sta flag in the local BFD packet. When the BFD packet is received, the Stabit bit in the BFD packet is set to "01", that is, the local BFD session is in the Down state. After receiving the packet, the device A first checks the Sta bit. If it is "01", Even if a BFD packet is received, the local session is still Down.
图8是根据本发明优选实施例的双向转发检测的方法的流程图,如图8所示,该流程包括如下步骤:FIG. 8 is a flowchart of a method for bidirectional forwarding detection according to a preferred embodiment of the present invention. As shown in FIG. 8, the process includes the following steps:
步骤S801,判断在一个周期内是否收到BFD保活报文(即BFD报文);Step S801, determining whether a BFD keep-alive packet (ie, a BFD packet) is received in one cycle;
步骤S802,在接收到BFD保活报文时,检测Sta位是否置为“01”;Step S802, when receiving the BFD keep-alive message, detecting whether the Sta bit is set to "01";
步骤S803,若Sta位没有置为“01”,BFD会话保持Up状态,并等待下一周期的BFD;Step S803, if the Sta bit is not set to "01", the BFD session remains in the Up state, and waits for the next period of BFD;
步骤S804,若所述Sta位置为“01”,执行步骤S806;Step S804, if the Sta position is "01", step S806 is performed;
步骤S805,未检测到BFD保活报文的情况下,封装BFD报文时将所述Sta位置为“01”;In step S805, if the BFD keep-alive packet is not detected, the Sta location is set to "01" when the BFD packet is encapsulated.
步骤S806,本地BFD会话的状态切换为Down状态。In step S806, the state of the local BFD session is switched to the Down state.
通过上述方式,完善了判断BFD会话处于Down状态的规则。即判断BFD会话处于Down状态的条件为两个,分别为:In the above manner, the rule for determining that the BFD session is in the Down state is improved. The conditions for determining that the BFD session is in the Down state are two, namely:
1)收到的BFD报文中的Sta位置为“01”;1) The Sta position in the received BFD packet is "01";
2)检测周期内未收到BFD报文。2) No BFD packets were received during the detection period.
上述的两个条件只要有一个满足即删除本地的BFD会话,从而保证了在检测周期内感知到链路故障,使得业务保护可以更快速的切换。解决了在隧道虚接口Down但物理端口仍处于Up状态的情况下,需要双个检测周期的时间进行检测的问题,保证了业务的切换性能要求。If the above two conditions are met, the local BFD session is deleted, so that the link fault is detected during the detection period, so that the service protection can be switched more quickly. This section solves the problem that when the virtual interface of the tunnel is Down but the physical port is still Up, the detection time of two detection cycles is required to ensure the switching performance of the service.
显然,本领域的技术人员应该明白,上述的本申请的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本申请不限制于任何特定的硬件和软件 结合。Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, which can be concentrated on a single computing device or distributed in a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the application is not limited to any particular hardware and software. Combine.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储于存储器中的程序/指令来实现其相应功能。本发明实施例不限制于任何特定形式的硬件和软件的结合。One of ordinary skill in the art will appreciate that all or a portion of the above steps may be performed by a program to instruct related hardware, such as a processor, which may be stored in a computer readable storage medium, such as a read only memory, disk or optical disk. Wait. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the above embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program stored in the memory by a processor. / instruction to achieve its corresponding function. Embodiments of the invention are not limited to any specific form of combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above description is only the preferred embodiment of the present invention, 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的检测周期内是否接收到由对端设备发送的BFD报文;若接收到BFD报文,本端设备检测BFD报文的特定标志位的状态;若检测到BFD报文中的特定标志位指示对端设备的本地BFD会话处于Down状态,本端设备将本端设备的本地BFD会话的状态切换为Down状态,解决了相关技术中在虚接口出现故障而物理端口和三层接口正常的情况下,需要两个BFD的检测周期才能检测到BFD会话处于Down状态的问题,提高了BFD的效率。 In the technical solution of the present application, the local device determines whether the BFD packet sent by the peer device is received in the detection period of the bidirectional forwarding detection BFD; if the BFD packet is received, the local device detects the BFD packet. If the local BFD session of the local device is in the Down state, the local device will switch the state of the local BFD session of the local device to the Down state. If the physical interface and the Layer 3 interface are faulty, the two BFD sessions can detect the BFD session in the Down state and improve the efficiency of BFD.

Claims (10)

  1. 一种双向转发检测的方法,包括:A method for bidirectional forwarding detection, comprising:
    本端设备判断在一个双向转发检测BFD的检测周期内是否接收到由对端设备发送的BFD报文;The local device determines whether the BFD packet sent by the peer device is received during the detection period of the bidirectional forwarding detection BFD.
    在接收到所述BFD报文的情况下,所述本端设备检测所述BFD报文的特定标志位的状态,其中,所述特定标志位设置成指示所述对端设备的本地BFD会话是否处于Down状态;When the BFD packet is received, the local device detects the status of the specific flag bit of the BFD packet, where the specific flag bit is set to indicate whether the local BFD session of the peer device is In the Down state;
    在检测到所述BFD报文中的所述特定标志位指示所述对端设备的本地BFD会话处于Down状态的情况下,所述本端设备将所述本端设备的本地BFD会话的状态切换为Down状态。The local device switches the state of the local BFD session of the local device when the local BFD session in the BFD packet indicates that the local BFD session of the peer device is in the Down state. It is in the Down state.
  2. 根据权利要求1所述的方法,其中,所述特定标志位包括:所述BFD报文中的本地状态Sta位。The method of claim 1, wherein the specific flag bit comprises: a local state Sta bit in the BFD message.
  3. 根据权利要求1所述的方法,所述方法还包括:The method of claim 1 further comprising:
    所述对端设备判断在一个BFD的检测周期内是否接收到所述本端设备发送的BFD报文;The peer device determines whether the BFD packet sent by the local device is received in a BFD detection period;
    在判断到未接收到所述本端设备发送的BFD报文的情况下,所述对端设备发送所述BFD报文至所述本端设备,并将所述对端设备的本地BFD会话的状态切换为Down状态,其中,所述BFD报文的所述特定标志位指示所述对端设备的本地BFD会话处于Down状态。When it is determined that the BFD packet sent by the local device is not received, the peer device sends the BFD packet to the local device, and the local BFD session of the peer device is The state is switched to the Down state, where the specific flag bit of the BFD packet indicates that the local BFD session of the peer device is in the Down state.
  4. 根据权利要求1至3中任一项所述的方法,其中,在所述本端设备在一个BFD的检测周期内未接收到由所述对端设备发送的所述BFD报文的情况下,所述方法还包括:The method according to any one of claims 1 to 3, wherein, in a case where the local device does not receive the BFD packet sent by the peer device within a detection period of a BFD, The method further includes:
    所述本端设备将所述本端设备的本地BFD会话的状态切换为Down状态。The local device switches the state of the local BFD session of the local device to the Down state.
  5. 一种双向转发检测的方法,包括:A method for bidirectional forwarding detection, comprising:
    对端设备判断在一个双向转发检测BFD的检测周期内是否接收到由本端设备发送的BFD报文;The peer device determines whether the BFD packet sent by the local device is received in the detection period of the bidirectional forwarding detection BFD.
    在未接收到由所述本端设备发送的BFD报文的情况下,所述对端设备发 送BFD报文至所述本端设备,并将所述对端设备的本地BFD会话的状态切换为Down状态,其中,所述对端设备发送的BFD报文包括特定标志位,所述特定标志位设置成指示所述对端设备的本地BFD会话是否处于Down状态。In the case that the BFD packet sent by the local device is not received, the peer device sends the BFD packet. Sending a BFD packet to the local device, and switching the state of the local BFD session of the peer device to the Down state, where the BFD packet sent by the peer device includes a specific flag bit, the specific flag The bit is set to indicate whether the local BFD session of the peer device is in the Down state.
  6. 根据权利要求5所述的方法,其中,所述特定标志位包括:所述BFD报文中的本地状态Sta位。The method of claim 5, wherein the specific flag bit comprises: a local state Sta bit in the BFD message.
  7. 根据权利要求5所述的方法,在所述对端设备发送BFD报文至所述本端设备,并将所述对端设备的本地BFD会话的状态切换为Down状态的步骤之后,所述方法还包括:The method according to claim 5, after the step of the peer device transmitting the BFD packet to the local device and switching the state of the local BFD session of the peer device to the Down state, the method Also includes:
    所述本端设备判断在一个BFD的检测周期内是否接收到所述对端设备的BFD报文;The local device determines whether the BFD packet of the peer device is received in a BFD detection period;
    在接收到所述对端设备的BFD报文的情况下,所述本端设备检测所述对端设备的BFD报文的所述特定标志位的状态;In the case that the BFD packet of the peer device is received, the local device detects the state of the specific flag bit of the BFD packet of the peer device;
    在检测到所述特定标志位指示所述对端设备的本地BFD会话处于Down状态的情况下,所述本端设备将所述本端设备的本地BFD会话的状态切换为Down状态。The local device switches the state of the local BFD session of the local device to the Down state, when the local device indicates that the local BFD session of the peer device is in the Down state.
  8. 根据权利要求7所述的方法,其中,在所述本端设备未接收到由所述对端设备发送的BFD报文的情况下,所述方法还包括:The method of claim 7, wherein, in the case that the local device does not receive the BFD packet sent by the peer device, the method further includes:
    所述本端设备将所述本端设备的本地BFD会话的状态切换为Down状态。The local device switches the state of the local BFD session of the local device to the Down state.
  9. 一种双向转发检测的装置,应用于本端设备,包括:A device for bidirectional forwarding detection is applied to a local device, including:
    第一判断模块,设置成判断在一个双向转发检测BFD的检测周期内是否接收到由对端设备发送的BFD报文;The first judging module is configured to determine whether the BFD packet sent by the peer device is received in the detection period of the bidirectional forwarding detection BFD;
    检测模块,设置成在接收到所述BFD报文的情况下,检测所述BFD报文的特定标志位的状态,其中,所述特定标志位设置成指示所述对端设备的本地BFD会话是否处于Down状态;The detecting module is configured to: when the BFD packet is received, detect a status of the specific flag bit of the BFD packet, where the specific flag bit is set to indicate whether the local BFD session of the peer device is In the Down state;
    切换模块,设置成在检测到所述BFD报文中的所述特定标志位指示所述对端设备的本地BFD会话处于Down状态的情况下,将本地BFD会话的状态切换为Down状态。The switching module is configured to switch the state of the local BFD session to the Down state when the local BFD session of the peer device is in the Down state.
  10. 一种双向转发检测的装置,应用于对端设备,包括: A device for bidirectional forwarding detection, applied to a peer device, including:
    第二判断模块,设置成判断在一个双向转发检测BFD的检测周期内是否接收到由本端设备发送的BFD报文;The second judging module is configured to determine whether the BFD packet sent by the local device is received in the detection period of the bidirectional forwarding detection BFD;
    处理模块,设置成在未接收到由所述本端设备发送的BFD报文的情况下,发送BFD报文至所述本端设备,并将本地BFD会话的状态切换为Down状态,其中,由所述对端设备发送的BFD报文包括特定标志位,所述特定标志位设置成指示所述本地BFD会话是否处于Down状态。 a processing module, configured to send a BFD packet to the local device, and switch the state of the local BFD session to a Down state, where the BFD packet sent by the local device is not received, where The BFD packet sent by the peer device includes a specific flag bit, and the specific flag bit is set to indicate whether the local BFD session is in the Down state.
PCT/CN2016/089458 2015-09-28 2016-07-08 Bidirectional forwarding detection method and apparatus WO2017054547A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510629657.9 2015-09-28
CN201510629657.9A CN106559280A (en) 2015-09-28 2015-09-28 Bidirectional forwarding detection (BFD) method and device

Publications (1)

Publication Number Publication Date
WO2017054547A1 true WO2017054547A1 (en) 2017-04-06

Family

ID=58416756

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/089458 WO2017054547A1 (en) 2015-09-28 2016-07-08 Bidirectional forwarding detection method and apparatus

Country Status (2)

Country Link
CN (1) CN106559280A (en)
WO (1) WO2017054547A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112564931A (en) * 2019-09-25 2021-03-26 华为技术有限公司 Fault processing method, device and storage medium
CN112714060A (en) * 2020-12-22 2021-04-27 新华三技术有限公司合肥分公司 Link detection method and device
CN113328916A (en) * 2021-06-07 2021-08-31 新华三技术有限公司 BFD detection mode switching method, device and equipment
CN113472642A (en) * 2021-06-10 2021-10-01 新华三信息安全技术有限公司 Protection switching method and device

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10447586B2 (en) * 2017-06-01 2019-10-15 Zte Corporation Defect detection in IP/MPLS network tunnels
CN107277058B (en) * 2017-08-07 2020-03-20 南京南瑞集团公司 Interface authentication method and system based on BFD protocol
CN108055172B (en) * 2018-01-30 2020-06-09 迈普通信技术股份有限公司 Bidirectional forwarding detection method and device
CN110890994B (en) 2018-09-11 2022-06-28 华为技术有限公司 Method, device and system for determining message forwarding path
CN109889411B (en) * 2019-03-22 2020-09-11 新华三技术有限公司 Data transmission method and device
CN110086690B (en) * 2019-04-30 2021-06-15 新华三技术有限公司 Bidirectional forwarding detection method and device, electronic equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2104283A1 (en) * 2006-12-25 2009-09-23 Huawei Technologies Co Ltd A method and system for negotiating the bidirectional forwarding detection session discriminator of pesudo wire
CN102035695A (en) * 2010-12-20 2011-04-27 中兴通讯股份有限公司 Bidirectional forwarding detection method and device
CN102355416A (en) * 2011-09-30 2012-02-15 杭州华三通信技术有限公司 Method for establishing route by linking routing information protocol with bidirectional forwarding detection and equipment
CN102546304A (en) * 2012-01-19 2012-07-04 华为技术有限公司 BFD detection method, equipment and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2104283A1 (en) * 2006-12-25 2009-09-23 Huawei Technologies Co Ltd A method and system for negotiating the bidirectional forwarding detection session discriminator of pesudo wire
CN102035695A (en) * 2010-12-20 2011-04-27 中兴通讯股份有限公司 Bidirectional forwarding detection method and device
CN102355416A (en) * 2011-09-30 2012-02-15 杭州华三通信技术有限公司 Method for establishing route by linking routing information protocol with bidirectional forwarding detection and equipment
CN102546304A (en) * 2012-01-19 2012-07-04 华为技术有限公司 BFD detection method, equipment and system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112564931A (en) * 2019-09-25 2021-03-26 华为技术有限公司 Fault processing method, device and storage medium
CN112564931B (en) * 2019-09-25 2022-08-19 华为技术有限公司 Fault processing method, device and storage medium
CN112714060A (en) * 2020-12-22 2021-04-27 新华三技术有限公司合肥分公司 Link detection method and device
CN112714060B (en) * 2020-12-22 2022-05-27 新华三技术有限公司合肥分公司 Link detection method and device
CN113328916A (en) * 2021-06-07 2021-08-31 新华三技术有限公司 BFD detection mode switching method, device and equipment
CN113328916B (en) * 2021-06-07 2022-08-26 新华三技术有限公司 BFD detection mode switching method, device and equipment
CN113472642A (en) * 2021-06-10 2021-10-01 新华三信息安全技术有限公司 Protection switching method and device
CN113472642B (en) * 2021-06-10 2023-06-13 新华三信息安全技术有限公司 Protection switching method and device

Also Published As

Publication number Publication date
CN106559280A (en) 2017-04-05

Similar Documents

Publication Publication Date Title
WO2017054547A1 (en) Bidirectional forwarding detection method and apparatus
US9705735B2 (en) System and method using RSVP hello suppression for graceful restart capable neighbors
CN105763359B (en) Distributed bidirectional forwarding detection protocol (D-BFD) for an interleaved fabric switch cluster
TWI624165B (en) Method and multi-homed equipment for establishing a multipath connection
WO2021043086A1 (en) Method, device and system for establishing sbfd session
US9680948B2 (en) System and method for device failure notification
US9692697B2 (en) Control channel establishing method, forwarding point, and controller
CN107078924B (en) Method, equipment and system for carrying out bidirectional forwarding detection on aggregation link
WO2017002017A1 (en) Fast convergence in vrrp with multipoint bidirectional forwarding detection
US9455916B2 (en) Method and system for changing path and controller thereof
CN107465613B (en) Link aggregation interface communication state switching method and device
CN109474495B (en) Tunnel detection method and device
WO2016037443A1 (en) Temporary channel establishment method, device, system and computer storage medium
WO2015043517A1 (en) Dynamic link aggregation
WO2016095322A1 (en) Vrrp-based data transmission method and apparatus
WO2012058930A1 (en) Method and system for link failure detection
WO2016086890A1 (en) Method and device for detecting connectivity
WO2020173424A1 (en) Message processing method, and gateway device
WO2017041577A1 (en) Method and device for managing link aggregation member port packet loss
WO2016124117A1 (en) Method, switching device and network controller for protecting links in software-defined network (sdn)
WO2018024200A1 (en) Virtual desktop multicast control method, terminal, proxy terminal, and cloud desktop server
WO2014161421A1 (en) Data transmission method, device, and system
RU2510142C2 (en) Method and system for transmitting message between extended processor and switch circuit
CN102769552A (en) Method and apparatus for transmitting BFD (bidirectional forwarding detection) message during LSP (label switched path) detection by BFD
US20150281050A1 (en) Method for Adjacency Status Synchronization in Label Distribution Protocol

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

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

Country of ref document: EP

Kind code of ref document: A1