Method and device for realizing bidirectional forwarding detection
A technology of two-way forwarding detection and implementation method, applied in the field of communication, can solve the problems of routing protocol oscillation, link abnormality, link fault misjudgment, etc., to achieve the effect of improving accuracy and adapting to high reliability
- Application Information
AI Technical Summary
Problems solved by technology
no. 1 example
 figure 2 It is a flowchart of a method for implementing bidirectional forwarding detection according to Embodiment 1 of the present invention, including the following steps:
 Step S202, the first device receives the P (parameter negotiation) message sent by the second device;
 Step S204, the first device replies to the F (parameter negotiation confirmation) message, and starts timing at the same time;
 Step S206: If the BFD detection packet sent by the second device is not received within a preset time, the link detection is started, and the BFD detection packet is sent to the second device.
 In this embodiment, after receiving the P packet, the device does not immediately start link detection (ie, timeout detection), but waits for a period of time by timing. Only starting the link detection solves the problem in the related art that since the device starts link detection immediately after receiving the P packet, there is a certain tim...
no. 2 example
 An OSPF neighbor is established between two routers A and B of an operator. Due to the importance of the services carried between routers A and B, it is necessary to quickly detect and switch the abnormal state of the link between routers A and B. To ensure service reliability, configure and establish a BFD session between router A and router B to perform bidirectional forwarding detection.
 like image 3 The networking diagram of router A and router B of a carrier is shown. First, configure OSPF protocol on router A and router B. At a certain moment, OSPF neighbors discover and establish neighbor relationship; OSPF protocol notifies BFD to establish BFD corresponding to OSPF link Session; BFD session performs state machine switching by sending / receiving packets; after receiving P / F packets and negotiating the time parameter of the link detection timer, BFD starts to perform rapid link detection.
 against image 3 The flow of the implementation method ...
no. 3 example
 An operator builds a pseudo wire (Pseudo wire) in its backbone network to carry end-to-end user traffic. Since users have higher requirements for traffic reliability, the operator deploys BFD detection between endpoints to speed up link abnormality detection. Discover and switch.
 like Figure 5 Shown is a schematic diagram of the operator's backbone network. First, a pseudowire is configured and established between router A and router B to simulate end-to-end user traffic. At some point, the pseudowire is established normally and starts to forward user traffic; the pseudowire protocol informs the BFD protocol to establish a BFD for the pseudowire. Session; BFD session performs state machine switching by sending / receiving packets; after receiving P / F packets and negotiating the time parameter of the link detection timer, BFD starts to perform rapid link detection.
 Its implementation steps are as follows:
 Step 1, a pseudowire is configured an...
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction