A portable SCTP userland stack github.com · 13 points · 7 comments · HN thread T...
HN Best 200 @best
A portable SCTP userland stack github.com · 13 points · 7 comments · HN thread
TL;DR usrsctp is a portable C library implementing the SCTP transport protocol in userspace, so applications can use SCTP without kernel support. The repository page itself carried no readable article text, so the description rests on the URL, title and comments.
- Library provides a userland implementation of SCTP, usable where the operating system lacks native SCTP.
- SCTP was originally designed to carry PSTN signaling over IP and is also used for WebRTC data channels.
- Telecom-driven features include optional message-level (unordered) delivery and multihoming across multiple networks.
- SCTP can be encapsulated over UDP, which helps it traverse NAT and firewalls.
- Middlebox ossification in firewalls, NATs and load balancers has limited SCTP's deployment on the Internet.
- Commenters note that usrsctp lags behind newer SCTP RFCs and point to alternative implementations.
Discussion The thread is short and mostly friendly toward SCTP as a protocol. Commenters explain what it was designed for, why telecoms valued features like multihoming and optional ordering, and why it struggled on the Internet because of middleboxes. There is also practical advice about implementations: one commenter says usrsctp is outdated and suggests Pion's Go library or Rust alternatives instead.
- SCTP is a clever, underappreciated protocol (some): One commenter has a soft spot for it, noting that it can run over UDP, which gives it a practical path past restrictive networks.
- usrsctp is outdated; use other implementations (some): A commenter says usrsctp lags behind newer specs and recommends Pion's Go SCTP library, SCTP-proto, or Google's dcsctp rewrite.
- Middleboxes prevent SCTP from succeeding on the Internet (some): Commenters point to firewalls, NATs and load balancers that only pass TCP or UDP, and ask whether QUIC will face the same wall.
- Telecom design features explain SCTP's purpose (a few): Commenters clarify that SCTP was built for telephony signaling, with optional ordering and dual-network failover that TCP lacks.
- IPv6 may finally make SCTP viable (a few): One commenter thinks SCTP could work over IPv6 with some tweaks, though dual-stack setups have been hard to get right outside routers.
Links from the comments
- Explainer on SCTP as used for data communication in WebRTC.
- Pion's Go SCTP library, recommended as more up to date with newer research.
- RFC 9260, the current SCTP specification, quoted for its description of the protocol's purpose.
- Overview of protocol ossification, cited for why SCTP struggles on the Internet.