Why might a longer route be the one we choose?
04A route must have a reachable next hop. Among usable choices, local policy can matter before path length.
Blue has a longer network history; Green has a shorter one.
Blue
Green
What happens if you change this?
Make one change, then watch again. Restart restores the original example.
Install in Loc-RIB and apply export policy for Adj-RIBs-Out.
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.
Rules & examples
“Shortest AS path” is not the whole BGP decision process; policy and next-hop reachability matter.
- 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
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.