3 ms·
Except IPv6 being 128-bit makes fast hardware implementations much easier than if it had to deal with shorter prefix lengths. Nothing shorter than 128 really ma
by kstrauser 9y ago
Except IPv6 being 128-bit makes fast hardware implementations much easier than if it had to deal with shorter prefix lengths. Nothing shorter than 128 really makes sense at all in an IPv4 replacement.
- mixmastamyk 9y agoNo comprendo. Why would 128 be faster than 64?
- sliken 9y agoIPV6 is basically 64 bits for routing and 64 bits for the local network segment. Seems plausible that it's faster than trying to mask out the bits you need.
- mixmastamyk 9y agoWhy not 32:32? Shouldn’t four billion internets be enough?
- kstrauser 9y agoHierarchy is nice, though. If you can model the bits as a tree, it becomes super quick to figure out where to route a packet. You can model stuff like that trivially with an FPGA.
- tempay 9y agoProbably, but having a 2^64 tolerance factor isn't a bad idea given how difficult moving from IPv4 is proving to be. This way we have ~1 IP address per 6 micrograms in the solar system, or per 3.4 tonnes in the galaxy.
- will4274 9y agoConsider a tiny (5 machine) piece of the internet. Three hubs, an outlink and two smaller hubs, all connected (a triangle). With 4 bits, the left hub can have all the 0xxx addresses and the right hub can have all the 1xxx addresses. No matter where the devices connect, they can all get an IP and the outlink only needs to remember a simple rule (starts with one, go right, else go left). Compare to a 3 bit network. By moving IPs from hub to hub, all five devices can always get an address, but the small hubs need to communicate which addresses they own to the outlink and to each other in order to avoid address exhaustion on either hub. Routing a packet is slower because the routing is more complex.
- mixmastamyk 9y agoSo it is routing efficiency? I’ve been asking this question for five years and this is the first time a coherent answer has been offered, thanks. How much more efficient is the 128 vs 64 for routing and what trade offs does it make for other things? I’m now wondering.