We have 4 Autonomous Systems (ASes):
1
2
3
+-------+ +-------+ +-------+ +-------+
| AS 100| <----> | AS 200| <----> | AS 300| <----> | AS 400|
+-------+ +-------+ +-------+ +-------+
Letβs say:
It announces:
1
"To reach 10.0.0.0/24, go through [AS400]"
AS 300 receives it and appends its own AS:
1
"10.0.0.0/24 via [AS300, AS400]"
AS 200 receives it:
1
"10.0.0.0/24 via [AS200, AS300, AS400]"
AS 100 receives it:
1
"10.0.0.0/24 via [AS100, AS200, AS300, AS400]"
Letβs say now AS 400 receives the same route back from AS 100. That route would look like:
1
"10.0.0.0/24 via [AS100, AS200, AS300, AS400]"
π But AS 400 sees its own AS number (AS400) in the path.
β So it rejects the route β loop avoided!
| Mechanism | Description |
|---|---|
| AS_PATH | Route includes all ASes the advertisement has passed through |
| Loop Detection | If a router sees its own AS in the AS_PATH β DROP the route |
| Safe Route Propagation | Only loop-free, policy-compliant routes are advertised |