Human-Readable Form
32-Bit Binary Form
4 octets × 8 bits = 32 bits
The Mathematical Scale
Every single combination mapped into a single 1D line.
The IPv4 Internet
This is a small digital article that makes sense of the IPv4 address space. It both shows some patterns behind the addresses and their assignation, but also what this looks like across the globe and why. Hopefully it can cement your understanding of subjects you already knew of, or teach you something new. There graphics, some of which interactable, on your right to show and not only tell. Whenever you are ready....
Part I: The Binary Address
What is an IP Address?
You have heard about IP addresses. They are the designated numbers of the devices that make up the internet. Your computer has an IP, the server that hosts this website has an IP, and so has the computer I'm currently writing this text on, later to push it for you to read.
Back in the early days of networking, it was standard to format addresses as four numbers, each from 0 to 255 separated by dots, like 192.168.0.1. This IPv4 standard is still the addresses most people think of when they think of identifying a device on the internet. Four small numbers that can pick out any device on the internet. This is of course a lie, in more ways than one.
The number is of course just ones and zeros. 32 of them! Every address is just a 32-bit number. This results in 4.29 billion possible addresses. That's a lot but the number of addresses needed grew beyond what the standard could support and now we're running out of addresses.
Here I'll try to show you the state of the addresses and hopefully give an intuition for IPs and the surrounding properties of the internet. Instead of looking at individual addresses, we'll use some clever representations of a bunch of addresses so the internet can be understood as a single image.
Part II: The Hilbert Fractal
The Hilbert Curve
On the right we have four squares connected by lines. It's for now a simple U-shape. The numbers from 0 to 3 are plotted in binary along the line. Not very remarkable, however this is the base of a space-filling fractal that we will use to pack a 1-D line into 2-D space.
Mapping 4 Bits (Order 2)
Scaling this up by four we get a higher resolution and can pack 4 times as many numbers in a square. We have gone from 2 bits of information, to 4 bits. If you look at the binary labels you should be able to follow the line and see the numbers increase from 0000 to 1111. You might also notice that the U shape is still there, it's just made up of smaller U's. The previous curve is of order 1, this one has an order of 2, which can be interpreted as two layers of curving.
The Fractal Scales Up
At Order 3, we map 64 points. It's a bit harder to follow but the shape is still there. Note that the first two numbers change in the same pattern as the first order of the curve. The top left quadrant starts with 00 then bottom left with 01, bottom right with 10 and top right with 11. You might now see where this is going.
Approaching the Limit
By Order 4, we are mapping 256 points. You can still technically follow this path, but I do not recommend it. Instead ask yourself if I wanted to find the number starting with 11 where would I look? And if I then wanted to find the number starting with 1100 where would I look?
The curve places 4^N numbers on a grid and the location is determined by the numbers themselves in binary. Each bit can be viewed as a division of a square and a choice between left and right or up and down.
The 256 Class A Blocks
Back to our IPs. Here we show the first octet of the IP addresses (e.g. the 192 in 192.168.0.1). If each number is the first 8 bits in the 32-bit long address then that means that behind each number we can fit 24 bits of addresses. We've divided the 4 billion addresses into 256 clusters of 16,777,216 addresses.
This is a real division of addresses called Class A IP addresses or /8 blocks. It's the largest class of IPs given out to organizations, therefore A. Networks of this size can be expressed based on only looking at the 8 first bits of the IP, which is why they are denoted with a /8 subnet mask.
There were 128 designations of Class A IPs, for a total of half the address space.
add something about where the data is from
Let's have a look at the designated addresses.
Part III: Mapping the Live Internet
The Massive /8 Blocks
That is not remotely half the address space. Why is this? Well it's rare to give out such large blocks.
In the early days /8 blocks were handed out to large companies as the addresses seemed almost infinite. These blocks are the largest class of address blocks. Very few organizations really needs 16 million addresses so locking them to a single company would be a waste of addresses.
The blocks we see here belong to major service providers and of course the . Other actors that got /8 blocks back in the 80s include Apple, Ford, and MIT. But most actors have released these blocks and only hold a fraction of the 16 million addresses they once had.
The Class B and C networks
Here you can toggle between the , and networks, or view .
With their netmask of /16 and /24 they contain 2^16 and 2^8 addresses each. The resolution of the map only shows up to /24 networks so each pixel represents 256 addresses. That represents three additional orders to a Hilbert curve we're not showing. We can see that Class B and C networks are more commonly distributed. But there are still large gaps of IP addresses that are not allocated by the traditional classes. These have been assigned via the Classless Inter-Domain Routing method.
CIDR and /12
Why limit the allocations to be all numbers in /8, /16 or /24 blocks? Here we have set the resolution to /12 and show all allocations of any block size down to /12 designations. We see that the space starts to fill in neatly. We add colors for the different sizes of IP networks to differentiate the larger and smaller allocations. The smallest blocks we show here represent around a million IP addresses each and are given to regional ISPs and old tech giants.
Scaling down to /16
Now showing all the networks down to the /16 size most of the map becomes filled in. If you've already done the math you'd know that the /16 blocks consist of 65,536 addresses, typically held by large universities, ISPs, and massive corporations.
The Full /24 Routing Table
Putting all the allocations together we can now see the entire internet. The /24 block (256 addresses) is the smallest routable chunk on the global table. 16 million entries all showing a network with 256 addresses each. Of course in theory we could show all 2^32 addresses, but most allocations are done on the /24 level; more specific data is harder to get ahold of and it would balloon in size making this site quite slow.
Designated & Reserved Spaces
However even when we list all the advertised blocks down to the size of /24, we have not covered all the dark squares. The larger unannounced IPs include some special addresses that are reserved per old standards. These include:
0.0.0.0/8— Local default addresses used when devices power on127.0.0.0/8— Loopback addresses (localhost)224.0.0.0/4— Multicast traffic (Class D)240.0.0.0/4— Reserved for experimental purposes (Class E)
Other private address spaces specified in RFC 1918 are local addresses that can be used for traffic internal to a Local Area Network:
10.0.0.0/8172.16.0.0/12192.168.0.0/16
These special address spaces are highlighted in the view. Hover over the white blocks to see more details.
Part IV: Governance, Routing & Physical Reality
The 5 Global Registries & IP Estates
Let's move away from our curve depicting the addresses and talk about the ones who are in charge of administering the addresses. The Internet Assigned Numbers Authority (IANA) has delegated the administration of addresses to 5 Regional Internet Registries (RIRs):
- ARIN (Blue) — North America & parts of the Caribbean (~1.53B addresses, 41.3%)
- APNIC (Red) — Asia-Pacific and Oceania (~948M addresses, 25.6%)
- RIPE NCC (Green) — Europe, the Middle East, and Central Asia (~830M addresses, 22.4%)
- LACNIC (Yellow) — Latin America and the Caribbean (~222M addresses, 6.0%)
- AFRINIC (Orange) — The African continent (~185M addresses, 5.0%)
On the map you can see which area each RIR covers and how many addresses each region has.
The Great Allocation Disparity
The major differences between the countries shown on the map are a product of history.
As the internet was developed in Europe and in the US, most addresses (63%) were claimed before the other regions joined the internet and stricter rules were introduced to make sure not all addresses were used up. As a result, Africa got just 5% of the addresses despite now making up close to 20% of the Earth's population. As both Africa and Asia got snubbed on the IP addresses, they became early adopters of technology such as Carrier-Grade NAT (CGNAT) and quick to implement IPv6.
Here you can look deeper into the designated addresses by region and country. Select a region below to zoom in:
- — North America & parts of the Caribbean
- — Europe, the Middle East, and Central Asia
- — Asia-Pacific and Oceania
- — Latin America and the Caribbean
- — The African continent
On the map, the countries are colored brighter the more addresses they have (using data from 2026). The United States holds the most addresses with a total of 1.63 billion addresses, while developing nations are much darker, showing us how history has affected unexpected things such as how many IPs a country has.
The Routing Neighborhoods: Autonomous Systems & BGP
You and I do not send an email to the RIRs to get an IP. We get one from an Internet Service Provider (ISP). They reach out and pay for thousands or millions of addresses. The RIRs hand the addresses out and in order to keep track of where to route traffic the owners announce their network(s) and which addresses are in them. These networks are called Autonomous Systems (AS) and make up one of the abstraction layers of the internet.
Having a distributed solution where actors announce their addresses means that there is no need for a central server for handling all the internet's routing. Instead the actors can announce which IPs they have and which other networks they have routes to. There are about 75,000 of these independent networks that can be anything from an ISP to a large corporation or a university. These networks all get their own number, making ASNs the higher abstraction of IPs used to announce and describe paths to IPs between networks. The protocol for this routing is called: BGP (Border Gateway Protocol). By announcing which IPs they host to their neighbors and passing information onwards, paths are constructed with steps for reaching the destination. These AS_PATHs can list and decide paths from traits such as the number of hops, the next hop, protocols used, or whether the path is internal to a vendor among others.
Path 1 (Direct Tier 1 Transit):
[Your Local ISP: AS8473] ──(BGP)──> [Tier 1 Transit: AS1299] ──(BGP)──> [Cloudflare: AS13335]
AS_PATH: 8473 1299 13335
Path 2 (Alternative Multi-Hop Route):
[Your Local ISP: AS8473] ──(BGP)──> [Lumen: AS3356] ──(BGP)──> [Cogent: AS174] ──(BGP)──> [Cloudflare: AS13335]
AS_PATH: 8473 3356 174 13335 On the interactive diagram to the right, you can see how packets travel through this network mesh. You can switch between Path 1 (the preferred 2-hop route via Arelion) and Path 2 (a 3-hop failover route via Lumen and Cogent).
The Topology of Power: CAIDA's maps & Connectivity
The design of the system is decentralized, but there are larger, more important, or connected, ASNs than others. Researchers from CAIDA (Center for Applied Internet Data Analysis) publish maps of the topology of the internet based on millions of BGP paths and traceroutes from their Ark measurement platform. They determine how central an ASN is by how many other ASNs use a specific network to gain access to the internet. They call this cone size. One ASN can have multiple other ASNs contribute to its cone size. The cones can overlap, creating a hierarchy, or a tree of dependencies, but they are never circular.
Using the cone sizes and the longitude CAIDA has over the years produced what they call core graphs shows the networks centrality and how they are spread out over the Earth.
In the polar graph on the right, reconstructed directly from CAIDA's October 2026 dataset:
- Radial Distance ($r$): Placed on a logarithmic scale from the center. Networks with massive customer cones—the Tier-1 default-free zone backbones like Lumen (AS3356), GTT (AS3257), Arelion (AS1299), and Cogent (AS174)—sit at the nucleus ($r \approx 0$). Networks with few or zero downstream transit customers radiate outward toward the perimeter.
- Polar Angle ($\theta$): Oriented by geographic longitude, placing the Americas on the left, Europe and Africa at the top, and Asia-Pacific on the right.
- Node Colors: Tinted by Regional Internet Registry (ARIN Blue, RIPE NCC Green, APNIC Red, LACNIC Yellow, AFRINIC Orange).
- Curved Arcs: Inferred BGP relationships connecting networks, showing provider-to-customer transit trees and settlement-free peering meshes.
Here lies a central paradox of the Internet: owning millions of IP addresses does not make you the center of the web. The US Department of Defense holds 220 million IPs but sits on the perimeter. Meanwhile, transit backbones like Arelion (AS1299) or Lumen (AS3356) own relatively few IP addresses, yet they form the structural core that holds the global network together.
The Corporate Sovereigns: Measuring the Giants
There is no true biggest ASN. There are only different metrics. Some of them could be:
- Address Real Estate (IPs Held): Who owns the finite 32-bit space?
- Edge Reach (Connected Exchanges): Who is present in the most physical cities?
- Traffic Volume (Bandwidth & Web Share): Who carries the digital cargo? Here are some of the largest ASNs by IP count.
You can click the ASNs below:
- — **215M IPs** spanning **68 countries**. The commercial cloud giant controls more IPv4 addresses than Africa.
- — **Top global peering presence**. Handles ~20% of all global web traffic via BGP Anycast, but in comparison holds few addresses.
- — **220M IPs**, the largest owners of IPs on Earth. Doesn't exchange much information with peers.
- — **79M IPs** across **34 countries**, uses a private network of undersea fiber cables.
- — **111M IPs** owned by the largest national access broadband network in the world.
On the map we show the 10 ASNs advertising the most IP addresses and which countries they are active in. Some of these are large ISPs providing access for millions of end users or large cloud providers that hosts millions of servers.
Where Clouds Meet: Internet Exchange Points (IXPs)
Where do these 75,000 independent networks actually meet? There are of course peer-to-peer connections as we have discussed, but having too many hops makes connections vulnerable to outages. Having connection points solves this and creates reliable ways to connect to the backbone ASNs. Instead of setting up many interfaces to neighbors and routing traffic through dozens of networks, internet providers can just set up a massive connection to an IXP and route traffic through there. These Internet Exchange Points (IXPs) are located in major cities in safe buildings making them accessible for ISPs. These IXPs explain how the ASNs in the CAIDA map can have so many connections. There can be hundreds of peers meeting at a single point.
On the map, we have plotted some of the major global exchange points, colored green to orange (where orange represents the highest throughput and network density). Some of the more notable IXPs include:
- IX.br São Paulo (Brazil): ~34.0 Tbps Peak — Currently the single largest public internet exchange, handling a massive amount of traffic across South America.
- DE-CIX Frankfurt (Germany): ~17.5 Tbps Peak — The digital hub of Europe, connecting over 1,000 ASNs.
- AMS-IX Amsterdam (Netherlands): ~12.2 Tbps Peak — Historically the gateway between Europe and America as the transatlantic undersea cables connect here.
More information can be seen if you select a region and hover over the nodes. You can also toggle between traffic and number of peers as the core metric.
The Illusion of Location: BGP Anycast & Private Backbones
With the BGP protocol and ASNs fresh in our heads we also cover the concept of Anycast and how IPs no longer have to be tied to a single location. In the early days of the internet IPs were used as and often tied to landline telephone numbers. Networks were often a floor, a building or a campus, but today a network can be 4000 virtual machines in a datacenter in Australia and 2000 in Mumbai. This can be done using Virtual Private Networks (VPN), that is setting up encrypted connections from point A to B and allowing authenticated access past the firewalls. Another solution for an actor with resources would be dedicated fiber lines between sites. But good old division into subnetting is often a stable solution.
But using BGP the owner of an IP or network can advertise that all their ASNs host it. Users connecting to Netflix or Google might not care about which server they connect to as long as the service is fast. This is BGP Anycast, using the same address in multiple location and allowing the users to connect to their nearest device. You can see the difference of using traditionally advertised routes and using anycast to reach 1.1.1.1 which is one of the major services for resolving domain names into IP addresses.
Another quirk of IPs not needing to be located in a single location is that some networks can be advertising in locations they do not have any IPs. The providers can connect to an IXP in South America and carry the traffic using private fiber to their datacenter in Canada providing a quicker and more stable service than just announcing the Canadian IP in a single location and having the packets find a path with more hops to travel there.
With all these IPs administered by RIRs for regions that don't constrain them new problems arose. How does a government department in the Netherlands know their data is staying in the EU to ensure GDPR compliance? And how do we get an idea of where to route if we have a Floating Subnet that might appear on the other side of the globe tomorrow? Providers publish RFC 8805 Geofeeds along with proof that they own the IPs to spread information of where virtual subnets currently float. This can ensure that a CDN can read where the connection is coming from and return area specific content or redirect the users to a better located server the Anycast missed or find suspicious spikes in traffic.
Part V: Surviving the Crisis & The 128-Bit Horizon
The Crisis That Never Came: How NAT Stole 30 Years
Returning to our map of IPs we still have not explained how the internet runs if there is only 4.29 billion addresses. Some of the actions we have discussed such as assigning smaller blocks helps avoid wasting addresses. While 4 billions is a lot of addresses estimates put the number of connected devices at around 30 billions. Using one address for each device was never going to work. Already in 1993 the Internet Engineering Task Force projected the addresses to run out before 2000.
The solution implemented was the private addresses we mentioned back in section 3. This with the addition of Network Address Translation (NAT). The idea is to have two address schemes, one for local area networks and one for the internet as a whole. Using NAPT (Network Address Port Translation) routers can translate addresses and allow all the devices in a network to share one address on the outside and to have distinct addresses inside the network.
Using these local networks:
10.0.0.0/8— 16.7 million addresses172.16.0.0/12— 1.04 million addresses192.168.0.0/16— 65,536 addresses Anyone with a router and a single IP address can using NAT have really any number of addresses. From the outside it just looks like a single address. But that creates the question, how is the traffic from outside routed to the correct device?
How NAT Works: The State Table & Port Multiplexing
The answer is in the name Network Address Port Translation, ports are used. Ports are number that indicate types of service used in the transport protocols above IP. When connecting to a service such as connecting to a website or transferring files the port is passed along as additional information in the IP packets. To make translation to a public IP and back possible a random source port is used by computers reaching out of the system. This port becomes the router's way of knowing where to send the response. It will rewrite the headers and might change the port when passing the packets along, but it will make sure that the return traffic is routed to the correct user.
There are some different types of NAT configurations, but the principle is the same, use ports to translate inner and outer IPs. The classic NAPT is shown in the panel.
The Lost Paradise: The Death of End-to-End Connectivity
While NAT came as a solution for the lack of addresses it created a new problem. NAT killed the end-to-end principle. Before it was introduced connections between IP addresses were never ambiguous. Peer-to-peer connection were simpler because they were symmetric. When a NAT hides a device, outside devices can not initiate connections because the router can not map the incoming port to an internal IP address. This is shown in the view on the right and can affect services such as:
- Games with peer-to-peer connections: Players reducing latency by connecting directly to each other instead of via a central server.
- Video conferencing: Sharing video and sound without the need of servers that relays or distributes the data.
- File distribution networks: Seeding files allowing quicker downloads and redundancy.
To solve this problem several solutions can be used. Some but not all of the protocols that are used are:
- Port Forwarding & UPnP: Manual or automated configuration of routers to bind specific external ports to an internal host machine.
- STUN (Session Traversal Utilities for NAT): Setting up connections to a server that saves the external IP and port which can be shared to the second party so they can establish a connection to the router.
- TURN (Traversal Using Relays around NAT): The backup when other protocols do not work. Works by routing all traffic through a relay server which will add costs and delay.
The Mobile Explosion: Carrier-Grade NAT (CGNAT) & Double NAT
The smartphone revolution was a leap of technology that made large ISPs change how they distributed addresses. When millions of mobile devices with internet connections became billions providers implemented Carrier-Grade NATs (CGNATs). In the standard RFC 6598 the address block 100.64.0.0/10 was dedicated as shared addresses which carriers can use as their own private network.
In a CGNAT setup, your home modem or phone does not have a public IP address at all. Your devices are behind a double Double NAT. That is two layers of NATs where your ISP uses private addresses in the 100.64.0.0/10 block. This can cause some issues if your setup requires specific port translations and your ISP makes their own mapping. For that reason running home servers will often require an add-on fee for a fixed external IP address. If you don't host anything other solutions can be used to achieve p2p connections using mesh tunnels like WireGuard or Cloudflare Tunnels, or the STUN/TURN protocols mentioned before.
Protocol Evolution: IPv4 vs. IPv6 Headers
The decision almost half a century ago to use 32 bits for addressing on the internet seemed like a good choice at the time. I would even say that it was. The Internet works great for what it is and it was hard to imagine that we'd go from connecting hundreds, or a few thousands, of devices to billions. We've gone from having 213 computers connected and adding a new every other day to having more devices than people and adding and removing them in millisecond intervals.
As I let slip in one of the previous sections there is an option to using IPv4 with the issues the limited address space brings. Other versions of IP has been suggested, none has really taken off except IPv6.
IPv6 uses 128 bits for the addresses. It results in a little bigger headers, but they are always 40 bytes long and can be expanded by increments of 8 to add more functionality before the data. The standardisation of the header lengths make it easier for routers to parse the packets. IPv6 also removes the checksum that was recomputed after each hop when using IPv4, changes like this makes IPv6 easier to implment but not necessarily better as many optimizations has been developed for IPv4. In the view we now show the headers for both protocols, what the fields are and what was kept or replaced in IPv6.
The Grand Finale: The Astronomical Scale of IPv6
This is the scale difference of IPv4 and IPv6. With a total of 340 undecillion addresses there is no need for CGNATs, NATs or even private networks. With IPv6 it's standard to assign a /64 block for a home network. On the right you can see the sizes of IP networks in relation to each other and to some other large numbers to give you a sense of their scale.
Thank you for reading this article if you want to see which IPs that has visited the site head over to statistics.