Remix.run Logo
▲ cryptonector 21 hours ago

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.