467,092 Members | 1,278 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,092 developers. It's quick & easy.

Source MAC Address; Sending a packet to a remote destination

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.
Sep 5 '15 #1
  • viewed: 4634
Share:
1 Reply
100+
Hi,

As per my understanding and knowledge ,the packet gets different MAC Address at each hop.

Regards.
Sep 8 '15 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Just D. | last post: by
3 posts views Thread by alex tomlinsom | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.