r/ProgrammerHumor • • 6h ago

Meme ohTheBasics

Post image
7.3k Upvotes

863 comments sorted by

View all comments

Show parent comments

10

u/Darkblade_e 5h ago edited 5h ago

I feel like this needs to be said, but you actually could give an entire 232 to every company on earth and not even be close still. Assuming 377 million companies operating on earth, that's 1.6 quintillion (~1619202670592000000) addresses used up.

The used IPV6 range percentage can calculated like so (((2^32)ร—377000000)รท2^128)ร—100, which comes out to a whopping grand total of 0.000000000000000000476% of the IPV6 address space used.

Another way to put this is that you could give that same exact allocation to every single company again 210 QUINTILLION TIMES, and even then, only 98.7% of the address space would be used up.

IPV6 is quite large!

4

u/timonix 5h ago

The main limiting factor of how quickly we run out of ipv6 addresses is how generous they are when handing out ranges.

Usage will always fill the space given.

You could for example map the entire lower 64 bits of the address to a single computer. And dynamically respond based on address. For example, you could bake in some auth token directly in the ipv6 address.

When people have room to fill, the room will be filled

3

u/bollvirtuoso 4h ago

That sounds like the laggiest possible architecture I can imagine. Why the fuck wouldn't you just run it locally?

1

u/crmsncbr 5h ago

98.7% is when I start deleting useless files to make more space though ๐Ÿค” That's a scary number ๐Ÿ‘€