When I send packets to another computer (both computers have wi-fi) is the AP required to communicate or can the other machine receive the information directly from my computer without the AP?
-
2Since you mention you have an AP, could you please confirm the computers are not working in ad-hoc mode?? The answer to your question is totally different if the computers are working in infrastructure or ad-hoc mode.– Daniel Yuste ArocaCommented Aug 6, 2013 at 19:27
-
1No ad-hoc mode. They use AP to communicate and they are in the same subnet– BrunoMCBragaCommented Aug 6, 2013 at 19:53
2 Answers
Since you mention two computers and an AP, I assume you are not talking about ad-hoc or direct connect, rather are referring to infrastructure mode operations.
In this case, all communication is between each station and the AP. This is because the station associates to the AP, establishing a relationship between the two devices, but there is no relationship between the stations.
This has a number of implications, but I will limit myself to two of the larger considerations in wireless.
First, just because a station can transmit to/from the AP, does not mean that any two stations associated to the same AP will be able to transmit to/from each other. To simplify, if you picture the AP's coverage zone as a clock (analog with hands) with the AP in the middle, a station at "12 o'clock" that is talking to the AP may not be able to hear a station at "6 o'clock" on the circle.
Second, the encryption key for security (whether based on personal/PSK or enterprise) is negotiated between the station and the AP. Even if a station can hear a second station, it won't be able to understand any of the encrypted data in the frame. (Note: in some cases you can intentionally decrypt this data, even if not the station and AP involved, however this is not normal operation.)
-
1This also has a specific but very common implication: Heavy data transmission from one station to another can crush the entire cell, since every frame is getting retransmitted, not only doubling bandwidth usage but greatly increasing the chances for frame interference. Commented Aug 7, 2013 at 20:33
-
1@chrylis, true, but really no worse than two stations both doing heavy data to a host on the wired side. If you have high data usage, there are other considerations beyond the scope of this question.– YLearnCommented Aug 7, 2013 at 22:03
-
1I'm not sure about that; I use a laptop dock mostly for this reason, and while uncontended wired-to-wireless transfers are usually about 75% of the max throughput, I've seen wireless-to-wireless drop to 10% or so. Commented Aug 7, 2013 at 22:53
-
1@chrylis, there are other factors most likely at play in your scenario, for example TCP window scaling. Your example also only seems to be dealing with one wireless station sending to the wired.– YLearnCommented Aug 8, 2013 at 22:24
-
Good answer. With the clock analogy, finally I understand one reason for this situation. But for one station at 5 o’clock and one station at 6 o’clock : they would talk much more efficiently without the need for the waves to travel through the access point. Commented Dec 1, 2013 at 16:17
In ad-hoc networks wireless clients talk directly to each other without any intermediate device.
In infrastructure networks the APs are working as network bridges and all communication between wireless clients is going through them (even communication between clients associated to the same AP) This allows for advanced functionality such as client isolation.