Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

BFD Packet & State Evidence

Direct answer

A BFD control packet is 24 bytes: the sender's session state, a diagnostic code for the last failure, two discriminators that identify the session at each end, and the timer values the routers negotiate from.

When to use this

Use it to find out which side declared a BFD failure and why, and why the detection time is not what was configured.

First 30 seconds

1. show bfd neighbors details — state and local diagnostic.

2. Diagnostic 1 here → packets towards this router were lost.

3. Diagnostic 3 here → the neighbour declared it; look there.

4. Remote discriminator 0, state Down → nothing received at all.

5. Compare negotiated "Tx Interval" and "Holddown" with what you expected.

Operational verification

both ends send control packets → Down → Init → Up (three-way) → discriminators mirrored → intervals negotiated → detection time = remote multiplier × agreed interval

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
Key commandshow bfd neighbors details
Scope / prerequisiteUse it to find out which side declared a BFD failure and why, and why the detection time is not what was configured.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
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 workflow Verify boundary
show bfd neighbors details
show bfd summary
show logging | include BFD

The detailed neighbour view prints, for each session, the local and remote discriminators, the state, the local diagnostic, the configured and negotiated intervals ("MinTxInt", "MinRxInt", "Multiplier", and the actual "Tx Interval" and "Holddown"), counters of packets sent and received, and the contents of the last packet received from the neighbour — state, diagnostic, multiplier and intervals.

In a capture, filter on bfd (or UDP port 3784). Check the state and diagnostic fields, and that "Your discriminator" in one direction equals "My discriminator" in the other.

Known-good: state Up in both directions, non-zero discriminators that mirror each other, and a diagnostic of 0 since the session last came up.

Step 2 Failure isolation workflow Narrow the fault
  • State stays Down, "Your discriminator" is 0. Nothing is being received from the neighbour: filtering, wrong address, or BFD not active on the other side.
  • One side is Init, the other Down. Packets pass in one direction only.
  • Diagnostic 1 locally. This router stopped receiving; look for loss or delay in the direction towards it.
  • Diagnostic 3 locally. The neighbour declared the failure; investigate on its side.
  • Diagnostic 2. Echo packets are not returned although control packets are; the neighbour's forwarding path or a reverse-path check drops them.
  • The detection time is not what was configured. It is negotiated: the slower interval and the other side's multiplier apply.
  • Packets are discarded on arrival. A single-hop session received a packet whose TTL was not 255 — the neighbour is not directly connected.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points

Diagnostic 1 means this router stopped receiving; 3 means the neighbour declared the failure — together they give the direction of the loss. The timers in use are negotiated: the slower interval and the other side's multiplier apply. "Your discriminator" 0 means nothing has been received.

Key checks
  • show bfd neighbors details — discriminators, state, diagnostic, configured and negotiated intervals, and the last packet received.
  • show bfd summary — session counts.
  • show logging | include BFD — session changes.
  • Capture filter bfd (UDP 3784).
ReferenceWhat it is1 section · depth on demand

Mental model

A BFD control packet is 24 bytes long and is sent many times a second. It states the sender's view of the session, identifies the session at both ends, and carries the timer values the two routers negotiate from.

ReferenceWhy it matters1 section · depth on demand

Why it matters operationally

When BFD takes a routing neighbour down, the cause is recorded as a diagnostic code that originates in this packet, and the timers actually in use are negotiated from its fields — not simply what is configured locally. Reading them shows which side declared the failure and why.

ReferenceHow it works1 section · depth on demand

How it works

Single-hop BFD packets are sent to UDP port 3784 with a TTL of 255; multihop sessions use port 4784, and echo packets port 3785.

FieldSizeMeaning
Version3 bits1
Diagnostic5 bitsWhy the sender's session last went down
State2 bits0 AdminDown, 1 Down, 2 Init, 3 Up
Flags6 bitsPoll and Final for confirming parameter changes; others for authentication, demand mode and control-plane independence
Detect multiplier1 byteMissed packets tolerated
My discriminator4 bytesA number the sender chose for this session
Your discriminator4 bytesThe number learned from the other side; 0 until one has been received
Desired min TX interval4 bytesHow often the sender wants to send, in microseconds
Required min RX interval4 bytesThe fastest rate it accepts
Required min echo RX interval4 bytesThe fastest echo rate it accepts; 0 = no echo

Bringing a session up takes three steps. Both start in Down. A router that receives a packet saying Down moves to Init. A router that receives Init or Up moves to Up. Since each state is reported in every packet, Up at both ends proves that packets pass in both directions.

Timers. Each router sends at the slower of its own desired TX interval and the other's required RX interval. The time after which a router declares failure is the other side's multiplier times the agreed receive interval. A change of timers on a running session is announced with the Poll flag and confirmed with Final.

Diagnostic codes.

CodeMeaning
0No diagnostic
1Control detection time expired — this side stopped receiving packets
2Echo function failed
3Neighbour signalled session down — the other side declared the failure
7Administratively down

Code 1 on one router and code 3 on the other tells in which direction the packets were lost.

ReferenceImportant terms & boundaries1 section · depth on demand

In depth

BFD control packets and state evidence

A BFD control packet is 24 bytes, or more with authentication, and every field shows something about the session. RFC 5880 defines the fields:

  • Version (1).
  • Diagnostic code: why the session last changed state.
  • State: AdminDown 0, Down 1, Init 2, Up 3.
  • Flags: P (poll), F (final), C (control-plane independent), A (authentication), D (demand) and M (multipoint).
  • Detect multiplier.
  • Discriminators: my and your discriminator identify the session.
  • Intervals: desired minimum TX, required minimum RX and required minimum echo RX, in microseconds.

Diagnostic codes (RFC 5880)

CodeMeaningTypical cause
0No diagnosticNormal
1Control detection time expiredPackets lost: link, CPU or path problem
2Echo function failedForwarding path broken while control packets still flowed
3Neighbour signalled session downThe other side went down first
4Forwarding plane resetThe neighbour restarted forwarding
5Path downAn underlying path failed
7Administratively downDisabled by configuration

Reading a session

FieldHealthyProblem
State (local/remote)Up/UpDown/Init: handshake not completing (one-way loss, ACL)
Your discriminatorNon-zero0 while Up is impossible; 0 means the peer isn't known yet
IntervalsAgreed values both waysVery different values: check the configuration on both sides
Diag01 = timeouts, 3 = the remote side went down

Poll and final

When either side changes its timers, it sets the P bit until the peer answers with F. Short bursts of P and F flags in a capture are therefore normal after configuration changes.

R1# show bfd neighbors details | include NeighAddr|State|Diag|Registered|MinTxInt|MinRxInt|Multiplier|Last packet
NeighAddr  10.0.12.2   LD/RD 1/4   RH/RS Up   State Up   Int Gi0/0/1
Local Diag: 0, Demand mode: 0, Poll bit: 0
MinTxInt: 300000, MinRxInt: 300000, Multiplier: 3
Received MinRxInt: 300000, Received Multiplier: 3
Registered protocols: OSPF CEF
analyst$ tshark -r bfd.pcap -Y bfd -T fields -e ip.src -e bfd.sta -e bfd.diag -e bfd.my_discriminator -e bfd.your_discriminator | uniq -c | head
%BFDFSM-6-BFD_SESS_DOWN: BFD-SYSLOG: BFD session ld:1 handle:1, is going Down Reason: ECHO FAILURE

Echo failures

"ECHO FAILURE" (Diag 2) while control packets keep arriving means the neighbour's control plane is alive but its forwarding path isn't. BFD reports this correctly as a failure, because traffic through that neighbour wouldn't get through.

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.
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 Packet & State Evidence. 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%
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
bfd packetbfd state
Confirmation

Confirm action

Continue?