Popular Posts

Tuesday, December 1, 2026

IPv4 vs. IPv6 Explained Simply: Why the Internet Needed an Upgrade

 Every device connected to the internet—your smartphone, your laptop, your smart TV, and even a Wi-Fi-enabled AC—needs a unique numerical label so data knows where to go. This label is called an IP (Internet Protocol) Address.

computer networks textbook diagram comparing 32-bit decimal IPv4 address format with 128-bit hexadecimal IPv6 address format


For over forty years, the internet ran almost entirely on IPv4. Today, networks across India and the world are steadily shifting to IPv6. Whether you are preparing for a computer networks exam or a technical interview, here is the simplest breakdown of why this upgrade happened and how the two formats differ.

1. What is IPv4? (The Classic 32-Bit Address)

IPv4 (Internet Protocol version 4) was designed in the early 1980s. It uses a 32-bit numbering system written as four decimal numbers (called octets) separated by dots—for example: 192.168.1.1.

Each of those four numbers can range from 0 to 255. That gives IPv4 a grand total of roughly 4.3 billionunique addresses.

Back in 1983, 4.3 billion seemed like an infinite number. Nobody imagined that every single person on Earth would carry a smartphone, a laptop, a smartwatch, and smart home gadgets all connected to the internet at the same time. By the 2010s, the world officially ran out of fresh IPv4 addresses.

2. What is IPv6? (The 128-Bit Future)

To solve the address shortage permanently, engineers created IPv6 (Internet Protocol version 6). Instead of 32 bits, IPv6 uses a massive 128-bit address written in hexadecimal (numbers 0–9 and letters a–f), split into eight groups separated by colons:

2001:0db8:85a3:0000:0000:8a2e:0370:7334

How many unique addresses does 128-bit math give us? Roughly 340 undecillion (that is 340 followed by 36 zeros). To put that in perspective, you could assign a unique IPv6 address to every single grain of sand on Earth and still have trillions of addresses left over.

Why Haven't We Shut Down IPv4 Yet?

If we ran out of IPv4 addresses years ago, how are billions of devices still using it today?

The answer is a clever workaround called NAT (Network Address Translation). Your home Wi-Fi router gets one public IPv4 address from your ISP (like Jio or Airtel), and it shares that single address among all 10 devices inside your house by giving them private local addresses. While NAT kept IPv4 alive, it adds extra work for routers and complicates direct peer-to-peer connections.

Quick Comparison: IPv4 vs. IPv6

FeatureIPv4IPv6
Address Length32 bits128 bits
FormatDecimal separated by dots (192.168.1.1)Hexadecimal separated by colons (2001:0db8:...)
Total Addresses~4.3 Billion~340 Undecillion ($3.4 \times 10^{38}$)
Security (IPsec)OptionalBuilt-in support
ConfigurationManual or DHCPSupports automatic configuration (SLAAC)
NAT Required?Yes (to save addresses)No (every device can have a public IP)

No comments:

Post a Comment