logoalt Hacker News

A portable SCTP userland stack

38 points • by mococa • yesterday at 3:51 PM • 34 comments • view on HN

Comments

Sean-Der • yesterday at 5:31 PM

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

➕ show 2 replies
valorzard • yesterday at 4:57 PM

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

➕ show 1 reply
joshuanapoli • yesterday at 5:05 PM

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.

➕ show 2 replies
throw0101d • yesterday at 4:55 PM

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

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

➕ show 1 reply
happyPersonR • yesterday at 5:03 PM

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.

boguscoder • yesterday at 8:28 PM

Manual link seems to be dead

heyamitkumar5 • yesterday at 4:40 PM

[dead]