29 points · by caminanteblanco · 2w ago · 51 comments
why aren't they the default since, I don't know, fiber ISP rollouts? Outside of a slight increase in latency and maybe loss of value with small webpages/fragments, surely ISPs can handle it and you could upgrade fiber ONTs to easily handle 2.5, 5, 10 GigE or fiber directly to your internal network. There's almost no excuse. Other than I guess resource starvation of the end device processing data. Am I not understanding something?
As far as making the internet better, they're generally not interested unless they're really up against a wall that hits their bottom line in a way they can comprehend ; the ones they don't comprehend they tend to ignore too.
If the whole world switched to 9000 MTU in the morning everything would be fine.
As things stand if you increase your network to it and allow hosts send packets that size you’ll hit sufficient edge cases and icmp black holes to give you issues.
The only place I could see the layman ever getting close to using this would be loopback. But at that point, you have IPC.
A 4 GB microSD card is well within the carrying capacity of a pigeon.
Thank you riffic for sharing this, this reminds me of the SIGBOVIK papers :)
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 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.
4 byte length suddenly perfectly reasonable.
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.
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.
For larger packets to work, the MTU size signal has to be baked into _each_ packet. ICMP on truncation is NOT a good design.
Of course, there's a belated RFC to fix it: https://www.rfc-editor.org/info/rfc9268/ But it'll never get implemented and deployed, as we're deep in the "ossification" stage for IPv6.
As all protocols must already check that the lengths encoded in the packet are actually in the bounds of the packet to avoid out-of-bounds accesses when handling incorrect or malicious packets, any existing destination that does not add support for PMTU determination via truncated packets must already safely drop those packets otherwise it is currently egregiously insecure. So, such a design is backwards-compatible with any destination that is not a gaping security hole.
The destination, now having learned the PMTU from source to destination, can then feed that back to the source in whatever way it chooses including, and preferably, in-band in whatever higher layer protocol it is using. Flowing it in-band of the higher layer protocol avoids ICMP or stateful firewall blackholes since it flows back inside of the allowed flow from the trusted endpoint and can even have its integrity and confidentiality maintained instead of you getting random ICMP packets from unknown and unverified entitys that may or may not even be on your path.
Proactive MTU communication allows you to reliably discover it during the 3-way handshake with essentially no overhead.
No, IPv6 doesn't do fragmentation, so it's stuck with whatever the path MTU is. For consumer stuff that's going to be sub-1500, which is what you're talking about.
TCP does have packetization layer path MTU discovery [RFC 4821]. And this has been adapted to UDP and others [RFC 8899]. PLPMTUD is independent of IPv4 vs. IPv6.
Last time, it was "There's EVERYTHING wrong with IPv6. It's a recursively bad protocol. From the basic header design (extension headers, wtf)" [1] and "No, they are not fine. Their design means that the router needs to know all possible extension headers to just be able to route the packets" [2].
If using extension headers is bad, and not using them is bad too, WTF were they supposed to do? At some point I have to conclude you're calling the design bad/stupid not because any aspect of the design is bad or stupid, but purely because it's what v6 did.
[1] https://news.ycombinator.com/item?id=50122261 [2] https://news.ycombinator.com/item?id=50123409
PMTU is one aspect of it.
> If using extension headers is bad, and not using them is bad too, WTF were they supposed to do?
It's not that trying to use extension headers is a bad idea per se. It's that they are useless in the current Internet due to _other_ mistakes made during the IPv6 design.
So this particular RFC will not be implemented and deployed within the next decade or so, so it's nothing more than an idle curiosity.
Edit: how _I_ would have retrofitted the PMTU into IPv6? By abusing the 20 bits of the flow label. Use 8 bits as a sentinel value and the rest of the bits as logarithmically encoded MTU.
Edit2: since 64 bits of the IPv6 addresses are wasted anyway, we can also use some of these bits as a signal.
It's also a fundamentally bad approach. ICMP packets travel outside the connection's packet flow, so you have to add a new global entity for it to work.
Truncation also is reactive, you can't proactively discover the MTU during connection establishment.
No standard equipment can do 64K+ frames, so you are not going to be connecting to global internet soon.
Plus, why are you doing this at all?
If you are super-concerned with the overhead, you don't want IP stack anyway, with all its layers and tunables - you want something like RDMA which can work very close to metal.
And if you are OK with overhead, then why go with huge frames? Go with small ones and reassemble, your life would be much easier. (Normally reassembling is a pain because of possibility of lost or reordered packets, but if you are willing to go with such huge packet size, it must not be a concern with you)
(this reminds of the opposite direction: people stuffing IPv6 into sensor networks.. your frames are 32/64 _bytes_ and you want IPv6 headers in there???)
AKA: https://en.wikipedia.org/wiki/Hourglass_model
> (this reminds of the opposite direction: people stuffing IPv6 into sensor networks.. your frames are 32/64 _bytes_ and you want IPv6 headers in there???)
You mean like in 6LoWPAN, which uses header compression to get them down to 2 bytes? While still working with regular TCP- or UDP-using software?