Autonomous Systems and BGP: How the Internet Routes Between Networks
An autonomous system is a network under one administrative authority with a single, consistent routing policy, identified by a globally unique AS number. The internet is roughly a hundred thousand of them exchanging reachability information, and BGP is the protocol they use to do it. Interior and exterior routing The distinction organizes the whole topic. Interior gateway protocols — OSPF, IS-IS, EIGRP, RIP — run inside one autonomous system. Their job is to find the best path by a technical metric such as cost or hop count, and they converge quickly because everyone inside the AS is cooperating. Exterior gateway protocols — BGP in practice — run between autonomous systems. Their job is to enforce policy , not to find the technically shortest path. A network may prefer a longer route because it is cheaper, or refuse to carry traffic between two neighbours because it has no contract to do so. That is why BGP is described as a path vector protocol rather th...