473,386 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Source MAC Address; Sending a packet to a remote destination

1
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
1 5046
madankarmukta
308 256MB
Hi,

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

Regards.
Sep 8 '15 #2

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

Similar topics

13
by: Jay | last post by:
I need to write a program to find mac address of a remote computer, is this possible? How?
0
by: Just D. | last post by:
Does anybody knows the solution if this problem? If we wrote the ASPX page and send the request to the remote browser the remote client browser returns the remote machine IP using by this machine...
3
by: alex tomlinsom | last post by:
I've got a c# socket that is open and listening to incoming UDP packets on a port. When the packet comes in, I want to figure out what address it came from. The problem seems to be that while the...
0
by: Al | last post by:
Hi, Please forgive me for the repost. I need to get the IP address of a remote machine which has dynamic IP so I cannot set it in a configuration file. I have the name of the computer and based...
7
by: haleem4us | last post by:
How to find the MAC address of a remote computer from my computer,through my computer command prompt.
2
by: satya0674 | last post by:
Hi, I want to know whether is it necessery to put the sorce address in the arp request packet . as we r getting the MAC address in the datalink layer ,this is due to the broadcast of physical...
2
by: kardon33 | last post by:
Hello Bytes, I am using UDP BSD sockets in my program, all is working just fine until my computer has two nics or 1 nic and one virtual nic. I am running Linux x86 Debian Squeeze. I have one...
0
by: chandrani | last post by:
How do i get the mac address of a remote computer in linux2 platform and python as a language.
0
by: chandrani | last post by:
I want the mac address of remote computers in linux using python
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.