コンテンツへスキップ
uencoder

ICE Protocol リファレンス

リファレンス 用 ICE (Interactive Connectivity Establishment): candidate gathering, checking, および nomination.

Candidate Types

ICE gathers candidates from multiple sources: host (local interface), server-reflexive (STUN-discovered), peer-reflexive (discovered during checks), and relayed (TURN). Candidates are paired and checked in priority order. Host candidates work when peers are on the same network. Server-reflexive candidates work through most NATs. Relayed candidates work through any NAT but with relay overhead. The candidate gathering phase collects all possible paths.

host
Local interface
direct connection
srflx
STUN-discovered
public mapping
relay
TURN relay
works always

Check and Nomination

ICE performs connectivity checks on candidate pairs in priority order, using STUN binding requests. Successful checks create valid pairs. The controlling agent nominates a pair (regular or aggressive nomination). The selected pair is the highest-priority valid pair. Trickled ICE allows adding candidates asynchronously after initial gathering. ICE restarts when network changes occur. The protocol converges to the best available path within the timeout.

checks
STUN binding requests
pair by pair
nomination
Controlling agent
selects pair
trickle
Async candidate addition
faster startup

関連ツール

参考链接