πŸ—ΊοΈ Network Topology Example

We have 4 Autonomous Systems (ASes):

1
2
3
+-------+        +-------+        +-------+        +-------+
| AS 100| <----> | AS 200| <----> | AS 300| <----> | AS 400|
+-------+        +-------+        +-------+        +-------+

Let’s say:


πŸ” How the Path Vector Propagates

  1. AS 300 receives it and appends its own AS:

    1
    
    "10.0.0.0/24 via [AS300, AS400]"
    
  2. AS 200 receives it:

    1
    
    "10.0.0.0/24 via [AS200, AS300, AS400]"
    
  3. AS 100 receives it:

    1
    
    "10.0.0.0/24 via [AS100, AS200, AS300, AS400]"
    

πŸ” What If a Loop Tries to Form?

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!


🧠 Why This Works


βœ… Summary: How Path Vector Prevents Loops

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