Quick, take a guess, what's the first hop latency to your home wireless router?
Below 1ms, right? Yeah, you wish!
Below are results from a quick test on my home router (Linksys E1550). Some lessons learned:
- 3-8ms median
- very different latency tails on different channels (1,6,11)
- running in mixed mode helps tame the long tails (do it, if you can)
- all tests on 2.4Ghz, unfortunately E1550 can't do 5Ghz
- for whatever reason, lots of "phantom" devices seem to like channel 11
Started with channel 6, mixed mode. Now running on channel 1, with N-only.. 2x difference for 90 percentile, and 1ms shaved off the median. Of course, these settings will change as different devices come online...
P.S. Rough methodology: ping 192.168.1.1 (5 minutes worth) | grep | cut | massage | R > results.gist
Here's an example methodology. It's pretty basic compared to Ilya's setup, but can hopefully get you started.
A one-liner that teases out and prints the latency measurements unbuffered to stdout:
If you've dumped this output in a file (say,
/tmp/latency.txt
), you can generate histograms in an R console:You can fiddle with the
breaks
parameter tohist()
in order to vary the number of buckets in your histogram: