Use it when BGP routes are not received or installed and you need to read UPDATE attributes and NLRI.
BGP UPDATE Message Field Reference
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.
1. UPDATE carries withdrawn routes, path attributes and NLRI.
2. Mandatory: ORIGIN, AS_PATH, NEXT_HOP (IPv4 unicast).
3. One attribute set per UPDATE.
4. Malformed attributes trigger errors (treat-as-withdraw).
5. End-of-RIB marker for graceful restart.
UPDATE (withdrawn, attributes, NLRI) → Adj-RIB-In → policy → Loc-RIB
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show ip bgp neighbors 192.0.2.2 | section Message statisticsVerification & 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 Packet capture verification and known-good sequence Verify boundary
show ip bgp neighbors 192.0.2.2 | section Message statistics
show ip bgp neighbors 192.0.2.2 routes
show ip bgp neighbors 192.0.2.2 advertised-routes
show ip bgp 203.0.113.0/24
The message statistics count UPDATEs sent and received on the session. routes lists the prefixes accepted from the neighbour; advertised-routes lists those sent to it. The prefix detail shows the attributes that arrived with the prefix.
To see what the neighbour sent before the inbound policy, configure neighbor <ip> soft-reconfiguration inbound and use received-routes. debug ip bgp updates prints each UPDATE; restrict it with an access list and use it briefly.
Known-good: the update counters are non-zero, and the prefix appears with the expected attributes.
Step 2 Failure signatures and packet-level troubleshooting Narrow the fault
- The prefix is not received. The neighbour never sent it — check
advertised-routesthere — or the inbound policy dropped it. - The prefix was there and disappeared. The neighbour withdrew it; look for the cause on its side.
- The prefix is received but with unexpected attributes. Policy on the sending side, or on a router before it.
- Update counters rise constantly. A prefix is flapping somewhere; find which one with a filtered debug.
- IPv6 prefixes are missing on an Established session. The address family is not active; IPv6 routes are not in ordinary NLRI.
- A policy change has no effect. Nothing is resent by itself; use
clear ip bgp <neighbor> soft inorsoft out.
Step 3 When the problem is really fixed Narrow the fault
- The prefix is listed in
routesfor the neighbour, with the intended attributes. - The sending router lists it in
advertised-routes. - The update counters are stable when the network is.
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.
show bgp ipv4 unicast neighbors <peer> received-routes— received (soft-reconfig inbound)show bgp ipv4 unicast <prefix>— attributes
ReferenceWhat it is1 section · depth on demand
Mechanics & mental model
UPDATE is the BGP message that carries routes. One UPDATE can announce new prefixes, withdraw old ones, or both. All the prefixes announced in one message share the same set of path attributes.
ReferenceWhy it matters1 section · depth on demand
Why it matters operationally
An Established session only means UPDATEs can be exchanged — not that any particular prefix was. Knowing how an UPDATE is built explains what the router's show commands report: what was received, what was withdrawn, and with which attributes.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
The UPDATE message field by field
An UPDATE can withdraw routes, announce routes, or do both, and every prefix it announces shares one set of path attributes. RFC 4271 lays it out after the 19-byte header:
- Withdrawn Routes Length (2 bytes), then the withdrawn prefixes as length and prefix pairs.
- Total Path Attribute Length (2 bytes), then the path attributes.
- NLRI, the announced prefixes. Its length is calculated as the UPDATE length − 23 − attribute length − withdrawn length.
The minimum UPDATE is 23 bytes.
UPDATE layout
| Field | Size | Contents |
|---|---|---|
| Header | 19 bytes | Marker, length, type 2 |
| Withdrawn Routes Length | 2 bytes | 0 if nothing is withdrawn |
| Withdrawn Routes | Variable | Prefixes no longer reachable (IPv4 unicast) |
| Total Path Attribute Length | 2 bytes | 0 for a pure withdrawal |
| Path Attributes | Variable | ORIGIN, AS_PATH, NEXT_HOP, MED, LOCAL_PREF, communities, MP_REACH… |
| NLRI | Variable | Announced IPv4 unicast prefixes |
Prefix encoding
Each prefix is encoded as a 1-byte length in bits, followed by just enough bytes to hold that many bits. 10.20.0.0/16 is sent as 10 0A 14, that is 16 bits followed by two bytes. 192.0.2.0/24 is 18 C0 00 02.
Common UPDATE shapes
| Shape | Withdrawn | Attributes | NLRI |
|---|---|---|---|
| Announcement | 0 | Yes | Prefixes |
| Withdrawal (IPv4 unicast) | Prefixes | 0 | Empty |
| Mixed | Prefixes | Yes | Prefixes |
| Other address families | 0 | MP_REACH_NLRI or MP_UNREACH_NLRI | Empty |
| End-of-RIB (IPv4) | 0 | 0 | Empty (the 23-byte minimum) |
host$ tshark -r bgp.pcap -Y "bgp.type == 2" -T fields -e bgp.update.withdrawn_routes.length -e bgp.update.path_attributes.length -e bgp.nlri_prefix -e bgp.mp_reach_nlri_ipv4_prefix | head -4
0 52 192.0.2.0
0 52 198.51.100.0
8 0
0 0
R1# show bgp ipv4 unicast neighbors 203.0.113.2 | include Updates|Withdraws|Prefixes Current
R1# debug bgp ipv4 unicast updates 203.0.113.2 in
The last two lines of the tshark output are a pure withdrawal (8 bytes of withdrawn routes, no attributes) and an End-of-RIB marker (everything zero).
Packing
Prefixes with identical attributes are packed into one UPDATE, up to the 4096-byte message limit. Attribute diversity, such as many different communities or MEDs, increases the number of UPDATEs and the convergence time.
Documented example, not captured output.
Wire format, fields and state ownership
After the common 19-byte BGP header (message type 2), an UPDATE has three parts:
| Part | Contents |
|---|---|
| Withdrawn routes | Prefixes that are no longer reachable through this neighbour |
| Path attributes | ORIGIN, AS_PATH, NEXT_HOP and any others, each with flags, type code and length |
| NLRI | The prefixes being announced, all with the attributes above |
A prefix is written as one length byte followed by only as many address bytes as the length needs — 10.20.0.0/16 takes three bytes.
Some consequences follow from this layout:
- Prefixes with identical attributes are packed into one UPDATE; a prefix with different attributes needs its own.
- A withdrawal carries no attributes — only the prefix.
- Announcing a prefix again with new attributes replaces the earlier announcement; no withdrawal is sent first.
- BGP sends a prefix once and then only changes. There is no periodic refresh; the keepalives carry no routes.
- IPv6 and other address families do not use the NLRI part. Their prefixes travel inside the MP_REACH_NLRI and MP_UNREACH_NLRI attributes.
After the first full exchange, a router signals that it has sent everything with an empty UPDATE (End-of-RIB).
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 → BGP UPDATE Message Field Reference. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc4271.html · confidence 94%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.
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.
Quick lookup tables
BGP UPDATE Message Field Reference packet-level operational reference
Direction-aware field interpretation, suspicious signatures and the next protocol/forwarding proof boundary.
| Wire boundary | Known-good for BGP UPDATE Message Field Reference | Suspicious signature | Next proof |
|---|---|---|---|
| Message identity | Correct peer/direction/type and coherent lengths | Wrong sender, type, length or packet phase | Packet sequence + peer state |
| Field semantics | Withdrawn 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 state | no 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 downstream | Decode exact fields on both sides |
| State consequence | Packet produces expected protocol/route transition | Wire looks healthy but local state disagrees | FSM/LSDB/BGP table → RIB/FIB |
| Closure | Original workload succeeds for the explained reason | Session/adjacency recovered only transiently | Repeat capture + regression/failover test |
Operational notes
Former standalone Cheat Sheet content now lives directly inside the Topic where it belongs.
BGP UPDATE Field Checklist
What to inspect in a BGP UPDATE.
2. Path attributes
3. NLRI
4. MP_REACH/MP_UNREACH for MP-BGP
5. Compare packet evidence with Adj-RIB-In/Loc-RIB.