CN107612754B - Bidirectional forwarding link fault detection method and device and network node equipment - Google Patents

Bidirectional forwarding link fault detection method and device and network node equipment Download PDF

Info

Publication number
CN107612754B
CN107612754B CN201711041362.5A CN201711041362A CN107612754B CN 107612754 B CN107612754 B CN 107612754B CN 201711041362 A CN201711041362 A CN 201711041362A CN 107612754 B CN107612754 B CN 107612754B
Authority
CN
China
Prior art keywords
service board
state service
bfd
standby state
board
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.)
Active
Application number
CN201711041362.5A
Other languages
Chinese (zh)
Other versions
CN107612754A (en
Inventor
汪亮
吴文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Information Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201711041362.5A priority Critical patent/CN107612754B/en
Publication of CN107612754A publication Critical patent/CN107612754A/en
Application granted granted Critical
Publication of CN107612754B publication Critical patent/CN107612754B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The disclosure provides a bidirectional forwarding link fault detection method, a bidirectional forwarding link fault detection device and network node equipment, and belongs to the technical field of communication. The method selects two different service boards from the service boards corresponding to the BFD session to be respectively used as a main state service board and a standby state service board, and the rest are used as common state service boards. The normal state service board needs to redirect the received BFD messages to the main state service board and the standby state service board, respectively. The standby state service board needs to redirect the BFD packet received from the peer device to the active state service board, and also needs to send the packet and the message received from the normal state service board to its own processing unit. The method has the advantages that when the main state service board is abnormally restarted, the standby state service board can take over the work of the main state service board for the first time, so that the problem of BFD link oscillation caused by the fault of the main state service board in the prior art is effectively solved.

Description

Bidirectional forwarding link fault detection method and device and network node equipment
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method and an apparatus for detecting a failure of a bidirectional forwarding link, and a network node device.
Background
With the increasing demand of real-time and delay-sensitive services carried on an IP network, how to protect data transmission quality, how to quickly locate a fault when data output has a problem, and how to reduce packet loss through corresponding processing is an important problem.
To solve the above problems, an operational maintenance (OAM) technique is proposed in the industry. OAM techniques may automatically detect faults in a network and take corresponding remedial measures. The current OAM techniques mainly include: multi-protocol label switching (MPLS) OAM technology proposed by the International Telecommunications Union (ITU), and Bidirectional Forwarding Detection (BFD) technology.
BFD may detect failures of various layers in the network, and may be used to detect various types of transmission correctness including ethernet, MPLS path, general routing encapsulation, and IPSec (IP network security protocol) tunnel, for example. The goal of BFD is to provide a low overhead, short detection cycle failure detection mechanism between adjacent systems, including detection of the interfaces, data links, and forwarding engines themselves. BFD is similar to a 'Hello' protocol, after the BFD session between two network node devices to be detected is established, the two network node devices periodically send BFD messages to each other, and simultaneously periodically detect the arrival condition of the messages of the other network node device on the link, if the BFD messages from the other network node device are not received within a certain time interval, the link is considered to have a fault, so that the purpose of rapidly finding the fault of the link is achieved.
Disclosure of Invention
The disclosure provides a bidirectional forwarding link fault detection method, a bidirectional forwarding link fault detection device and network node equipment.
In a first aspect, the present disclosure provides a bidirectional forwarding link failure detection method, applied to a network node device, where the network node device includes a plurality of service boards corresponding to an aggregated link, each service board is in one of an active state, a standby state, and a normal state, and at least one of the plurality of service boards includes one active state service board and one standby state service board, the method includes: negotiating with an opposite terminal device to create a Bidirectional Forwarding Detection (BFD) session via an aggregated link; receiving a BFD message sent by the opposite terminal equipment, wherein:
if the BFD message sent by the opposite terminal equipment is received by the common state service board, the common state service board sends the BFD message to the main state service board through redirection, and sends the BFD message to the standby state service board through redirection so that the standby state service board backups the operation executed by the main state service board about the BFD message; if the BFD message sent by the opposite terminal equipment is received by the standby state service board, the standby state service board sends the BFD message to the main state service board through redirection, and backups the BFD message aiming at the operation executed by the main state service board about the BFD message.
In a second aspect, the present disclosure provides a bidirectional forwarding link failure detection apparatus, applied to a network node device, where the network node device includes a plurality of service boards corresponding to an aggregated link, each service board is in one of an active state, a standby state, and a normal state, and at least one of the plurality of service boards includes one active state service board and one standby state service board, the apparatus includes:
a session establishing module, configured to negotiate with an opposite-end device to establish a Bidirectional Forwarding Detection (BFD) session via an aggregated link; a message receiving module, configured to enable the multiple service boards to receive a BFD message sent by the peer device; a first control module, configured to, if a normal state service board receives a BFD packet sent by the peer device, cause the normal state service board to send the BFD packet to a primary state service board through redirection, and send the BFD packet to a standby state service board through redirection so that the standby state service board backs up operations, which are executed by the primary state service board with respect to the BFD packet, of the primary state service board; and the second control module is used for sending the BFD message to the main state service board by the standby state service board through redirection if the BFD message sent by the opposite terminal equipment is received by the standby state service board, and backing up the operation executed by the main state service board on the BFD message.
In a third aspect, the present disclosure provides a network node device comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor to implement the bidirectional forwarding link failure detection method described in the first aspect above.
In a fourth aspect, the present disclosure provides a machine-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to implement the bidirectional forwarding link failure detection method described in the first aspect above.
According to the bidirectional forwarding link fault detection method and device provided by the present disclosure, two different service boards are selected from the service boards corresponding to the member links included in the aggregation link of the BFD session to be used as the active state service board and the standby state service board, respectively, and the other service boards except the active state service board and the standby state service board are only used as the normal state service boards (which may also be referred to as non-processing boards). After the opposite terminal equipment sends out a BFD message, if the normal state service board receives the BFD message sent by the opposite terminal equipment, the BFD message needs to be redirected to the main state service board, and a part of the BFD message needs to be redirected to the standby state service board so that the standby state service board can back up the operation executed by the main state service board about the BFD message; if the standby state service board receives a BFD packet sent by the opposite terminal device, the BFD packet needs to be redirected to the main state service board, and a backup needs to be performed for the operation performed by the main state service board with respect to the BFD packet. The method has the advantages that when the main state service board fails, such as the single board is abnormally restarted, the original standby state service board can take over the failed main state service board for the first time, so that the problem of BFD link oscillation in the prior art is effectively solved.
Drawings
To more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present disclosure and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings may be obtained from the drawings without inventive effort.
Fig. 1A to fig. 1B are schematic diagrams illustrating a distributed service board processing manner related to a BFD session in the prior art;
fig. 2 shows an interaction diagram of a network node device and a peer device according to an embodiment of the present disclosure;
fig. 3A-3B illustrate a flow diagram of a bidirectional forwarding link failure detection method according to an embodiment of the present disclosure;
fig. 4 to 5 are flowcharts illustrating a bidirectional forwarding link failure detection method for the case that the number of service boards is more than three according to an embodiment of the present disclosure;
fig. 6-7 show schematic diagrams of distributed traffic plane processing with respect to BFD sessions according to embodiments of the present disclosure;
fig. 8 shows a flow chart of another bidirectional forwarding link failure detection method for a case where the number of service boards is two according to an embodiment of the present disclosure;
fig. 9 shows a functional block diagram of a bidirectional forwarding link failure detection apparatus according to an embodiment of the present disclosure.
Icon: 100-a network node device; 200-peer device; 110-a main control board; 121 to 12 n-service boards; 112-a memory; 114-a processor; 116-bidirectional forwarding link failure detection means; 1162-session establishment module; 1164-a message receiving module; 1166-a first control module; 1168-a second control module; 1170-a message processing module; 1172-status setting module.
Detailed Description
A detailed description of the distributed traffic plane processing approach for BFD sessions in the prior art is provided with reference to fig. 1A to 1B, and thus the disadvantages of the prior art inventively discovered by the inventors during the real operation are addressed.
A distributed service board processing method for a BFD session generally selects one service board from each service board as a processing board, and all other service boards are non-processing boards. When receiving the BFD message sent by the opposite terminal equipment, each non-processing board sends the received BFD message to the processing board for processing through the redirection of the BFD processing table entry. The inventor finds that in the mode of concentrating the sending and receiving of the BFD messages on the processing board, when the processing board fails, BFD oscillation occurs in the link.
Specifically, as shown in fig. 1A, a first device under test (DUT 1 for short) and a second device under test (DUT 2 for short) create a BFD session via an aggregated link through negotiation. The aggregated link includes member link X, Y, Z. Wherein, link X corresponds to service board a (Slot a for short), link Y corresponds to service board B (Slot B for short), and link Z corresponds to service board C (Slot C for short). Without loss of generality, assume that a Master control board (Master for short) selects Slot C as a processing board for a BFD session, and the remaining slots a and B are used only as non-processing boards for the BFD session.
The DUT2, in turn, repeatedly sends the same BFD message to the DUT1 over the member link X, Y, Z. After receiving the BFD message sent by DUT2 via link X, Slot a redirects the BFD message to Slot C for processing. Similarly, after receiving the BFD packet sent by DUT2 via link Y, Slot B redirects the BFD packet to Slot C for processing. Slot C receives the BFD packet sent by DUT2 via link Z and the BFD packet sent by Slot a and Slot B after redirection, and transmits the received BFD packet to its own processing unit, such as a hardware chip, for processing.
The Slot C is used as a key processing node of the current BFD session, and carries tasks of receiving BFD messages and processing BFD messages to respond. If Slot C fails, such as a single board abnormal restart, DUT1 will compute a new processing board from the BFD session, say Slot B. Then, Slot a needs to re-issue a BFD processing table entry, so that Slot a resets the received BFD packet to be redirected to Slot B instead of Slot C, and Slot B also needs to re-issue a BFD processing table entry, so that Slot B changes the received BFD packet from being redirected to Slot C to be transmitted to its own processing unit, as shown in fig. 1B.
The inventors have found that in this case there is a greater probability of BFD down (session interruption) results if BFD is a high frequency detection such as 3ms 3. The reason is that for high-frequency detection such as 3ms × 3, once a BFD message of the DUT2 is not received within 9ms, the DUT1 performs down processing on the BFD session, and when the processing board Slot C fails, the Slot a and the Slot B need to re-issue BFD processing table entries, and this action of resetting the trend of the BFD message needs a certain processing time, so the action of resetting the trend of the BFD message by the Slot a and the Slot B may cause the BFD message within the processing time to be discarded or to be continuously sent to the Slot C, and finally, the Slot B does not receive the BFD message sent by the DUT2 within 9ms, and causes the session to be down. Although in the above situation, Slot B can normally take over the role of the original processing board after the BFD processing table entry is successfully reset, so that UP is recovered faster after the BFD session is down (this situation is called BFD link oscillation), the BFD link oscillation caused by the failure of the processing board still has a significant negative impact on the link detection between DUT1 and DUT2, which is an undesirable result in practice.
In view of the above, the present disclosure provides a bidirectional forwarding link failure detection method, an apparatus and a network node device to solve the above problems.
In order to make the objects, technical solutions and advantages of the present disclosure more clear, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the present disclosure. It is to be understood that the described embodiments are only a few, and not all, of the disclosed embodiments. The components of the embodiments of the present disclosure, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present disclosure, presented in the figures, is not intended to limit the scope of the claimed disclosure, but is merely representative of selected embodiments of the disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
Please refer to fig. 2, which is a schematic diagram illustrating a network node device 100 and a peer device 200 according to an embodiment of the present disclosure. Peer device 200 may be a different communication device that is the same as or similar to network node device 100. For example, in this embodiment, the network node device 100 and the peer device 200 may be a router, a switch, and the like.
The network node device 100 includes a main control board 110 and a plurality of service boards controlled by the main control board 110. The plurality of service boards are identified in turn as service board 121, service board 122, service board 12n, n typically being greater than or equal to 2. The main control board 110 includes a memory 112, a processor 114, and a bidirectional forwarding link failure detection device 116. The memory 112 is in direct or indirect electrical communication with the processor 114 to enable the transfer or interaction of data. The bidirectional forwarding link failure detection apparatus 116 includes at least one software functional module that may be stored in the memory 112 in the form of software or firmware and executed by the processor 114.
A BFD session is created between network node device 100 and peer device 200 over an aggregated link. The aggregation link comprises at least two member ports, and the service board corresponding to the aggregation link can be all service boards or only a part of all service boards. After receiving the BFD packet sent by the peer device 200, each service board corresponding to the aggregation link operates on the received BFD packet under the control of the main control board 110.
Please refer to fig. 3A, which is a flowchart illustrating a bidirectional forwarding link failure detection method according to an embodiment of the disclosure, and is applied to the network node device 100 shown in fig. 1. In this embodiment, each of the plurality of service boards of the network node device 100 is in one of an active state, a standby state, and a normal state, and at least one of the plurality of service boards includes an active state service board and a standby state service board. The explanation about the active state, the standby state, and the normal state is described below.
The method provided by the embodiment comprises the following steps:
step S10, negotiates with the peer device to create a bidirectional forwarding detection, BFD, session over the aggregated link.
And step S20, receiving the BFD message sent by the opposite terminal equipment.
In step S20, if the normal state service board receives the BFD packet sent by the peer device 200, the BFD packet needs to be sent to the active state service board by redirection, and the BFD packet needs to be sent to the standby state service board by redirection. The purpose of redirecting the BFD packet received from the peer device 200 to the standby state service board by the normal state service board is to enable the standby state service board to backup the operation performed by the active state service board with respect to the BFD packet.
If the standby state service board receives the BFD packet sent by the peer device 200, the BFD packet needs to be sent to the active state service board by redirection, and backup is performed for the operation performed by the active state service board with respect to the BFD packet.
The "backing up the operation executed by the active state service board with respect to the BFD packet" may refer to that the standby state service board backs up the function or operation of the active state service board, so that when the active state service board fails, the standby state service board can take over the operation of the active state service board for the first time, and BFD oscillation of a link is avoided. The operation of the main state service board on the received message comprises the following steps: and sending the received message to the processing unit of the user. The standby state service board backs up the operation of the main state service board on the message, which can be understood as that the standby state service board also sends the received message to its own processing unit. However, the processing unit of the active state service board processes the received message accordingly so as to respond to the peer device 200, while the processing unit of the standby state service board discards the received message (i.e., the message associated with the backup operation), and only when the state of the standby state service board changes to the active state, that is, the original active state service board fails, so that the standby state service board becomes the new active state service board, the processing unit of the standby state service board changes from "discard" to "process".
For example, when the number of the plurality of service boards is more than three, that is, when the active state service board, the standby state service board, and the normal state service board all exist, the normal state service board redirects a message sent by the peer device 200 to the active state service board and the standby state service board, respectively; after receiving the BFD packet sent by the peer device 200, the standby state service board redirects the packet to the primary state service board, and sends the BFD packet and the BFD packet received from the normal state service board to its own processing unit; the active state service board will send the BFD messages received from the opposite end device 200, the standby state service board and the normal state service board to its own processing unit. In addition, as described above, the processing unit of the standby state service board will then discard the received packet, and the processing unit of the active state service board will process the received packet.
For the case that the number of the service boards is two, the operation modes of the standby state service board and the active state service board for the packet can be obtained by the same principle with reference to the above description.
And step S30, processing the received BFD message.
As can be seen from the description in step S20, the processing of the BFD packet is performed by the active state service board.
In other embodiments, step S30 may be omitted.
Please refer to fig. 3B, which is a flowchart of another bidirectional forwarding link failure detection method provided in the embodiment of the present disclosure, the method in the embodiment is different from the scheme shown in fig. 3A, except that steps S10 to S30 further include the following steps:
step S40, if the active state service board fails, the standby state service board is reset to the active state to become a new active state service board.
When the standby state service board is set as a new main state service board, the standby state service board can immediately replace the operation of the original main state service board without resetting the BFD table entry, because the common state service board originally has the BFD table entry for redirecting the message to the new main state service board (namely, the original standby state service board), and the new main state service board originally has the BFD table entry for sending the received message to the processing unit of the new main state service board. Therefore, after the state of the original standby state service board is reset to the active state, the processing unit does not discard the received message, but processes the message, so that the standby state service board can take over the function of becoming a new active processing board when the active state service board fails, and the problem of BFD link oscillation is solved.
Step S50, selecting one of the normal operation normal state service boards, and setting the state of the selected service board as the standby state to make it the new standby state service board.
In this embodiment, the original main status service board with the fault is switched to the normal status service board after being recovered to normal.
The operation of selecting a new standby state service board may be performed before or after the original master state service board is restored to normal.
After selecting a new standby state service board, adding an entry for redirecting a message received from the opposite end device 200 to the new standby state service board for other common state service boards, and adding an entry for sending a received BFD message to a processing unit of the new standby state service board for the new standby state service board.
In order to more clearly illustrate the technical solution of the present disclosure, the following is described in detail with respect to two cases where the number of the service boards corresponding to the aggregation link is three or more and two, respectively.
Referring to fig. 4, the method provided in this embodiment is mainly provided for the case that the number of the service boards corresponding to the aggregation link is greater than or equal to 3. The order of execution of the steps of the method is not limited to the specific order shown in fig. 4 or described below.
Step S100, negotiates with the peer device 200 to create a bidirectional forwarding detection BFD session via the aggregated link.
Step S101, selecting two different service boards from the plurality of service boards corresponding to the aggregated link, and using the two different service boards as the active state service board and the standby state service board of the BFD session, respectively.
In this embodiment, one service board is selected from the plurality of service boards corresponding to the aggregated link according to a preset algorithm to serve as a primary state service board of the BFD session. Generally, different equipment manufacturers adopt different algorithms, but each algorithm is generally selected according to IP information corresponding to the BFD session, slot number information of a service board on the equipment, and the like.
In addition, after the active state service board for the BFD session is selected, one of the remaining service boards (i.e., the remaining service boards excluding the active state service board) is selected as the standby state service board based on the substantially same algorithm. The other service boards are used as common state service boards.
After receiving the BFD packet sent by the peer device 200, the following steps are performed. However, there is no strict order of execution between the following steps.
Step S103, the normal state service board sends the BFD packet received from the peer device 200 to the active state service board through redirection, and sends the BFD packet to the standby state service board through redirection, so that the standby state service board backs up the operation performed by the active state service board with respect to the BFD packet.
In this embodiment, after receiving the BFD packet sent by the peer device 200, the normal state service board redirects the BFD packet to the main state service board by setting the BFD processing table entry, and additionally, copies one BFD packet and sends the copied packet to the standby state service board by redirection.
Step S105, the standby state service board sends the BFD packet received from the peer device 200 to the active state service board through redirection, and performs backup for the operation performed by the active state service board with respect to the BFD packet.
In this embodiment, after receiving the BFD packet sent by the peer device 200, the standby state service board needs to transmit the BFD packet sent by the normal state service board and the BFD packet received by the standby state service board from the peer device to its processing unit, in addition to sending the BFD packet to the active state service board through redirection. After receiving the BFD message, the processing unit of the standby state service board discards the BFD message.
Step S107, the active state service board sends the BFD messages received from the peer device 200, the standby state service board, and the normal state service board to its own processing unit for processing.
In this embodiment, the active state service board receives the BFD packet sent by the peer device 200, the standby state service board, and the normal state service board, and transmits the received BFD packet to its own processing unit, and the processing unit performs "processing" on the received BFD packet.
Further, referring to fig. 5, the method provided in this embodiment further includes the following steps executed if the active state service board fails, such as a board is abnormally restarted:
step S201, the state of the standby state service board is reset to the active state, so that the standby state service board becomes a new active state service board.
In this embodiment, when the original standby state service board is set as the new active state service board, the processing action of the processing unit on the BFD packet is changed from "discard" to "process".
Step S203, selecting one of the normal running normal state service boards as a new standby state service board.
In this embodiment, within a preset time from the occurrence of the failure of the active state service board, one of the other normally operating service boards except the new active state service board may be selected as a new standby state service board. The preset time can be shorter than the time from the failure of the original main service board to the recovery of the normal operation.
For example, it is assumed that the time from the failure to the normal operation of the original master status service board is generally N milliseconds. If the preset time is set to P milliseconds and P milliseconds is greater than N milliseconds, the original master status service board that has recovered to normal operation may be selected when a new standby status service board is selected. If P milliseconds is less than N milliseconds, the original main state service board is not recovered to normal operation when a new standby state service board is selected, so that the new standby state service board can be selected only from the original common state service board.
Step S205, the normal state service board sends the BFD packet received from the peer device 200 to the new standby state service board through redirection, so that the new standby state service board backs up the operation performed by the new active state service board on the BFD packet.
Step S207, the new standby state service board backs up the operation executed by the new active state service board with respect to the BFD packet received by the new active state service board from the peer device.
It can be seen from steps S201 to S207 that, since the normal state service board will redirect the received BFD packet to the original standby state service board (the new active state processing board), and the original standby state service board will send the BFD packet received from the peer device 200 and the BFD packet received from the normal state service board to its own processing unit, after the original active state service board fails, the normal state service board does not need to add an entry for redirecting the packet to the new active state service board, and the new active state service board does not need to add an entry for sending the received packet to its own processing unit, so as to solve the problem of BFD link oscillation in the prior art.
In order to more clearly illustrate the method provided by the present embodiment, a specific example will be given below.
Referring to fig. 6, DUT1 serves as local network node device 100, and DUT2 serves as peer device 200. The DUT1 includes a master control board (Mater) and at least three service boards. The DUT1 creates a BFD session with the DUT2 over an aggregated link, which includes member links X, Y, Z. Member links X, Y and Z correspond to traffic panels Slot a, Slot B, and Slot C, respectively. In the BFD session, the service board Slot C is selected as the master state service board, the service board Slot B is selected as the standby state service board, and the remaining service boards Slot a except Slot C and Slot B are the normal state service boards.
After the DUT2 sends BFD messages to the DUT1, each traffic board performs the following operations: the common state service board Slot a needs to redirect a BFD packet received from the DUT2 to the primary state service board Slot C, and also needs to redirect the BFD packet to the standby state service board Slot B; the standby state service board Slot B needs to redirect the BFD messages received from the DUT2 to the active state service board Slot C, and transmit the BFD messages and the messages received from the normal state service board Slot a to its own processing unit, which performs a "discard" process; and the primary state service board Slot C receives BFD messages sent by the DUT2, the Slot A and the Slot B, and transmits the received BFD messages to the processing unit of the primary state service board Slot C for processing.
Referring to fig. 7, when the active state service board Slot C fails, such as the board is abnormally restarted, the standby state service board Slot B will be set as a new active state service board. The processing unit of the new master state service board Slot B will not "discard" the BFD packet any more, but will instead "process", i.e. completely take over the work of the original master state service board Slot C. Then, one of the rest service boards Slot A and Slot C except the new active state service board Slot B is selected as the new standby state service board. Assuming that the time limit for selecting a new standby state service board in this embodiment is before Slot C resumes normal operation, Slot a will be selected as the new standby state service board. Naturally, the Slot C that resumes normal operation will only be used as a normal state traffic board.
Since the original common state service board Slot a originally needs to copy one part of the messages received from the DUT2 to redirect to the Slot B, and the Slot B originally needs to transmit the BFD messages received from the opposite-end device and the BFD messages received from the common state service board to its own processing unit, after the original main state service board Slot C fails, the Slot a does not need to add a BFD processing table entry redirected to a new main state service board as in the prior art, and the Slot B does not need to add a BFD processing table entry for transmitting the received BFD messages to its own processing unit as in the prior art, thereby solving the problem of BFD link oscillation in the prior art.
Referring to fig. 8, a method according to an embodiment of the present disclosure is provided for a case that the number of service boards corresponding to the aggregation link is equal to 2. The order of execution of the steps of the method is not limited to the specific order shown in fig. 8 or described below.
Step S300, negotiates with the peer device 200 to create a bidirectional forwarding detection BFD session via the aggregated link.
Step S301, selecting one of the two service boards as an active state service board of the BFD session, and the other one as a standby state service board.
After receiving the BFD packet sent by the peer device 200, the following steps are performed:
step S303, the standby state service board sends the BFD packet received from the peer device 200 to the main state service board through redirection, and performs backup for the operation performed by the main state service board with respect to the BFD packet.
Step S305, the active state service board sends the BFD packet received from the peer device 200 and the standby state service board to its own processing unit for processing.
Furthermore, the method provided in this embodiment further includes the following steps that are executed after the active state service board fails:
step S307, setting the state of the standby state service board to be the active state, so that the standby state service board becomes a new active state service board.
Step S309, after the original main state service board is recovered to normal, the original main state service board is set as a new standby state service board.
In this embodiment, an identification mechanism may be provided, where the identification mechanism is capable of determining whether the original main state service board is recovered to normal, and triggering an operation of electing the original main state service board as a new standby state service board after determining that the original main state service board is recovered to normal.
Or, in this embodiment, when the election of the new standby state service board fails due to the fact that the original main state service board is not recovered to be normal, the election can be performed again until the election operation is successful, that is, until the original main state service board is recovered to be normal and elected as the new standby state service board.
In this embodiment, since the number of the service boards corresponding to the aggregation link is only two, after the original main state service board fails and the original standby state service board is set as the new main state service board, only the original main state service board is left to be selected as the new standby state service board. Therefore, after the original main state service board recovers to normal operation, the main state service board is set as a new standby state service board.
In general, during the period from the failure of the original master state service board to the recovery of normal operation, the probability that the new master state service board also fails is relatively small, so the method provided by this embodiment can also perfectly overcome the problem of BFD link oscillation for the case that the number of service boards corresponding to the aggregation link is only two.
Please refer to fig. 9, which is a functional block diagram of a bidirectional forwarding link failure detection apparatus 116 according to an embodiment of the present disclosure. The bidirectional forwarding link failure detection apparatus 116 includes a session establishing module 1162, a packet receiving module 1164, a first control module 1166, a second control module 1168, a packet processing module 1170, and a status setting module 1172.
A session establishing module 1162, configured to negotiate for creating a bidirectional forwarding detection BFD session between the service boards and the peer device via the aggregated link.
A message receiving module 1164, configured to enable the multiple service boards to receive the BFD message sent by the peer device.
A first control module 1166, configured to, if the received BFD packet sent by the peer device is a normal state service board, cause the normal state service board to send the BFD packet to the active state service board through redirection, and send the BFD packet to the standby state service board through redirection, so that the standby state service board performs backup on an operation performed by the active state service board with respect to the BFD packet.
A second control module, configured to, if a BFD packet received from the peer device is a standby state service board, send the BFD packet to the main state service board by the standby state service board through redirection, and perform backup for an operation performed by the main state service board with respect to the BFD packet; and the standby state service board is also used for discarding the BFD message associated with the backup operation.
And the message processing module 1170 is configured to enable the primary state service board to process the received BFD message.
A state setting module 1172, configured to, if the primary state service board fails, reset the state of the standby state service board to the primary state so as to make the standby state service board become a new primary state service board; and the system is also used for selecting one of the normal operation normal state service boards and setting the state of the selected service board as a standby state so as to enable the selected service board to become a new standby state service board.
The implementation principle and the generated technical effect of the bidirectional forwarding link failure detection apparatus 116 provided in the embodiment of the present disclosure are the same as those of the foregoing method embodiment, and for brief description, no mention is made in the apparatus embodiment, and reference may be made to the corresponding contents in the foregoing method embodiment.
In addition, in other embodiments, some of the modules of the bidirectional forwarding link failure detection apparatus 116 described above may be omitted. For example, in some embodiments, there may be no message processing module and/or no state setting module.
The above embodiments in this specification are all described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts among the embodiments are referred to each other.
Embodiments of the present disclosure also provide a machine-readable storage medium having stored thereon machine-executable instructions. When called and executed by a processor, the machine-executable instructions cause the processor to implement a method as described in any of the method embodiments above.
In the embodiments provided in the present application, it should be understood that the disclosed method, apparatus, and device may be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present disclosure may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present disclosure. And the aforementioned storage medium includes: u disk, removable hard disk, read only memory, random access memory, magnetic or optical disk, etc. for storing program codes. It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above description is only for the specific embodiments of the present disclosure, but the scope of the present disclosure is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present disclosure, and all the changes or substitutions should be covered within the scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (12)

1. A bidirectional forwarding link fault detection method is applied to a network node device, the network node device includes a plurality of service boards corresponding to an aggregation link, each service board is in one of an active state, a standby state and a normal state, and at least one active state service board and one standby state service board are included in the plurality of service boards, the method includes:
negotiating with an opposite terminal device to create a Bidirectional Forwarding Detection (BFD) session via an aggregated link;
receiving a BFD message sent by the opposite terminal equipment, wherein:
if the BFD message sent by the opposite terminal equipment is received by the common state service board, the common state service board sends the BFD message to the main state service board through redirection, and sends the BFD message to the standby state service board through redirection so that the standby state service board backs up the operation executed by the main state service board on the BFD message;
if the received BFD message sent by the opposite terminal equipment is the standby state service board, the standby state service board sends the BFD message to the main state service board through redirection, and the operation executed by the main state service board about the BFD message is backed up.
2. The method of claim 1, further comprising:
processing the received BFD message, wherein:
and the main state service board processes the received BFD message.
3. The method of claim 1, further comprising:
and the standby state service board discards the BFD message associated with the backup operation.
4. The method of claim 1, further comprising:
if the main state service board fails, the state of the standby state service board is reset to the main state so as to become a new main state service board.
5. The method of claim 4, further comprising:
one of the normal operation ordinary state service boards is selected, and the state of the selected service board is set to be a standby state so as to become a new standby state service board.
6. A bidirectional forwarding link failure detection device is applied to a network node device, the network node device includes a plurality of service boards corresponding to an aggregation link, each service board is in one of an active state, a standby state and a normal state, and at least one active state service board and one standby state service board are included in the plurality of service boards, the device includes:
a session establishing module, configured to negotiate with an opposite-end device to establish a Bidirectional Forwarding Detection (BFD) session via an aggregated link;
a message receiving module, configured to enable the multiple service boards to receive a BFD message sent by the peer device;
a first control module, configured to, if a normal state service board receives a BFD packet sent by the peer device, cause the normal state service board to send the BFD packet to a primary state service board through redirection, and send the BFD packet to a standby state service board through redirection so that the standby state service board backs up operations, which are executed by the primary state service board with respect to the BFD packet, of the primary state service board;
and the second control module is used for sending the BFD message to the main state service board by the standby state service board through redirection if the BFD message sent by the opposite terminal equipment is received by the standby state service board, and backing up the operation executed by the main state service board on the BFD message.
7. The apparatus of claim 6, further comprising:
and the message processing module is used for enabling the main state service board to process the received BFD message.
8. The apparatus of claim 6, wherein the second control module is further configured to cause the standby state service board to discard the BFD packet associated with the backup operation.
9. The apparatus of claim 6, further comprising:
and the state setting module is used for resetting the state of the standby state service board to the main state to enable the standby state service board to become a new main state service board if the main state service board fails.
10. The apparatus of claim 9, wherein the status setting module is further configured to select one of the normal-running normal-status service boards and set the status of the selected service board to the standby status to make it a new standby-status service board.
11. A network node device comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor to perform the method of any one of claims 1 to 5.
12. A machine-readable storage medium having stored thereon machine-executable instructions which, when invoked and executed by a processor, cause the processor to implement the method of any of claims 1-5.
CN201711041362.5A 2017-10-30 2017-10-30 Bidirectional forwarding link fault detection method and device and network node equipment Active CN107612754B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711041362.5A CN107612754B (en) 2017-10-30 2017-10-30 Bidirectional forwarding link fault detection method and device and network node equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711041362.5A CN107612754B (en) 2017-10-30 2017-10-30 Bidirectional forwarding link fault detection method and device and network node equipment

Publications (2)

Publication Number Publication Date
CN107612754A CN107612754A (en) 2018-01-19
CN107612754B true CN107612754B (en) 2021-07-06

Family

ID=61085689

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711041362.5A Active CN107612754B (en) 2017-10-30 2017-10-30 Bidirectional forwarding link fault detection method and device and network node equipment

Country Status (1)

Country Link
CN (1) CN107612754B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109120553B (en) * 2018-09-12 2020-12-04 杭州迪普科技股份有限公司 Flow forwarding method and device based on flow definition
CN109547274A (en) * 2019-01-28 2019-03-29 新华三技术有限公司 A kind of enclosure board switching method, device and first network equipment
CN111669280B (en) * 2019-03-06 2023-05-16 中兴通讯股份有限公司 Message transmission method, device and storage medium
CN110601888B (en) * 2019-09-10 2020-11-06 清华大学 Deterministic fault detection and positioning method and system in time-sensitive network
CN110971459B (en) * 2019-11-29 2020-07-14 新华三半导体技术有限公司 Session fault detection method and device, terminal equipment and readable storage medium
CN113037622B (en) * 2019-12-24 2024-01-05 华为数字技术(苏州)有限公司 System and method for preventing BFD from vibrating
CN113193995A (en) * 2021-04-22 2021-07-30 深圳市信锐网科技术有限公司 Communication apparatus, control method thereof, and computer-readable storage medium
CN114615178B (en) * 2022-03-16 2024-02-13 北京轻网科技股份有限公司 Link quality detection method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025616A (en) * 2010-11-25 2011-04-20 中兴通讯股份有限公司 Method, device and switch for realizing BFD (Bidirectional Forwarding Detection)
CN102710466A (en) * 2012-06-11 2012-10-03 烽火通信科技股份有限公司 Master and backup board card changeover protection system, and bidirectional forwarding detection seamless handover method and device
CN105429814A (en) * 2014-09-17 2016-03-23 中兴通讯股份有限公司 Method and device for BFD protection by utilizing multiple board cards

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101465859B (en) * 2009-01-13 2012-09-26 中兴通讯股份有限公司 Method and device for triggering main and standby interface board inverse switch
CN101800673B (en) * 2010-02-03 2014-04-30 中兴通讯股份有限公司 Method and device of bidirectional forwarding detection (BFD) of oscillation damping
CN102752155B (en) * 2012-08-01 2016-05-11 杭州迪普科技有限公司 A kind of protection method for handover control and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025616A (en) * 2010-11-25 2011-04-20 中兴通讯股份有限公司 Method, device and switch for realizing BFD (Bidirectional Forwarding Detection)
CN102710466A (en) * 2012-06-11 2012-10-03 烽火通信科技股份有限公司 Master and backup board card changeover protection system, and bidirectional forwarding detection seamless handover method and device
CN105429814A (en) * 2014-09-17 2016-03-23 中兴通讯股份有限公司 Method and device for BFD protection by utilizing multiple board cards

Also Published As

Publication number Publication date
CN107612754A (en) 2018-01-19

Similar Documents

Publication Publication Date Title
CN107612754B (en) Bidirectional forwarding link fault detection method and device and network node equipment
US8886831B2 (en) System and methodology for fast link failover based on remote upstream failures
US8331222B2 (en) Link fault handling method and data forwarding apparatus
EP1512250B1 (en) Distinguishing between link and node failure to facilitate fast reroute
JP5899305B2 (en) Technology for operating network nodes
JP6308534B2 (en) Network protection method, network protection device, off-ring node, and system
JP2009303092A (en) Network equipment and line switching method
CN109495345B (en) BFD processing method and network equipment
CN111447101B (en) Link detection method, device, computer equipment and storage medium
EP2254289B1 (en) Method, device, and system for establishing label switching path in fast rerouting switching
CN101984600A (en) Graceful restart method, equipment and system of routing protocol
WO2020052687A1 (en) Network element anti-looping method and apparatus, device, and readable storage medium
CN110278094B (en) Link recovery method, device, system, storage medium and electronic device
WO2019001197A1 (en) Link switching method and apparatus
Chan et al. Fast failure recovery for in-band controlled multi-controller OpenFlow networks
WO2017000096A1 (en) Link recovery method and network device
CN105939254B (en) The method and device of VRRP backup group state switching
JP2007027954A (en) Packet network and layer 2 switch
Park et al. Toward control path high availability for software-defined networks
JP5518771B2 (en) Redundant network system, termination device and relay point adjacent device
CN106301835B (en) BFD link establishing method and device and router
WO2014079010A1 (en) Service protection method, device and system
JPH06110800A (en) Dynamic path switching method
EP3200403B1 (en) Packet forwarding method and device, sdn and system
CN103795625A (en) Multi-protocol label switching network quick rerouting implementation method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230607

Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: H3C INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466

Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd.