Real-time debugging is often a naming problem first. Use the same word for the same layer, separate the signal path from the media path, and the failure starts to look structural instead of mysterious.
WebSocket is a signaling path. WebRTC is a media and data transport. SFU is a topology that uses it.
02
Signal is not media
Closing the signaling socket does not itself tear down an established peer connection. The media path has its own state.
03
Encryption is a hop
DTLS-SRTP protects each transport hop. A standard SFU terminates it, so end-to-end confidentiality is a separate design.
TERMS ARE LINKED FROM LESSONS. SEARCH SUPPORTS ALIASES.
53 / 53 TERMS
WebSocket
Signaling
A persistent, full-duplex TCP connection opened by an HTTP Upgrade handshake. Both sides can send messages at any time without a new request.
WebSocket carries signaling messages and application data, but it does not define media transport. WebRTC uses it only for signaling.
RELATED
HTTP polling
Signaling
The client repeatedly asks the server for new data on a fixed interval. Simple, but wastes requests and adds latency.
Long polling
Signaling
The server holds an HTTP request open until data exists or a timeout fires. It emulates push, but each message still needs a new request.
SSE
Server-Sent Events · EventSource
Signaling
A one-way stream from server to browser over plain HTTP. Ideal for live feeds, notifications, and dashboards where the client rarely sends.
WebRTC
Media
A browser API and set of protocols for encrypted, low-latency audio, video, and data directly between peers or through media servers.
RELATED
P2P
peer-to-peer
Topology
A direct connection between two endpoints. Media may still relay through TURN, but no application media server processes it.
Signaling
Signaling
The out-of-band exchange of session descriptions and network candidates needed before and during a WebRTC connection. WebRTC does not prescribe a signaling protocol.
RELATED
SDP
Session Description Protocol
Signaling
A text format describing media capabilities: codecs, directions, encryption fingerprints, and ICE credentials. It is negotiated through offer and answer.
RELATED
Offer
Signaling
An SDP description created by the initiating peer that proposes media sections, codecs, and transport parameters.
Answer
Signaling
The responding peer's SDP that accepts, rejects, or narrows the offer. Both descriptions must be set before ICE can complete.
ICE
Interactive Connectivity Establishment
Network
The framework that gathers candidate addresses and tests pairs until it finds a working path between peers.
RELATED
ICE candidate
Network
One possible transport address and protocol a peer can use. Types include host, server-reflexive (srflx), and relay.
STUN
Session Traversal Utilities for NAT
Network
A lightweight server that tells a peer its public IP and port as seen from the internet. STUN discovers addresses; it does not relay media.
TURN
Traversal Using Relays around NAT
Network
A relay server that forwards encrypted media when direct paths fail. Reliable but bandwidth-intensive and expensive at scale.
NAT
Network Address Translation
Network
A router feature that rewrites private addresses to a public address. Different NAT mapping and filtering behaviors break naive direct connections.
Trickle ICE
Network
Sending ICE candidates as they are discovered instead of waiting for gathering to finish. It speeds up connection setup considerably.
ICE restart
Network
A renegotiation that gathers a fresh set of candidates without tearing down the whole peer connection. Useful after network changes.
RTCPeerConnection
Media
The browser API that manages ICE, DTLS, SRTP, media tracks, data channels, and the lifecycle of a WebRTC connection.
getUserMedia
Media
The browser API that requests camera and microphone access and returns a MediaStream of live tracks. Requires a secure context and user permission.
getDisplayMedia
Media
The browser API for screen, window, or tab capture. Tracks are usually short-lived and must be stopped manually when sharing ends.
Track
MediaStreamTrack
Media
A single audio or video source, such as one microphone or one camera. Tracks can be added to peer connections and stopped independently.
Transceiver
Media
A sender/receiver pair attached to a peer connection. Transceivers make media direction and m-line reuse explicit.
m-line
Signaling
A media section in SDP, such as audio, video, or application data. The order of m-lines must stay consistent across renegotiation.
Codec
Media
The algorithm that compresses and decompresses audio or video, for example Opus, VP8, VP9, H.264, or AV1. Both peers must agree on one.
Simulcast
Topology
Sending multiple resolutions of the same video as separate encodings so a server can forward the appropriate quality to each viewer.
SVC
Scalable Video Coding
Topology
Encoding a video into spatial and temporal layers so receivers or servers can select layers without re-encoding.
SFU
Selective Forwarding Unit
Topology
A media server that receives each participant's upload once and selectively forwards streams to other participants without decoding or re-encoding.
RELATED
MCU
Multipoint Control Unit
Topology
A server that decodes every participant's media, mixes it into one stream, and re-encodes it. Low client bandwidth, high server CPU.
Mesh
Topology
A peer-to-peer topology where every participant connects directly to every other participant. Connection count grows as n(n−1)/2.
Cascaded SFU
Topology
Multiple SFUs connected across regions. Each participant uploads to a nearby SFU, and SFUs forward streams between regions.
WHIP
WebRTC-HTTP Ingestion Protocol
Topology
A simple HTTP-based standard for sending a WebRTC stream into a media server or broadcast pipeline.
WHEP
WebRTC-HTTP Egress Protocol
Topology
A simple HTTP-based standard for pulling a WebRTC stream for playback from a media server.
HLS
HTTP Live Streaming
Topology
Segment-based streaming over HTTP with high CDN scalability but typically several seconds of latency. Good for large audiences that tolerate delay.
Data channel
RTCDataChannel
Transport
A bidirectional channel for arbitrary application data over SCTP, with configurable ordering and reliability. It shares the encrypted peer connection.
SCTP
Stream Control Transmission Protocol
Transport
The transport underneath WebRTC data channels. It provides multiple streams and configurable reliability over DTLS.
SRTP
Secure Real-time Transport Protocol
Security
The encrypted transport for WebRTC audio and video. Encryption keys are derived during the DTLS handshake.
DTLS
Datagram Transport Layer Security
Security
A TLS variant for datagrams. It authenticates peers and derives the keys used by SRTP and data channels.
Jitter
Network
Variation in packet arrival timing. A jitter buffer smooths playout, at the cost of added latency.
RTT
Round-trip time
Network
The time for a packet to travel to a destination and back. High RTT makes interactive conversation feel laggy.
Packet loss
Network
Packets that never arrive. Small loss can be hidden by FEC and retransmission; sustained loss causes freezing and robotic audio.
Bitrate
Network
The amount of data used per second by a media stream, usually measured in kbps or Mbps.
Bandwidth estimation
BWE
Network
The sender's estimate of available network capacity, used to adapt video quality, resolution, and frame rate in real time.
getStats
RTCPeerConnection.getStats
Operations
A browser API returning detailed counters and metrics for senders, receivers, candidate pairs, transports, and data channels.
Perfect negotiation
Signaling
A pattern for handling simultaneous offers with polite and impolite peers, avoiding glare during renegotiation.
TURN-only
Network
A testing and policy mode that uses only relay candidates. It trades direct-path efficiency for predictable connectivity.
ICE server credential
Security
Short-lived username and password used to authenticate against a TURN server. Never ship permanent TURN secrets in a browser bundle.
WHIP/WHEP
Topology
Paired HTTP-based WebRTC standards: WHIP ingests a stream, WHEP plays it back. Both keep WebRTC latency while using ordinary HTTP signalling.
Media server
Topology
A server that forwards, mixes, records, or processes WebRTC media. SFUs, MCUs, recording services, and gateways are all media servers.
Active speaker
Active speaker detection
Operations
Detecting which participant is speaking, using audio levels or server-side analysis, so the UI or SFU can promote that participant.
SIP/PSTN bridge
Topology
A gateway that connects WebRTC rooms to traditional phone networks, making a media server a participant in the call.
Secure context
Security
An HTTPS or localhost origin. Camera, microphone, and many modern browser APIs require it.
IP leak
Security
Exposure of a participant's network address through ICE candidates or WebRTC metadata. Relay-only policy and TURN can reduce exposure.
MTU
Maximum Transmission Unit
Network
The largest packet size a network path can carry without fragmentation. WebRTC data channels must account for DTLS/SCTP overhead.
Looking for the compact version? The cheat sheet pairs each term with the decision it changes.