Path Vector (BGP) & Policy
Read this concept as one more decision made about a packet in flight. The widget below lets you change the inputs and watch the consequence instead of memorising the rule.
Why it matters
Between autonomous systems, routing is driven by policy rather than a single metric, and the path itself is the advertised attribute. BGP exposes that path so each AS can enforce its own rules.
On the wire
BGP sessions run over TCP port 179 and exchange UPDATE messages carrying NLRI prefixes plus attributes such as AS_PATH, NEXT_HOP, LOCAL_PREF, and MED. Each AS prepends its own number to AS_PATH, and a router rejects an update whose AS_PATH already contains its own AS.
When it breaks
A leaked or overly broad prefix announcement can attract traffic for addresses the advertiser cannot deliver, black-holing or intercepting it. A missing AS_PATH loop check or a misconfigured route reflector can make loops persist, while a flapping session withdraws and reannounces thousands of prefixes.
Routing lab
Click links to fail or restore them, then send a packet to follow the computed path.
AS 64500 → 64510 → 64520 installs A → C → D; policy, not hop count, decides the path.