Skip to content

BFD

BFD is used by netverdict as a fast failure signal for routing protocols. It does not try to be a byte-perfect UDP implementation; it provides deterministic session state that OSPF and BGP can depend on.

AreaLevelNotes
BFD sessionsSupportedSession state is tracked between enabled peers.
OSPF integrationSupportedip ospf bfd and bfd all-interfaces can gate adjacency.
BGP integrationSupportedneighbor ... fall-over bfd can force a session down.
TimersBehaviour modelDeterministic event queue, not real-time sleeps.
Echo modeNot modelledControl-plane signalling is enough for current labs.
StandardCoverageNotes
RFC 5880Behaviour modelSession up/down state and detection-multiplier semantics.
FeatureStatusNotes
Session creationSupportedBuilt from protocol/interface configuration.
Administrative downSupportedDown state propagates to dependent protocols.
Detection multiplierPartialStored and used where exposed.
Per-interface enableSupportedUsed by OSPF.
Per-neighbour enableSupportedUsed by BGP fall-over.
CommandIOS-styleJunos-styleVyOS-styleNotes
ip ospf bfdSupportedn/an/aInterface-level OSPF integration.
bfd all-interfacesSupportedn/an/aOSPF process-wide integration.
neighbor 10.0.0.2 fall-over bfdSupportedNot yetPartialBGP integration.
show bfd neighborsSupportedPartialPartialSession state view.

When BFD transitions down, dependent sessions become unusable in the same deterministic event model. This makes failover labs repeatable.

Canonical example
configure terminal
router ospf 1
bfd all-interfaces
router bgp 65001
neighbor 10.0.12.2 remote-as 65002
neighbor 10.0.12.2 fall-over bfd
end
show bfd neighbors

Vendor styles

IOS-style
interface GigabitEthernet0/0
bfd interval 50 min_rx 50 multiplier 3
ip ospf bfd
router bgp 65001
neighbor 10.0.12.2 fall-over bfd
Junos-style
set protocols ospf area 0 interface ge-0/0/0.0 bfd-liveness-detection minimum-interval 50
set protocols bgp group EBGP neighbor 10.0.12.2 bfd-liveness-detection minimum-interval 50
VyOS-style
set protocols bgp neighbor 10.0.12.2 bfd
set protocols ospf interface eth0 bfd

Asynchronous vs demand mode nuance, echo mode, authentication, and packet-level UDP details are not modelled.