CN107623607B - BFD session connection establishment method and device - Google Patents

BFD session connection establishment method and device Download PDF

Info

Publication number
CN107623607B
CN107623607B CN201610575334.0A CN201610575334A CN107623607B CN 107623607 B CN107623607 B CN 107623607B CN 201610575334 A CN201610575334 A CN 201610575334A CN 107623607 B CN107623607 B CN 107623607B
Authority
CN
China
Prior art keywords
state
bfd
session
bfd session
sent
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
CN201610575334.0A
Other languages
Chinese (zh)
Other versions
CN107623607A (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.)
Hangzhou H3C 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 CN201610575334.0A priority Critical patent/CN107623607B/en
Priority to PCT/CN2017/092337 priority patent/WO2018010614A1/en
Publication of CN107623607A publication Critical patent/CN107623607A/en
Application granted granted Critical
Publication of CN107623607B publication Critical patent/CN107623607B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The application provides a BFD session connection establishing method and device, wherein the method comprises the following steps: when the state of the BFD session is DOWN, if a BFD message which is sent by opposite-end equipment and has the state of INIT is received, the state of the BFD session is switched to PRE-UP; when the state of the BFD session is INIT, if a BFD message which is sent by opposite-end equipment and is in the state of INIT or UP is received, the state of the BFD session is switched to PRE-UP; when the state of the BFD session is PRE-UP, sending a BFD message with the state of UP to opposite terminal equipment; if receiving a BFD message with a state of UP sent by opposite terminal equipment and meeting a preset condition, switching the state of the BFD session to UP, wherein the preset condition is that N BFD messages with the state of UP are continuously received and the receiving time interval between every two adjacent BFD messages is within a preset time range.

Description

BFD session connection establishment method and device
Technical Field
The present application relates to the field of network communication technologies, and in particular, to a method and an apparatus for establishing a BFD session connection.
Background
BFD (Bidirectional Forwarding Detection) is a general, standardized, media independent, protocol independent fast failure Detection mechanism, and establishes sessions on two devices to monitor Bidirectional Forwarding paths between the two devices and serve upper layer protocols. Three states of BFD session connection establishment are specified on the BFD protocol: DOWN (not ready), INIT (ready), and UP (established).
Disclosure of Invention
In view of this, the present application provides a BFD session connection establishing method and apparatus.
Specifically, the method is realized through the following technical scheme:
in one aspect, a BFD session connection establishment method is provided, including:
when the state of the BFD session is DOWN, if a BFD message which is sent by opposite-end equipment and has the state of INIT is received, the state of the BFD session is switched to PRE-UP;
when the state of the BFD session is INIT, if a BFD message which is sent by opposite-end equipment and is in the state of INIT or UP is received, the state of the BFD session is switched to PRE-UP;
when the state of the BFD session is PRE-UP, sending a BFD message with the state of UP to opposite terminal equipment;
if receiving a BFD message with a state of UP sent by an opposite terminal device and meeting a preset condition, switching the state of the BFD session to UP, where the preset condition is that N BFD messages with a state of UP are continuously received and a receiving time interval between adjacent 2 BFD messages in the N BFD messages with a state of UP is within a preset time range, where N is a positive integer.
In another aspect, an apparatus for establishing a BFD session connection is further provided, including:
a receiving module, configured to receive a BFD packet sent by an opposite-end device of a BFD session;
a first switching module, configured to switch, when the state of the BFD session is DOWN, the state of the BFD session to PRE-UP if the receiving module receives a BFD packet sent by an opposite-end device and having an INIT status;
a second switching module, configured to switch the state of the BFD session to PRE-UP if the receiving module receives a BFD packet sent by the peer device and having the state of INIT or UP when the state of the BFD session is INIT;
a sending module, configured to send a BFD packet in a state of UP to an opposite terminal device when the state of the BFD session is PRE-UP;
a third switching module, configured to, when the state of the BFD session is PRE-UP, switch the state of the BFD session to UP if the receiving module receives a BFD packet sent by an opposite-end device and the receiving module meets a preset condition, where the preset condition is that N BFD packets in the state of UP are continuously received and a receiving time interval between two adjacent BFD packets in the N BFD packets in the state of UP is within a preset time range, and N is a positive integer.
According to the technical scheme, a new BFD session connection establishment state PRE-UP is introduced, when the state of the BFD session is DOWN, if a BFD message with the state of INIT sent by opposite-end equipment is received, the state of the BFD session is not directly switched to the UP state but to the PRE-UP state, and when the state of the BFD session is INIT, if a BFD message with the state of INIT or UP sent by the opposite-end equipment is received, the state of the BFD session is not directly switched to the UP state but to the PRE-UP state; after entering the PRE-UP state, sending a BFD packet in the UP state to the peer device, and switching the state of the BFD session to the UP state only when receiving the BFD packet in the UP state sent by the peer device and meeting a preset condition, where the preset condition is: n BFD messages with the state of UP are continuously received, and the receiving time interval between every two adjacent BFD messages with the state of UP is within a preset time range. By setting the preset conditions, when it is determined that the CPU of the opposite-end device can continuously send N BFD messages with the state UP and the receiving time interval between 2 adjacent BFD messages with the state UP is within the preset time range, it indicates that the processing performance of the CPU of the opposite-end device is stable, orderly and normal, and there are no problems of disorder, packet loss, large time delay, and the like, so that the UP state can be entered without causing the problem of oscillation of the state of the BFD session, and the problem of oscillation of the upper-layer protocol linked by the BFD session is not caused.
Drawings
Fig. 1 is a message interaction diagram of a BFD session connection establishment procedure;
fig. 2 is a schematic diagram of message interaction in which the processing performance of the CPU of PE2 is degraded, resulting in failure of BFD session establishment;
fig. 3 is a state transition diagram illustrating BFD session connection establishment according to an exemplary embodiment of the present application;
FIG. 4 is a flow chart illustrating a method of determining that a predetermined condition is satisfied in an exemplary embodiment of the present application;
fig. 5 is a message interaction diagram of a BFD session connection establishment procedure shown in an exemplary embodiment of the present application;
fig. 6 is a schematic hardware structure diagram of a network device to which a BFD session connection setup apparatus is applied according to an exemplary embodiment of the present application;
fig. 7 is a schematic structural diagram of a BFD session connection setup apparatus according to an exemplary embodiment of the present application;
fig. 8 is a schematic structural diagram of a BFD session connection setup apparatus according to an exemplary embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
For fast detection, BFD usually links with other upper layer protocols, and a typical application is to detect whether PW is normal through BFD linking PW (Pseudowire). As shown in fig. 1, there are two PE (service provider edge) devices PE1 and PE2, a PW is established over the physical link between PE1 and PE2, the PW binds a BFD session whose initial state is DOWN at both PE1 and PE 2. As shown in fig. 1, the BFD session connection establishment procedure between PE1 and PE2 includes the steps of:
step S101, PE1 sends BFD message with DOWN state to PE 2;
step S102, after receiving the BFD message with the state of DOWN, PE2 switches the state of the BFD session to INIT, and then sends the BFD message with the state of INIT to PE 1;
step S103, after receiving the BFD message with INIT state, PE1 switches the state of BFD session to UP, and then sends the BFD message with UP state to PE 2; after receiving the BFD packet whose state is UP, PE2 switches the state of the BFD session to UP.
In the above process, the BFD messages interacted between PE1 and PE2 all need to be sent to a Central Processing Unit (CPU) for judgment and processing. When the CPU processing performance of any one of the devices deteriorates, for example, PE2 in fig. 2 causes a decrease in processing performance due to a large processing workload, the following may occur:
in step S103, after receiving the BFD packet with UP status from PE1, PE2 uploads the BFD packet to the CPU, but the BFD packet cannot be processed in time and is discarded due to the degradation of CPU processing performance of PE2, and after the detection time arrives, the state of the BFD session on PE2 is switched from INIT to DOWN, and the state of PE1 is also switched from UP to DOWN after the detection time arrives. Subsequently, PE1 and PE2 will try to initiate BFD session connection establishment again, and a situation that the CPU of PE2 discards BFD packets may still occur, so that the UP state is finally reached after the oscillation process. In this process, the state of the BFD session oscillates due to the decrease of the CPU processing performance of the PE2, and further, the upper layer protocol linked by the BFD session also oscillates, for example, the neighbor relation of the upper layer routing protocol oscillates.
In order to solve the problem that the existing BFD session may oscillate and further cause the oscillation of the upper layer protocol linked with the BFD session, the following embodiments of the present application provide a BFD session connection establishment method and a BFD session connection establishment apparatus to which the method can be applied.
In the embodiment of the application, on the basis of three states of DOWN (not ready), INIT (ready) and UP (established) of BFD session connection establishment specified by a BFD protocol, a new state PRE-UP (quasi-UP) is introduced, and PER-UP represents an unstable state which is not yet completely UP and may be changed.
The state transition of the BFD session connection establishment at this time is shown in fig. 3, and is specifically described as follows:
1. when the state of the BFD session is DOWN, if a BFD message which is sent by opposite-end equipment and has the state of DOWN is received, the state of the BFD session is switched to INIT;
2. when the state of the BFD session is INIT, if a BFD message which is sent by opposite-end equipment and is in the state of INIT or UP is received, the state of the BFD session is switched to PRE-UP;
3. when the state of the BFD session is PRE-UP, if a BFD message which is sent by opposite-end equipment and is in an INIT or UP state is received, the state of the BFD session is maintained to be PRE-UP;
4. when the state of the BFD session is PRE-UP, switching the state of the BFD session to UP when judging that the preset condition is met;
wherein the preset conditions are as follows: n (N is a positive integer) BFD packets with UP status sent by the peer device are continuously received, and a receiving time interval between adjacent 2 BFD packets in the N BFD packets is within a preset time range, specifically, the preset time range may be represented as [ T-T1, T + T2], where T represents a sending time interval of the BFD packet, and T1 and T2 represent a preset time interval error. In practical implementation, T1 and T2 may be the same or different, for example, T1 and T2 may both be preset to 20% T.
For example, when T is 100ms, T1 is T2 is 20% T is 20ms, and N is 5, after the state of the BFD session is switched to PRE-UP, if 5 BFD packets whose states are UP are continuously received from the peer device, and the receiving time interval of 2 adjacent BFD packets in the 5 BFD packets is between 80ms and 120ms, the state of the BFD session is switched from PER-UP to UP.
Specifically, the received BFD packet with the UP state may be counted by a counter, and an initial value of a count value i of the counter is 0. In this way, after the state of the BFD session is switched to the PRE-UP state, the method for determining that the preset condition is satisfied may be as shown in fig. 4, including the following steps:
step S301, judging whether a BFD message of the BFD session is received, if so, executing step S302, otherwise, returning to step S301;
step S302, judging whether the state of the BFD message is UP, if yes, executing step S303, otherwise, executing step S309;
step S303, recording the time when the BFD packet with the UP state is received, and adding 1 to the count value of the counter, that is, making i equal to i + 1;
step S304, judging whether the count value of the counter is greater than 1, namely, judging whether i is greater than 1, if so, executing step S305, otherwise, returning to step S301;
step S305, calculating the difference A between the time of receiving the BFD message with the UP state and the recorded time of receiving the BFD message with the UP state, and then executing step S306;
step S306, judging whether the A is within a preset time range [ T-T1, T + T2], if so, executing the step S307, otherwise, executing the step S309;
step S307, determining whether the count value of the counter is equal to N, that is, determining whether i is equal to N, if yes, executing step S308, otherwise, returning to step S301;
step S308, if it is determined that the preset condition is satisfied, clearing the count value of the counter to 0, that is, setting i to 0; and then exiting the flow.
Step S309, clearing the count value of the counter to 0, that is, making i equal to 0; and then exiting the flow.
5. When the state of the BFD session is PRE-UP, if a BFD message which is sent by opposite-end equipment and is in a DOWN state is received, or the BFD message which is sent by the opposite-end equipment is not received in the detection time, the state of the BFD session is switched to DOWN;
6. when the state of the BFD session is DOWN, if a BFD message which is sent by opposite-end equipment and has the state of INIT is received, the state of the BFD session is switched to PRE-UP;
7. when the state of the BFD session is UP, if a BFD message which is sent by opposite-end equipment and is in a DOWN state is received, or the BFD message which is sent by the opposite-end equipment is not received in the detection time, the state of the BFD session is switched to DOWN;
8. when the state of the BFD session is DOWN, if a BFD message which is sent by opposite-end equipment and has a state of UP is received, the state of the BFD session is maintained to be DOWN;
9. when the state of the BFD session is INIT, if a BFD message which is sent by opposite-end equipment and is in a DOWN state is received, the state of the BFD session is maintained as INIT;
10. when the state of the BFD session is UP, if a BFD message which is sent by opposite-end equipment and is in an INIT or UP state is received, the state of the BFD session is maintained to be UP;
11. and when the state of the BFD session is INIT, if the BFD message sent by the opposite terminal equipment is not received in the detection time, switching the state of the BFD session to DOWN.
When the state of the BFD session is DOWN, sending a BFD message with the state of DOWN to opposite-end equipment, when the state of the BFD session is INIT, sending a BFD message with the state of INIT to the opposite-end equipment, when the state of the BFD session is PRE-UP, sending a BFD message with the state of UP to the opposite-end equipment, and when the state of the BFD session is UP, sending a BFD message with the state of UP to the opposite-end equipment.
In the method of the above embodiment of the present application, a new BFD session connection establishment state PRE-UP is introduced, where when the state of a BFD session is DOWN, if a BFD packet whose state is INIT sent from an opposite end device is received, the state of the BFD session is not directly switched to UP but to PRE-UP, and when the state of the BFD session is INIT, if a BFD packet whose state is INIT or UP sent from an opposite end device is received, the state of the BFD session is not directly switched to UP but to PRE-UP; after entering the PRE-UP state, sending a BFD packet in the UP state to the peer device, and switching the state of the BFD session to the UP state only when receiving the BFD packet in the UP state sent by the peer device and meeting a preset condition, where the preset condition is: n BFD messages with the state of UP are continuously received, and the receiving time interval between every two adjacent BFD messages with the state of UP is within a preset time range. By setting the preset conditions, when it is determined that the CPU of the opposite-end device can continuously send N BFD messages with the state UP and the receiving time interval between 2 adjacent BFD messages with the state UP is within the preset time range, it indicates that the processing performance of the CPU of the opposite-end device is stable, orderly and normal, and there are no problems of disorder, packet loss, large time delay, and the like, so that the UP state can be entered without causing the problem of oscillation of the state of the BFD session, and the problem of oscillation of the upper-layer protocol linked by the BFD session is not caused.
The following description will be made by taking an example of detecting whether the PW is normal by linking the BFDs with the PW. A PW is established over the physical link between two PE devices PE1 and PE2, which binds one BFD session. The CPU of PE2 has a large processing load and therefore has poor processing performance. The initial state of the BFD session is DOWN on both PE1 and PE 2. As shown in fig. 5, the BFD session connection establishment procedure between PE1 and PE2 includes the steps of:
step S401, PE1 sends BFD message with DOWN state to PE 2;
step S402, after receiving the BFD message with the state of DOWN, PE2 switches the state of the BFD session to INIT, and then sends the BFD message with the state of INIT to PE 1;
step S403, after receiving the BFD message with INIT status, PE1 switches the state of BFD session to PRE-UP, and then sends the BFD message with UP status to PE 2;
step S404, after receiving the BFD message with the state of UP, PE2 switches the state of BFD session to PRE-UP, and then sends the BFD message with the state of UP to PE 1;
when the state of the BFD session is PRE-UP, PE1 and PE2 send BFD messages with the state of UP to each other according to the sending time interval.
Step S405, when PE1 judges that the preset condition is met, switching the state of the BFD session to UP;
in step S406, when determining that the preset condition is satisfied, PE2 switches the state of the BFD session to UP.
Corresponding to the foregoing embodiments of the BFD session connection establishment method, the present application also provides embodiments of a BFD session connection establishment apparatus.
The embodiment of the BFD session connection establishing apparatus 60 according to the present application may be applied to a network device, such as a router, which may run a BFD protocol. The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. In the case of software implementation, as a logical means, the device is formed by the processor 10 of the network device reading the corresponding computer program instructions in the non-volatile memory 50 into the memory 40 for execution. From a hardware aspect, as shown in fig. 6, a hardware structure diagram of a network device where the BFD session connection establishment apparatus of the present application is located is shown, except for the processor 10, the internal bus 20, the network interface 30, the memory 40, and the nonvolatile memory 50 shown in fig. 6, the network device where the apparatus is located in the embodiment may also include other hardware according to an actual function of the network device, which is not described again.
Referring to fig. 7, the BFD session connection establishing apparatus 60 according to the embodiment of the present application includes: a receiving module 601, a first switching module 602, a second switching module 603, a sending module 604 and a third switching module 605, wherein:
a receiving module 601, configured to receive a BFD packet sent by an opposite-end device of a BFD session;
a first switching module 602, configured to, when the state of the BFD session is DOWN, switch the state of the BFD session to PRE-UP if the receiving module 601 receives a BFD packet sent by an opposite end device and in an INIT state;
a second switching module 603, configured to switch, when the state of the BFD session is INIT, the state of the BFD session to PRE-UP if the receiving module 601 receives a BFD packet sent by an opposite end device and in the state of INIT or UP;
a sending module 604, configured to send a BFD packet in a state of UP to an opposite terminal device when the state of the BFD session is PRE-UP;
a third switching module 605, configured to, when the state of the BFD session is PRE-UP, switch the state of the BFD session to UP if the receiving module 601 receives a BFD packet with a state of UP sent by an opposite end device and meets a preset condition, where the preset condition is that N BFD packets with a state of UP are continuously received and a receiving time interval between two adjacent BFD packets in the N BFD packets with a state of UP is within a preset time range, and N is a positive integer.
In addition, as shown in fig. 8, the BFD session connection establishing apparatus 60 further includes: a maintaining module 606, configured to, when the state of the BFD session is PRE-UP, if the receiving module 601 receives a BFD packet sent by the peer device and in the state of UP, and does not meet a preset condition, maintain the state of the BFD session as PRE-UP.
In addition, the maintaining module 606 is further configured to, when the state of the BFD session is PRE-UP, maintain the state of the BFD session as PRE-UP if the receiving module 601 receives a BFD packet with an INIT state sent by the peer device.
In addition, as shown in fig. 8, the BFD session connection establishing apparatus 60 further includes: a fourth switching module 607, configured to, when the state of the BFD session is PRE-UP, switch the state of the BFD session to DOWN if the receiving module 601 receives a BFD packet sent by the peer device and the state is DOWN, or if the receiving module 601 does not receive a BFD packet sent by the peer device within the detection time.
The preset time range is [ T-T1, T + T2], wherein T represents a sending time interval of the BFD message, and T1 and T2 represent preset time interval errors.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (10)

1. A Bidirectional Forwarding Detection (BFD) session connection establishment method is characterized by comprising the following steps:
when the state of the BFD session is not ready DOWN, if a BFD message which is sent by opposite-end equipment and has the state of ready INIT is received, switching the state of the BFD session to be quasi-established PRE-UP;
when the state of the BFD session is INIT, if a BFD message which is sent by the opposite terminal equipment and has the state of INIT or established UP is received, switching the state of the BFD session to the PRE-UP;
when the state of the BFD session is the PRE-UP, sending a BFD message with the state of UP to the opposite terminal equipment;
if receiving a BFD message sent by the opposite terminal device and in a state of UP, and meeting a preset condition, switching the state of the BFD session to UP, where the preset condition is that N BFD messages in a state of UP are continuously received and a receiving time interval between adjacent 2 BFD messages in the N BFD messages in a state of UP is within a preset time range, and N is a positive integer.
2. The method of claim 1, wherein when the state of the BFD session is the PRE-UP, the method further comprises:
and if the BFD message which is sent by the opposite terminal equipment and is in the UP state is received and the preset condition is not met, maintaining the state of the BFD session as the PRE-UP.
3. The method of claim 1, wherein when the state of the BFD session is the PRE-UP, the method further comprises:
and if receiving a BFD message which is sent by the opposite terminal equipment and has the state of INIT, maintaining the state of the BFD session as the PRE-UP.
4. The method of claim 1, wherein when the state of the BFD session is the PRE-UP, the method further comprises:
and if the BFD message which is sent by the opposite terminal equipment and is in the DOWN state is received, or the BFD message which is sent by the opposite terminal equipment is not received within the detection time, switching the state of the BFD session to the DOWN state.
5. The method according to any one of claims 1 to 4, wherein the preset time range is [ T-T1, T + T2], where T represents a transmission time interval of BFD messages, and T1 and T2 represent preset time interval errors.
6. A Bidirectional Forwarding Detection (BFD) session connection establishment apparatus, comprising:
a receiving module, configured to receive a BFD packet sent by an opposite-end device of a BFD session;
a first switching module, configured to switch, when the state of the BFD session is not ready DOWN, the state of the BFD session to quasi-established PRE-UP if the receiving module receives a BFD packet sent by the peer device and having a state of ready INIT;
a second switching module, configured to switch, when the state of the BFD session is INIT, the state of the BFD session to PRE-UP if the receiving module receives a BFD packet sent by the peer device and having the state of INIT or established UP;
a sending module, configured to send a BFD packet in the state of UP to the peer device when the state of the BFD session is PRE-UP;
a third switching module, configured to, when the state of the BFD session is PRE-UP, switch the state of the BFD session to UP if the receiving module receives a BFD packet sent by the peer device and in a state of UP, and meets a preset condition, where the preset condition is that N BFD packets in a state of UP are continuously received and a receiving time interval between adjacent 2 BFD packets in the N BFD packets in a state of UP is within a preset time range, and N is a positive integer.
7. The apparatus of claim 6, further comprising:
a maintaining module, configured to maintain the state of the BFD session as the PRE-UP if the receiving module receives a BFD packet sent by the peer device and in the state of UP, and does not satisfy the preset condition, when the state of the BFD session is the PRE-UP.
8. The apparatus of claim 7,
the maintaining module is further configured to, when the state of the BFD session is the PRE-UP, maintain the state of the BFD session as the PRE-UP if the receiving module receives a BFD packet sent by the peer device and having the state of INIT.
9. The apparatus of claim 6, further comprising:
a fourth switching module, configured to, when the state of the BFD session is PRE-UP, switch the state of the BFD session to DOWN if the receiving module receives a BFD packet sent by the peer device and in a state of DOWN, or if the receiving module does not receive the BFD packet sent by the peer device within a detection time.
10. The apparatus according to any one of claims 6 to 9, wherein the preset time range is [ T-T1, T + T2], where T represents a transmission time interval of BFD packets, and T1 and T2 represent preset time interval errors.
CN201610575334.0A 2016-07-15 2016-07-15 BFD session connection establishment method and device Active CN107623607B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610575334.0A CN107623607B (en) 2016-07-15 2016-07-15 BFD session connection establishment method and device
PCT/CN2017/092337 WO2018010614A1 (en) 2016-07-15 2017-07-10 Bfd session connection establishment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610575334.0A CN107623607B (en) 2016-07-15 2016-07-15 BFD session connection establishment method and device

Publications (2)

Publication Number Publication Date
CN107623607A CN107623607A (en) 2018-01-23
CN107623607B true CN107623607B (en) 2020-04-03

Family

ID=60952805

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610575334.0A Active CN107623607B (en) 2016-07-15 2016-07-15 BFD session connection establishment method and device

Country Status (2)

Country Link
CN (1) CN107623607B (en)
WO (1) WO2018010614A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111478851B (en) * 2020-02-29 2022-05-27 新华三信息安全技术有限公司 Message processing method and device
CN112491638A (en) * 2020-07-30 2021-03-12 中兴通讯股份有限公司 Tunnel BFD session establishment method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101170459A (en) * 2007-11-28 2008-04-30 中兴通讯股份有限公司 Failure detection and link recovery method based on bidirectional forward link
CN101340380A (en) * 2008-08-11 2009-01-07 中兴通讯股份有限公司 Method and apparatus for uninterrupted forwarding of bi-directional forwarding detection in master-slave switch implementation
CN102075390A (en) * 2011-02-16 2011-05-25 华为技术有限公司 Transmission state detection method and related device thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2720420B1 (en) * 2012-10-12 2018-11-21 Alcatel Lucent Method for exchanging information for establishing a path between two nodes of a communication network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101170459A (en) * 2007-11-28 2008-04-30 中兴通讯股份有限公司 Failure detection and link recovery method based on bidirectional forward link
CN101340380A (en) * 2008-08-11 2009-01-07 中兴通讯股份有限公司 Method and apparatus for uninterrupted forwarding of bi-directional forwarding detection in master-slave switch implementation
CN102075390A (en) * 2011-02-16 2011-05-25 华为技术有限公司 Transmission state detection method and related device thereof

Also Published As

Publication number Publication date
WO2018010614A1 (en) 2018-01-18
CN107623607A (en) 2018-01-23

Similar Documents

Publication Publication Date Title
US9705735B2 (en) System and method using RSVP hello suppression for graceful restart capable neighbors
CN101132320B (en) Method for detecting interface trouble and network node equipment
US20080117827A1 (en) Method and system for verifying connectivity of logical link
JP2015508631A (en) Redundant network connection
EP3029883B1 (en) Network protection method and apparatus, next-ring node, and system
EP2696542A1 (en) Method, ToR switch, and system for implementing protection switchover based on TRILL network
EP2553870B1 (en) An operations, administrations and management proxy and a method for handling operations, administrations and management messages
JP7092813B2 (en) Packet transmission method and equipment
US8477655B2 (en) Method, device, and system for establishing label switching path in fast rerouting switching
CN101808021A (en) Fault detection method, device and system, message statistical method and node equipment
WO2013133303A1 (en) Network system, controller, and load distribution method
CN104283711A (en) Fault detection method based on BFD, nodes and system
CN107623607B (en) BFD session connection establishment method and device
CN107332793B (en) Message forwarding method, related equipment and system
CN107948000B (en) Method, device and system for switching main channel and standby channel
US10164823B2 (en) Protection method and system for multi-domain network, and node
WO2015180265A1 (en) Multi-link protection switching method and device
EP3232617B1 (en) Protection switching method and system, and nodes
EP3158685B1 (en) Identification of candidate problem network entities
Kim et al. Protection switching methods for point‐to‐multipoint connections in packet transport networks
EP3499801B1 (en) Preventing failure processing delay
EP4199466A1 (en) Active-active tdm pw with asymmetry control
CN110740094B (en) Network equipment, BFD message transmission method and device
CN112564931B (en) Fault processing method, device and storage medium
US20150188803A1 (en) Systems, apparatuses, and methods for rerouting network traffic

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