311
submitted 5 months ago* (last edited 5 months ago) by lambalicious@lemmy.sdf.org to c/programmer_humor@programming.dev

Today in our newest take on "older technology is better": why NAT rules!

you are viewing a single comment's thread
view the rest of the comments
[-] PlexSheep@infosec.pub 29 points 5 months ago

Ipv6 is not 6 bytes? 8 segments of 2 bytes for a sum of 16 bytes?

Or am I stupid right now?

[-] NeatNit@discuss.tchncs.de 6 points 5 months ago

Yes, you've got it right. <> means ≠. 16 is not equal to 6.

[-] PlexSheep@infosec.pub 2 points 5 months ago

Never seen that Notation.

[-] awesome_lowlander@lemmy.dbzer0.com 2 points 5 months ago* (last edited 5 months ago)

~~2 bytes would give you 0-4 per segment. Or about IPv2~~

[-] jjagaimo@lemmy.ca 6 points 5 months ago* (last edited 5 months ago)

2 bytes would be 0-65535 and 8 sets is ~3.4×10^(38) addresses

[-] awesome_lowlander@lemmy.dbzer0.com 8 points 5 months ago

Whoops, bits vs bytes. This is why I should stop commenting before I've had coffee

[-] lambalicious@lemmy.sdf.org -2 points 5 months ago

IPv6 is unfortunately not six bytes, no. For some weird, ass-backwards reason.

[-] purplemonkeymad@programming.dev 7 points 5 months ago

Because 48 bits over 32 bits does not really solve the problems with ip4. 128 bits basically gives one ip4 address space to each square meter of earth. Ip6 also drops all the unused and silly parts of ip4 too.

[-] lambalicious@lemmy.sdf.org 0 points 5 months ago

128 bits basically gives one ip4 address space to each square meter of earth.

That sounds like terminal stage capitalism to me. Why would we want every tree in the Amazons to be cybergorized with its own IP? I don't know Rick, 64 ~~kbits~~ bits ought to be enough for everybody, and I'm already risking it.

[-] orangeboats@lemmy.world 8 points 5 months ago* (last edited 5 months ago)

Our network architecture has the tendency to waste IP addresses. A subnet may have 10 devices but have 256 IPs (e.g. a /24 network like 192.168.0.0 to 192.168.0.255) - that's 246 wasted addresses. This wastage is kinda unavoidable since we'd need to keep our routing tables from being too fragmented.

With that in mind it is entirely possible for 64-bit addressing space to not be enough, unless we revert to methods like NAT which come with their own disadvantages.

We have already used up about one /11 block of the IPv6 internet. That's 128-11=117 bits. If we replace the standardized /64 subnets of IPv6 with old /24 subnets typical in IPv4 networks, you get 61 bits. That's dangerously close to the upper limit of a hypothetical 64-bit IPv5 internet.

[-] brianorca@lemmy.world 2 points 5 months ago

Because bits are not expensive anymore, and if we used 64 bits, we might run out faster than the time needed to convert to a new standard. (After all, IPv4 is still around 26 years after IPv6 was drafted.) Also see the other notes about how networks get segmented in non-optimal ways. It's a good thing to not have to worry about address space when designing your network.

[-] PlexSheep@infosec.pub 1 points 5 months ago

Why should it be? Also, MAC addresses are that size.

this post was submitted on 19 Jun 2024
311 points (85.4% liked)

Programmer Humor

19589 readers
601 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS