BFD Overview

Bidirectional Forwarding Detection (BFD) is a hello protocol that provides the rapid detection of failures in the path and informs the clients (routing protocols) to initiate the route convergence.

It is independent of media, routing protocols, and data protocols. BFD helps in the separation of forwarding plane connectivity and control plane connectivity.

Different routing protocol hello mechanisms operate in variable rates of detection, but BFD detects the forwarding path failures at a uniform rate, thus allowing for easier network profiling and planning, and consistent and predictable re-convergence time.

The following figure shows a BFD topology.
expand icon
BFD Topology
../Graphics/EX_bfd_0001.svg

The routing protocols first learn the neighbor and make entries in the forwarding table. Then protocols can register the neighbor address with BFD and ask to monitor the status of the path. BFD establishes the session with a remote BFD and monitors the path status.

You can configure detection multipliers and TX and RX intervals on a directly connected interface (VLAN).
  • The detection multiplier signifies the number of BFD packets the BFD server waits for after which a timeout is declared.
  • The receive interval is the interval at which the BFD server is ready to receive packets.
  • The transmit interval is the interval at which the BFD server is ready to transmit packets.

For example, when two nodes, A and B, initiate a BFD session between them, a negotiation about the receive and transmit intervals occurs.

The receive interval of node A is calculated as the maximum of the configured receive interval of node A and the configured transmit interval of node B. The same applies to node B.

If multiple clients ask for the same neighbor on the same interface, then a single BFD session is established between the peers.

The following figure shows the behavior when a failure occurs.

expand icon
BFD Failure Detection
../Graphics/EX_bfd_0002.svg

BFD detects the failure first and then informs the registered clients about the neighbors.

BFD operates in an asynchronous mode in which systems periodically send BFD control packets to one another. If a number of those packets in a row are not received by the other system, the session is declared to be down.

Simple password authentication can be included in the control packet to avoid spoofing.

This feature is available on all platforms.

Note

Note

BFD can be used to protect IPv4 & IPv6 static routes, OSPFv2 & OSPFv3 interfaces and BGP and MPLS interfaces. For more information, see Configuring Static Routes, BFD for OSPF, or refer to Managing the MPLS BFD Client.