-
Notifications
You must be signed in to change notification settings - Fork 9
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
SCTP over DTLS over UDP for client-server communication #6
Comments
Ok, for the full webRTC datachannel you'll need 4 things:
I haven't looked at netty for a while, but this SCTP library needs to be able to create threads - so you may have to do some work to fit that into netty's view of the world. If you are rolling your own SCTP over DTLS protocol then you may not need 1 and 4 which would make things a lot simpler. |
Thanks for your inputs @steely-glint. |
No, you only need SDP if you want to interop with webRTC. You only need ICE if you have NAT or other problems with network topology. This stack calls it self a SCTP stack, but the API does assume webRTC datachannel - |
Here is an update:
As far so good till I tried to send data of larger lengths. With large data, I am getting the following error DTLS server raised alert: fatal(2), internal_error(80) @steely-glint my understanding is that when we send data which is larger than MTU, the sctp protocol will break them into multiple data chunks and transfer. Please correct me if I got this wrong. |
If you look at ThreadAssocationTest you can see that it tests sending and receiving large messages, which the stack breaks up into datachunks that are smaller than the DTLS MTU. If you add |
Thanks @steely-glint The system mtu shows 1500. Not sure why the Dtlstransport is returning it as 383. Currently checking it. Will keep you posted. |
I have a use case where I want to establish a java client-server communication via SCTP over DTLS over UDP similar to webrtc data channel.
This library looks promising.
I want to use it with java 11 and netty eventually.
Can you please provide some pointers?
The text was updated successfully, but these errors were encountered: