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 X fall-over bfd at both ends opens a session. When it goes down, the peering drops before the hold timer. Only a peering that asked reacts: OSPF or IS-IS BFD on the same link does not tear BGP down.
IS-IS integrationSupportedisis bfd and bfd all-interfaces under router isis.
Packet fidelitySupportedControl packets on UDP 3784 are on the wire in a capture (Packet Lens), decoded by Wireshark. The steady state is sampled every 5 s.
TimersBehaviour modelDeterministic event queue, not real-time sleeps.
Echo modeNot modelledControl-plane signalling is enough for current labs.
StandardCoverageNotes
RFC 5880Behaviour modelDown, Init, Up handshake; timer negotiation compared between ends.
RFC 5881SupportedSingle-hop BFD on UDP 3784.
FeatureStatusNotes
Session creationSupportedBuilt from protocol/interface configuration.
Administrative downSupportedDown state propagates to dependent protocols.
Detection multiplierPartialbfd interval … multiplier is carried and compared between ends. Detection runs at the model’s own fixed interval.
Timer mismatchSupportedEnds that disagree on intervals are reported.
Per-interface enableSupportedUsed by OSPF and IS-IS. A session needs bfd interval and a subscribing protocol on both ends.
Per-neighbour enableSupportedBGP fall-over bfd (EOS and NX-OS bfd, Junos bfd-liveness-detection). Both ends must ask. No bfd interval line is needed. Single-hop only.
CommandIOS-styleJunos-styleVyOS-styleNotes
ip ospf bfdSupportedn/an/aInterface-level OSPF integration.
bfd all-interfacesSupportedn/an/aOSPF or IS-IS process-wide integration.
isis bfdSupportedn/an/aInterface-level IS-IS integration.
bfd interval 50 min_rx 50 multiplier 3Supportedn/an/aTimers; required for a session.
set protocols ospf area 0 interface ge-0/0/0 bfd-liveness-detectionn/aSupportedn/aJunos OSPF BFD.
neighbor 10.0.0.2 fall-over bfdSupportedSupportedNot modelledBGP registers this peering with BFD. Junos: bfd-liveness-detection under the BGP neighbour. A PE-CE peering in a VRF finds its CE behind that VRF’s port.
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

Demand mode, echo mode, multihop BFD (including for a BGP loopback peering) and authentication are not modelled. VyOS bfd lines (BGP and OSPF) are not read. Configured intervals are compared, not run: detection uses the model’s own fixed interval.