📜  网络地址转换 (NAT) 和端口地址转换 (PAT) 之间的区别

📅  最后修改于: 2021-09-15 02:00:01             🧑  作者: Mango

网络地址转换 (NAT):
NAT,将私有IP地址或本地地址转换为公有IP地址。 NAT 用于通过将本地 IP 或私有 IP 地址转换为全局或公共 IP 地址来降低可用 IP 地址的消耗速度。 NAT 可以是一对一关系或多对一关系。

端口地址转换 (PAT):
在 PAT 中,私有 IP 地址通过端口号转换为公共 IP 地址。 PAT 也使用 IPv4 地址,但使用端口号。它有两种类型:

1. Static
2. Overloaded PAT 

网络地址转换 (NAT) 和端口地址转换 (PAT) 之间的区别:

S.NO Network Address Translation (NAT) Port Address Translation (PAT)
1. NAT stands for Network Address Translation. PAT stands for Port Address Translation.
2. In NAT, Private IP addresses are translated into the public IP address. In PAT, Private IP addresses are translated into the public IP address via Port numbers.
3. NAT can be considered PAT’s superset. PAT is a dynamic NAT.
4. NAT uses IPv4 address. PAT also uses IPv4 address but with port number.
5. It have 3 types: Static, Dynamic NAT and PAT/ NAT Overloading/IP masquerading. It also have two types: Static and Overloaded PAT.