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

Use AS paths to detect loops

03

AS_PATH records autonomous-system traversal information and supports loop detection.

Related RFCs and changes

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

RFC 4271 · § 5.1.2EXAMPLE
3 / 3
Use AS paths to detect loopsAS_PATH records autonomous-system traversal information and supports loop detection.LOCAL AS: 65010 · WORKED PATHS6503065020candidate6503065010local AS!exclude loopA path string is not path authorizationPrivate AS numbers illustrate loop detection
03
Exclude the looping candidate rather than forwarding around the loop.

Exclude the looping candidate rather than forwarding around the loop.

Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
WHAT CHANGED
RFC 1771RFC 4271 Appendix A

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 ↗
KEY POINT

A speaker generally rejects a route containing its own AS as specified by the decision process.

  • 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.
DETAILS

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

Read the RFC section ↗

Diagrams simplify the RFC. Read the linked sections for complete requirements.

Privacy
All chapters in this RFC
  1. Establish a BGP session
  2. Advertise and withdraw prefixes
  3. Use AS paths to detect loops
  4. Select routes using policy and reachability
  5. Handle failures without assuming route truth
RFC 9700 / CHAPTERS

Chapters

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

RFC status and corrections ↗