Visual RFC.
ALL RFCs / RFC 4271
Read the RFC ↗
RFC 4271 / PROTOCOL MECHANISMS

Why might a longer route be the one we choose?

04

A route must have a reachable next hop. Among usable choices, local policy can matter before path length.

RFC 4271 · § 9.1EXAMPLE
1 / 4 · Two cards lead to Park

Blue has a longer network history; Green has a shorter one.

Blue

3 networks in path

Green

1 network in path

What happens if you change this?

Make one change, then watch again. Restart restores the original example.

3 / 3
03
Install in Loc-RIB and apply export policy for Adj-RIBs-Out.

Install in Loc-RIB and apply export policy for Adj-RIBs-Out.

Why might a longer route be the one we choose?A route must have a reachable next hop. Among usable choices, local policy can matter before path length.Adj-RIBs-Inreceived candidatesResolvable NEXT_HOP?nopolicy / tie breaksLoc-RIB → export policyunusable excludedPolicy preference is not a globally shortest geographic path

Key idea: “Shortest AS path” is not the whole BGP decision process; policy and next-hop reachability matter.

Terms
Router
A device that chooses where to send network packets next.
Route
Information describing how to reach a block of destinations. It is different from the packets using it.
BGP
Border Gateway Protocol: exchanges reachability and policy information.
OPEN / KEEPALIVE / UPDATE
Opening note / session-liveness note / route-information change. Their full protocol handling is specified separately.
AS_PATH / NEXT_HOP
The advertised autonomous-system path / the next hop that must be resolved.

Look up a term in the glossary ↗

Rules & examples
  • NEXT_HOP must be resolvable for a route to be usable.
  • Degree of preference and tie breaking are not equivalent to globally choosing the geographically shortest route.

The drawing is a simplified worked example. Follow the linked RFC and its updates for implementation requirements.

Computed candidates [{"name":"Blue","pathLength":3,"preference":200,"reachable":true},{"name":"Green","pathLength":1,"preference":100,"reachable":true}]. This bounded example applies resolvability, a chosen local degree of preference, then AS-path length. It is not the complete BGP tie-break process and these 100/200 values are illustrative.

Sources
Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
New to this? Start hereA quick picture + helpful background

A message needs an address.

Think of a packet as a small addressed envelope. Devices pass it onward; transport protocols decide what delivery promises an application gets.

Helpful first, if these ideas are unfamiliar

These pictures are analogies to help you learn. The linked RFC explains the actual rules.

Related RFCs and changes

“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.

All chapters in RFC 4271

Drawing view

Scroll the drawing to see every part. Playback controls stay above it.

RFC 9700 / CHAPTERS

Chapters

For full details, tables, algorithms, and exceptions, read the original RFC.

RFC status and corrections ↗