BGP
AS path
The list of autonomous systems a BGP route crossed: used to choose paths and to prevent loops.
A router ignores routes whose path already holds its own AS number. Shorter paths win, so an AS can make one entrance less attractive by prepending its own number several times on what it announces there. Each AS chooses its own way out, so traffic there and back often cross different ASes.
Read next
- BGP The protocol between autonomous systems: how the networks of the internet find each other.
- Autonomous system A network run by one organisation, with a number of its own, as seen by the rest of the internet.
- Asymmetric routing Traffic there and back taking different paths, because each router picks its own way out.
- Local preference A BGP value an AS sets on routes it receives to choose its own way out, checked before the AS path.
- MED (multi-exit discriminator) A BGP value a neighbour attaches to ask which of several links into it you should use.
- RPKI (route origin validation) Signed records saying which AS may originate a prefix, so a router can drop routes from anyone else.