Lesson 2 of 9 · 22m
Autonomous Systems, Prefixes, and Who Owns What
AS numbers, IP allocations, ROAs, IRR objects, and peering relationships form the ownership and trust model behind global routing.
BGP routes are not owned by IP addresses alone. They are tied to autonomous systems: networks under one administrative control, identified by an AS number such as AS64500. Understanding which AS is authorized to originate which prefix is the difference between normal propagation and a hijack.
The objects that matter
An AS number is a routing identity, not a company. Large organizations often operate several ASes; small companies may share one through a provider. Prefix ownership is messier. There are multiple overlapping records:
RIR allocation: ARIN/RIPE/APNIC/LACNIC/AFRINIC database
IRR route object: route: 203.0.113.0/24, origin: AS64500
RPKI ROA: prefix 203.0.113.0/24 maxLength /24 authorized origin AS64500The RIR allocation says who holds the address block. The IRR object is operational tradition — useful, inconsistently accurate. The ROA is cryptographically signed in RPKI and therefore much stronger evidence of intended origin.
Relationships shape reachability
Most AS relationships reduce to three economic types:
- Customer-provider: the customer pays; provider announces customer routes broadly.
- Peer-peer: roughly mutual benefit; each carries traffic only for the other and its customers.
- Transit-free or settlement-free peering: no money, but selective reachability.
These relationships explain why a route can exist globally but not be preferred everywhere. They also explain why leaking customer routes to peers can be both a technical failure and a contract violation.
Multihoming changes the trust surface
A network with two providers may announce the same prefix to both. That is normal. It may also announce a more specific prefix to only one provider for traffic engineering:
to ISP-A: 203.0.113.0/24
to ISP-B: 203.0.113.0/24 + 203.0.113.128/25The /25 wins longest-prefix match wherever it propagates. If ISP-B fails to filter and leaks it to the whole internet, the traffic shift may overwhelm links. Multihoming is a control plane design exercise, not just buying two circuits.
Validate ownership before you configure
Before announcing anything, check allocation, IRR, ROA state, and existing propagation. Real operators use tools such as whois, RADb, RIPEstat, NLNOG looking glasses, and route collectors. Do not treat an invoice or a spreadsheet as proof.
Field notes
- Private AS ranges (
64512-65534for 16-bit,4200000000-4294967294for 32-bit) must not leak publicly. - A ROA with too-small
maxLengthcan make legitimate more-specific announcements RPKI-invalid. - IRR data is often stale; RPKI-invalid is operationally stronger evidence than missing IRR.
- AS path prepending does not create authority over a prefix; it only influences path selection.
- Before taking over a prefix in a migration, verify whether the old network still announces more-specific fragments.
Was this lesson helpful?