|
|
i-p
Super Moderator
   
Registration Date: 14.01.2006
Posts: 4812
 |
|
|
23.03.2006 14:57 |
|
sup
Grünschnabel
Registration Date: 18.02.2006
Posts: 165
 |
|
|
29.03.2006 23:40 |
|
i-p
Super Moderator
   
Registration Date: 14.01.2006
Posts: 4812
 |
|
|
07.04.2006 03:03 |
|
dor
Registration Date: 01.01.1970
Posts:
 |
|
|
25.07.2008 17:50 |
|
Dia
Premium Account
 
Registration Date: 03.03.2006
Posts: 1443
 |
|
|
25.07.2008 23:56 |
|
dor
Registration Date: 01.01.1970
Posts:
 |
|
RE: ATA becomes disconnected |
 |
ATAs sitting behind NAT with dynamic IP connection often experience disconnections from SIP proxy specifically when ISP changes IP address.
Lately it started to bother me for real, so I went with some extensive googling - I found it’s quiet a common problem.
When ISP changes “external” IP, connection interrupts for a minute, and then router restores it under new IP. ATA, however, cannot re-register, getting “Can't connect to login server” (for Linksys devices) message.
Rebooting ATA doesn’t help, but rebooting router fixes the problem. I suspect rebooting router simply flashes NAT tables, and this allows ATA to re-connect. Which leads me further: ATA can contact SIP proxy (pbxes.org), but SIP proxy responds to the old IP, so ATA doesn’t get response and concludes it can’t contact the server. Somehow flashing NAT on router makes ATA to refresh it’s IP:port on either SIP proxy, or STUN, or both, so SIP proxy can pass authentication confirmation back to ATA. Note - I'm talking about authentication stage, far prior to sending SIP INVITE from proxy to ATA.
Does it make sense? Many providers have “Behind NAT?” checkbox, which I suspect supposed to take care of this.
Any ideas how can this be handled without rebooting router?
|
|
18.08.2008 21:03 |
|
Dia
Premium Account
 
Registration Date: 03.03.2006
Posts: 1443
 |
|
RE: ATA becomes disconnected |
 |
Your post in this thread brings up a few sticking points, for which there are no exact answers, only guidelines.
The SIP as well as the H.323 protocols were designed with public IP addressing in mind. NAT and PAT were invented later to deal with the IPv4 addressing space depletion, since no entity wished to move on to IPv6.
As a result SIP User Agents, which are not located on the same subnet with their associated SIP Proxy, will not work flawlessly all the time. NAT & PAT traversal methods were invented to mitigate the issue, but do not work in all cases (i.e. Symmetric NAT).
So the question in everyone's mind is, what can we do for VoIP in this state of affairs. The answer depends heavily on the answer to this question: How important is your VoIP implementation for you?
If the answer to the above question is "Very Important", then you need to get as many SIP UAs as you can away from NAT and PAT routers, and assign to them Public IPs. Quality hosted VoIP implementations depend on the absence of NAT and PAT between the SIP UAs and their SIP Proxy.
Depending on your setup you should inquire with your provider to supply you with a range of Public IPs. Please note that we are talking about Public IPs, not necessarily Static Public IPs. Dynamic Public IPs will do fine too, since the SIP User Agents will know immediately about the IP change and attempt to re-register as soon as possible.
But you might think: "my provider will want to charge me a lot for Public IPs, or they don't know the difference between a Static Public IP and a Dynamic Public IP, etc". In that case you have a single Dynamic Public IP and you should make the most of it. Buy a router with built-in FXS ports (Draytek 2700VG), or an ATA with a built-in router (Linksys SPA-2102), or a DECT phone with a built-in router (Siemens xxx IP).
The public interface of these routers communicates very well with the ATA part, and will let it know immediately about an IP change (so it can re-register immediately), allow it to properly work with SIP Re-Invites (so the RTP packets will travel directly between the the ATA and the SIP Proxy of the trunk provider or the other ATA on extension to extension calls), prioritize the RTP packets so they can be handed off to the broadband connection faster than the rest of the packets (browser requests, P2P downloads, etc) as well as other more subtle functions.
But what about the rest of my ATAs. IP-phones, soft-phones, which will remain behind the NAT and PAT routers? Well they will have to suffer from the intricacies of NAT Traversal, without Public IPs. But, if you set your DIDs with Inbound Routes on Ring Groups, then every phone call will ring on the phones attached to the router, even if all other ATAs and IP-phones have not had a chance to re-register yet.
In closing, the advent of VoIP saves us a substantial amount of money. But reliable VoIP implementations require a little bit more investment, if we want to depend on VoIP for PSTN-like availability.
|
|
19.08.2008 00:23 |
|
dor
Registration Date: 01.01.1970
Posts:
 |
|
|
19.08.2008 04:07 |
|
Dia
Premium Account
 
Registration Date: 03.03.2006
Posts: 1443
 |
|
RE: ATA becomes disconnected |
 |
The reason you have never seen office phones with Public IPs, is precisely the location of their PBX in the office LAN which most of the time has two ethernet interfaces (Public & Private). But what we have here, is a hosted PBX (on a Public IP) with SIP User Agents behind NAT routers (on Private IPs), thus with all the issues associated with NAT Traversal.
As I mentioned in the beginning of my post, there are no exact answers, only guidelines. As you have discovered, VoIP behind NAT is somewhat problematic, but since most of the VoIP providers require the use of their own routers/ATAs from their end users, custom implementations such as in our case, are facing issues due to NAT.
The current state of NAT Traversal has reached its' limits, and the introduction of IPv6 will render it obsolete, but until then its' limitations will be with us. Regarding these, I have provided at least two alternatives, to make our VoIP life a bit easier in the meantime.
If you wish to run a call center behind a single Public IP, you can, but with the limitations I have mentioned. Unfortunately there is no magic bullet!
|
|
19.08.2008 11:57 |
|
|
|
|
|
|
|