Hi,
I'm a beginner. I need help understanding how packets are routed. I have not started reading any book yet, and I would be glad if you could recommend me a book for networking (preferably one with programming practices).
Assume I have a PC connected to a router, which in turn is connected to Internet. I would like to send a packet to a remote server. My PC's private address is (192.168.0.2); the router's public address is (1.1.1.1).
So, if initially the packet includes SOURCE=192.168.0.2:5555, then the NAT router modifies the packet to include, say, SOURCE=1.1.1.1:6666.
What about the source MAC address? I know that NAT has nothing to do with MAC addresses and the destination has no access to your (private) MAC address.
Initially the packet includes the PC's MAC address: when the packet reaches the router, is the source MAC address changed to router's MAC address? Does the source MAC address in the packet change at each node during journey? If so, why?
Thanks in advance.