-
August 18th, 2008, 01:14 PM
#1
Member
network packet's MAC address
this is just a quick question, that i have been unable to find a conclusive answer to on the web.
i know that when one's computer receives a network packet, that packet has many layers of information. such as the IP address of the machine from which the packet originated, in the Network Layer. my question is about the Data Link Layer of a packet, which i know includes a MAC address.
my question is; is the MAC address, stored in a network packet's Data Link Layer, the MAC address of the machine from which the packet originated, or is it the MAC address of the last machine (e.g. router) through which this packet passed?
thanks in advance for your help.
regards,
- user0182
-
August 18th, 2008, 03:01 PM
#2
Oliver's Law:
Experience is something you don't get until just after you need it.
-
August 18th, 2008, 03:47 PM
#3
To elaborate a bit: the target IP address in the packet (Network Layer) never changes. The MAC address (Data Link Layer), on the other hand, changes at every hop - both the source and destination MAC address change every time the packet comes across a router (the source MAC address is set to that of the router's, the destination MAC address is set to that of the next hop).
-
August 20th, 2008, 09:19 AM
#4
Member
thanks Nagative, that really helped. there is just one last thing that i was wondering about; i would guess that only hosts and routers have MAC addresses and that other devices (e.g. basic network switches) do not. is this assumption correct?
regards,
- user0182
-
August 20th, 2008, 09:34 AM
#5
Switches (even basic ones) keep track of MAC addresses to know on which port a device is connected but you're correct about the switchport itself not having an MAC address.
Oliver's Law:
Experience is something you don't get until just after you need it.
Similar Threads
-
By gore in forum Operating Systems
Replies: 3
Last Post: March 7th, 2004, 08:02 AM
-
By NullDevice in forum The Security Tutorials Forum
Replies: 21
Last Post: December 17th, 2003, 10:03 PM
-
By hatebreed2000 in forum AntiOnline's General Chit Chat
Replies: 1
Last Post: March 14th, 2003, 06:36 AM
-
By ac1dsp3ctrum in forum The Security Tutorials Forum
Replies: 8
Last Post: February 13th, 2002, 12:36 PM
-
By Remote_Access_ in forum Security Archives
Replies: 3
Last Post: December 13th, 2001, 10:58 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|