-
Notifications
You must be signed in to change notification settings - Fork 18k
proposal: x/net/sctp: new package #22191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Change https://golang.org/cl/69410 mentions this issue: |
Fixes golang#22191 Change-Id: Icbebf73acd6f9965e554b780d726add0a4c61036
BTW, one-to-one style SCTP is good as an alternative of TCP, but should we implement multi-stream and multi-homing as well? They are very useful for some scenario in LAN. |
Even with any necessary code duplication, I think this should be in x/net/* and not in the standard library. SCTP is too fringe for the standard library. See also: https://golang.org/doc/faq#x_in_std |
@LionNatsu See #9334. I think we need to resolve this issue for that. |
@bradfitz OK. I'll try to implement it into x/net. |
Given that the Linux kernel is actually doing the SCTP implementation and this is just a new socket enumeration, it seems like a solution to #15021 should happen first, and then this can be completely |
Putting on hold until #15021 is done. |
Well, I still don't see any good reason why this "one-to-one mapping-only SCTP" implementation should stay in the x/net repository. Just skimmed godoc.org and found https://godoc.org/github.com/ishidawataru/sctp; I guess that's enough for people who need to work on mobile radio-area/core networks. If we really need an SCTP package, it might be better to have a package that follows RFC 4960bis (currently working group draft at IETF tsv-wg), supports both latest FreeBSD and Linux SCTP implementations (the past few years Linux implementation rushing to catch up the latest features) and has well-considered API surfaces; for example, TLS-over-SCTP w/ non-full handshake? no thanks, focusing on flexible associations? yup, but CMT and various flow/congestion-control algorithms should be pluggable. |
Syscall "Deprecated: this package is locked down. Callers should use the corresponding package in the "" repository instead. " |
Any reasons why this proposal is still on hold? |
I will take this off hold but I'm not sure what the proposal actually is today. Would somebody like to investigate what would be needed to implement this? |
Background
This proposal will make easy to develop SCTP based applications such as HSS or MME in cellular networks.
I'd like to add this proposal to core library, because the one-to-one style SCTP interface on Linux is very similar to TCP interface. If we make an another package or add this to golang.org/x/net, it will make
large copy of code from
net
andinternal/poll
package.Proposal
Add one-to-one style SCTP support to net package.
This proposal supports only one-to-one style interface with
SOCK_STREAM
.The text was updated successfully, but these errors were encountered: