We are using a wifi-enabled device that receives a stream of UDP packets (30 per second). It is very important for us to receive these messages without lag, that's why we are using UDP and not TCP connections.
We notice that after some time many routers will start buffering these packets, creating a noticeable delay. When such routers are rebooted, the delay ceases, and starts building over time again.
We found out one router that have these settings that when deactivating them the lagging disappears:
- Wifi Professional Settings:
- Enable TX Bursting: Disable
- Enable Packet Aggregation: Disable
Is this something usual? I suspect that we are doing something wrong because other UDP applications don't have this type of problem. Is there any way I can force routers that don't expose this settings to not buffer UDP messages and just drop the ones that they can't deliver, by changing something in the protocol?
I'll appreciate any directions on how to learn more about this issue.