OSNEC.013: OSPF BFD Strict-Mode — Adjacency Admission and the Init State

Oil-painted illustration of OSPF BFD strict mode with neon green BitcoinVersus.tech branding.

Open-Source Network Engineering • OSNEC.013 • 35–45 minutes

A router can exchange OSPF Hello packets over a degraded path while a more sensitive Bidirectional Forwarding Detection session cannot establish: OSPF BFD strict-mode changes the admission decision so two consenting peers wait for BFD before proceeding beyond Init. This lesson examines that control-plane gate rather than repeating the basic failure detector.

Learning objectives and prerequisites

Distinguish failure detection from adjacency admission; explain the link-local B-bit; interpret a mixed-capability neighbor; and use a small decision model to test the gate. Review OSPF fundamentals, neighbor states and remote repair tunnels.

Why gate adjacency establishment?

RFC 9355 defines strict-mode signaling using OSPF link-local signaling (LLS). The B-bit in the extended options and flags signals the interface’s strict-mode requirement in Hello and Database Description packets. The strict wait applies when both sides signal support and the local operator enables it. Ordinary BFD instead supplies a failure notification to a routing consumer; see RFC 5880.

Cisco-oriented BFD/OSPF training demonstration. The video provides ordinary BFD context; consult RFC 9355 separately for the strict-mode extension. Original source.
Network core equipment with optical cabling
Patrick Finnegan, February 22, 2002. Original photograph, CC BY 2.0. Historical network equipment, not evidence of strict-mode support.

A decision model, not a router implementation

Assume a received Hello otherwise permits the Init-to-2-Way transition. If local strict mode and the peer B-bit are both true, a session not yet Up blocks progression. If either signal is absent, this specific strict wait is not applied. The simplified model below intentionally excludes later OSPF states, BFD timers and protocol races.

def may_leave_init(local_strict, peer_b_bit, bfd_up, two_way_hello):
    return two_way_hello and (not (local_strict and peer_b_bit) or bfd_up)

assert not may_leave_init(True, True, False, True)
assert may_leave_init(True, True, True, True)
assert may_leave_init(True, False, False, True)
assert may_leave_init(False, True, False, True)
assert not may_leave_init(True, True, True, False)
print('5/5 simplified admission checks passed')

Executed in Python on Linux: five assertions passed. They cover both strict peers with BFD Down or Up, each mixed-capability case, and a Hello that does not satisfy the ordinary bidirectional condition. The output does not measure a real router or prove RFC compliance.

Operational boundaries and troubleshooting

Once the neighbor has progressed past Init, a later B-bit change alone is not a trigger to reset the adjacency. RFC 9355 also addresses established sessions, graceful restart, and OSPFv3 IPv4 address-family signaling. On an approved test network, compare the B-bit seen in Hello packets, the neighbor state, BFD session status and both peers’ supported features. Do not assume that 2-Way means Full: broadcast topology may intentionally stop there. Review DR/BDR elections. Capture diagnostic evidence before altering timers or sessions.

May 18, 2024: a network operator describes BFD going Down while physical media remains Up. This discussion motivates the distinction between physical carrier, forwarding health and route admission; comments are not standards or verified incident findings. Original source.

Knowledge check

1. Local strict mode is enabled but the peer does not advertise its B-bit. Does the strict gate block ordinary progression? 2. Both sides signal strict mode and BFD is Down. Where does OSPF wait? 3. Does BFD Up guarantee a Full adjacency? 4. Does a later B-bit change alone reset an established neighbor?

Answers: 1. No. 2. Init, assuming the normal transition would otherwise be permitted. 3. No; other OSPF conditions still apply. 4. No. Use this desk-based model or an authorized isolated lab; do not interrupt production traffic.

Editor’s Note: We volunteer daily to ensure the credibility of the information on this platform is Verifiably True.

BitcoinVersus.Tech publishes technology and financial journalism for informational purposes and does not provide financial, investment, or legal advice.

Leave a Reply