Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

BGP UPDATE Message Field Reference

Direct 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.

When to use this

Use it when BGP routes are not received or installed and you need to read UPDATE attributes and NLRI.

First 30 seconds

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.

Operational verification

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

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Protocol standard + deployed implementation
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.

PlatformProtocol standard
Key commandshow ip bgp neighbors 192.0.2.2 | section Message statistics
Scope / prerequisiteUse it when BGP routes are not received or installed and you need to read UPDATE attributes and NLRI.
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.

3 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 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-routes there — 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 in or soft out.
Step 3 When the problem is really fixed Narrow the fault
  • The prefix is listed in routes for the neighbour, with the intended attributes.
  • The sending router lists it in advertised-routes.
  • The update counters are stable when the network is.
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 checks
  • 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

FieldSizeContents
Header19 bytesMarker, length, type 2
Withdrawn Routes Length2 bytes0 if nothing is withdrawn
Withdrawn RoutesVariablePrefixes no longer reachable (IPv4 unicast)
Total Path Attribute Length2 bytes0 for a pure withdrawal
Path AttributesVariableORIGIN, AS_PATH, NEXT_HOP, MED, LOCAL_PREF, communities, MP_REACH…
NLRIVariableAnnounced 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

ShapeWithdrawnAttributesNLRI
Announcement0YesPrefixes
Withdrawal (IPv4 unicast)Prefixes0Empty
MixedPrefixesYesPrefixes
Other address families0MP_REACH_NLRI or MP_UNREACH_NLRIEmpty
End-of-RIB (IPv4)00Empty (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.

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

Wire format, fields and state ownership

After the common 19-byte BGP header (message type 2), an UPDATE has three parts:

PartContents
Withdrawn routesPrefixes that are no longer reachable through this neighbour
Path attributesORIGIN, AS_PATH, NEXT_HOP and any others, each with flags, type code and length
NLRIThe 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
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 docProtocol standard + deployed implementation RFC 4271

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%
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
bgp update fieldsbgp nlriwithdrawn routesmp reach nlrimp unreach nlri
Embedded reference data

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 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
Embedded quick reference

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.

1. Withdrawn routes

2. Path attributes

3. NLRI

4. MP_REACH/MP_UNREACH for MP-BGP

5. Compare packet evidence with Adj-RIB-In/Loc-RIB.

Confirmation

Confirm action

Continue?