NAT Traversal - Success Probability Using STUN

I am developing a P2P application and I need to use STUN and / or TURN to bypass NAT. I examined the problems that arise when using only STUN (basically it doesn’t always work because it is UDP, and some firewalls will not like it - the reason is not as interesting as in my question), and I continue to see recommendations on using STUN and TURN for backup (ICE scheme).

But everywhere I look, I just see STUN people as "I hardly always work." I am looking for some specific numbers / statistics. I could try to create them myself, but I don't have enough clients for a significant example.

So, I was wondering if anyone could shed light on statistics on the success rate of using STUN to bypass NAT. How many peers will not be able to connect if I cannot use TURN as a backup?

+4
source share
1 answer

Depending on who your customers are, where they are located, and the types of devices they use (PC vs. mobile), the results may vary.

( ) ICE STUN 85% . , ( , ). .

, "" ( UDP TCP) P2P.

  • NAT. " " , STUN . NAT -, , . " NAT" NAT . , - P2P-, ICE, .

  • . UDP- , NAT.

  • . ( ) NAT.

+5

Source: https://habr.com/ru/post/1540523/


All Articles