Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.