Kole's Networking Journey

Network Address Translation

Network Address Translation (NAT) allows private IP addresses to be routed over the internet. With a limited number of IPv4 addresses available, there are not enough addresses to go around for every device to be routed over the internet with a unique IP address. The Internet Assigned Numbers Authority (IANA) works around this by assigning pools of public IP addresses for organizations to use that can be routed on the internet.

NAT works by taking privately assigned IP addresses and dynamically assigning them one of the available public IP addresses so that it can be used over the internet. As a review, private IP addresses are addresses that can only be used on the local network. Here is a list of private addresses:

TYPES OF NETWORK ADDRESS TRANSLATION

Static NAT - Statically configures one-to-one mappings of private IP to public IP addresses. That is, each private IP address is mapped to a unique public IP address. The drawback of static NAT is that it does not actually conserve IP addresses as it is a one-to-one mapping, therefore defeating the main purpose of NAT. There are two main types of Static NAT:

Inside Static NAT - Maps the inside local address to an inside global (public) address

Outside Static NAT - Maps the outside local address to an outside global address

Pooled NAT - Dynamically assigns local address to a pool of available public IP addresses when being routed over the internet. Upon return, the public IP address will be returned to the pool and become re-available for use.

Port Address Translation (PAT) - Another type of dynamic NAT that assigns IP addresses based on port numbers in a many-to-one fashion. PAT is sometimes also referred to as NAT Overload. With PAT several private addresses will share the same public address, but the router will use the port number to differentiate the traffic.

Some key terms:

Inside local IP address - IP address in the local network

Inside global IP address - IP address that has been translated and is viewed by outside hosts

Outside Local IP address - address of the outside host viewed by the local network

Outside Global IP address - address of the outside host viewed on the outside network

Created with © systeme.io