Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

BFD

Direct answer

BFD is a small, fast hello protocol whose only job is to notice that the path to a neighbour has failed. It tells the routing protocols, which react at once without waiting for their own timers.

When to use this

Use it where a link can fail without the interface going down — through a switch or a provider circuit — and when routing neighbours flap with BFD messages.

First 30 seconds

1. show bfd neighbors — is there a session, and is it Up?

2. No session → BFD is not enabled under the routing protocol, or only on one router.

3. Down → UDP 3784 blocked, or the addresses differ.

4. Flapping → show bfd neighbors details: timers too short for the path or platform; lengthen them.

5. Up time equals the routing neighbour's?

Operational verification

BFD timers on the interface, both routers → routing protocol registered with BFD, both routers → session Up → failure detected within interval × multiplier → protocol notified

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Cisco IOS / IOS XE
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCisco IOS / IOS XE · Cisco IOS XE
Key commandshow bfd neighbors [details]
Scope / prerequisiteUse it where a link can fail without the interface going down — through a switch or a provider circuit — and when routi…
Show · 1
What next?3 suggested next steps
Catalog command links1
Evidence0
On this pageJump to a specific section
Verification

Show Commands

Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification Verify boundary
show bfd neighbors
show bfd neighbors details
show ip ospf interface GigabitEthernet0/0 | include BFD
show ip bgp neighbors 192.0.2.2 | include BFD

show bfd neighbors lists each session with the neighbour address, state and interface. The detailed form adds the negotiated intervals, the multiplier, the up time, the reason for the last failure and the protocols registered with the session. The protocol commands confirm that OSPF or BGP is actually using BFD on that interface or neighbour.

Known-good: the session is Up, the registered protocols are the expected ones, and the up time matches that of the routing neighbour.

Step 2 Failure boundaries & design notes Narrow the fault
  • No BFD session appears. No protocol is registered: BFD is enabled on the interface but not under the routing protocol — or only on one of the two routers.
  • The session stays Down. BFD packets do not get through: an access list or control-plane policy blocks UDP 3784, or the two ends use different addresses.
  • Routing neighbours flap with "BFD node down". The timers are too short for the path or the platform; lengthen the interval or raise the multiplier.
  • Flaps at times of high CPU load. BFD is handled in software and its packets are delayed.
  • Echo mode fails while the session is otherwise fine. The neighbour does not forward the echo packets back — unicast reverse-path checks or ICMP redirects interfere; use no ip redirects.
  • A link failure is still detected slowly. The protocol in use on that link is not registered with BFD.
Command lookup Jump straight to Cisco syntax
Key points

Timers go on the interface, and each routing protocol must be told to use BFD — on both routers. A session exists only when a protocol registers. Detection time is interval × multiplier; too aggressive, and BFD itself causes flaps.

Key checks
  • show bfd neighbors — sessions with state and interface.
  • show bfd neighbors details — negotiated intervals, multiplier, up time, last failure reason, registered protocols.
  • show ip ospf interface <interface> | include BFD / show ip bgp neighbors <ip> | include BFD — is the protocol using it?
ReferenceWhat it is1 section · depth on demand

Mechanics & mental model

Bidirectional Forwarding Detection (BFD) is a small, fast hello protocol whose only job is to notice that the path to a neighbour has failed. It tells the routing protocols, which then react at once without waiting for their own timers.

ReferenceWhy it matters1 section · depth on demand

Why it matters operationally

Routing protocols detect a lost neighbour slowly — OSPF after 40 seconds, BGP after 180 by default — unless the interface itself goes down. Through a switch or a provider circuit, the interface often stays up when the path fails. BFD brings detection down to under a second, with one mechanism shared by all protocols. Set too aggressively, it becomes a source of flapping.

ReferenceHow it works1 section · depth on demand

Operational flow & dependencies

BFD is configured in two places: timers on the interface, and each routing protocol told to use it.

interface GigabitEthernet0/0
 bfd interval 300 min_rx 300 multiplier 3
!
router ospf 1
 bfd all-interfaces
!
router bgp 65001
 neighbor 192.0.2.2 fall-over bfd
ParameterMeaning
intervalHow often this router wants to send, in milliseconds
min_rxThe shortest interval at which it is willing to receive
multiplierHow many packets in a row may be missed

With the values above a failure is detected after 3 × 300 ms = 900 ms. The two ends may be configured differently; each sends at the slower of its own interval and the other's min_rx.

How it works.

  • A BFD session exists only when a protocol asks for one. Configuring timers alone starts nothing.
  • The two routers exchange small UDP packets (port 3784) at the agreed interval. When the multiplier's worth of packets is missed, the session goes down and every protocol registered with it is told immediately.
  • BFD detects; it does not route. The routing protocol still has to converge, but it starts right away.
  • With echo mode, the router also sends packets addressed to itself that the neighbour simply forwards back. They test the neighbour's forwarding path without involving its CPU.

Both ends must have BFD configured for the same protocol. If one side lacks it, the protocol runs as usual without fast detection.

Choosing timers. BFD packets are processed in software on many platforms. Intervals of 50 ms on a busy router, or across a path with occasional loss or delay, cause false alarms that take the routing neighbour down. Values of 300 ms × 3 are a reasonable start; go lower only where the hardware handles BFD itself.

ReferenceImportant terms & boundaries2 sections · depth on demand

In depth

BFD: fast failure detection for routing protocols

Routing protocol hellos detect a dead neighbour in seconds or tens of seconds. BFD detects it in milliseconds and tells the routing protocol. RFC 5880 defines it:

  • Neighbours exchange control packets at negotiated intervals. Each side states its desired minimum transmit interval and required minimum receive interval.
  • The session is declared down when no packet arrives within the detection time: the remote detect multiplier times the agreed interval.
  • Sessions come up through a three-way handshake (Down → Init → Up).
  • A session that has gone down only comes back after the remote end has signalled Down.
  • An optional echo function tests the forwarding path by looping packets through the neighbour.

Detection time examples

IntervalMultiplierDetection time
50 ms3150 ms
300 ms3900 ms
1 s33 s
Compared with OSPF defaults—40 s dead interval

Clients and use cases

ClientBenefit
OSPF / EIGRP / IS-ISFast neighbour loss detection
BGPFast failure over provider links where the interface stays up
Static routesRemove a static route when the next hop stops responding
HSRP / VRRPFaster gateway failover
SD-WANPath monitoring (BFD always runs over tunnels)

Configuration

R1(config)# interface GigabitEthernet0/0/1
R1(config-if)# bfd interval 300 min_rx 300 multiplier 3
R1(config)# router ospf 1
R1(config-router)# bfd all-interfaces
R1(config)# router bgp 65010
R1(config-router)# neighbor 203.0.113.1 fall-over bfd
R1(config)# ip route static bfd GigabitEthernet0/0/2 10.0.13.3
R1(config)# ip route 10.40.0.0 255.255.0.0 GigabitEthernet0/0/2 10.0.13.3
R1# show bfd neighbors
IPv4 Sessions
NeighAddr       LD/RD     RH/RS   State   Int
10.0.12.2       1/4       Up      Up      Gi0/0/1
203.0.113.1     2/7       Up      Up      Gi0/0/0
R1# show bfd neighbors details | include Registered|Rx Count|Holddown|Multiplier

Choosing intervals

Faster isn't always better. Very short intervals on CPU-based platforms can cause false failures under load. Check whether the platform runs BFD in hardware, and test under realistic CPU conditions before going below 300 ms.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Worked example

BFD (Bidirectional Forwarding Detection) is a lightweight hello protocol that detects a failed path between two routers within milliseconds and tells routing protocols, which then converge immediately. Routing protocol timers are slow by design — OSPF's default dead interval is 40 seconds — so BFD fills the gap when a failure does not cause a link to go down, for example behind a media converter, provider switch or DWDM system.

Worked example: bfd interval 300 min_rx 300 multiplier 3 sends a packet every 300 ms and declares the neighbour down after 3 missed packets — about 900 ms. With OSPF registered as a client, the adjacency drops and traffic moves to the alternative path within roughly a second instead of 40.

interface Te1/1/1
 bfd interval 300 min_rx 300 multiplier 3
router ospf 1
 bfd all-interfaces
show bfd neighbors details

Very aggressive timers (tens of milliseconds) are possible on hardware-offloaded platforms, but on CPU-based BFD they can cause false failures under load.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

Authoritative/upstream documentation reviewed for bounded claims in Network & Protocols → BFD. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%
Technical changelog & impact

What changed and what may be affected

Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
bfdbidirectional forwarding detectionfast failurediscriminator
Confirmation

Confirm action

Continue?