| 1 |
<h1 align="center"> |
| 2 |
<br> |
| 3 |
Pion SCTP |
| 4 |
<br> |
| 5 |
</h1> |
| 6 |
<h4 align="center">A Go implementation of SCTP</h4> |
| 7 |
<p align="center"> |
| 8 |
<a href="https://pion.ly"><img src="https://img.shields.io/badge/pion-sctp-gray.svg?longCache=true&colorB=brightgreen" alt="Pion SCTP"></a> |
| 9 |
<a href="https://discord.gg/PngbdqpFbt"><img src="https://img.shields.io/badge/join-us%20on%20discord-gray.svg?longCache=true&logo=discord&colorB=brightblue" alt="join us on Discord"></a> <a href="https://bsky.app/profile/pion.ly"><img src="https://img.shields.io/badge/follow-us%20on%20bluesky-gray.svg?longCache=true&logo=bluesky&colorB=brightblue" alt="Follow us on Bluesky"></a> |
| 10 |
<br> |
| 11 |
<img alt="GitHub Workflow Status" src="https://img.shields.io/github/actions/workflow/status/pion/sctp/test.yaml"> |
| 12 |
<a href="https://pkg.go.dev/github.com/pion/sctp"><img src="https://pkg.go.dev/badge/github.com/pion/sctp.svg" alt="Go Reference"></a> |
| 13 |
<a href="https://codecov.io/gh/pion/sctp"><img src="https://codecov.io/gh/pion/sctp/branch/master/graph/badge.svg" alt="Coverage Status"></a> |
| 14 |
<a href="https://goreportcard.com/report/github.com/pion/sctp"><img src="https://goreportcard.com/badge/github.com/pion/sctp" alt="Go Report Card"></a> |
| 15 |
<a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT"></a> |
| 16 |
</p> |
| 17 |
<br> |
| 18 |
|
| 19 |
### Implemented |
| 20 |
- [RFC 6525](https://www.rfc-editor.org/rfc/rfc6525.html) — Stream Control Transmission Protocol (SCTP) Stream Reconfiguration |
| 21 |
- [RFC 3758](https://www.rfc-editor.org/rfc/rfc3758.html) — Stream Control Transmission Protocol (SCTP) Partial Reliability Extension |
| 22 |
- [RFC 5061](https://www.rfc-editor.org/rfc/rfc5061.html) — Stream Control Transmission Protocol (SCTP) Dynamic Address Reconfiguration |
| 23 |
- [RFC 4895](https://www.rfc-editor.org/rfc/rfc4895.html) — Authenticated Chunks for the Stream Control Transmission Protocol (SCTP) |
| 24 |
- [RFC 8260](https://www.rfc-editor.org/rfc/rfc8260.html) — Stream Schedulers and User Message Interleaving for the Stream Control Transmission Protocol (SCTP) |
| 25 |
- [RFC 1982](https://www.rfc-editor.org/rfc/rfc1982.html) — Serial Number Arithmetic |
| 26 |
|
| 27 |
### Non-RFC / Draft RFC Implemented |
| 28 |
- [RACK (Tail Loss Probing)](https://duepublico2.uni-due.de/servlets/MCRFileNodeServlet/duepublico_derivate_00073893/Diss_Weinrank.pdf#page=97) |
| 29 |
- [Adaptive Burst Mitigation](https://duepublico2.uni-due.de/servlets/MCRFileNodeServlet/duepublico_derivate_00073893/Diss_Weinrank.pdf#page=115) |
| 30 |
- [SNAP](https://www.ietf.org/archive/id/draft-hancke-tsvwg-snap-00.html) |
| 31 |
|
| 32 |
### Partial implementations |
| 33 |
Pion only implements the subset of RFC 4960 that is required for WebRTC. |
| 34 |
|
| 35 |
- [RFC 4960](https://www.rfc-editor.org/rfc/rfc4960.html) — Stream Control Transmission Protocol [Obsoleted by 9260, above] |
| 36 |
- [RFC 2960](https://www.rfc-editor.org/rfc/rfc2960.html) — Stream Control Transmission Protocol [Obsoleted by 4960, above] |
| 37 |
|
| 38 |
The update to [RFC 9260](https://www.rfc-editor.org/rfc/rfc9260) — Stream Control Transmission Protocol is currently a [work in progress](https://github.com/pion/sctp/issues/402). |
| 39 |
|
| 40 |
### Potential future implementations |
| 41 |
Ideally, we would like to add the following features as part of a [v2 refresh](https://github.com/pion/sctp/issues/314): |
| 42 |
|
| 43 |
Feature | Reference | Progress |
| 44 |
--- | --- | --- |
| 45 |
Update to RFC 9260 | [Parent issue](https://github.com/pion/sctp/issues/402) | [In progress](https://github.com/pion/sctp/issues/402) |
| 46 |
Blocking writes | [1](https://github.com/pion/sctp/issues/77), [2](https://github.com/pion/sctp/issues/357) | [Potentially in progress](https://github.com/pion/sctp/issues/357#issuecomment-3382050767) |
| 47 |
association.listener (and better docs) | [1](https://github.com/pion/sctp/issues/74), [2](https://github.com/pion/sctp/issues/173) | Not started, [blocked by above](https://github.com/pion/sctp/issues/74#issuecomment-545550714) |
| 48 |
|
| 49 |
RFCs of interest: |
| 50 |
- [RFC 9438](https://datatracker.ietf.org/doc/rfc9438/) as it addresses the low utilization problem of [RFC 4960](https://www.rfc-editor.org/rfc/rfc4960.html) in fast long-distance networks as mentioned [here](https://github.com/pion/sctp/issues/218#issuecomment-3329690797). |
| 51 |
|
| 52 |
### Roadmap |
| 53 |
The library is used as a part of our WebRTC implementation. Please refer to that [roadmap](https://github.com/pion/webrtc/issues/9) to track our major milestones. |
| 54 |
|
| 55 |
### Community |
| 56 |
Pion has an active community on the [Discord](https://discord.gg/PngbdqpFbt). |
| 57 |
|
| 58 |
Follow the [Pion Bluesky](https://bsky.app/profile/pion.ly) or [Pion Twitter](https://twitter.com/_pion) for project updates and important WebRTC news. |
| 59 |
|
| 60 |
We are always looking to support **your projects**. Please reach out if you have something to build! |
| 61 |
If you need commercial support or don't want to use public methods you can contact us at [[email protected]](mailto:[email protected]) |
| 62 |
|
| 63 |
### Contributing |
| 64 |
Check out the [contributing wiki](https://github.com/pion/webrtc/wiki/Contributing) to join the group of amazing people making this project possible |
| 65 |
|
| 66 |
### License |
| 67 |
MIT License - see [LICENSE](LICENSE) for full text |