Protocol notes for this page (click to expand)

Wi-Fi MAC (Medium Access Control)

How it differs from Ethernet

★★★ (1) Three or four addresses, where Ethernet has two. A wireless frame must state both "who receives it (the AP)" and "who it is ultimately for (the server)" -- the same thing on a wire, but not over the air.

★★★ (2) Every frame is acknowledged. The medium is shared and collisions are invisible, so the only way to be sure is an explicit ACK.

★★★ (3) Half duplex with CSMA/CA: listen first, then wait a random interval. Ethernet has been full duplex for a long time.

What the AP does

★★★ An AP is a translator, not just a switch port:

· Receive the 802.11 frame -> send an ACK;
· Rearrange the three addresses into Ethernet's two (destination = server, source = phone);
· Strip the 802.11 header, add a 14-byte Ethernet one, and send it out the wired port.

★★ So a capture on the wired side shows the phone's MAC as the source, not the AP's -- an AP bridges, it does not NAT.

★ Common misconceptions

★★★ "Full bars means fast" -- signal strength only decides which modulation is usable; the bandwidth is shared by everyone. Thirty devices on one AP each get a small slice of time.

★★★ "The negotiated rate is the real rate" -- 802.11 rates are physical layer. After ACKs, backoff and interframe spacing, actual throughput is typically about half the nominal figure.

★★ "An AP is a switch" -- it is closer to a bridge plus a media converter. It handles association, authentication and retransmission, none of which an Ethernet switch does.