0% found this document useful (0 votes)
7 views

Tutorial - Network Address Translation (NAT)

The document provides an overview of Network Address Translation (NAT), explaining its role in enabling multiple users on a private network to communicate with the Internet using a single public IP address. It details how NAT modifies packet headers to facilitate communication and maintains a mapping of private IP addresses to public ones using port numbers. Additionally, the document highlights the advantages of NAT, including enhanced security and a consistent Internet connection without the need for multiple public IP addresses.

Uploaded by

Michael Sia
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
7 views

Tutorial - Network Address Translation (NAT)

The document provides an overview of Network Address Translation (NAT), explaining its role in enabling multiple users on a private network to communicate with the Internet using a single public IP address. It details how NAT modifies packet headers to facilitate communication and maintains a mapping of private IP addresses to public ones using port numbers. Additionally, the document highlights the advantages of NAT, including enhanced security and a consistent Internet connection without the need for multiple public IP addresses.

Uploaded by

Michael Sia
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 3
9128/25, 2:04 PM “Tutor: Network Address Translation (NAT) ~Telecommurications Training Blog Telecommunications Training Blog “uorials and arte from Tercom Tain Institute Bagg yo the best in Tutorial: Network Address Translation (NAT) In lessons leading up to this one, we cover private IP addresses, and why these are preferable to use onan in-building network However, if any of the users on the private network want to receive packets from the Internet, a public IP address is required. ‘The question we explore in this lesson is how to enable Internet communications forall users in-building without having to rent a public IP address for every user? A solution is to use a Network Address Translator (NAT). Watch the interactive Online Course Lesson or continue reading below. wi ww a = Sea = ocr cuent ‘ONE PUBLIC ip ADORESS TOISe Dace pusuc SenveR TP ADDRESSES Network Adres ‘When a computer on the private side initiates communications with a server, it populates the source IP address field in the packet header with its private address and the destination IP address field with the public IP address ofthe server, ‘The packet is then transmitted in a MAC frame to the computer's “default gateway”, which is the Customer Edge router. This device is performing the NAT function, hnps:iblog teracomtaining.comfutora-networkadeross-translaton-na! 9128/25, 2:04 PM “Tutor: Network Adéress Translation (NAT) -Telecommurications Training Blog ‘The NAT changes the source IP address from the private IP address of the sender to the public IP address of the NAT, ie, the CCE router, then transmits the packet in a frame on the public network (the Internet) ‘The Internet server of course uses the source address in the packet it receives as the destination address to answer back to the client. Therefore, it will send the response back addressed to the NAT. ‘When the NAT receives the packet, it changes the destination IP address on the packet received from the Internet to the private IP address of the appropriate computer, then transmits the packet in a MAC frame to the computer. One question that arises is: how does the NAT know what computer on the private network a packet received from the Internet is intended for? It turns out that the NAT uses the Layer & header to keep track of things. The Layer 4 header (TCP or UDP) begins with two ‘octets that are called the “source port” then two octets for the “destination port”. These fields are used to indicate which application on a computer the message is being sent from and to. The NAT selects an arbitrary “fake” port number to identify a computer on the private network, and records this port number against the private address ina table. ‘When a packet is transmitted to the Internet, the NAT records the actual source port number then changes the source port value to the “fake" port number. ‘When the reply from the server is received from the Internet, it has the “fake” port number in the destination port field of the Layer 4 header. The NAT uses this to look up the correct private IP address and correct port number and enter those values in the destination address and destination port number fields, thus relaying the incoming packet to the correct computer on the private network. NAT provides @ number of advantages: ANAT allows multiple computers in-building to share a single Internet address and Internet connection. 2. ANAT provide a truly “always-on” connection to the Internet. Services like DSL and Cable modem described as “always on” are always connected at the Physical Layer. They do not provide “always on’ at the Network Layer, since DHCP must be run every time the attached device restarts to geta public IP address. When a NAT is inserted, it uns DHCP to get the public IP address; so ifthe NAT is not powered off, the site will always havea public IP address assigned, and thus a connection to the Internet always ready for immediate use. 3. ANAT’shields machines from attacks from the Internet. Since a private IP address is not reachable from the Internet, there is no way for a machine on the Internet to initiate communications to a machine on the private network. The only device exposed to the Internet is the NA, Normally, the NAT'is not running on a computer running Windows, so attackers have a greatly diminished chance of finding an vulnerability to exploit compared to connecting a computer running Windows naked onto the Internet. Devices that perform this function are available in industrial-strength versions from companies like Cisco. Hardware devices to do this are also available for about $20 from companies like Linksys for use on a DSL. or cable modem connection. ‘They often inelude both an Ethernet switch and an 802.11 wireless LAN access point for the private network side. Most ISPs now provide the CE router with NAT function integrated in a device that includes the DSL or Cable modem they supply. ‘Watch the interactive Online Course Lesson, part of the Certified Telecommunications Network Specialist CTNS Certification Courses. hnps:iblog teracomtaining.comfutora-networkadeross-translaton-na! 3128/25, 2:04 PM “Tutor: Network Adéress Translation (NAT) -Telecommurications Training Blog @ erin / 207.1-08 / tolocommunrications Telecomrnunkations Training Blog / Proudly powered by WordPress hnps:iblog teracomtaining.comfutora-networkadeross-translaton-na!

You might also like