7

From what I have gathered UDP multicast / broadcast over WiFi will not yield the speed as one would have thought. What about UDP unicast over WiFi? Can anyone confirm that the latter will have a normal speed?

  • If you understand WiFi, UDP and 'broadcast' then you are correct in speed issues (read saturation) .. what are you asking specifically about UDP unicast? UDP/TCP are irrelevant to the speed of a network (though how they work can affect throughput of your setup). Are you asking about speed/throughput comparisons of UDP/TCP over a WiFi vs. Wired setup?? – txtechhelp Jan 1 '14 at 22:54
15

Any kind of multicast/broadcast over Wi-Fi is going to be slow because Wi-Fi requires multicasts and broadcasts to be sent at a kind of "lowest common denominator" transmission speed.

UDP has nothing to do with it. The only reason UDP gets mentioned is because UDP is capable of being multicast or broadcast. TCP, in contrast, is strictly point-to-point; it can only be unicast. So it's not a UDP vs. TCP thing, it's a multicast/broadcast vs. unicast thing.

Unicasts of any kind (TCP, UDP, or otherwise) will likely be transmitted over Wi-Fi at much higher rates than multicasts or broadcasts of any kind.

Good 802.11n or 802.11ac implementations can achieve unicast TCP throughputs of 70% or even barely 80% of the PHY rate. Of course, the PHY rates can vary widely depending on what flavors of 802.11n or 802.11ac your APs and clients support, how clean the channel is, the distances involved, etc.

802.11g and earlier don't support frame aggregation and thus aren't as efficient. They usually get a little less than 50% efficiency, or maybe a little more than 50% if they support a vendor-proprietary form of frame pseudo-aggregation ("frame bursting").

In all cases, UDP unicasts can get a few percent higher efficiency than TCP because whereas TCP is designed to go as fast as possible without compounding congestion, UDP-based protocols can try to go as fast as possible even if they make congestion worse. So even a well-implemented, finely-tuned TCP stack may occasionally back off in the face of congestion and packet loss, whereas UDP will blast continuously.

If you have high-quality 802.11n or 802.11ac gear and aren't seeing 70-80% efficiency (that is, TCP-over-IPv4 throughputs of 70-80% of the 802.11 PHY rate that you're getting given your RF conditions), then you probably have a buggy TCP stack or need to do some TCP tuning. TCP window size tuning is the first thing to look at. Consider setting a 2 MiB TCP window size.

  • 1
    Thank you for a very detail answer. That explained a lot of what I have been encountered in my project. I would upvote your answer but my current reputation won't allow me. – EmilyJ Feb 17 '14 at 14:54

protected by Community Aug 23 '17 at 21:10

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.