WebRTC

Web Real-Time CommunicationApplication layer · OSI 7

Peer-to-peer browser video calls via ICE, DTLS, and SRTP

Step 1 of 6: Join call via signaling server. Both browsers hold TLS WebSockets open to call.example.com and join room 42 . WebRTC leaves signaling design to each application.
0.0 s / 23.3 s
Your laptop192.168.1.10Home router198.51.100.7call.example.com203.0.113.40STUN server198.51.100.34InternetSam's laptop198.51.100.200JOIN ROOM 42
ControlResponseLookupRequestHandshakeEncryptedData

Overview

connects two browsers straight to each other for low-latency audio and video. A signaling server introduces the callers, and punch through home NATs, and sets up encrypted .

Combining W3C APIs with IETF protocols (RFC 8825), WebRTC trades offers over app signaling, probes peer-to-peer UDP paths via ICE/STUN, runs DTLS 1.3 (fallback 1.2) for keys, and streams encrypted SRTP.

Key facts

Layer
Application (media over UDP SRTP)
Traversal
ICE + STUN (TURN fallback)
Key exchange
DTLS 1.3 (1.2 fallback)
Encryption
Mandatory SRTP (always on)
Defined in
W3C; RFC 8825, 8445, 8489, 9147

Peer-to-peer media bypassing the server

The call server passed SDP offers, STUN found public NAT ports, ICE punched a direct UDP link, and DTLS established encrypted SRTP directly between browsers.

WebRTC setup combined WebSocket signaling, STUN/ICE NAT traversal, DTLS 1.3 (fallback 1.2) key agreement, and direct SRTP streaming.

Signaling
Via call.example.com
Media path
Direct peer-to-peer through 2 NATs
Encryption
DTLS 1.3/1.2 -> SRTP
Fallback
TURN relay or group SFU

Try it yourself

Inspect live browser WebRTC statistics

During any WebRTC call in Chrome or Edge, visit the internal diagnostics tab to see live ICE pairs, STUN/TURN candidates, and DTLS state.

start chrome://webrtc-internals