A portable SCTP userland stack. Contribute to sctplab/usrsctp development by creating an account on GitHub.
12 comments
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
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.
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
> 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.
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.
Just deploy and let them whine.
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.
Read the full thread on Hacker News →
Related stories
- The Verge · 0 points · about 5 hours ago
- Hacker News · 1 points · 2 months ago
- Hacker News · 1 points · about 2 months ago
- Portable-VirtualBoxvbox.meLobsters · 3 points · over 12 years ago
- The Full Stack Obliterationreinhash.comHacker News · 1 points · 2 months ago
- Making portable my unportable transputer C compilernanochess.orgHacker News · 58 points · 2 months ago