The problem
BGP relies on keepalives and a hold timer to detect failed neighbours. With common defaults, a silent failure can take a minute or more to detect, during which traffic is blackholed.
How BFD works
BFD sends tiny packets between neighbours at short intervals. If several are missed, it declares the path down and notifies BGP, which removes routes immediately.
Choosing intervals
Intervals of a few hundred milliseconds with a multiplier of three are common for stable links. On noisy links, use longer intervals.
Where to use it
Private interconnects, cloud connections and exchange sessions where both sides support it.
Caution
BFD reacts to brief disruptions too. Pair it with dampening or sensible timers to avoid flapping.
