The process of BFD session establishment is as follows:
A protocol sends hello messages to discover neighbors and establish neighborships.
1.
After establishing neighborships, the protocol notifies BFD of the neighbor information, including
2.
destination and source addresses.
BFD uses the information to establish BFD sessions.
3.
Figure 46 BFD fault detection (on OSPF routers)
3
Router A
Fault
BFD notifies the OSPF link failure
Backup link
The process of BFD fault detection is as follows:
BFD detects a link failure.
1.
BFD clears the neighbor session.
2.
BFD notifies the protocol of the failure.
3.
The protocol terminates the neighborship on the link.
4.
If a backup link is available, the protocol will use it to forward packets.
5.
NOTE:
No detection time resolution is defined in the BFD draft. Most devices supporting BFD provide detection
measured in milliseconds.
BFD detection methods
Single-hop detection—Detects the IP connectivity between two directly connected systems.
•
Multi-hop detection—Detects any of the paths between two systems. These paths have multiple
•
hops and may be overlapped.
Bidirectional detection—Sends detection packets at two sides of a bidirectional link to detect the
•
bidirectional link status, finding link failures in milliseconds. (BFD LSP detection is a special case in
which BFD control packets are sent in one direction, and the peer device reports the link status
through other links.)
BFD session modes
Control packet mode—Both ends of the link exchange BFD control packets to monitor link status.
•
Echo mode—One end of the link sends Echo packets to the other end, which then forwards the
•
packets back to the originating end, monitoring link status in both directions.
4
2
1
5
176
3
Router B
BFD neighbors
OSPF neighbors