Bidirectional Forwarding Detection (BFD)

  • Bidirectional Forwarding Detection (BFD) is a protocol defined in RFC 5880 that helps your routing protocol detect link failures much faster.
    The topology below has three routers, all running OSPF with default timers.

    Without BFD

    If the link between R1 and R2 goes down, OSPF waits up to 40 seconds before declaring the neighbor dead.
    That is the dead timer.

    ospf hello and dead timer delay before detecting a failed link

    Figure 1 – The dead timer makes R1 wait 40 seconds

    During those 40 seconds, OSPF simply hasn't noticed the neighbor is gone.
    This is not efficient.

    R1 could reroute through R3 and converge right away.

    network without bfd still routing traffic through a dead link

    Figure 2 – The path through R3 stays unused

    But the dead timer forces it to wait, so your traffic keeps going into the dead link.

    With BFD

    BFD detects a link failure in milliseconds instead of seconds.

    With BFD running, the failure is caught almost instantly.
    OSPF converges and reroutes through R3 right away.

    bfd triggering instant ospf reroute through backup router

    Figure 3 – OSPF reroutes as soon as BFD reports the failure

    BFD detects failures independent of the routing protocol and the media type.
    The same session works for any routing protocol, over any media.

    Answer the question below

    Besides the routing protocol, what else does BFD detect failures independent of?

    Answer the question below

    Which RFC defines BFD?