{"id":1492,"date":"2008-07-01T09:56:15","date_gmt":"2008-07-01T13:56:15","guid":{"rendered":"http:\/\/blog.voipsupply.com\/?p=1492"},"modified":"2016-04-05T14:26:39","modified_gmt":"2016-04-05T14:26:39","slug":"ask-mr-andrews-what-is-nat-traversal","status":"publish","type":"post","link":"https:\/\/www.voipsupply.com\/blog\/voip-insider\/ask-mr-andrews-what-is-nat-traversal\/","title":{"rendered":"Ask Mr. Andrews: What is NAT Traversal?"},"content":{"rendered":"<p style=\"margin: 0in 0in 0pt;\">&#8220;Dear Mr. Andrews&#8221; is a new addition to our VoIP Supply Knowledge Base.<\/p>\n<p class=\"MsoNormal\" style=\"margin: 0in 0in 0pt;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright alignnone size-full wp-image-1502\" style=\"float: right;\" title=\"askandrews-logo\" src=\"\/blog\/voip-insider\/files\/2008\/07\/askandrews-logo.gif\" alt=\"Ask Mr. Andrews\" width=\"160\" height=\"109\" \/><\/p>\n<p style=\"margin: 0in 0in 0pt;\">Cory Andrews, our Director of New Business Initiatives, will be taking questions on everything you would like to know about VoIP. Here is the first of our series.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"margin: 0in 0in 0pt;\">Dear Mr. Andrews:<\/p>\n<p>&nbsp;<\/p>\n<p style=\"margin: 0in 0in 0pt;\">\u201cWhat is NAT Traversal?<\/p>\n<p>&nbsp;<\/p>\n<p style=\"margin: 0in 0in 0pt;\">NAT is short for Network Address Translation. You may also hear NAT referred to as \u201cIP Masquerading.\u201d NAT is typically used by a router or firewall to allow devices on a LAN (Local Area Network) with private IP addresses to share a single, public IP address. Why would we want to do this? Since a private IP address is only accessible on the LAN and can only communication with other devices on the LAN, NAT provides translation between private and public IP addresses at the point where the LAN is connected to the Internet. \u201cNAT Traversal\u201d is the passing of traffic through NAT. Devices such as IP Phones typically have private IP addresses, and typically cannot communicate with a SIP registrar on the Internet without some form of NAT.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"margin: 0in 0in 0pt;\">You can think of a NAT as a translator or intermediary between private and public devices. A device on the LAN that wants to communicate with a device on the Internet will send its traffic to the NAT router, which replaces the source device\u2019s private IP address with its own public IP address and then forwarding this traffic through to the destination device on the Internet. When the device on the Internet responds back, the NAT router cross references its translation tables and locates the original source IP address of the packet, which is the same IP address as the device on the LAN that initiated the connection, and forwards the response to that device.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"margin: 0in 0in 0pt;\">With VoIP, NAT can be problematic. First off, when connecting to a SIP registrar, devices will try to register with their private IP. The second problem is that firewalls will not pass through inbound messages to a NATed device without an established session or \u201cpinhole.\u201d A session is created when a packet is sent from the NATed device to the Internet. The session pinhole allows the reply from the Internet to traverse the firewall and reach the NATed device. To maintain the session the NATed device behind the firewall must keep sending messages to keep the session\/pinhole open. These are called \u201cNAT Keep Alive\u201d messages.<\/p>\n<p>&nbsp;<\/p>\n<p class=\"MsoNormal\" style=\"margin: 0in 0in 0pt;\">When a connection is originated by a device outside the LAN it is not clear which device on the LAN the connection is meant to be established with. A rule is required to tell the NAT router what to do with the incoming traffic, or it will discard the traffic and no connection will be established. Many NAT routers and firewalls support a DMZ which allows for the setup of simple rules for handling inbound traffic. Another method, called Port Forwarding, allows the NAT router to pass incoming connection requests to different devices on the LAN depending on the type of connection\u2026in this case VoIP traffic.<\/p>\n<p>&nbsp;<\/p>\n<p class=\"MsoNormal\" style=\"margin: 0in 0in 0pt;\">\n<p class=\"MsoNormal\" style=\"margin: 0in 0in 0pt;\"><a title=\"EdgeWater Networks\" href=\"\/manufacturer\/edgewater-networks\" onclick=\"ga('send', 'event', 'voip-insider-blog-post', 'click', 'EdgeWater Networks');\">EdgeWater Networks<\/a> has developed specialized edge devices that provide NAT and firewall capabilities.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>NAT is short for Network Address Translation. <\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1219],"tags":[],"class_list":["post-1492","post","type-post","status-publish","format-standard","hentry","category-voip-education"],"_links":{"self":[{"href":"https:\/\/www.voipsupply.com\/blog\/voip-insider\/wp-json\/wp\/v2\/posts\/1492","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.voipsupply.com\/blog\/voip-insider\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.voipsupply.com\/blog\/voip-insider\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.voipsupply.com\/blog\/voip-insider\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.voipsupply.com\/blog\/voip-insider\/wp-json\/wp\/v2\/comments?post=1492"}],"version-history":[{"count":5,"href":"https:\/\/www.voipsupply.com\/blog\/voip-insider\/wp-json\/wp\/v2\/posts\/1492\/revisions"}],"predecessor-version":[{"id":164273,"href":"https:\/\/www.voipsupply.com\/blog\/voip-insider\/wp-json\/wp\/v2\/posts\/1492\/revisions\/164273"}],"wp:attachment":[{"href":"https:\/\/www.voipsupply.com\/blog\/voip-insider\/wp-json\/wp\/v2\/media?parent=1492"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.voipsupply.com\/blog\/voip-insider\/wp-json\/wp\/v2\/categories?post=1492"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.voipsupply.com\/blog\/voip-insider\/wp-json\/wp\/v2\/tags?post=1492"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}