NAT translates between private and public IP addresses carried in the headers of IP data packets. Two modes are available: Port Address Translation (PAT) and No-PAT.
In addition to the preceding NAT modes, the following NAT modes are available:
PAT-based NAT translation is also called network address port translation (NAPT). NAPT translates both source IP addresses and port numbers between public and private networks. For packets with the same private source IP addresses and different source port numbers, NAPT translates the private source IP address in each packet to the same public source IP address and each private source port number to a specific public source port number.
In NAPT mode, a NAT device converts both IP addresses and port numbers in packets. The NAPT mode more efficiently uses IP address resources to allow more internal hosts to access the internet at the same. In addition, the NAPT mode supports fragments. When basic NAT is used, each private IP address is mapped to a different public IP address, which wastes IP address resources. Therefore, the NAPT mode is recommended.
No-PAT NAT is called basic NAT. It implements one-to-one translation between private and public IP addresses. The public and private port numbers remain unchanged after NAT.
On the network shown in Figure 2, after two data packets with different internal IP addresses and different source port numbers arrive at the NAT device, the NAT device translates the source IP addresses of the two data packets into different external IP addresses and remains the source port numbers unchanged through No-PAT.
No-PAT is used by enterprises for services with high privacy. For example, customers in the financial industry require not to show the private IP addresses carried in service packets transmitted over a public network. In addition, some financial applications use the fixed port numbers, and No-PAT can meet such a requirement.