Use it to find out which side declared a BFD failure and why, and why the detection time is not what was configured.
BFD Packet & State Evidence
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.
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.
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
Operational reference
Fast context before you go deeper.
show bfd neighbors detailsVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
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 · 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.
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.
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.
| Field | Size | Meaning |
|---|---|---|
| Version | 3 bits | 1 |
| Diagnostic | 5 bits | Why the sender's session last went down |
| State | 2 bits | 0 AdminDown, 1 Down, 2 Init, 3 Up |
| Flags | 6 bits | Poll and Final for confirming parameter changes; others for authentication, demand mode and control-plane independence |
| Detect multiplier | 1 byte | Missed packets tolerated |
| My discriminator | 4 bytes | A number the sender chose for this session |
| Your discriminator | 4 bytes | The number learned from the other side; 0 until one has been received |
| Desired min TX interval | 4 bytes | How often the sender wants to send, in microseconds |
| Required min RX interval | 4 bytes | The fastest rate it accepts |
| Required min echo RX interval | 4 bytes | The 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.
| Code | Meaning |
|---|---|
| 0 | No diagnostic |
| 1 | Control detection time expired — this side stopped receiving packets |
| 2 | Echo function failed |
| 3 | Neighbour signalled session down — the other side declared the failure |
| 7 | Administratively 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)
| Code | Meaning | Typical cause |
|---|---|---|
| 0 | No diagnostic | Normal |
| 1 | Control detection time expired | Packets lost: link, CPU or path problem |
| 2 | Echo function failed | Forwarding path broken while control packets still flowed |
| 3 | Neighbour signalled session down | The other side went down first |
| 4 | Forwarding plane reset | The neighbour restarted forwarding |
| 5 | Path down | An underlying path failed |
| 7 | Administratively down | Disabled by configuration |
Reading a session
| Field | Healthy | Problem |
|---|---|---|
| State (local/remote) | Up/Up | Down/Init: handshake not completing (one-way loss, ACL) |
| Your discriminator | Non-zero | 0 while Up is impossible; 0 means the peer isn't known yet |
| Intervals | Agreed values both ways | Very different values: check the configuration on both sides |
| Diag | 0 | 1 = 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.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%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.