| |
| ▲ | cryptonector 20 hours ago | parent | next [-] | | No, that's not why UDP exists. Transport protocols _in principle_ should be the next layer after IP, but too many middleboxes drop packets for transport protocols they don't support. SCTP over UDP exists because of that. The fact that one can run anything over UDP merely proves that middleboxes really have no business dropping packets for ULPs they don't recognize/support. In fact, middleboxes are expected to pass these things through! | | |
| ▲ | tptacek 20 hours ago | parent [-] | | My source for this is David Reed, which is pretty dispositive. | | |
| ▲ | cryptonector 2 hours ago | parent [-] | | That's not entirely dispositive, and I'd have to see exactly what he had to say because it's likely that there's nuance. I'd be specifically interested in whether he says that at the time he intended UDP to what one builds other ULPs on, or merely application protocols; the latter would make what he says absolutely not dispositive here. IP has an 8-bit next protocol field. UDP has things other potential ULPs may simply not care about (checksum, port numbers). What Reed wanted UDP for and what his contemporaries wanted it for, and why IP has an 8-bit next protocol number, need not all be in agreement. There have been a fair number of ULPs, including ICMP, TCP, UDP, ESP/AH, UDP-Lite, EGP, IGP, EIGRP, OSPF, DCCP, SCTP, RSVP, PIM, VRRP, HIP, IP-in-IP, etc. Middleboxes should really stop filtering unknown ULPs. Such filtering is pointless. That UDP exists is not license to filter other ULPs. |
|
| |
| ▲ | Sean-Der a day ago | parent | prev | next [-] | | Very small overhead putting it inside of UDP, doesn't really matter though. You also have to double checksum, that can be disabled with SCTP selectively now! ---- I am just a hobbyist though. I would be curious to hear the take of a big network operator. | | |
| ▲ | kev009 a day ago | parent [-] | | SCTP is widely used in telecom, i.e. SIGTRAN and the way your cell phone interoperates on the backend. The telecom industry is a parallel universe, they aren't really bothered by complexity sometimes for better sometime for worse. |
| |
| ▲ | kevin_thibedeau a day ago | parent | prev | next [-] | | > such a weird decision IP is designed to handle more than two data transport protocols. It's such a weird decision that the power that be won't let us use the internet as intended. | | |
| ▲ | tptacek a day ago | parent [-] | | What is the virtue of a protocol running directly on top of IP, versus on top of UDP? Avoiding a checksum? | | |
| ▲ | Veserv a day ago | parent [-] | | What is the virtue of wasting throughput? You need to actually characterize why there is a technical benefit to the cost rather than demanding others prove the negative. And just to clarify a potential line of argument, arguing that we have ossification and thus running over UDP is the only practical solution for adoption, while correct, is not a benefit to disallowing other protocols to run directly on top of IP. It is a consequence. | | |
| ▲ | tptacek a day ago | parent [-] | | What wasted throughput? You could say the same thing about any number of fields in the IP header itself. The question is "what does direct IP get you that UDP doesn't get you". This was, as I keep saying, the original design purpose of UDP. Arguably, TCP should have been built atop UDP. The thing to notice is that, apart from the checksum field --- which SCTP has as well, albeit with a different checksum --- UDP doesn't do anything but multiplex. It has no practically no mechanism that IP itself lacks, and vice versa. | | |
| ▲ | Veserv a day ago | parent | next [-] | | Again, the backwards question. The actual question is: “What does UDP get you that IP does not get you?” UDP is just a length, checksum, source, and destination application routing address. IPv4 has a length, checksum, source, and destination machine routing address. IPv6 has a length, source, and destination machine routing address (having determined computing the checksum at this layer is a waste). They hold the same class of information except that layering UDP gives you a additional 16-bits of routing on top of your IP routing which is somewhat relevant for IPv4, but meaningless for IPv6. And the additional routing bits for IPv4 should have always been resolved at the IP routing layer anyways which is exactly what IPv6 did (though done poorly in my opinion, but at least solved the need for more bits). Flexible usage of UDP for higher level protocols effectively uses the destination port as the “Next Header” field present in IP protocols. The only advantage there is it is a 16-bit format identifier instead of 8-bit, but now the field is doing double duty as a application-level routing address and a format identifier. Placing a subsequent format identifier in the UDP payload then extends your format identifier further, but at least mostly preserves the application-level routing model of the destination port. If you actually need the extra formats then IP can easily reserve a few format values to indicate a even wider format identifier immediately afterward. | | |
| ▲ | tptacek 21 hours ago | parent [-] | | I feel like you're making my case for me. You lose nothing by building on top of UDP. You gain (marginally) flexibility, since UDP has a larger multiplexing ID (and since userland on mainstream operating systems can program it directly), and you gain (massively) deployability --- which is why we have mainstream HTTP/3 deployments, and virtually no SCTP at all outside of private telecom use cases. | | |
| ▲ | Veserv 19 hours ago | parent [-] | | 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. | | |
| ▲ | tptacek 19 hours ago | parent [-] | | 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. | | |
| ▲ | garaetjjte 6 hours ago | parent | next [-] | | >It's also that every mainstream operating system prevents normal programs from programming IP directly. Well yes, because transport is typically handled by the kernel. Do you think UDP should be the only protocol handled by kernel and kernel TCP stack shouldn't exist? | |
| ▲ | Veserv 18 hours ago | parent | prev [-] | | It is clear that you have no interest is making a technical argument about protocol design. Have a nice day. | | |
| ▲ | mahemm 3 hours ago | parent | next [-] | | It seems like `tptacek's argument is something along the lines of 'maybe you can save bytes, but the cost of doing so is making your protocol basically impossible to deploy on the open internet', which to me is a perfectly reasonable technical argument. | |
| ▲ | tptacek 17 hours ago | parent | prev [-] | | You get how that's a weird thing to say to someone who is golfing the IP header in the very comment you responded to, right? It's ok to just disagree with people. |
|
|
|
|
| |
| ▲ | pwdisswordfishq a day ago | parent | prev [-] | | Arguably, UDP should have not been invented. | | |
|
|
|
| |
| ▲ | xorcist a day ago | parent | prev [-] | | Is it TCP over IP, or TCP over UDP over IP? There's the answer. | | |
| ▲ | tptacek 20 hours ago | parent [-] | | TCP over UDP over IP would have been a much better design. Unfortunately, TCP preceded UDP, by several years, so we missed that opportunity. |
|
|