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.
Support level
Section titled “Support level”| Area | Level | Notes |
|---|---|---|
| BFD sessions | Supported | Session state is tracked between enabled peers. |
| OSPF integration | Supported | ip ospf bfd and bfd all-interfaces can gate adjacency. |
| BGP integration | Supported | neighbor 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 integration | Supported | isis bfd and bfd all-interfaces under router isis. |
| Packet fidelity | Supported | Control packets on UDP 3784 are on the wire in a capture (Packet Lens), decoded by Wireshark. The steady state is sampled every 5 s. |
| Timers | Behaviour model | Deterministic event queue, not real-time sleeps. |
| Echo mode | Not modelled | Control-plane signalling is enough for current labs. |
Standards coverage
Section titled “Standards coverage”| Standard | Coverage | Notes |
|---|---|---|
| RFC 5880 | Behaviour model | Down, Init, Up handshake; timer negotiation compared between ends. |
| RFC 5881 | Supported | Single-hop BFD on UDP 3784. |
Feature matrix
Section titled “Feature matrix”| Feature | Status | Notes |
|---|---|---|
| Session creation | Supported | Built from protocol/interface configuration. |
| Administrative down | Supported | Down state propagates to dependent protocols. |
| Detection multiplier | Partial | bfd interval … multiplier is carried and compared between ends. Detection runs at the model’s own fixed interval. |
| Timer mismatch | Supported | Ends that disagree on intervals are reported. |
| Per-interface enable | Supported | Used by OSPF and IS-IS. A session needs bfd interval and a subscribing protocol on both ends. |
| Per-neighbour enable | Supported | BGP 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. |
Vendor command matrix
Section titled “Vendor command matrix”| Command | IOS-style | Junos-style | VyOS-style | Notes |
|---|---|---|---|---|
ip ospf bfd | Supported | n/a | n/a | Interface-level OSPF integration. |
bfd all-interfaces | Supported | n/a | n/a | OSPF or IS-IS process-wide integration. |
isis bfd | Supported | n/a | n/a | Interface-level IS-IS integration. |
bfd interval 50 min_rx 50 multiplier 3 | Supported | n/a | n/a | Timers; required for a session. |
set protocols ospf area 0 interface ge-0/0/0 bfd-liveness-detection | n/a | Supported | n/a | Junos OSPF BFD. |
neighbor 10.0.0.2 fall-over bfd | Supported | Supported | Not modelled | BGP 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 neighbors | Supported | Partial | Partial | Session state view. |
Behaviour notes
Section titled “Behaviour notes”When BFD transitions down, dependent sessions become unusable in the same deterministic event model. This makes failover labs repeatable.
Examples
Section titled “Examples”Canonical example
configure terminalrouter ospf 1 bfd all-interfacesrouter bgp 65001 neighbor 10.0.12.2 remote-as 65002 neighbor 10.0.12.2 fall-over bfdendshow bfd neighborsVendor styles
IOS-style
interface GigabitEthernet0/0 bfd interval 50 min_rx 50 multiplier 3 ip ospf bfdrouter bgp 65001 neighbor 10.0.12.2 fall-over bfdJunos-style
set protocols ospf area 0 interface ge-0/0/0.0 bfd-liveness-detection minimum-interval 50set protocols bgp group EBGP neighbor 10.0.12.2 bfd-liveness-detection minimum-interval 50VyOS-style
set protocols bgp neighbor 10.0.12.2 bfdset protocols ospf interface eth0 bfdKnown limits
Section titled “Known limits”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.