Search:  

 
 
   All ForumsHot TopicsGallery






how-to block ads


 
Forums » VOIP etc » Voice Over IP - VOIP » VOIP Tech Chat » How multiple ATAs can be behind same NAT router?
Search Topic:
Share Topic:
RSS topic:
toggle:
flat / full
normal / watch
Posting:
Post a:
Post a:
port from AT&T to Vitelity after dryline switch? »
« PAP2  
AuthorAll Replies

priller

join:2000-10-20
Gainesville, VA
·voip.ms
·Callcentric
·Vonage
·callwithus

reply to priller
Re: How multiple ATAs can be behind same NAT router?

Click for full size
Packet on the inside
Click for full size
Packet after PAT
So, to demonstrate this in action. Here is a capture of the same session captured on both the inside interface and the outside interface. Note that port 5060 has been changed to 1061.


priller

join:2000-10-20
Gainesville, VA
·voip.ms
·Callcentric
·Vonage
·callwithus

reply to artisticcheese
said by artisticcheese See Profile :

I thought UDP are packets are sent and received on the same port number so on router side it shall be receiving also on 5060?
That's what you see on the "inside" of your network. But, the port is being changed before it leaves the WAN interface.

The combination of the IP address being translated, as well as the port, is what allows you to have multiple ATA's register to the same VoIP provider and not get confused.

artisticcheese

join:2004-11-09
Carrollton, TX
reply to priller
I thought UDP are packets are sent and received on the same port number so on router side it shall be receiving also on 5060?

priller

join:2000-10-20
Gainesville, VA
·voip.ms
·Callcentric
·Vonage
·callwithus


1 edit
reply to DracoFelis
A piece you're missing is that it's really PAT. When the translation is done, your return port number is also changed.

For example, leaving the ATA the UDP SIP packet connects to the host on 5060 and says talk back to me on 5060. Now when the xlate is done, the return port is changed. Here's the connection table for one of my ATA's ....

"UDP PAT from inside:zoom5801/5060 to outside:69.255.118.xxx/1061"

... so the VoIP provider is actually talking back to me on 1061. When the packet passes back through the PAT process, that gets changed back to 5060.

The combination of the IP address and the port number being changed is why you can have multiple ATA's registered to the same provider ... all on what you "think" is 5060. But the router is smarter than we are.

The translation table should never get confused. If it does, get a new router.

FWIW, I've got 5 VoIP lines living well together.


DracoFelis
Premium
join:2003-06-15

reply to artisticcheese
said by artisticcheese See Profile :

How on IP level it'll work if you have several ATA on internal network with different VOIP providers using the same SIP port number.
If you make sure both the SIP (call setup) and RTP (voice) ports are different, than it works quite well. Because in that case, you use the ports to uniquely identify the adapter.

OTOH you asked about the same ports being used. In that case, it's much more of a YMMV thing. Because when you are using the same ports, the ONLY THING that is keeping the mapping (of port to adapter) correct is the NAT tables in your router (in much the same way that the NAT tables in your router allow multiple PCs on your LAN to web browse on port 80 at the same time). This will sometimes work, but there is many things that could go wrong (which is why I have my multiple adapters on different ports).

For example, if you have each adapter (that is using the same ports) registered with a different provider, the NAT tables (in your router) may know (if it's a smart enough router) that inbound calls from the IP address of provider x go to the adapter that is "registered" with provider x. But how is the router supposed to know which adapter to send a call to, when that "provider" is registered on multiple adapters behind your LAN? And, even worse, how is your router supposed to know which adapter to send an anonymous (call from a non-registered party) call supposed to (in the case of different ports, the port numbers keep this straight, but the NAT tables in the router don't have such queues when different port numbers are used).

Bottom line:
I personally prefer to keep my VoIP adapters (behind my home NAT router, and a single public IP) all on different ports, to avoid problems. Yes, I realize that things might work OK with just my router's NAT, but that would still be "asking for trouble". But by keeping the ports (I use for VoIP) unique, I keep things unambiguous (and therefore avoid possible headaches as to which adapter which signal is for).
Forums » VOIP etc » Voice Over IP - VOIP » VOIP Tech Chatport from AT&T to Vitelity after dryline switch? »
« PAP2  


Friday, 27-Nov 18:10:34 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 10 years online! © 1999-2009 dslreports.com.republican-creole
page compression OFF
Most commented news this week
· [119] Time Warner Cable Fires Broadside At Broadcasters
· [111] New AT&T Ad Campaign Hits Back At Verizon
· [95] Apple Joins AT&T Verizon Snark Fest
· [87] New Bill Takes Aim At Higher Verizon ETFs
· [70] TiVo Sees Record Customer Losses
· [68] In-Flight Internet Headed For Bumpy Landing?
· [60] Thanksgiving Open Thread
· [57] Verizon CEO: Hulu Will Be Dead Soon
· [38] EFF Wages War On Fine Print
· [38] ICANN Slams DNS Redirection
Most people now reading
· Windows 7 boot manager editing questions [Microsoft Help]
· Bell Response to PIPEDA Request [TekSavvy]
· 3.x Feral Druid - Bear Tanking Guide [World of Warcraft]
· Leveling to 85 [World of Warcraft]
· Whats the big deal about being "Old School"....? [World of Warcraft]
· HOW-TO: QoS and Tomato (fixes "choppy voice") [MagicJack]
· IPComms Free DIDs now with sip registration maybe?? [VOIP Tech Chat]
· [Newsgroups] Newzleech down? [Filesharing Software]
· Nvidia Forceware for Windows XP\2000\03 195.62 [Software]
· persistent connection to qw-in-f113.1e100.net on boot [Security]