Glossary

Trickle ICE

Connect while still looking. Trickle ICE lets a call start testing network paths the moment the first candidate address is known, instead of waiting seconds for STUN and TURN to finish, and it is how every WebRTC browser works today.

General definition

Trickle ICE is an optimisation of Interactive Connectivity Establishment (ICE, RFC 8445), the procedure WebRTC and SIP endpoints use for NAT traversal. Classic ICE gathers every candidate address first: local interface addresses, server-reflexive addresses learned from a STUN server and relayed addresses allocated on a TURN server. Only then does it send the whole list in the offer or answer and begin connectivity checks. Gathering can take seconds, especially when a TURN allocation or an unreachable STUN server has to time out, and the user waits through all of it before the call can connect.

RFC 8838 changes the order. An endpoint sends its offer with whatever candidates it already has, often none, and then sends each further candidate as a separate message as soon as it is discovered. The peer adds each arriving candidate to its check list and starts testing immediately. An end-of-candidates indication tells the other side that gathering has finished. Because the fast host candidates arrive first, two devices on the same network can connect almost instantly while the slower reflexive and relayed candidates are still being collected.

  • Needs a signaling channel: candidates travel out of band over WebRTC signaling, typically a WebSocket or an XMPP stream, and the channel must stay open for the duration of gathering
  • Mandatory in browsers: JSEP (RFC 8829) requires WebRTC implementations to support trickling, and candidates surface through the onicecandidate event
  • Protocol mappings: RFC 8840 defines trickle for SIP, and XMPP Jingle carries candidates in transport-info messages
  • Compatible with STUN and TURN: it changes when candidates are sent, not how they are obtained

The trade-off is a chattier signaling channel and some ordering complexity: candidates may arrive before the answer that describes the media session, so implementations queue them. In exchange, call setup drops from several seconds to well under one on typical networks, which is why the term is almost redundant in WebRTC today: every browser trickles by default.

Adding calls to your product? The Ethora voice chat SDK is built on WebRTC, with 1:1 calls, group voice rooms and push-to-talk for web, iOS and Android.

In the Ethora ecosystem

Ethora calls are built on WebRTC with an SFU, so ICE candidates trickle between each participant and the media server in the standard way: the client sends candidates through the signaling path as they are gathered and connectivity checks begin before gathering is complete. The platform’s backend is XMPP on ejabberd, which already keeps a persistent connection open to every client for messages and presence, exactly the kind of always-on channel that trickling relies on. The voice and video call API page describes the calling features that sit on top of this.

In an SFU topology trickle ICE mostly benefits the client side: the server has stable public addresses, so the candidates that matter are the ones a participant discovers behind a home or corporate NAT, and the connection is established as soon as the first working pair is found. With a dedicated or self-hosted deployment the media server runs in your own cloud account, so the addresses being trickled belong to infrastructure you control.

Get started

Add voice chat to your app

1:1 calls, group voice rooms and push-to-talk, built on WebRTC, on our cloud or your own infrastructure.

Free tier available Enterprise SLA No vendor lock-in