I learned that inside a packet there is information about the sender’s public IP and MAC and the receiver’s public IP and MAC, and that at each hop, the sender’s and receiver’s MAC are changed along the way.

Imagine that the public IP of my router/gateway is and the public IP of my friend’s router/gateway is and in my friend’s network there are 3 devices, I send a message to him, if the destination and source MAC is changed during each hop, when it arrives at the router/gateway how will it know which device the message is for, if the destination MAC has been changed.

Leave a Reply

Your email address will not be published. Required fields are marked *