LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-03-2007, 12:21 AM   #1
jabka
Member
 
Registered: Sep 2005
Distribution: Debian unstable && Kazit (reformated knoppix)
Posts: 194

Rep: Reputation: 31
where does the frame loses the MAC ?


Hello,...

im tirend to understand the packets way :
how they are built how they are carried etc ...

i have read in wikipedia both anout ethernet and packet also went onto protocols.com to understand a little more ..

as i understand from wikipedia the IP packets thet is sent tru ethernet " carier " (aka Frame ) :

Quote:
Originally Posted by wikipedia
However, an IP packet is often carried as the payload inside an Ethernet frame, which has its own header and trailer
while reading about ethernet i found the the next paragraph
Quote:
Frames are the format of data packets on the wire. Note that a frame viewed on the actual physical hardware would show start bits, sometimes called the preamble, and the trailing Frame Check Sequence. These are required by all physical hardware and is seen in all four following frame types. They are not displayed by packet sniffing software because these bits are removed by the Ethernet adapter before being passed on to the network protocol stack software
also watcing the diagrem on wikipedia Ethernet_frame.svg

i can defently see the MAC addres informetion while in the ethernet description page on wikipedia it is mentioned that the softwere can't see that package so the question is where does the frame becomes transpernet on the hardwere level in the ethernet card or acturally by the OS.

Yours Truley...
 
Old 09-04-2007, 09:44 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
ok, are you asking when is a mac address removed from an ethernet frame? well never really, in as much as the frames are created and destroyed within each lan segment. data at that level, OSI layer 2, does not get passed at all. the inner IP packet, OSI layer 3, is removed from the frame which it arrived on and then processed by the device. assuming this is a router and the IP packet is routed and sent out of another interface, the router will then create an entirely brand new ethernet frame and insert to copied IP packet into it. this new ethernet frame is then addressed from the *router*'s mac address, not the client's mac address, and addressed to the next hop, be it an end machine or yet another router. so a devices MAC address never leaves the subnet it is created on. as above, you could imagine that the addresses are changed as it passes through each router, but it's actually brand new frames, with the old bits discarded completely.
 
Old 09-04-2007, 09:59 AM   #3
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
For some hardware, the ethernet mac adress and the crc is filled by the hardware (the PHY or MAC part of an ethernet card). That's why sometimes when you send packets going out of machine A and you sniff also on machine A, you will see "incorrect crc" because it is filled much later.
Also when you receive a packet and you are not the destination MAC, if the PHY component is not put in promiscuous mode, the card will not even put it into its hardware buffer so you will never see the packet at software level.

edit: I'm not talking of the crc in the ip packets but the low level crc.

Last edited by nx5000; 09-04-2007 at 10:02 AM.
 
Old 09-04-2007, 10:13 AM   #4
jabka
Member
 
Registered: Sep 2005
Distribution: Debian unstable && Kazit (reformated knoppix)
Posts: 194

Original Poster
Rep: Reputation: 31
Thank you ..
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Router loses connection gymnart Linux - Networking 6 01-04-2007 12:31 PM
Frame by Frame Playback Hioushi Linux - Desktop 2 10-18-2006 06:08 PM
Fedora 3 loses .png nelsonrherron Linux - Software 1 01-28-2005 01:45 AM
Frame-by-frame video jeffChuck Linux - Software 0 10-12-2004 10:04 PM
calling a frame from another frame : JAVA randomx Programming 0 10-07-2004 02:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration