NAT and PAT
NAT and PAT
Network Address Translation (NAT) and Port Address Translation (PAT) are the
protocols used to map the unregistered private (inside local) address of an internal
network to a registered public (inside global) address of an external network
before transferring the packet. The main difference between them is that NAT is
used to map public IP addresses to private IP addresses, it could be a one-to-one
or many-to-one relation. On the other hand, PAT is a type of NAT where the
multiple private IP addresses are mapped into a single public IP (many-to-one) by
using ports.
The main purpose of NAT was to slow down the rate of depletion of available
IP address space by enabling many private IP addresses to be represented
by some smaller number of public IP addresses.
Definition of PAT
Port Address Translation (PAT) is a type of Dynamic NAT through which
address translation can be configured at the port level, and the remaining
IP address usage is also optimized. PAT maps multiple source local
addresses and ports to a single global IP address and port from a pool of
IP addresses that are routable on the destination network. Here the
interface IP address is used in combination with the port number and
multiple hosts could have same IP address because the port number is
unique.
NAT preserves the registered public addresses and slows down the
depletion of the IP address space.
Occurrence of address overlap significantly reduces.
Increases flexibility of the connection establishment.
Removes the process of address renumbering at the time of changing
network.
Disadvantages
Disadvantages
More than one same type of public services cannot be executed with
a single IP address in PAT.
Number of entries are limited in the internal table for keeping the
tracks of the connections.
Conclusion
NAT and PAT protocols are used for minimizing the requirement of globally
unique IP addresses, allowing a host whose address is not globally unique
to connect to the internet, by converting the addresses into global address
space which is routable. There is a slight difference between NAT and PAT
is that NAT doesn’t use ports while PAT uses source ports in the translation
process.