Changes between Initial Version and Version 1 of Using_Trickle_ICE


Ignore:
Timestamp:
Mar 17, 2021 9:02:37 AM (16 months ago)
Author:
nanang
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Using_Trickle_ICE

    v1 v1  
     1{{{ 
     2#!html 
     3<!-- MAIN TABLE START --> 
     4<table border=0 width="90%" align="center"><tr><td> 
     5}}} 
     6 
     7= Using Trickle ICE = 
     8 
     9'''Table of Contents''' 
     10[[PageOutline(2-3,,inline)]] 
     11 
     12[[BR]] 
     13 
     14== Brief info about Trickle ICE == 
     15 
     16Trickle ICE is a supplementary mode of ICE operation in which candidates can be exchanged incrementally as soon as they become available (and simultaneously with the gathering of other candidates).  Connectivity checks can also start as soon as candidate pairs have been created.  Because Trickle ICE enables candidate gathering and connectivity checks to be done in parallel, the method can considerably accelerate the process of establishing a communication session. 
     17 
     18Two operation modes of trickle ICE: 
     19 
     20 1. Full trickle, the typical mode of operation for Trickle ICE agents, an agent is supposed to enable this mode only when it knows that remote supports trickle ICE. 
     21 2. Half trickle, mode of operation in which the initiator gathers a full generation of candidates strictly before creating and conveying the initial ICE description. Once conveyed, this candidate information can be processed by regular ICE agents, which do not require support for Trickle ICE. It also allows Trickle ICE capable responders to still gather candidates and perform connectivity checks in a non-blocking way, thus providing roughly "half" the advantages of Trickle ICE. The half trickle mechanism is mostly meant for use when the responder's support for Trickle ICE cannot be confirmed prior to conveying the initial ICE description. 
     22 
     23 
     24== How to enable == 
     25=== For app using PJSUA === 
     26 1. Enable and configure ICE as usual. 
     27 1. Configure trickle ICE, it can be configured globally (for all SIP accounts) or per account basis: 
     28    - global setting: set {{{pjsua_media_config.ice_opt.trickle}}} to {{{PJ_ICE_SESS_TRICKLE_HALF}}} or {{{PJ_ICE_SESS_TRICKLE_FULL}}}. 
     29    - account setting: 
     30      - set {{{pjsua_acc_config.ice_cfg_use}}} to {{{PJSUA_ICE_CONFIG_USE_CUSTOM}}} 
     31      - set {{{pjsua_acc_config.ice_cfg.ice_opt.trickle}}} to {{{PJ_ICE_SESS_TRICKLE_HALF}}} or {{{PJ_ICE_SESS_TRICKLE_FULL}}}. 
     32 
     33=== For app using PJSUA2 === 
     34 1. Enable and configure ICE as usual. 
     35 1. Configure trickle ICE, it can only be configured per account basis: 
     36    - set {{{AccountConfig.natConfig.iceTrickle}}} to {{{PJ_ICE_SESS_TRICKLE_HALF}}} or {{{PJ_ICE_SESS_TRICKLE_FULL}}}. 
     37 
     38=== For pjsua app === 
     39 1. Enable and configure ICE as usual, e.g: {{{--use-ice}}}, STUN & TURN settings. 
     40 1. Add pjsua param {{{--ice-trickle=N}}}, note: N=0:disabled, 1:half, 2:full. 
     41 
     42== References == 
     43 - Trickle ICE: https://tools.ietf.org/html/rfc8838 
     44 - SIP usage for Trickle ICE: https://tools.ietf.org/html/rfc8840