Different Types of NAT (Network Address Translation)

Network Address Translation (NAT) is a fundamental concept in networking that plays a crucial role in allowing communication between different devices on a network. It allows multiple devices to share a single public IP address, conserving the limited IPv4 address space. NAT is widely used in both residential and enterprise networks, making it essential for network administrators and professionals to understand its types and functions. In this blog, we will explore the concept of NAT, types of NAT, and key related terms. At the end of this blog, you will clearly understand how NAT works, its importance, and how it can be implemented in different network scenarios. Before getting into different types of network address translation, let us first understand what NAT is. NAT stands for Network Address Translation. It is a process used to translate IP addresses within a network. In simple terms, NAT allows multiple devices on a private network to share a single public IP address when communicating with the outside world. This is achieved by modifying the source or destination IP addresses of packets as they pass through a router or firewall. Let us now discuss the different types of NAT in detail. There are three types of NAT broadly categorized based on how NAT translates IP addresses. Let us look into these types in detail. Static NAT is one of the types of NAT. The simplest NAT implementation comes through Static NAT. A unique public IP address from the external network is mapped to every private IP address from the internal network when using static NAT. The mapping stays fixed since each communication between internal devices and external networks maintains identical public IP addresses. When using static NAT, the router establishes a one-to-one mapping between every private and external IP network address. The following example explains static NAT implementations. Here, private IP addresses in an internal network are mapped to unique public IP addresses on a one-to-one basis. The process begins with devices in the internal network, each assigned a private IP address (e.g., 192.168.0.1, 192.168.0.2, etc.), which are not routable on the internet. These devices send data packets to the switch (SW), which forwards the traffic to the router (R). The router, configured with Static NAT, translates each private IP address into its corresponding public IP address (e.g., 200.200.200.1, 200.200.200.2, etc.) based on a predefined mapping. This one-to-one mapping ensures that each private IP has a fixed public IP, allowing external devices on the internet to communicate with specific internal devices. The NAT translation table at the bottom of the image summarizes this mapping, showing how each Inside Local IP (private) is paired with an Inside Global IP (public). This process enables seamless communication between the internal network and the internet while maintaining a consistent public identity for each internal device. Static NAT is mainly used to provide outside-world access to a particular device located on your internal network. For example: Other types of NAT include dynamic NAT. The advanced version of NAT is the NAPT (Network Address Port Translation) which is also known as Dynamic NAT. Multiple internal IP addresses get dynamic translation through a public IP address pool when implementing dynamic NAT. The router assigns public IP addresses from its allocated pool after internal network devices start their connection to the external network. After the connection terminates, the public IP address is returned to the pool for potential reassignment. Dynamic NAT requires a translation table for maintaining records of present active network connections. A request generated from an internal network device gets its source IP address translated into an available public IP from the pool by the router. The translation table maintains records of the mapping of internal IP addresses to their public counterparts, along with the used port numbers. After an external device responds, the router makes use of the translation table to locate both the public IP address and port so it can locate and retrieve the corresponding internal IP address and port. Here, private IP addresses in an internal network are dynamically mapped to a pool of public IP addresses. The process begins with devices in the internal network, each assigned a private IP address (e.g., 192.168.0.1, 192.168.0.2, etc.), which are not routable on the internet. These devices send data packets to the switch (SW), which forwards the traffic to the router (R). The router, configured with Dynamic NAT, selects an available public IP address from a predefined Public IP Pool (e.g., 200.200.200.1 to 200.200.200.8) and temporarily assigns it to the private IP address. This mapping is dynamic, meaning the public IP assigned to a private IP can change based on availability. For example, 192.168.0.1 might be mapped to 200.200.200.2 at one moment and to another public IP later. The NAT Translation Table at the bottom of the image shows the current mapping between Inside Local IPs (private) and Inside Global IPs (public). This dynamic allocation ensures efficient use of the public IP pool, as only active devices are assigned public IPs. Once the communication ends, the public IP is returned to the pool for reuse. This process enables many-to-many communication between internal devices and the internet while conserving public IP addresses. The deployment of Dynamic NAT provides an appropriate solution for multiple devices that access a limited set of public IP addresses. Examples include: Port Address Translation (PAT), also known as NAPT, is an extension of dynamic NAT. In PAT, multiple internal IP addresses are translated to a single public IP address using different port numbers. This allows many devices on the internal network to share a single public IP address. In PAT, the router not only translates the source IP address but also modifies the source port number. When a device on the internal network initiates a connection to the external network, the router assigns a unique source port number from the pool of available ports. This allows multiple devices to share the same public IP address without conflicts. PAT or NAT overload allows multiple devices in a private network to share a single public IP address for internet communication. The process begins with devices in the internal network, each assigned a private IP address (e.g., 192.168.0.1, 192.168.0.2, etc.), which are not routable on the internet. These devices send data packets to the switch (SW), which forwards the traffic to the router (R). The router, configured with PAT, translates the private IP addresses into a single public IP address (e.g., 200.200.200.1) by appending unique port numbers to each connection. For example, the private IP 192.168.0.1 is mapped to the public IP 200.200.200.1 with port 18, while 192.168.0.2 is mapped to the same public IP with port 19. This many-to-one mapping is achieved by using different port numbers for each connection, ensuring all devices can communicate simultaneously using the same public IP. The NAT Translation Table at the bottom of the image shows the mapping between Inside Local IP:Port (private) and Inside Global IP:Port (public). PAT is widely used in scenarios where many devices need to connect through one public IP address. Some common use cases include: These are the three types of NAT. One needs a good knowledge of specific terms to understand Network Address Translation (NAT). NAT is a mechanism with which it is possible to conserver IP addresses and helps in communicating between private and public networks. Different types of NAT include static NAT, dynamic NAT, and PAT. Three types of types of network address translation are: Type 2 NAT type is moderate NAT type. Four types of NAT in Cisco are: In conclusion, NAT is one of the significant processes in modern networking. It helps in conserving IP addresses, enhancing security, and allowing communication between private and public networks. In this blog, we have discussed different types of NAT, including static NAT, Dynamic NAT, and PAT or NAT overload. We have explained types of network address translation, their functioning, and use cases, along with their advantages and disadvantages. To learn more about NAT or networking, enroll today in the CCNA course and set your path to success.Introduction
What is NAT?
Different Types of NAT in Networking
1. Static NAT
Working of Static NAT
Use Cases for Static NAT
Advantages of Static NAT
Disadvantages of Static NAT
2. Dynamic NAT
Working of Dynamic NAT
Use Cases for Dynamic NAT
Advantages of Dynamic NAT
Disadvantages of Dynamic NAT
3. Port Address Translation (PAT)
Working of PAT
Use Cases for PAT
Advantages of PAT
Disadvantages of PAT
Key Terms Related to NAT
Frequently Asked Questions
Q1. What is NAT and its types?
Q2. What are the three NAT types?
Q3. What is type 2 NAT type?
Q4. What are the different types of NAT in Cisco?
Conclusion