
==>> This article is a part of PK series (IT)
Network Address Translation (NAT) & its Forms
Static NAT
Dynamic NAT
Port Address Translation (NAT Overloading)
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.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.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.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.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.