Real World Maths Busters

The Maths Behind Everyday Life

The story, the formula and a worked example — see exactly where this maths shows up in the world around you.

Back to all stories
Technology 4 min read

Why the Internet Ran Out of Addresses

Four billion sounded infinite in 1981. It was not.

IPv4 uses 32-bit addresses. Its finite public address pool helps explain IPv6, while private addressing and network address translation let multiple devices share a public IPv4 address.

Counting with bits

An IPv4 address is 32 binary digits. The number of distinct addresses is therefore 2322^{32}, which works out to about 4.29 billion.

Not every bit pattern is available as a public host address: some ranges are reserved. Network address translation helps share public addresses, but does not enlarge the 32-bit address space.

addresses=2 bits\text{addresses} = 2^{\,\text{bits}}

Each extra bit doubles the number of possible addresses.

The fix: more bits

The successor, IPv6, uses 128 bits — that is 21282^{128}, an almost unimaginable number: roughly 340 undecillion addresses, far larger than the IPv4 space.

The old ceiling

  1. 1

    IPv4 total

    232=4,294,967,2962^{32} = 4{,}294{,}967{,}296
  2. 2

    IPv6 total

    2128≈3.4×10382^{128} \approx 3.4 \times 10^{38}
Answer

Going from 32 to 128 bits did not add four times the space — it added an incomprehensibly larger universe of addresses.

The takeaway

Doubling per bit is why 32 bits felt endless and then suddenly was not — exponential growth outran the planet.

Back to all stories