CN110808873A - Method and device for detecting link failure - Google Patents
Method and device for detecting link failure Download PDFInfo
- Publication number
- CN110808873A CN110808873A CN201911001007.4A CN201911001007A CN110808873A CN 110808873 A CN110808873 A CN 110808873A CN 201911001007 A CN201911001007 A CN 201911001007A CN 110808873 A CN110808873 A CN 110808873A
- Authority
- CN
- China
- Prior art keywords
- node
- detection device
- packet
- session
- detection
- Prior art date
- Legal status (The legal status 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 status listed.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/10—Active monitoring, e.g. heartbeat, ping or trace-route
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0663—Performing the actions predefined by failover planning, e.g. switching to standby network elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0811—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Cardiology (AREA)
- General Health & Medical Sciences (AREA)
- Environmental & Geological Engineering (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The application relates to the technical field of communication, and discloses a method and a device for detecting a link fault, which are used for solving the problem that the service processing is influenced by network interruption caused by link misdetection due to the overweight load of a CPU (Central processing Unit). The method comprises the following steps: in two nodes with established BFD session connection, a first detection device of a first node sends a first heartbeat message to a second detection device of a second node according to a packet sending rule, and receives a second heartbeat message sent by the second detection device; and the first detection equipment determines that the second heartbeat message is overtime based on the packet receiving time point for receiving the second heartbeat message, and then sends session overtime information to the CPU of the third node to trigger the CPU to operate a BFD protocol and switch the session connection between the two nodes to a backup forwarding link. The first node finishes receiving and sending packet services and judges whether the session is overtime through the first detection equipment, so that the detection efficiency is improved, and the influence of network interruption on service processing is reduced.
Description
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for detecting a link failure.
Background
With the mass deployment of network devices, a convenient and fast network service is provided for people, if a network is interrupted, normal operation of a service may be affected, and a significant loss is caused, so that in order to reduce the influence of a link failure on the service, a Bidirectional Forwarding Detection (BFD) protocol is adopted to detect links between adjacent network devices, and the description contents of the scheme are as follows:
first, a three-way handshake mechanism is employed to establish a BFD session between two network devices.
Since the steps performed by each network device are the same, the following processes are described by taking one network device as an example.
Next, one network device sends a heartbeat message to an adjacent network device at regular time through a frame transceiver module of a Central Processing Unit (CPU), and receives the heartbeat message sent by the adjacent network device.
And thirdly, the CPU compares the updated packet receiving time point with the last packet receiving time point, and if the time difference between the two is greater than the preset receiving time interval, the adjacent network equipment is judged to be in the abnormal state of BFD session timeout.
And finally, the CPU runs a BFD protocol under the trigger of the abnormal state so that the CPU switches the service between the two network devices to a backup forwarding link for continuous processing.
However, the following problems may be caused by adopting the above technical scheme:
because the frame transceiver module is responsible for processing messages of all protocols in the network device, and the heartbeat message of the BFD protocol is only one of numerous protocol messages, when a large number of protocol messages exist in the network device or the CPU is occupied by a certain service, the frame transceiver module cannot process the heartbeat message of the BFD protocol in time, false detection is generated, the service is repeatedly switched between the main link and the standby link, the flow is frequently interrupted, and the influence of network interruption on the service is enhanced.
In view of the above, a new method for detecting link failure needs to be devised to overcome the above-mentioned drawbacks.
Disclosure of Invention
The embodiment of the application provides a method and a device for detecting a link fault, which are used for solving the problem that in the prior art, the link is detected by mistake due to the fact that the load of a CPU is too heavy, and then network interruption is caused to influence services.
The technical scheme provided by the embodiment of the application is as follows:
a method of detecting a link failure, comprising:
a first detection device of a first node sends a first heartbeat message of the first node to a second detection device of a second node according to a preset packet sending rule, and a Bidirectional Forwarding Detection (BFD) session connection is established between the first node and the second node;
the first detection equipment receives a second heartbeat message sent by the second detection equipment, and determines a packet receiving time point of the second heartbeat message;
the first detection device determines that the second heartbeat message is overtime when being sent based on the packet receiving time point, and generates session overtime information representing the session overtime of the second node;
and the first detection equipment sends the session timeout information to a Central Processing Unit (CPU) of a third node to trigger the CPU to operate a BFD protocol, and switches the session connection between the first node and the second node from a main forwarding link to a backup forwarding link, wherein the first node and the second node are respectively in channel connection with the third node.
Optionally, the sending, by a first detection device of a first node, a first heartbeat packet of the first node to a second detection device of a second node according to a preset packet sending rule includes:
the first detection equipment encapsulates first node identification information representing the first node into the first heartbeat message according to a preset packet sending period;
and the first detection equipment sends the first heartbeat message to the second detection equipment.
Optionally, the determining, by the first detection device, that the second heartbeat packet is sent overtime based on the packet receiving time point, and generating session timeout information representing session timeout of the second node, includes:
the first detection device generates a time difference value between the packet receiving time point and the last stored packet receiving time point;
and if the time difference is larger than a preset receiving time interval, the first detection device generates the session timeout information.
Optionally, the sending, by the first detection device, the session timeout information to the central processing unit CPU of the third node includes:
the first detection device packages the session timeout information into an interrupt event;
and the first detection equipment sends the interrupt event to a processing interface of the CPU.
An apparatus for detecting a link failure, comprising:
a sending unit, configured to send, by a first detection device of a first node, a first heartbeat packet of the first node to a second detection device of a second node according to a preset packet sending rule, where a Bidirectional Forwarding Detection (BFD) session connection is established between the first node and the second node;
a receiving unit, configured to receive, by the first detection device, a second heartbeat packet sent by the second detection device, and determine a packet receiving time point of the second heartbeat packet;
a detecting unit, configured to determine, by the first detecting device, that the second heartbeat packet is sent overtime based on the packet receiving time point, and generate session timeout information representing session timeout of the second node;
and the first detection equipment sends the session timeout information to a Central Processing Unit (CPU) of a third node to trigger the CPU to operate a BFD protocol, and switches the session connection between the first node and the second node from a main forwarding link to a backup forwarding link, wherein the first node and the second node are respectively in channel connection with the third node.
Optionally, the first detection device of the first node sends the first heartbeat packet of the first node to the second detection device of the second node according to a preset packet sending rule, and the sending unit is configured to:
the first detection equipment encapsulates first node identification information representing the first node into the first heartbeat message according to a preset packet sending period;
and the first detection equipment sends the first heartbeat message to the second detection equipment.
Optionally, the first detection device determines that the second heartbeat packet is sent overtime based on the packet receiving time point, and generates session timeout information representing session timeout of the second node, where the detection unit is configured to:
the first detection device generates a time difference value between the packet receiving time point and the last stored packet receiving time point;
and if the time difference is larger than a preset receiving time interval, the first detection device generates the session timeout information.
Optionally, the first detection device sends the session timeout information to a central processing unit CPU of a third node, where the detection unit is configured to:
the first detection device packages the session timeout information into an interrupt event;
and the first detection equipment sends the interrupt event to a processing interface of the CPU.
A communication device having a computer program stored thereon for reading by a communication device to perform the steps of any of the above methods of detecting a link failure.
A computer-readable medium having stored thereon a computer program for executing the steps of any of the above-described methods of detecting a link failure by a processor.
The beneficial effect of this application is as follows:
in the embodiment of the application, in two nodes with established BFD session connection, a first detection device of a first node sends a first heartbeat message to a second detection device of a second node according to a packet sending rule, and receives a second heartbeat message sent by the second detection device; and the first detection equipment determines that the second heartbeat message is overtime based on the packet receiving time point for receiving the second heartbeat message, and then sends session overtime information to the CPU of the third node to trigger the CPU to operate a BFD protocol and switch the session connection between the two nodes to a backup forwarding link. The first node finishes receiving and sending packet services and judges whether the session is overtime through the first detection equipment, so that the detection efficiency is improved, and the influence of network interruption on service processing is reduced.
Drawings
Fig. 1 is a schematic architecture diagram of a link failure detection system according to an embodiment of the present application;
fig. 2 is a schematic flowchart of detecting a link failure according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a detection apparatus provided in an embodiment of the present application;
fig. 4 is a schematic structural diagram of an apparatus for detecting a link failure according to an embodiment of the present application.
Detailed Description
In order to solve the problem that in the prior art, the link is erroneously detected due to the fact that the load of the CPU is too heavy, and then network interruption is caused to affect service processing, in the embodiment of the present application, a new technical scheme is provided, and the scheme includes: in two nodes with established BFD session connection, a first detection device of a first node sends a first heartbeat message to a second detection device of a second node according to a packet sending rule, and receives a second heartbeat message sent by the second detection device; then, after determining that the second heartbeat message is sent overtime based on the packet receiving time point of receiving the second heartbeat message, the first detection device sends session overtime information to the CPU of the third node to trigger the CPU to run the BFD protocol, and switches the session connection between the two nodes from the main forwarding link to the backup forwarding link.
The following detailed description of preferred embodiments of the present application refers to the accompanying drawings.
In the embodiment of the application, the distributed nodes include multiple groups of distributed nodes, where a group of distributed nodes refers to two distributed nodes that have established BFD session connection, and a master control node that establishes an out-of-band channel or an in-band channel connection with each distributed node. For convenience of description, referring to fig. 1, in the following embodiments, a link failure detection system formed by two distributed nodes and a master control node will be described.
In the embodiment of the present application, referring to fig. 2, a process of detecting a link failure by a distributed node is as follows:
s201: and the first detection equipment of the first node sends the first heartbeat message of the first node to the second detection equipment of the second node according to a preset packet sending rule, and BFD session connection is established between the first node and the second node.
In the embodiment of the present application, referring to fig. 3, a hardware structure diagram of a detection device is provided. Specifically, the process of sending the heartbeat packet from the first detection device to the second detection device is as follows:
a1, establishing BFD session connection between the distributed node 1 and the distributed node 2 by adopting a three-way handshake mechanism;
a2, a first detection device of a distributed node 1 acquires first node identification information of the distributed node 1, second node identification information of the distributed node 2, package sending information and package receiving information, and configures the four types of information into corresponding registers in an index mode, wherein the registers are stored in a Maintenance Entity Group Endpoint DataBase (MEP-DB) of the first detection device;
the first node identification information specifically includes an identity identification number (ID) and a source Internet Protocol (IP) Address of the distributed node 1, and the second node identification information specifically includes a session ID and a destination IP Address of the distributed node 2; the packet sending information specifically includes a packet sending outlet, a preset packet sending period and a minimum sending time interval of a sender, and the packet receiving information specifically includes a packet receiving period and a minimum receiving time interval of the sender.
A3, a Transmit data (TX) engine in the first detection device obtains first node identification information, second node identification information and package sending information configured in a register by scanning the register;
a4, the TX engine packages the first node identification information into a first heartbeat message according to a preset packet sending period and a minimum sending time interval of a sender;
and the A5 and the TX engine send the first heartbeat message to the second detection equipment through the packet sending outlet and the destination IP address of the distributed node 2.
S202: and the first detection equipment receives a second heartbeat message sent by the second detection equipment and determines a packet receiving time point of the second heartbeat message.
Wherein, the register of the second detection device is configured with the session ID and IP address of the distributed node 2), the session ID and destination IP address of the distributed node 1, and the packet sending and receiving information of the second detection device. The steps of sending the heartbeat message to the first detection equipment by the second detection equipment are the same as the steps A1-A5.
Specifically, the process of receiving the second heartbeat packet by the first detection device is as follows:
b1, a received data (RX) analyzer in the first detection device analyzes the second heartbeat message, judges whether the second heartbeat message is a BFD message, if so, executes the step B2; otherwise, discarding the second heartbeat message;
b2, the RX resolver acquires second node identification information carried in the second heartbeat message;
b3, the RX processor matches to a corresponding register according to the session ID of the distributed node 2 in the second node identification information;
b4, the RX processor updates the packet reception time point, which is stored in a REMOTE environment protection database (REMOTE MEP-DB, RMEP-DB).
S203: and the first detection equipment determines the timeout of the second heartbeat message transmission based on the packet receiving time point, and generates session timeout information representing the session timeout of the second node.
Specifically, the process of the first detection device determining whether the session of the second node is overtime is as follows:
c1, a Connectivity Monitor (CM) in the first detection device generates a time difference between the packet receiving time point and the last stored packet receiving time point;
c2, CM judges whether the time difference value does not exceed the minimum receiving time interval of the sender, if yes, the distributed node 2 is in normal conversation state; otherwise, go to step C3;
c3, the CM generates session timeout information.
Each detection device is only responsible for the packet receiving and sending service of a corresponding distributed node, and the problem of delayed heartbeat message forwarding caused by the overweight load of a CPU does not exist, so that once the time difference value exceeds the receiving time interval, the main forwarding link between the distributed node 1 and the distributed node 2 is in fault, and the distributed node 1 can be caused to receive the second heartbeat message overtime or the distributed node 1 cannot receive the second heartbeat message within the specified receiving time interval.
S204: the first detection device sends the session timeout information to the CPU of the third node to trigger the CPU to operate a BFD protocol, the session connection between the first node and the second node is switched from the main forwarding link to the backup forwarding link, and the first node and the second node are respectively in channel connection with the third node.
Specifically, the process of forwarding the session timeout information to the CPU by the first detection device is as follows:
d1, after judging that the distributed node 2 is in an abnormal session state, the CM generates an interrupt event and encapsulates session timeout information in the interrupt event;
d2, CM sends the interrupt event to the processing interface of the CPU of the master control node.
Therefore, the CPU of the main control node does not need to be in charge of the packet receiving and sending services of each distributed node, and only needs to run the BFD protocol when an interrupt event sent by a certain distributed node is received, so that the session of the two distributed nodes is connected and the main forwarding link is switched to the backup forwarding link. Especially, when the method is applied to a high-capacity BFD session scene, the transceiving packet service can be distributed to the distributed nodes, so that the CPU load of the main control node is reduced, the link misdetection caused by the overweight CPU load is avoided, the influence of network interruption on the service is reduced, the link fault detection efficiency is improved, and the high-performance BFD requirement can be better met.
Based on the above embodiments, referring to fig. 4, in an embodiment of the present invention, an apparatus for detecting a link failure is provided, which includes at least a sending unit 401, a receiving unit 402, and a detecting unit 403, wherein,
a sending unit 401, configured to send, by a first detection device of a first node, a first heartbeat packet of the first node to a second detection device of a second node according to a preset packet sending rule, where a Bidirectional Forwarding Detection (BFD) session connection is established between the first node and the second node;
a receiving unit 402, configured to receive, by the first detection device, a second heartbeat packet sent by the second detection device, and determine a packet receiving time point of the second heartbeat packet;
a detecting unit 403, configured to determine, by the first detecting device, that the second heartbeat packet is sent overtime based on the packet receiving time point, and generate session timeout information representing that the session of the second node is overtime;
and the first detection equipment sends the session timeout information to a Central Processing Unit (CPU) of a third node to trigger the CPU to operate a BFD protocol, and switches the session connection between the first node and the second node from a main forwarding link to a backup forwarding link, wherein the first node and the second node are respectively in channel connection with the third node.
Optionally, the first detection device of the first node sends the first heartbeat packet of the first node to the second detection device of the second node according to a preset packet sending rule, where the sending unit 401 is configured to:
the first detection equipment encapsulates first node identification information representing the first node into the first heartbeat message according to a preset packet sending period;
and the first detection equipment sends the first heartbeat message to the second detection equipment.
Optionally, the first detection device determines, based on the packet receiving time point, that the second heartbeat packet is sent overtime, and generates session timeout information representing session timeout of the second node, where the detection unit 403 is configured to:
the first detection device generates a time difference value between the packet receiving time point and the last stored packet receiving time point;
and if the time difference is larger than a preset receiving time interval, the first detection device generates the session timeout information.
Optionally, the first detection device sends the session timeout information to a central processing unit CPU of a third node, where the detection unit 403 is configured to:
the first detection device packages the session timeout information into an interrupt event;
and the first detection equipment sends the interrupt event to a processing interface of the CPU.
Based on the same inventive concept, in the embodiments of the present application, a communication device is provided, on which a computer program is stored, and the communication device is configured to read the computer program and execute any one of the above methods for detecting a link failure.
Based on the same inventive concept, the present application provides a storage medium having a computer program stored thereon, where the computer program is executed by a processor to implement any one of the above methods for detecting a link failure.
In summary, in two nodes where a BFD session connection is established, a first detection device of a first node sends a first heartbeat message to a second detection device of a second node according to a packet sending rule, and receives a second heartbeat message sent by the second detection device; then, after determining that the second heartbeat message is sent overtime based on the packet receiving time point of receiving the second heartbeat message, the first detection device sends session overtime information to a CPU of a third node to trigger the CPU to operate a BFD protocol, and a link between the two nodes is switched from a main forwarding link to a backup forwarding link.
Obviously, the first node in the present application completes the functions of receiving and sending packet services and judging whether the session is overtime through its own detection device, and the third node only needs to run the BFD protocol when receiving the session overtime information sent by the first detection device, and switches the session connection between the two nodes from the main forwarding link to the backup forwarding link, so that not only is the CPU load of the main control node reduced, but also the link misdetection caused by the CPU overload is avoided, the influence of network interruption on service processing is reduced, the link failure detection efficiency is also improved, and the high-performance BFD requirements can be better satisfied.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made in the embodiments of the present invention without departing from the spirit or scope of the embodiments of the invention. Thus, if such modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to encompass such modifications and variations.
Claims (10)
1. A method of detecting a link failure, comprising:
a first detection device of a first node sends a first heartbeat message of the first node to a second detection device of a second node according to a preset packet sending rule, and a Bidirectional Forwarding Detection (BFD) session connection is established between the first node and the second node;
the first detection equipment receives a second heartbeat message sent by the second detection equipment, and determines a packet receiving time point of the second heartbeat message;
the first detection device determines that the second heartbeat message is overtime when being sent based on the packet receiving time point, and generates session overtime information representing the session overtime of the second node;
and the first detection equipment sends the session timeout information to a Central Processing Unit (CPU) of a third node to trigger the CPU to operate a BFD protocol, and switches the session connection between the first node and the second node from a main forwarding link to a backup forwarding link, wherein the first node and the second node are respectively in channel connection with the third node.
2. The method of claim 1, wherein a first detection device of a first node sends a first heartbeat packet of the first node to a second detection device of a second node according to a preset packet sending rule, and the method comprises:
the first detection equipment encapsulates first node identification information representing the first node into the first heartbeat message according to a preset packet sending period;
and the first detection equipment sends the first heartbeat message to the second detection equipment.
3. The method according to claim 1, wherein the first detection device determines that the second heartbeat packet is sent out of time based on the packet receiving time point, and generates session timeout information representing session timeout of the second node, including:
the first detection device generates a time difference value between the packet receiving time point and the last stored packet receiving time point;
and if the time difference is larger than a preset receiving time interval, the first detection device generates the session timeout information.
4. The method according to claim 3, wherein the first detection device sending the session timeout information to a central processing unit, CPU, of a third node comprises:
the first detection device packages the session timeout information into an interrupt event;
and the first detection equipment sends the interrupt event to a processing interface of the CPU.
5. An apparatus for detecting link failure, comprising:
a sending unit, configured to send, by a first detection device of a first node, a first heartbeat packet of the first node to a second detection device of a second node according to a preset packet sending rule, where a Bidirectional Forwarding Detection (BFD) session connection is established between the first node and the second node;
a receiving unit, configured to receive, by the first detection device, a second heartbeat packet sent by the second detection device, and determine a packet receiving time point of the second heartbeat packet;
a detecting unit, configured to determine, by the first detecting device, that the second heartbeat packet is sent overtime based on the packet receiving time point, and generate session timeout information representing session timeout of the second node;
and the first detection equipment sends the session timeout information to a Central Processing Unit (CPU) of a third node to trigger the CPU to operate a BFD protocol, and switches the session connection between the first node and the second node from a main forwarding link to a backup forwarding link, wherein the first node and the second node are respectively in channel connection with the third node.
6. The apparatus according to claim 5, wherein the first detection device of the first node sends the first heartbeat packet of the first node to the second detection device of the second node according to a preset packet sending rule, and the sending unit is configured to:
the first detection equipment encapsulates first node identification information representing the first node into the first heartbeat message according to a preset packet sending period;
and the first detection equipment sends the first heartbeat message to the second detection equipment.
7. The apparatus according to claim 5, wherein the first detecting device determines, based on the packet receiving time point, that the second heartbeat packet is sent out overtime, and generates session timeout information indicating that the session of the second node is overtime, and the detecting unit is configured to:
the first detection device generates a time difference value between the packet receiving time point and the last stored packet receiving time point;
and if the time difference is larger than a preset receiving time interval, the first detection device generates the session timeout information.
8. The apparatus according to claim 7, wherein the first detection device sends the session timeout information to a central processing unit CPU of a third node, and the detection unit is configured to:
the first detection device packages the session timeout information into an interrupt event;
and the first detection equipment sends the interrupt event to a processing interface of the CPU.
9. A communication device having a computer program stored thereon, wherein the communication device is adapted to read the computer program and perform the steps of the method according to any of claims 1-4.
10. A computer-storable medium on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911001007.4A CN110808873B (en) | 2019-10-21 | 2019-10-21 | Method and device for detecting link failure |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911001007.4A CN110808873B (en) | 2019-10-21 | 2019-10-21 | Method and device for detecting link failure |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110808873A true CN110808873A (en) | 2020-02-18 |
CN110808873B CN110808873B (en) | 2022-02-22 |
Family
ID=69488682
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911001007.4A Active CN110808873B (en) | 2019-10-21 | 2019-10-21 | Method and device for detecting link failure |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110808873B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111447095A (en) * | 2020-03-31 | 2020-07-24 | 新华三信息安全技术有限公司 | Bidirectional forwarding detection switching method, bidirectional forwarding detection module and edge device |
CN113206798A (en) * | 2021-07-05 | 2021-08-03 | 北京简网科技有限公司 | Method, device and system for processing session flow |
CN111565132B (en) * | 2020-04-24 | 2021-11-30 | 烽火通信科技股份有限公司 | Overtime detection method and system for bidirectional forwarding detection message |
CN114443206A (en) * | 2020-10-31 | 2022-05-06 | 华为技术有限公司 | Communication method and device |
CN115378844A (en) * | 2022-07-11 | 2022-11-22 | 天翼云科技有限公司 | Method and device for detecting network link fault |
CN115941448A (en) * | 2022-11-17 | 2023-04-07 | 天翼云科技有限公司 | Application layer service active-standby switching method based on BFD and domain name resolution |
WO2024060601A1 (en) * | 2022-09-23 | 2024-03-28 | 中兴通讯股份有限公司 | Message sending method and apparatus, and storage medium and electronic apparatus |
Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101106535A (en) * | 2007-08-14 | 2008-01-16 | 华为技术有限公司 | A method, server and system for heartbeat mechanism |
CN101237452A (en) * | 2008-02-20 | 2008-08-06 | 杭州华三通信技术有限公司 | Transmission method, system and device for bidirectional forward detection report |
CN101345663A (en) * | 2008-08-22 | 2009-01-14 | 杭州华三通信技术有限公司 | Heartbeat detection method and heartbeat detection apparatus |
CN101459541A (en) * | 2008-12-31 | 2009-06-17 | 华为技术有限公司 | Method, equipment and system for detecting link break |
CN101860492A (en) * | 2010-06-28 | 2010-10-13 | 中兴通讯股份有限公司 | Quick switching method, device and system |
US20130322231A1 (en) * | 2012-06-01 | 2013-12-05 | Telefonaktiebolaget L M Ericsson (Publ) | Enhancements to pim fast re-route with downstream notification packets |
US20140016457A1 (en) * | 2011-03-31 | 2014-01-16 | Telefonaktiebolaget L M Ericsson (Publ) | Technique for Operating a Network Node |
CN103916275A (en) * | 2014-03-31 | 2014-07-09 | 杭州华三通信技术有限公司 | BFD detection device and method |
CN104283711A (en) * | 2014-09-29 | 2015-01-14 | 中国联合网络通信集团有限公司 | Fault detection method based on BFD, nodes and system |
WO2015184739A1 (en) * | 2014-10-21 | 2015-12-10 | 中兴通讯股份有限公司 | Fault detection method and device |
WO2016061943A1 (en) * | 2014-10-23 | 2016-04-28 | 中兴通讯股份有限公司 | Method and apparatus for implementing spanning tree protocol protection switching, and computer storage medium |
CN105721235A (en) * | 2014-12-05 | 2016-06-29 | 华为技术有限公司 | Method and apparatus for detecting connectivity |
CN107547368A (en) * | 2017-08-04 | 2018-01-05 | 新华三技术有限公司 | BFD conversation switching methods, device and storage medium |
CN107592259A (en) * | 2017-09-21 | 2018-01-16 | 烽火通信科技股份有限公司 | A kind of flow switch method in VRRP protections scene |
CN109660426A (en) * | 2018-12-14 | 2019-04-19 | 泰康保险集团股份有限公司 | Monitoring method and system, computer-readable medium and electronic equipment |
-
2019
- 2019-10-21 CN CN201911001007.4A patent/CN110808873B/en active Active
Patent Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101106535A (en) * | 2007-08-14 | 2008-01-16 | 华为技术有限公司 | A method, server and system for heartbeat mechanism |
CN101237452A (en) * | 2008-02-20 | 2008-08-06 | 杭州华三通信技术有限公司 | Transmission method, system and device for bidirectional forward detection report |
CN101345663A (en) * | 2008-08-22 | 2009-01-14 | 杭州华三通信技术有限公司 | Heartbeat detection method and heartbeat detection apparatus |
CN101459541A (en) * | 2008-12-31 | 2009-06-17 | 华为技术有限公司 | Method, equipment and system for detecting link break |
CN101860492A (en) * | 2010-06-28 | 2010-10-13 | 中兴通讯股份有限公司 | Quick switching method, device and system |
US20140016457A1 (en) * | 2011-03-31 | 2014-01-16 | Telefonaktiebolaget L M Ericsson (Publ) | Technique for Operating a Network Node |
CN104509044A (en) * | 2012-06-01 | 2015-04-08 | 瑞典爱立信有限公司 | Enhancements of the protocol independent multicast (PIM) fast re-route methodology with downstream notification packets |
US20130322231A1 (en) * | 2012-06-01 | 2013-12-05 | Telefonaktiebolaget L M Ericsson (Publ) | Enhancements to pim fast re-route with downstream notification packets |
CN103916275A (en) * | 2014-03-31 | 2014-07-09 | 杭州华三通信技术有限公司 | BFD detection device and method |
CN104283711A (en) * | 2014-09-29 | 2015-01-14 | 中国联合网络通信集团有限公司 | Fault detection method based on BFD, nodes and system |
WO2015184739A1 (en) * | 2014-10-21 | 2015-12-10 | 中兴通讯股份有限公司 | Fault detection method and device |
US20170244625A1 (en) * | 2014-10-21 | 2017-08-24 | Zte Corporation | Method and Device for Fault Detection |
WO2016061943A1 (en) * | 2014-10-23 | 2016-04-28 | 中兴通讯股份有限公司 | Method and apparatus for implementing spanning tree protocol protection switching, and computer storage medium |
CN105721235A (en) * | 2014-12-05 | 2016-06-29 | 华为技术有限公司 | Method and apparatus for detecting connectivity |
CN107547368A (en) * | 2017-08-04 | 2018-01-05 | 新华三技术有限公司 | BFD conversation switching methods, device and storage medium |
CN107592259A (en) * | 2017-09-21 | 2018-01-16 | 烽火通信科技股份有限公司 | A kind of flow switch method in VRRP protections scene |
CN109660426A (en) * | 2018-12-14 | 2019-04-19 | 泰康保险集团股份有限公司 | Monitoring method and system, computer-readable medium and electronic equipment |
Non-Patent Citations (4)
Title |
---|
T. WINTER等: "RPL: Routing Protocol for Low Power and Lossy Networks draft-ietf-roll-rpl-03", 《IETF 》 * |
佚名: ""(双向转发检测)理论知识详解(三)"", 《HTTP://WWW.023WG.COM/LYPZ/94.HTML》 * |
佚名: ""发现路由器转发故障的双向转发检测(BFD)协议"", 《HTTPS://BLOG.CSDN.NET/WEIXIN_33860553/ARTICLE/DETAILS/92867848》 * |
张龙江: ""LACP与BFD技术助力宽带链路检测与保护"", 《山东通信技术》 * |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111447095A (en) * | 2020-03-31 | 2020-07-24 | 新华三信息安全技术有限公司 | Bidirectional forwarding detection switching method, bidirectional forwarding detection module and edge device |
CN111447095B (en) * | 2020-03-31 | 2022-05-24 | 新华三信息安全技术有限公司 | Bidirectional forwarding detection switching method, bidirectional forwarding detection module and edge device |
CN111565132B (en) * | 2020-04-24 | 2021-11-30 | 烽火通信科技股份有限公司 | Overtime detection method and system for bidirectional forwarding detection message |
CN114443206A (en) * | 2020-10-31 | 2022-05-06 | 华为技术有限公司 | Communication method and device |
CN113206798A (en) * | 2021-07-05 | 2021-08-03 | 北京简网科技有限公司 | Method, device and system for processing session flow |
CN113206798B (en) * | 2021-07-05 | 2021-09-03 | 北京简网科技有限公司 | Method, device and system for processing session flow |
CN115378844A (en) * | 2022-07-11 | 2022-11-22 | 天翼云科技有限公司 | Method and device for detecting network link fault |
CN115378844B (en) * | 2022-07-11 | 2023-06-23 | 天翼云科技有限公司 | Fault detection method and device for network link |
WO2024060601A1 (en) * | 2022-09-23 | 2024-03-28 | 中兴通讯股份有限公司 | Message sending method and apparatus, and storage medium and electronic apparatus |
CN115941448A (en) * | 2022-11-17 | 2023-04-07 | 天翼云科技有限公司 | Application layer service active-standby switching method based on BFD and domain name resolution |
Also Published As
Publication number | Publication date |
---|---|
CN110808873B (en) | 2022-02-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110808873B (en) | Method and device for detecting link failure | |
CN112751733B (en) | Link detection method, device, equipment, system and switch | |
CN101953139B (en) | DHCP in response to Internet connectedness initializes | |
CN102594643B (en) | A kind of Controller Area Network BUS communicating control method, Apparatus and system | |
CN110740072A (en) | fault detection method, device and related equipment | |
CN109194547A (en) | Message transmitting method, device, local device and readable storage medium storing program for executing | |
WO2011021505A1 (en) | Communication system and communication apparatus status determining method | |
JP2006352259A (en) | Device and method for detecting network failure | |
CN103166811A (en) | Multi-active detection (MAD) detection method and device | |
CN107948063B (en) | Method for establishing aggregation link and access equipment | |
CN103227725A (en) | Method and device for dual-server backup of firewall | |
CN103368849A (en) | OAM (Operations, Administration and Management) message processing method and device | |
CN103078791A (en) | Method, device and system for processing operation, administration and maintenance (OAM) message | |
EP3166246A1 (en) | Method to detect and to handle failures in the communication in a computer network | |
WO2016086890A1 (en) | Method and device for detecting connectivity | |
KR20180069843A (en) | Method and apparatus for preventing operation on a CAN bus using nodes connected to the bus by a CAN controller | |
CN111490903A (en) | Network data acquisition and processing method and device | |
US11258666B2 (en) | Method, device, and system for implementing MUX machine | |
CN116094978A (en) | Information reporting method, information processing method and information processing equipment | |
CN101540772A (en) | DPI (deep packet inspection) equipment and communication method thereof | |
WO2014161205A1 (en) | Method, system and device for processing network congestion | |
WO2015180265A1 (en) | Multi-link protection switching method and device | |
CN103248567A (en) | BFD conversation message transmission method and equipment | |
CN105703967B (en) | Method and device for detecting connectivity of label switched path | |
CN106817267B (en) | Fault detection method and equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |