Consider a Wi-Fi network with one access point and two clients, operating in marginal conditions due to range, etc. Client 1 is communicating with Client 2. Obviously the Access Point (AP) must be in range of both (assuming no fancy mesh modes, etc.) for the network to be deemed available, but does the data actually travel through it?
That is, does the AP receive the packets from one client and rebroadcast them for the other client to pick up, or does Client 2's radio receive the signals directly as they're transmitted from Client 1 and the AP just provides some sort of arbitration and metadata to help them find each other?
I'm particularly interested in how the answer to this would affect the case where the two clients are near to each other and have good radio propagation, but the access point is some distance away.
Yes, the communication is traveling through the access point. In this case the AP is functioning exactly like a switch does in a wired network.
It is possible to have two devices communicate directly, without an AP. This is known as Ad Hoc networking.
Yes, data actually flows through the AP. Why? The 802.11 frames standards defined 802.11 frame headers:
802.11 works on mostly the MAC layer of the data-link and physical layer, So as you see there are four addresses (instead of two in case of Ethernet) in the frame header and depending on where the frame is to be forwarded the address placement in dot11 header is decided.
The possible addresses are:
Now it depends on where the frame needs to be forwarded, i.e. from which Distribution system (DS) to which distribution system (here let’s suppose wireless is DS 0 and wired is DS 1) the placement of these addresses is decided in the frame header.
CASE 1: When a frame needs to be forwarded from DS 0 to DS 0 from one wireless client (STA) to another client (this would mostly happen on an ad-hoc network).
The following would be the addresses:
The following would be address placement:
CASE 2: When a frame needs to be forwarded from a wireless client to an AP i.e. from DS 0 to DS 1.
The following would be the addresses:
The following would be address placement:
CASE 3: When a frame needs to be forwarded from an AP to a wireless client i.e. from DS 1 to DS 0.
The following would be the addresses:
The following would be address placement:
CASE 4: When a frame needs to be forwarded from one AP to another AP sharing same LAN (and two wireless clients communicating on it) i.e. from DS 1 to DS 1.
The following would be the addresses:
The following would be address placement:
Conclusion: If you are in an AP-based environment (infrastructure) you have to switch DS and hence the destination MAC from BSSID to end client MAC addresses (explained above in detail) that is how dot11 is written.
Analogy with wired: Take the wireless medium as an invisible wire between a switch and an end host. The switch in this case is an AP and the end host is the wireless client. You still need a source MAC and a destination MAC in wireless, But now in a multiple AP environment you do not know who is your AP (switch) as there is no cable (invisible) to which you are connected (via) hence came in two more addresses (CSA and CDA explained above).
I hope this helps!
The standard configuration for Wi-Fi (with Access Points) is to operate as a repeater. The AP will pick up the data it receives and retransmit. This configuration is the standard for centralized radio communications of many types, with Wi-Fi just being one particular subset.
i recently finished up with contract at HP where I developed WIFI/Wifi Direct test procedures and test automation. In WIFI Direct this is peer to peer, so no AP association involved at all. I suggest you read up on this area as well.
Consider that WIFI itself is an unlicensed service, so on bands like 5GHz which is where licensed services like RADAR and Military use, any WIFI device on these bands needs to 'move' off the shared WIFI channel for the primary license holder to use said channel
My two cents == My two dollars same thing
Cheers