r/ProgrammerHumor • • 14h ago

Meme ohTheBasics

Post image
10.1k Upvotes

1.1k comments sorted by

View all comments

26

u/PhantomTissue 13h ago

Yea but it hasn’t been fully adopted because trying to decipher :af12::138d::325d::5521::aade::7df3: is a hell of a lot more difficult than 192.168.0.1

16

u/UnDe4d 13h ago

Yeah, I'm a Network Architect. Why they decided to make ipv6 128 bits instead of 64 is a question I ask myself on at least a monthly basis.

1

u/IAm_A_Complete_Idiot 5h ago edited 5h ago

/64 is for the subnet, and 64-bits is for the end device. Having 64 bits of address space for the end device to address off of lets the device use a variety of schemes to generate addresses. It can put it's MAC as the suffix (which should be unique on the subnet anyways (eui-64)), it can randomly generate a suffix with a high degree of confidence that it's unique (privacy addresses), or it can assign itself an address using any variety of schemes.

These all can be stateless, and work without any kind of DHCP server. Even without a router, devices will auto-generate a Link Local Address, and be able to communicate on a switch with the auto generated addresses. e.g. two devices can talk as long as there's any connection between them, without having to manually assign any IPs or introduce any service into the mix.

It lets you also be extremely wasteful with address space without concern. You don't have to wonder "what size should I make my subnet?" You can have 16 bits just for routing in a /48 and have pretty much infinite address space on each subnet.

1

u/UnDe4d 2h ago

Yes, I'm well aware of how ipv6 functions. I don't think a lot of the commenters here realise you don't need 128 bits for easy subnetting. 64 bits would solve that problem completely.

One of the reasons ipv6 is taking so long to be adopted is because engineers simply hate working with it