Can Multicast Be Achieved Over WIFI?

ieee 802.11multicaststreamingwireless

Am streaming UDP over wifi (5ghz) – approx 1.5k/packet… trying to stream to ~10 devices simultaneously, with extremely low latency..

As I understand Wifi, it can never true multicast, as each device holds a '1:1" relationship with the AP, and then receives the same packet… then the next device connects and gets the same packet.

  1. there are multiple types of router/APs – "3×3" and "4×4", some with MIMO, etc. what should I use as criterion for choice of AP?

  2. can I TRULY multicast over wifi to iOS devices? Is my theory correct?

  3. is there a way to multicast instead of treating each packet/client as a unicast?

Best Answer

Lets test this out then. If we send multicast packets to multiple devices connected to a WiFi access point at a constant rate, then the access point should report the same amount of traffic.

To run this test, I'm sending packets from a wired PC to an an android tablet and a raspberry pi. Don't have any iOS devices. The network testing tool iperf can easily be used to send and receive these packets with the following settings:

Server (Devices on WiFI): iperf -s -u -B 230.5.5.82

Client (Wired PC): iperf -u -c 230.5.5.82 -t 60 -b 1M

With these settings we're sending multicast packets at 1Mbps for a minute. Running this test and looking at the wireless traffic on the access point shows it is consistently about 1Mbps so it must be doing true multicast. The other notable thing from the results is that the packet loss is really bad at well over 50%. This is likely because multicast packets are getting sent at the lowest possible speed so lets force the access point to only run in the fastest speed. I'm using a WRT54GL running dd-wrt where the setting is called "Transmission Fixed Rate". Running the same tests again after setting this to the fastest speed gives a much more acceptable packet loss of less than 5%.

To actually answer the questions:

  1. Get the fastest access point that allows you to fix the transmission rate and that supports multicast. There are definitely access points that do automatically convert multicast packets to unicast. For the speed issue, it isn't enough to just use a wide 5GHz channel since there are a number of different speeds that clients can actually communicate at.

  2. Can't imagine things would work differently on iOS devices since the main determining factor would be the access point.

  3. See 1 as it depends on the access point.

Edit: After testing things out more and on some ac APs, it turns out the important thing for mulitcast is being able to set the available rates. Multicast still uses g speeds so the available physical rates are 6, 9, 12, 18, 24, 36, 48 and 54Mbps. Most APs are going to default to the slower speeds so being able to disable them to force it to use the higher rates will give a huge speed up. Being able to set this is probably the most important criterion for a multicast AP. As an example, in modern versions of DD-WRT, this can be set using the "wl rateset" command on the command line. It sure is well hidden and most firmware doesn't allow this to be set.

Related Topic