What if a route’s travel history already includes home?
03A route carries a path of networks. Seeing our own network in the selected incoming path is a loop warning.
A network in this story is an autonomous system.
Our identity
What happens if you change this?
Make one change, then watch again. Restart restores the original example.
Exclude the looping candidate rather than forwarding around the loop.
Key idea: AS-path loop detection is a check on the advertised network history, not a measure of physical distance.
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
AS-path loop detection is a check on the advertised network history, not a measure of physical distance.
- A speaker generally rejects a route containing its own AS as specified by the decision process.
- Prepending one’s own AS more than once can influence other systems’ path preferences; it does not authenticate the path.
The drawing is a simplified worked example. Follow the linked RFC and its updates for implementation requirements.
Own AS 64512; AS_SEQUENCE 64513 64514. This external-BGP example excludes confederation segments, AS sets and configured exceptions. AS-path data is not authenticated by base BGP.
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.
The revision explicitly allows multiple instances of the local AS in AS_PATH for inter-AS traffic engineering and clarifies tie breaking.
Read the updated RFC section ↗