Hacker News new | ask | show | jobs
by caminanteblanco 18 days ago
To summarize for the uninitiated, I learned today that IPv6 supports packets of up to 4GB! Why you would ever need a packet within even an order of magnitude of that size is beyond my ken. (Also, I don't know what transit media even support packet sizes anywhere close to that size).

The only place I could see the layman ever getting close to using this would be loopback. But at that point, you have IPC.

7 comments

Transit media was addressed by RFC 6214 - avian carrier! Section 3.1 states that "an adult carrier can carry jumbograms [RFC2675]".

A 4 GB microSD card is well within the carrying capacity of a pigeon.

https://www.rfc-editor.org/rfc/rfc6214.html

https://www.rfc-editor.org/info/rfc1149/ has more specific information in regard to the benefits of avian carriers. Particularly "because of the 3D ether space available to the carriers, in contrast to the 1D ether used by IEEE802.3."

Thank you riffic for sharing this, this reminds me of the SIGBOVIK papers :)

This is the comment I was looking for.
IPv6 is designed to last. Just because we can't fathom a use case today doesn't mean we'll never have one.
In the future, when everyone has 100TB internet speeds, this might be one frame of a realtime 3D video call!
> loopback

I mean inter-container communication on a host?

Also I assume it’s not a design goal to support 4GB but it is just a result of a power of 2. They are basically just doubling the size from 16 to 32 bits. Trimming it to 30 bit to cap it at something "reasonable" 1GB or something is more hassle then it’s worth.

I just cannot imagine the error correction on those packets. I mean if anything goes wrong that's a lot to toss away.

> I just cannot imagine the error correction on those packets. I mean if anything goes wrong that's a lot to toss away.

I think the original jumbogram work occurred back when alot of people were still convinced end-to-end IP alone wasn't suitable for many uses. This was the era when, e.g., people were still pitching ATM or exploring bespoke solutions for linking research centers. So basically jumbograms were presumed to be delivered atop another long-haul, multi-link protocol that would provide reliability. Jumbograms were a way to improve the throughput and latency between IP peers with minimal but high-impact changes to application and kernel network stacks (presuming IPv6 adoption), placing most of the complexity in the network transit layers. What we ended up with, ironically, was the reverse, everything IP and below largely ossified from software perspective, some minor evolution at the TCP layer, but most progress happening above TCP/UDP, and alot of work invested in local hardware link layers that remains opaque to IP or even the ethernet software stack, effectively placing a ceiling on dividends.

I hadn't thought of that, that would be a potential use case for sure. And I agree that literal 4GB packets probably aren't what's in mind here, but I think it is an oddity that a confluence of other factors has it allowed by the RFC.
The person who shocked me with that fact put it this way: we already do 9000 regularly. What are the chances uint16 max is big enough for the rest of our lives?

4 byte length suddenly perfectly reasonable.

I dunno, we've got 800Gb/s NICs with TCP offload now, you could send dozens of gigabyte jumbograms a second
Is there really that much room for improvement by changing packet size? You're avoiding a little bit of overhead for the 40 byte packet header and you're also increasing the risk of that packet failing CRC and getting discarded which is a lot more expensive.
There is much improvement to be gained by changing packet size from the current de-facto limit of 1500 byte MTU, but requiring 32-bits is likely unnecessary as just increasing it to the current 16-bit limit of 65535 bytes would be adequate for any reasonably designed protocol.

Given current compute, you would be hard-pressed to control plane more than ~100 million packets per second per core which is ~1 Tb/core-s at a 1500 byte MTU. Increasing this to just 65535 is a ~40x increase to ~40 Tb/core-s (~6.5 TB/core-s). Clocking at 5 Ghz and issuing 2 cache-line sized stores per clock you can still only issue ~640 GB/core-s (~4 Tb/core-s) of memory traffic from a core (assuming you do not get memory bandwidth limited earlier than that). So, at a 1500 byte MTU you need a 1:4 data to control core ratio, but at 65535 you flip that to a 10:1 core ratio. This should be reasonable for basically anything for the foreseeable future.

The real problem is the packet arrival rate on today’s high-speed interfaces.

At 1.6Tb/sec, with 1500 byte packets, that leaves very little time for a router to make a forwarding decision and route each packet before the next arrives. It’s kind of wild we have the same max MTU on interfaces that speed as we had with 10Mbit Ethernet.

So far we’ve kept up with some very clever engineering, but I do wonder if it can continue indefinitely.

I mean over the standard 1500 byte packet, for sure. I'd assume that you'd probably find an optimal spot at 1 to 8Mb on super fast networks. Also networks at these speeds tend to have very low retry rates. It's the buffer sizes that start to get crazy though.
My prompts to Claude will finally fit in one packet.
Some ML/AI networks I have seen would benefit from packet sizes in this ballpark.