Static Network Address Translation
Static Network Address Translation (SAT, SNAT) performs one-to-one translation of internal IP addresses to external ones. This allows you to convert the internal network IP to an external IP address. In other words, when passing through a router, the address changes to a strictly specified address, one-to-one. For example, 10.1.1.1 can be replaced by 184.108.40.206 and vice versa.
These mappings are configured by the network administrator and remained constant. When devices send traffic to the internet, their internal local addresses are translated into configured internal global addresses. For external networks, these devices have public IPv4 addresses.
Furthermore, SATs are used when the local host must be accessible from the outside using fixed addresses. It provides connections to both internal and external systems, such as internet hosts. This type of conversion is particularly recommended for sharing the system on the internal network. Dynamic Network Address Translation
Dynamic NAT differs slightly from static. The essence of it is that several external IP addresses are given by the provider, after which the router itself distributes the addresses according to the need. While static NAT is a constant mapping between inside local and global addresses, dynamic NAT allows you to automatically map inside local and global addresses (which are usually public IP addresses). Dynamic NAT uses a group or pool of public IPv4 addresses for translation.
As soon as a server or computer wants to go online, the router looks at its list of external addresses issued by the provider, and assign one address from this list, while recording that it has issued such an external address to a server or computer. The life of such a record lasts a very short time, and as soon as the server/computer ceases to require access to the Internet, the address is removed from the router's NAT table.
If the number of local hosts does not exceed the number of public addresses available, each local address will be guaranteed a matching public address. Otherwise, the number of hosts that can simultaneously access external networks will be limited by the number of public addresses. In other words, it would be good for the number of internal addresses to be slightly more than the number of addresses in the pool.
After all, as soon as the router runs out of addresses in the list, it will not be able to start up new computers or servers on the Internet until at least one external address is released. Dynamic NAT uses a pool of public addresses and assigns them according to the "first come, first served" principle.