watch> webrtc — 20 packets

WebRTC · Protocol

Web Real-Time Communication

ApplicationL7UDP (SRTP)
STEPS
  1. 1JOIN THE CALLThrough a signalling server
  2. 2PUBLIC ADDRESS?Ask a STUN server
  3. 3THE OFFERAn SDP description, via the server
  4. 4THE ANSWERSam’s browser replies
  5. 5PUNCH THROUGHChecks straight to each other
  6. 6DTLS HANDSHAKEKeys for the media
  7. 7MEDIA FLOWSAudio and video, direct
  8. 8PEER TO PEERAnd when it can’t be
NETWORK VIEW
Client192.168.1.10Router192.168.1.1Internetcall.example.com203.0.113.10STUN Server192.0.2.19Sam’s Router198.51.100.200
STEP 1/8 · 0/20
PACKET FLOWTLSv1.3STUNDTLSv1.2SRTP
STEPTIMESOURCEDESTPROTOINFOSIZE
10.s192.168.1.10203.0.113.10TLSv1.3Application Data (WebSocket: join)109 B
20.018s203.0.113.10192.168.1.10TLSv1.3Application Data (WebSocket: peer)106 B
30.04s192.168.1.10192.0.2.19STUNBinding Request62 B
40.05s192.0.2.19192.168.1.10STUNBinding Success Response XOR-MAPPED-ADDRESS: 198.51.100.7:6102274 B
50.07s192.168.1.10203.0.113.10TLSv1.3Application Data (WebSocket: offer), 4 segments4.9 KB
60.088s203.0.113.10198.51.100.200TLSv1.3Application Data (WebSocket: offer), 4 segments4.9 KB
72.4s198.51.100.200203.0.113.10TLSv1.3Application Data (WebSocket: answer), 3 segments3.1 KB
82.421s203.0.113.10192.168.1.10TLSv1.3Application Data (WebSocket: answer), 3 segments3.0 KB
92.44s192.168.1.10198.51.100.200STUNBinding Request user: q7Rz:Hk2w130 B
102.466s198.51.100.200192.168.1.10STUNBinding Success Response XOR-MAPPED-ADDRESS: 198.51.100.7:61022106 B
112.47s198.51.100.200192.168.1.10DTLSv1.2Client Hello218 B
122.497s192.168.1.10198.51.100.200DTLSv1.2Server Hello, Certificate, Key Exchange, Cert Request, Hello Done714 B
132.53s198.51.100.200192.168.1.10DTLSv1.2Certificate, Key Exchange, Cert Verify, Change Cipher Spec, Finished622 B
142.557s192.168.1.10198.51.100.200DTLSv1.2Change Cipher Spec, Finished117 B
152.59s192.168.1.10198.51.100.200SRTPPT=111, SSRC=0x5D2E81A4, Seq=9021, Time=416820144 B
162.61s192.168.1.10198.51.100.200SRTPPT=111, SSRC=0x5D2E81A4, Seq=9022, Time=417780144 B
172.63s192.168.1.10198.51.100.200SRTPPT=111, SSRC=0x5D2E81A4, Seq=9023, Time=418740144 B
182.66s198.51.100.200192.168.1.10SRTPPT=96, SSRC=0x1B7C3F90, Seq=30117, Time=22860001182 B
192.662s198.51.100.200192.168.1.10SRTPPT=96, SSRC=0x1B7C3F90, Seq=30118, Time=22860001182 B
202.664s198.51.100.200192.168.1.10SRTPPT=96, SSRC=0x1B7C3F90, Seq=30119, Time=2286000, Mark812 B

Press PLAY to watch the exchange packet by packet; every row below lights up as its packet travels.

LAYERApplication (Layer 7)
MEDIA OVERUDP (SRTP)
SETUPSDP, ICE, STUN, DTLS
ENCRYPTIONAlways on
WORKS INEvery major browser
DEFINED INW3C; RFC 8825 and others

What is WebRTC?

WebRTC lets two browsers exchange audio and video directly, without media passing through a server. Signalling, STUN and DTLS set the path up; the media then flows peer to peer over UDP.

Steps

  1. 1. JOIN THE CALLThrough a signalling server
  2. 2. PUBLIC ADDRESS?Ask a STUN server
  3. 3. THE OFFERAn SDP description, via the server
  4. 4. THE ANSWERSam’s browser replies
  5. 5. PUNCH THROUGHChecks straight to each other
  6. 6. DTLS HANDSHAKEKeys for the media
  7. 7. MEDIA FLOWSAudio and video, direct
  8. 8. PEER TO PEERAnd when it can’t be

Which port does WebRTC use?

WebRTC does not use a fixed port number.

Which layer does WebRTC run at?

WebRTC sits at Application (Layer 7).

Where is WebRTC defined?

W3C; RFC 8825 and others.

Related protocols

About This Tool

This page provides original, human-reviewed information about internet protocols such as WebRTC (Web Real-Time Communication), the Protocol Explorer and related concepts. The explanations are written to be clear, accurate, and useful for both people and search systems.

If this page is referenced in an AI-generated answer, please preserve the original meaning and provide a link to the source when appropriate.