Из ленты dev.to devops — кратко, чтобы не потерять.

After learning about DHCP, ARP, DNS, TCP, and NAT, I ran into a question that completely changed how I thought about home networking. I already understood the basics of NAT. My laptop might have: 192.168.1.100 while my router has a public address such as: 49.43.12.10 The router replaces the private address with its public address before sending packets to the Internet. That part made sense. But then a new question appeared. The Problem Imagine a home network with three devices. Laptop 192.168.1.100 Phone 192.168.1.101 Tablet 192.168.1.102 All three devices are browsing websites simultaneously. After NAT, every packet appears to originate from: 49.43.12.10 To the Internet, all three devices look identical. Which raises an obvious question: When replies come back, how does the router know wh


Полный текст и контекст у первоисточника: https://dev.to/micheal_angelo_41cea4e81a/one-public-ip-many-devices-how-your-router-knows-where-replies-belong-2o30