[SOLVED] How an ARP packet is sent over wireless ?
Linux - Wireless NetworkingThis forum is for the discussion of wireless networking in Linux.
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.
Can anyone explain in detail how an ARP packet is sent over wireless ? Because when I captured ARP packets with Wireshark, I could see Ethernet-II header in it. Ethernet uses 802.3 (with CSMA/CD) whereas Wireless communication uses 802.11 (with CSMA/CA).
I am not 100% sure this is the full answer, but I can tell you that TCP/IP networking and the OSI networking model are layered, in the case of OSI it is 7 layers, in the case of TCP/IP networking it is 4-5 layers depending on the source of the information. References: http://technet.microsoft.com/en-us/l.../cc958821.aspx | http://www.vlsm-calc.net/models.php
The layers are:
Physical | Internet | Transport | Application
The above reference show the mapping between OSI and TCP/IP.... but I digress
The Physical layer consists of the wires and the actual connections (ports and electrons over the wire or radio signals over wireless) These are your 802.3 and 802.1 protocols. MAC address while technically a feature on the physical layer is not tied to the physical protocol, and ARP which uses the MAC address within a broadcast segment is really a feature of the Internet layer. Therefore an ARP broadcast is independent from the physical 802.3 or 802.11 protocol. Why do you see the Ethernet-II header? Because you are capturing Ethernet packets, which means the ARP requests are being transmitted by Ethernet packets which are a function on the Physical layer within the TCP/IP model. If you were capturing packets over the wireless you might see a different header in the packet.
Thanks.
But sorry, I forgot to mention that I had captured these packets on wireless interface.
I have removed the LAN cable as well to avoid any ambiguities.
Both Protocols are in the 802 protocol family so they share quite a bit, I am not a standards expert but the sub version of the standard very likely only applies to certain aspects of the transmission in this case collision avoidance in 802.11 vs collision detection in 802.3 Both using the same standard frames to transmit data, but the protocol for how the data is transmitted may be different. If you reference the links I have provided the reading I did in them would seem to bear this theory out. http://standards.ieee.org/about/get/802/802.htmlhttp://en.wikipedia.org/wiki/IEEE_802
To be completely truthful unless you, I or someone else actually reads through the entire 802 base standard and then the subversions .3 and .11 you are unlikely to get a definitive answer, unless someone fully versed in them happens upon the thread.
My final say on a possible explanation is ... In my education many years ago, and from this little refresher as I went down the rabbit hole from the Wikipedia page it would seem to me the two subversions are only definitions of the transfer method not that frame structure. If you also look at the list of the subversions of the 802 standard that would logically make sense as they are all different type of physical transport methods like Fiber, Token Bus, Blue Tooth, etc...
May be just because the 802.11 header does not provide the upper layer protocol type field, ARP uses Ethernet for passage over medium. At sender side i must be encapsulated inside the 802.11 frame and then transferred over wireless medium. At receiver it must be decapsulated.
I believe I have found our definitive answer. The payload of a packet in both the 802.11 and 802.3 standards (pretty much the whole 802 standard) are defined by the ether type. So the header of an ARP request would be the same as in both. Take a look at this http://en.wikipedia.org/wiki/EtherType and then specifically the following is the explanation
"With the advent of the IEEE 802 suite of standards, a SNAP header combined with an IEEE 802.2 LLC header is used to transmit the EtherType of a payload for IEEE 802 networks other than Ethernet, as well as for non-IEEE networks that use the IEEE 802.2 LLC header, such as FDDI. However, for Ethernet, the Ethernet II header is still used."
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.