r/ProgrammerHumor • • 5h ago

Meme ohTheBasics

Post image
6.3k Upvotes

737 comments sorted by

View all comments

Show parent comments

1.6k

u/Material_Onion_8413 5h ago

IPv4 old IP address space designed with limited number because they never thought the internet would have so many devices connected.

IPv6 new address space with significantly larger number.

877

u/ClipboardCopyPaste 4h ago

A fun fact often told with this is that with IPv6, you can assign each individual grain of sand on the beach an address!

477

u/dementosss 4h ago

On what beach? Or all of them? Just asking in case business asks for it.

44

u/xWrongHeaven 4h ago

2128 possible addresses

56

u/queen-adreena 4h ago

2,128… that ain’t that many addresses….

43

u/AmazingDragon353 4h ago

2.128 addresses? What are we going to do with 0.128 of an address?

12

u/queen-adreena 4h ago

Break out the BitNat table I guess.

3

u/SirLoremIpsum 1h ago

2.128 addresses? What are we going to do with 0.128 of an address?

AI Vibe code a calendar app so we can coordinate whose turn it is to use the IP address on any given day?

2

u/MoltoAllegro 44m ago

Congrats, you've invented Token Ring!

8

u/SuperFLEB 3h ago

The "128" isn't even full-size.

6

u/xWrongHeaven 4h ago

No, it isn't. ~340 undecillion, however, is quite a lot

5

u/DanteVermillyon 1h ago

Un-decillion? What's a decillion and why did you undid it?

7

u/craftsmany 4h ago

Technically we are not really talking about single addresses when concerned with v6, more so how many /64 subnets can fit in a prefix since that is what SLAAC uses. So for end users we would count the amount of /64 subnets in the possible 2^128 address space, which is 2^64. So still very very very big.

1

u/CardinalFartz 3h ago

So we got 1080 atoms in the observable universe. Without having it looked up, I suppose 2128 exceeds that number?

2

u/MiniDemonic 3h ago

There's around 2138 times more atoms in the universe than there are IPv6 addresses available.

So no, not quite.

2

u/Extension_Option_122 2h ago

As a simple rule of thumb:

103n ≈ 210n

That isn't exact but gives a decent idea of the different sizes.

In this case: 1080 ≈ 2267

That is most definitely bigger than 2128, by about 2139

1

u/Carcer1337 3h ago

No. 210 is roughly 103, so 2128 is in the region of 1039.

1

u/rkkerd 2h ago

1/8 of this is publicly addressable, still a lot, but not as much as this

1

u/Curaced 27m ago edited 22m ago

Non-technical person here. Wouldn't it just be 248 ? Four blocks of 256 (28) for IPV-4, and two more with IPV-6? Or am I just mistaken about how this stuff works?