Galène videoconferencing server discussion list archives
 help / color / mirror / Atom feed
* [Galene] STUN and TURN
@ 2021-01-08 16:08 Michael Ströder
  2021-01-08 16:41 ` [Galene] " Juliusz Chroboczek
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Ströder @ 2021-01-08 16:08 UTC (permalink / raw)
  To: galene

HI!

I've noticed that the README now also contains an STUN config example.

So I wonder whether using stun: and turn: URLs in the ICE config make
sense. Do the browsers prefer STUN-trickled addresses over relaying via
TURN if both are configured.

I'd like to avoid the TURN stream relaying burden for clients using a
"normal" open Internet connection at home.

Ciao, Michael.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [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

end of thread, other threads:[~2021-01-08 16:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-08 16:08 [Galene] STUN and TURN Michael Ströder
2021-01-08 16:41 ` [Galene] " Juliusz Chroboczek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox