In this article we will discuss How NAT Works, will make brief discussion on How NAT Works, In last article we discuss about NAT Terminology.
In this example, PC1 with private address 192.168.10.10 wants to communicate with an outside web server with public address 22.214.171.124.
PC1 sends a packet addressed to the web server. The packet is forwarded by R1 to R2.
When the packet arrives at R2, the NAT-enabled router for the network, R2 reads the source IPv4 address of the packet to determine if the packet matches the criteria specified for translation.
In this case, the source IPv4 address does match the criteria and is translated from 192.168.10.10 (inside local address) to 126.96.36.199 (inside global address). R2 adds this mapping of the local to global address to the NAT table.
R2 sends the packet with the translated source address toward the destination.
The web server responds with a packet addressed to the inside global address of PC1 (188.8.131.52).
R2 receives the packet with destination address 184.108.40.206. R2 checks the NAT table and finds an entry for this mapping. R2 uses this information and translates the inside global address (220.127.116.11) to the inside local address (192.168.10.10), and the packet is forwarded toward PC1.
I am Hamza arif, and i am excited to learn new things, i am well focused for my work and always try to explore new things. My graduate is in BS (Telecom) and i am expert in Networks and working on new technology is my passion i work a lot on AI (Artificial Intelligence) Augmented Reality and many other projects.