Network Address Translation - Computer Networks

December 18, 2015    

Aspirants, 
Network Address Translation
We'll be learning about Network Address Translation (NAT) today. For doubts/clarifications, use the comments section and I shall revert with explanation!

==>> This article is a part of PK series (IT)
Before we start with NAT, lets quickly glance through the range of private addresses for each class available to us for private networks (LAN inside a company or home).
Class A- 10.0.0.0 to 10.255.255.255
Class B- 172.16.0.0 to 172.31.255.255
Class C- 192.168.0.0 to 192.168.255.255

Network Address Translation (NAT) & its Forms

Allows a single device to act as an agent between Internet and private network. Only 1 unique IP address is required to represent an entire group of computers. 


Static NAT

It has one to one mapping between private and public addresses i.e one public IP for every private IPs in private network. The only benefit is that it allows a server inside private network to be reachable over internet through one to one translation. 

Dynamic NAT

It has many to many mapping between private and public addresses. It maps an unregistered IP address to a registered one from a pool of registered IP addresses in NAT router. Addresses are assigned dynamically. 


Port Address Translation (NAT Overloading)

It maps multiple private IPs to a single public IP i.e many to one mapping. Each computer on private network gets translated to the same public IP but with a different port number assignment. 
Suppose an internal host A tries to connect to a web server outside. NAT enabled router will save private IP and source port from A's packet to an Address Translation Table (ATT). It then replaces private IP with the router's IP address, generates a new port for new connection and forwards the packet over internet. Now when the return packet from web server reaches the router, it uses destination port to search ATT, obtains the private address and port numbers mapped to it and sends it to original sender. 
The Address Translation Table looks like:

Main Uses of NAT

Pooling of IP addresses

Suppose a corporate network has many hosts but only a small number of public IP addresses. It uses private address space for hosts and when a host send an IP datagram to a host in public internet, NAT device picks up a public IP from the pool and binds it to private address of the host. 
Network Address


Migration between service providers

In CIDR, IP addresses in a corporate network are obtained from service provider. Changing the service provides requires changing all IP addresses in the network. Now, this NAT device has static address translation entries which bind the private addresses to public addresses. Migration to a new service provider merely requires an update of NAT device and this migration won't be noticeable to hosts on the network. 
Network Address

IP Masquerading (Network address and port translation)

As we have assigned private addresses to hosts of the network above, NAT device will modify the port numbers for outgoing traffic. The literal meaning of masquerading is- pretending to be someone/something which you're not. 
Network Address

Load Balancing of Servers

Suppose we have to balance the load on a set of identical servers, which are accessible from a single IP address. With concept of NAT, we will assign them pvt addresses and NAT device will act as a proxy for requests to server from public network. It will change the destination IP of incoming packets to one of pvt address of a server. Usually the servers are assigned addresses in a round robin fashion
Network Address



One more important thing to learn is that NAT is not a proxy server. NAT is transparent to both source and destination hosts but proxy server is not transparent. Also NAT is a layer 3 (network) protocol while proxy server works at layer 4 (transport) or higher. 

Fun Fact of Today

The first 1 GB hard disk was announced in 1980 which weighed around 550 pounds and had a price tag of $40,000. 
(And these days one of them is surely not enough for us!)
                                                                                                                              Deepak A
Join 40,000+ readers and get free notes in your email

This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at http://ift.tt/jcXqJW.



Network Address Translation - Computer Networks 4.5 5 Yateendra sahu December 18, 2015 Aspirants,  We'll be learning about Network Address Translation (NAT) today. For doubts/clarifications, use the comments section and I...


Related Post:

  • Upcoming Bank Exams Notifications in 2017
    List of Upcoming recruitment exams along with Bank Exams Dates :- Get email alerts of upcoming exam notifications RBI Grade B Online Classes by Ramandeep Singh - Join here Oliveboard Test Series(Recommended) Bank Exams Today Notes Join … Read More
  • Tricks to Learn Important Days of June
    In this article, we learn how to remember important days easily by developing tricks TRICK 1: Among 12 Child Labour, 6 were hungry who were given milk on 1st international children’s day  Child labor - World day against child labor  Hu… Read More
  • Recent Mergers and Acquisition in India
    BACKGROUND: Mergers and Acquisition have played important role in industrial or corporate sector of India. In India, Mergers are infrequently used for acquisitions of business, but they are used extensively to archive a tax-neutral consolidation of… Read More
  • UNESCO's World Heritage Committee
    Edition 41st annual session Held at Krakow, Poland Held on 2-12 July 2017 New Heritage sites 21 From India Historic city of Ahmedabad Total properties in list 1073 UNESCO: Identification, protection, and preservation of cultural an… Read More
  • Vocabulary From Economic Times: 14 July 2017
     1. Plunging: गिरावट  Falling steeply, decreasing rapidly Example: Plunging inflation and industrial growth warrant a reduction in the central bank’s policy rates. 2. Redemption: ऋणमुक्ति  The action of regaining or gaining possessi… Read More
Load comments

No comments:

Post a Comment