logoalt Hacker News

Veserv • today at 12:46 AM • 1 reply • view on HN

Only if you think that spending 8 extra bytes to get 1 extra byte of format identifier is making your case for you. Just to make it really, really obvious, doing it directly on top of IP would cost like 1, maybe 2 extra bytes to get 1 extra byte of format identifier. Strictly inferior to the alternative on a technical level. And that is ignoring the extra cost of adding a extra checksum, a cost so not worth it that IPv6 decided to remove it from the header format even though it was present in IPv4.

The only compelling argument is deployability, but, as I clearly pointed out above, that is a invalid argument because it is a consequence of the decision to ban anything other than TCP and UDP. Arguing that using UDP is the best choice because using anything else is banned is circular reasoning at its finest. As I also acknowledged above it is the state of the world right now and it is what you need to do to get deployed, but it is not a technical argument in favor of that technical decision. It is a terrible technical decision being propped up by ossification.


Replies

tptacek • today at 1:10 AM

You're just saying the same things over again. I especially like the accounting you did with the header bytes to avoid acknowledging UDP has 32 bits of multiplexing ID to IP's 8. I don't grant the premise that these are meaningful size differences to begin with, but if we're playing that game, we can golf a bunch of stuff out of the IP header too.

You also skated past half the deployability argument. It's not just that basically every middlebox on the Internet, old and new, will refuse to forward martian IPPROTO datagrams. It's also that every mainstream operating system prevents normal programs from programming IP directly.

All this drama... to save, like, 3-6 bytes? Yeah, seems like a pretty bad trade.