PROTOCOL EXPLORERHOW THE INTERNET TALKS

OSI 

Protocols

Protocol overview

PACKET FLOW

NO.TIMESOURCEDESTINATIONPROTOCOLINFOSIZE
Try it hands-on: build a network and watch real ARP, DNS, DHCP and ICMP packets in the Network Lab.

How WebRTC works

WebRTC connects two browsers directly. They exchange offers through a signalling server, use STUN to discover their public addresses, punch through their NATs and then send encrypted audio and video straight to each other.

Layer: Application (OSI layer 7) · Port: dynamic · Transport: UDP (SRTP) · Format: SDP offer/answer + RTP media · Standard: RFC 8825

WebRTC packet flow

  1. STUN Client → STUN Server: Binding request - what's my public IP?
  2. STUN STUN Server → Client: Your address 203.0.113.7:61234
  3. SDP Client → Their Laptop: Offer (via signalling server) + ICE candidates
  4. SDP Their Laptop → Client: Answer + candidates
  5. SRTP Client → Their Laptop: Direct encrypted video (peer to peer)

Other protocols: HTTP · WebSocket · QUIC · SMTP · IMAP · POP3 · FTP · SMB · SIP · RTSP · RTMP · MQTT · Modbus · PPPoE