Bidirectional Forwarding Detection (BFD), as a detection mechanism, detects faults on links between neighboring routers. Associated with a routing protocol, BFD can rapidly detect link faults, report the faults to the protocol, and speed up the protocol's response to network topology changes.
BFD for RIP can rapidly detect link faults, report the faults to RIP, and speed up the RIP's response to network topology changes.
Static BFD
In static BFD, BFD session parameters (such as local and remote discriminators) are set using commands, and the BFD function must be enabled manually.
If the remote device does not support BFD, enable one-arm BFD on the local device to implement fault detection.
Dynamic BFD
Dynamic BFD refers to the dynamic establishment of BFD sessions based on routing protocols. In dynamic BFD, the local discriminator is dynamically allocated, whereas the remote discriminator is obtained from BFD packets sent by the neighbor.
When a new neighbor relationship is set up, a BFD session will be established based on the neighbor and the detection parameters including source and destination IP addresses. When a fault occurs on the link, the routing protocol associated with BFD can detect that the BFD session goes Down. Traffic is then rapidly switched to the secondary link to avoid data loss.
Dynamic BFD is more flexible than static BFD.
A link fault on a network causes router to recalculate routes. Therefore, the convergence based on routing protocols must be as quick as possible to improve network performance. BFD can rapidly detect faults and report the faults to routing protocols.
After BFD is associated with RIP, BFD will detect the fault and report the fault to the RIP protocol in milliseconds if a fault occurs on the link. The router then deletes the failed neighbors from the routing table and switches traffic to the secondary path, speeding up route convergence.
Table 1 shows the differences of fault detection and convergence speed before and after BFD for RIP is configured:
| Configuring BFD Detection | Link Fault Detection Mechanism | Route Convergence Speed |
|---|---|---|
| N | A RIP age timer expires. By default, the timeout period of the timer is 180s. | At the second level(>180s) |
| Y | A BFD session goes Down. | At the second level(<30s) |
