A pays BA pays CpeersD pays CAS64497AS64496203.0.113.0/24AS64499AS64498OPEN · TCP 179644966449664497 6449664497 6449664498 64496withdrawto 203.0.113.10loop: droppedbest: via Bbest: via C
Plinth: one autonomous system (AS) with its border routerEnvelope + tag: a BGP UPDATE and its AS_PATHCables: who pays whom (transit) or peers (free)Parcel: traffic following the chosen pathFour autonomous systems share one prefix, 203.0.113.0/24, owned by A (AS64496). Each envelope is a BGP UPDATE; its tag is the AS_PATH, and every AS puts its own number in front before passing it on. D hears two routes of the same length and picks the one through its free peer B by local preference. When the A–B link fails, B withdraws the route and D's traffic moves to C. AS numbers 64496-64511 (RFC 5398) and the prefixes 192.0.2.0/24, 198.51.100.0/24 and 203.0.113.0/24 (RFC 5737) are reserved for documentation.

Networks and sessions

  1. The internet is not one network. It is more than 75,000 separate networks called autonomous systems (ASes). Each is run by one organisation and has its own AS number. Here are four.

Spreading the news

Choosing a path

When a link fails

The messages, field by field

;; step 1/12 · as-map · local
;; at A, B, C, D
A · AS64496   Origin network · owns 203.0.113.0/24
B · AS64497   Transit network B
C · AS64498   Transit network C
D · AS64499   Your ISP · owns 198.51.100.0/24

links (who pays whom):
  AB  192.0.2.0/30   A pays B for transit
  AC  192.0.2.4/30   A pays C for transit
  BD  192.0.2.8/30   B and D are peers: nobody pays
  CD  192.0.2.12/30  D pays C for transit

AS numbers 64496-64511 are reserved for documentation (RFC 5398).

AS numbers 64496-64511 (RFC 5398) and the prefixes 192.0.2.0/24, 198.51.100.0/24 and 203.0.113.0/24 (RFC 5737) are reserved for documentation. Local preference values 200 / 100 / 50 are illustrative. Each network sets its own, usually customer > peer > provider.