webrtc - Difference between DTLS-SRTP and SRTP packets send over DTLS connections -


i have 2 sip endpoint , wanted send media on dtls-srtp. little bit confuse in below points

  1. is dtls-srtp , srtp packets send on dtls connections same or different ?

  2. if different, please explain me how different ?

dtls utilized establish keys used securing rtp stream. once keys established, used encrypt rtp stream make srtp(nothing special encryption, standard srtp rfc3711) , sent on dtls channel. if read rfc5764, can more specifics dtls channel , demultiplexing packets, etc.

so, dtls key management srtp exchange. see rfc5764 section 4.1 little example.

in summary: if srtp on dtls connection mean once keys have been exchanged , encrypting media keys, there not difference. main difference dtls-srtp, dtls negotiation occurs on same ports media , packet demultiplexing must taken account on ports.


Comments