I have a built-in device (source) that sends a stream of (audio) data in pieces of 20 ms (= about 330 bytes) using UDP packets. Thus, the network volume is quite low - about 16 Kbps (almost a bit due to the overhead of UDP / IP). The device launches the lwIP stack (v1.3.2) and connects to the WiFi network using the Wi-Fi solution from H & D Wireless (HDG104, WiFi G-mode). The destination (receiver) is a Windows Vista PC that is also connected to the Wi-Fi network using a USB-WiFi dongle (WiFi G-mode). A program is running on the PC that allows me to track the number of dropped packets. I also run Wireshark to directly analyze network traffic. Currently, no other clients are actively sending data over the network.
When I send data using broadcast or multicast, many packets are discarded, sometimes up to 15%. However, when I switch to using UDP unicast, the number of dropped packets is negligible (<2%).
Using UDP, I expect the packets to be removed (which is normal in my audio application), but why do I see such a big difference in performance between broadcast / multicast and unicast?
My router is WRT54GS (FW v7.50.2), and the PC (receiver) uses the TEW-648UB network adapter with a trend network operating in G-WiFi mode.
source share