Pcornel
Networking · Network & Protocols › BGP Protocol Reference

BGP UPDATE Message Field Reference

Cheat sheet · https://pcornel.dk/topic.php?topic=265

Back to the Topic

Answer

A BGP UPDATE message carries withdrawn routes, path attributes and the prefixes (NLRI) that share those attributes. IPv4 unicast uses the classic NLRI fields; other address families such as IPv6 and VPNv4 use the MP_REACH/MP_UNREACH attributes.

First checks

  • show bgp ipv4 unicast neighbors <peer> received-routes — received (soft-reconfig inbound)
  • show bgp ipv4 unicast <prefix> — attributes

Commands

debug ip bgp updates
clear ip bgp <neighbor> soft in

Verify in this order

UPDATE (withdrawn, attributes, NLRI) → Adj-RIB-In → policy → Loc-RIB

Where it usually breaks

underlay/interface reachability → protocol adjacency/session → received/originated state → policy → best path/RIB → FIB/adjacency → traffic path

BGP UPDATE Message Field Reference packet-level operational reference

Wire boundaryKnown-good for BGP UPDATE Message Field ReferenceSuspicious signatureNext proof
Message identityCorrect peer/direction/type and coherent lengthsWrong sender, type, length or packet phasePacket sequence + peer state
Field semanticsWithdrawn Routes Length and entries, Total Path Attribute Length, each attribute flags/type/length/value, trailing classic NLRI, or MP_REACH_NLRI/MP_UNREACH_NLRI for negotiated multiprotocol families match intended protocol stateno UPDATE for the expected prefix, explicit withdrawal, malformed length/attribute encoding, missing mandatory attribute, wrong AFI/SAFI representation, policy removing the route after receipt, NEXT_HOP becoming unresolved, or a valid received path that loses best-path/RIB installation downstreamDecode exact fields on both sides
State consequencePacket produces expected protocol/route transitionWire looks healthy but local state disagreesFSM/LSDB/BGP table → RIB/FIB
ClosureOriginal workload succeeds for the explained reasonSession/adjacency recovered only transientlyRepeat capture + regression/failover test

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=265

Confirmation

Confirm action

Continue?