The global internet is composed of over 75,000 Autonomous Systems (ASes) — networks operated by ISPs, enterprises, universities, and content providers — that exchange routing information using the Border Gateway Protocol (BGP, RFC 4271). Each AS has a unique Autonomous System Number (ASN) assigned by Regional Internet Registries (RIRs): ARIN (Americas), RIPE NCC (Europe/Middle East), APNIC (Asia-Pacific), LACNIC (Latin America), and AFRINIC (Africa). The global routing table currently contains over 900,000 IPv4 prefixes and 175,000 IPv6 prefixes, representing the total reachable address space of the internet.
Internet routing topology is divided into tiers: Tier 1 providers (e.g., AT&T, NTT, Lumen) have global reach and peer with each other without payment (settlement-free peering), forming the internet backbone. Tier 2 providers pay Tier 1 for transit but also peer with other Tier 2 networks. Tier 3 providers are typically regional or local ISPs that purchase all their connectivity from upstream providers. Internet Exchange Points (IXPs) — physical locations where networks interconnect — reduce latency and transit costs by enabling direct peering. Major IXPs include DE-CIX Frankfurt (Europe's largest), AMS-IX Amsterdam, LINX London, and Equinix in multiple cities.
BGP routing security is a major concern. Route hijacking occurs when an AS announces prefixes it doesn't own, either accidentally (misconfiguration) or maliciously. The 2010 China Telecom incident, the 2018 Amazon Route 53 hijack, and various state-sponsored incidents have demonstrated the severity of BGP vulnerabilities. Resource Public Key Infrastructure (RPKI) provides cryptographic verification of route origin through Route Origin Authorizations (ROAs), which attest that a specific ASN is authorized to announce a given IP prefix. BGPsec extends this with path validation. As of 2024, RPKI adoption has reached ~50% of the global routing table.
IPv6 adoption varies significantly by country and provider. Countries like Belgium, Germany, and India lead with over 50% IPv6 adoption rates, while many emerging markets still rely predominantly on IPv4 (often with CGNAT — Carrier-Grade NAT — due to IPv4 exhaustion). The global routing analysis tool provides insights into which countries and ASNs are driving IPv6 deployment and the overall health of internet infrastructure.
CLI Global Routing Analysis
macOS / Linux
# Get country routing stats from RIPE STAT
curl "https://stat.ripe.net/data/country-resource-stats/data.json?resource=US"
# Count prefixes for an ASN
curl "https://stat.ripe.net/data/announced-prefixes/data.json?resource=AS15169" | python3 -m json.tool
# BGP routing table size (requires bgpdump or routeviews)
curl ftp://archive.routeviews.org/bgpdata/
# Check ASN routing data
whois -h whois.radb.net AS15169
Windows PowerShell
# Query RIPE STAT for country routing
Invoke-RestMethod "https://stat.ripe.net/data/country-resource-stats/data.json?resource=US"
# Get ASN prefixes
(Invoke-RestMethod "https://stat.ripe.net/data/announced-prefixes/data.json?resource=AS15169").data.prefixes