WebRTC Overhead

I want to know how many WebRTC overheads occur when sending data on datachannels. I know that Websockets have 2-14 bytes of overhead for each frame. Does WebRTC use more overhead? I can not find useful information on the Internet. It’s clear to me that Datachannels cannot be used yet. How much overhead is used with Mediastreams?

thank

+5
source share
3 answers

WebRTC uses RTP to send its media. RTP works through UDP.

In addition to the usual IP and UDP headers, there are two additional headers:

  • The RTP header itself begins with 12 bytes and can grow from there, depending on what is used.
  • - , . .

RTP - , , .

+2

DataChannel SCTP. PPID ( ) SCTP-, Datachannel 0x51 , UTF-8 0x52 .

, . RTCDataChannel SCTP DTLS UDP. DTLS . , SCTP , NAT/Firewall. , , SCTP UDP. , :

SCTP + DTLS + UDP + IP

:

28 bytes + 20-40 bytes + 8 bytes + 20 - 40 bytes

, 120 . SCTP , WebRTC , 1280 . , max, 1160 SCTP.

+3

enter image description here

2 peer.js(babylon.js front end), 3 16 (~ 60 ).

30 000 /:

30 000 /8 /60 = 62,5 , 3 ~ 59,5 .

, - , , 15k /

0

All Articles