Ticket #643: NAT switch.txt

File NAT switch.txt, 1.3 KB (added by bennylp, 13 years ago)
Line 
1
2
3                   \  priv. res  | pub. res    |
4 --------+----------+------------+-------------+
5 private | priv srv | switch [1] | switch? [2] |
6 contact +----------+------------+-------------+
7         | pub srv  | switch [3] | switch [4]  |
8 --------+----------+------------+-------------+
9  public | priv srv | switch [5] | switch? [2] |
10 contact +----------+------------+-------------+
11         | pub srv  | don't [6]  | switch [7]  |
12 --------+----------+------------+-------------+
13
14[1] - maybe in testing environment where server
15      are in private LANs and client is behind
16      a symmetric NAT
17    - it could also be there is a NAT in the
18      middle that messes up the SIP/SDP fields [i]
19
20[2] Probably the server wouldn't be able to send
21    inbound request to us, so better register with
22    the public IP (?)
23
24[3] STUN is not used (hence private Contact), and
25    there is probably a NAT in the middle that
26    messes up with the SIP/SDP fields [i]
27
28[4] We should have used STUN.
29
30[5] Although we initially use STUN, turns out that
31    the server is in local LAN, so re-register with
32    the private IP.
33
34[6] there is a NAT that messes up with SIP/SDP [i]
35
36[7] Symmetric NAT
37
38[i] Some NAT routers convert the public IP address
39    in the response back to private IP address.
40