29 points mococa 5 hours ago 17 comments

throw0101d 4 hours ago | parent

Sadly middlebox ossification (FW, NAT, LB, DPI) has generally set it with the Internet.

* https://en.wikipedia.org/wiki/Protocol_ossification

Sean-Der 3 hours ago | parent

You can run it over UDP still!

I am curious if QUIC will hit a wall with requiring UDP. You have some network operators that refuse to support anything but TCP on set ports.

ronsor 2 hours ago | parent

And soon they will refuse to provide Internet service at all.

Just deploy and let them whine.

valorzard 4 hours ago | parent

This library is a bit outdated when it comes to keeping up with the newer specs.

I’d recommend Pion’s SCTP library instead if you okay with Go, since they try to incorporate the latest research as best they can: https://github.com/pion/sctp

If rust is more your speed, there is also SCTP-proto that’s used by a couple of other WebRTC implementations , but that lacks some of more recent RFCs for SCTP: https://github.com/webrtc/dcsctp

There is also an official Google rewrite in rust for their SCTP library that will eventually be included in libwebrtc (though I don’t think anyone actually uses it yet): https://github.com/webrtc/dcsctp

happyPersonR 3 hours ago | parent

Over ipv6 with some tweaks Sctp has a chance … sadly most of the use cases for SCTP and the people that have them have this bizarre definition of “dual-stack” that I’ve never actually seen work on anything other than a router.

maybe we’ve rolled out enough ipv6 to make this work?

This is particularly a challenge in public cloud hosted Kubernetes environments, CNI's with ipv4 just arent SCTP friendly.

Interestingly though ... there may be some applicability for it as a part of LLM.

joshuanapoli 3 hours ago | parent

I was wondering what SCTP is for:

> SCTP was originally designed to transport Public Switched Telephone Network (PSTN) signaling messages over IP networks. It is also suited to be used for other applications, for example, WebRTC.

https://www.rfc-editor.org/info/rfc9260/

It looks meant for applications that don’t need TCP’s strict in-order delivery and want to avoid its head-of-line blocking.

kevin_nisbet 3 hours ago | parent

There is a bit more to it than that. There are a few properties that had telecoms drive SCTP standards and adoption. The head of line blocking you mentioned iirc is optional. So the application can control in order delivery. Another one is binding to more than one network. Many telecoms for essential equipment have two networks and the hosts can fail on one and retry on another. TCP has mTCP but still with blocking and doesn’t have wide availability to be exposed to applications.

tptacek 2 hours ago | parent

The problem it has now is that QUIC also eliminates head-of-line blocking problems, and has become "normal" and deployable in ways SCTP won't be.

Sean-Der 3 hours ago | parent

I have a huge soft spot for SCTP, I think it's a wonderful protocol.

It's such a fun/clever hack that you can run it over UDP as well. It felt the best case for both worlds.

I wrote a little bit about it here[0] I am still hoping to interview one of the protocol authors. It would be cool to hear the motivations, hopes and compromises it took to make it happen.

[0] https://webrtcforthecurious.com/docs/07-data-communication

tptacek 2 hours ago | parent

Is it a hack, or is it an attempt to correct the fatal mistake of the protocol? Running SCTP directly off the top of IP was such a weird decision. This is literally the reason UDP exists: to make it possible to create arbitrary new IP protocols! And they eschewed it, and it became undeployable.

kevin_thibedeau 2 hours ago | parent

> 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 2 hours ago | parent

What is the virtue of a protocol running directly on top of IP, versus on top of UDP? Avoiding a checksum?

Veserv 1 hour 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 38 minutes 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.

Sean-Der 31 minutes ago | parent

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.

boguscoder 31 minutes ago | parent

Manual link seems to be dead