Just out of curisosity, I naively tried to increase the amount of data sent per second (x4). Unfortunately it didn't go too well. Here is an example of catastrophic result :)
|Weird increase of latency on the reception side|
|And after few seconds the latency reduces|
|It's not always broken! Here's a pretty acceptable transmission|
Amongst the things that might be worth looking into:
- The MTU
- The way I create the 2-machines WIFI network (I've been using Connectify so far). Maybe I could try an adhoc network
- Nagle's algorithm. It's supposed to be TCP only, but this weird increase/decrease latency phenomenon looks a bit like an algorithm is trying to do something clever.
- Network settings/parameters at the OS level on Windows and Linux
- Or to simplify things a lot: using identical hardware and OS on both sides
I'll investigate that later and try to cover it in another article. If anyone's got advice on the matter, please let me know!