WebRTC's transport layer, UDP or TCP? #3652
Replies: 2 comments 1 reply
-
Is it supposed to buffer or just omit dropped packets and reduce quality? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Hello, when using WebRTC and the UDP transport protocol is in use, the server provides the NACK mechanism, that allows to retransmit lost packets. No delay is introduced at server side at all, with or without data losses, with or without the NACK mechanism. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
I tried to test WebRTC's transport layer for both UDP and TCP by choosing between webrtcLocalTCPAddress and ebrtcLocalUDPAddress.
UDP is often known to be faster than TCP. But when I tested both cases, it seems that UDP is much slower than TCP if time goes on and on.
When I searched for some reasons, UDP can be slower than TCP if network buffer cannot handle the incoming packets' speed. Does WebRTC try to handle these loss or delayd UDP packets? And that makes more delay than TCP?
Beta Was this translation helpful? Give feedback.
All reactions