* [Galene] Re: STUN and TURN
2021-01-08 16:08 [Galene] STUN and TURN Michael Ströder
@ 2021-01-08 16:41 ` Juliusz Chroboczek
0 siblings, 0 replies; 2+ messages in thread
From: Juliusz Chroboczek @ 2021-01-08 16:41 UTC (permalink / raw)
To: Michael Ströder; +Cc: galene
> So I wonder whether using stun: and turn: URLs in the ICE config make sense.
It's not useful, it will only slow down connection establishment. Every
TURN server acts as a STUN server, if you have a TURN server it will be
used for STUN candidates.
> Do the browsers prefer STUN-trickled addresses over relaying via TURN if
> both are configured.
Yes, Rosenberg is competent ;-) RFC 8445 Section 5.1.2.2:
The RECOMMENDED values for type preferences are 126 for host
candidates, 110 for peer-reflexive candidates, 100 for server-
reflexive candidates, and 0 for relayed candidates.
("Server-reflexive" means STUN, "relayed" means TURN.)
Browsers are free to tweak the priorities, and chrome correctly sets
a slightly higher priority for Ethernet than for WiFi:
When choosing type preferences, agents may take into account factors
such as latency, packet loss, cost, network topology, security,
privacy, and others.
-- Juliusz
^ permalink raw reply [flat|nested] 2+ messages in thread