▸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 identify both the receiver (the AP) and the final destination (the server); on a wire these are the same device, over the air they are not.

(2) Every frame is acknowledged. The medium is shared and the sender cannot detect collisions, so the receiver must confirm receipt with an ACK.

(3) Half duplex with CSMA/CA: listen to the channel before sending, then wait a random interval. Ethernet has long been full duplex.

What the AP does

The AP converts between 802.11 frames and Ethernet frames:

· Receive the 802.11 frame and 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 header, and send the frame out the wired port.

So a capture on the wired side shows the phone's MAC as the source. The AP bridges; it does not do NAT.

Common misconceptions

Full signal bars do not mean high speed. Signal strength only determines which modulation can be used; the bandwidth is shared by all devices. With 30 devices on one AP, each gets only a small share of transmit time.

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

An AP works like a bridge plus a media converter, and it also handles association, authentication and retransmission, which an Ethernet switch does not do.