4 ms·
If your WiFi connection adds 30-50ms of average latency you seriously need to stop living in a microwave oven or upgrade to something after 802.11b. With an In
by vel0city 4y ago
If your WiFi connection adds 30-50ms of average latency you seriously need to stop living in a microwave oven or upgrade to something after 802.11b.
With an Intel AX201 WiFi chip connecting to a UniFi6 Lite my average latency is 1ms to the router.
Even a cheap and somewhat compromised WiFi chipset/antenna can do way better than 30-50ms latency. Here's an original Pi Zero W connecting through the same AP hitting the local router:
64 packets transmitted, 64 received, 0% packet loss, time 156ms
rtt min/avg/max/mdev = 2.293/6.699/63.116/7.364 ms
This is while I've got streaming music playing on my phone on WiFi connected to Bluetooth headphones, streaming video on the WiFi TV, and other wireless network traffic happening.
- jimmydorry 4y ago>64 packets transmitted, 64 received, 0% packet loss, time 156ms rtt min/avg/max/mdev = 2.293/6.699/63.116/7.364 ms A 63ms delay on some packets can totally ruin the user experience even if the average is relatively low... and this is the best a near-optimal (in the real world) setup can do. If you left your test running longer than 64 packets, I'm sure you would see at least a 100ms max. GP wasn't far-off with their assertion that running on WiFi can easily add 30-50ms of latency. Their wording was a bit loose though.
- vel0city 4y agoThat 63ms packet was one packet. It's way out of the standard deviation. You don't point to the max and state that's the typical experience of the network. If we only looked at max values then Amazon isn't 2 day shipping it's like 1 month because some delivery sometime took that long, even though like 95% of deliveries are within two days (just an example, don't know what their actual rates are) And on top of that, that's with an extremely cheap chip with a compromised antenna inside a network closet with a TCXO literally right on top of the antenna running on 2.4FHz. My 5GHz example with a nice AX chip and decent laptop lid edge antenna never experienced any pings higher than 1ms.
- josefx 4y ago> You don't point to the max and state that's the typical experience of the network. The test uses 64 packages which is a tiny sample size for streaming use. If we blindly scale that up you would hit the max several dozen times per minute. > If we only looked at max values then Amazon isn't 2 day shipping it's like 1 A better example: Imagine your tongue just stops moving once every minute and then tries to catch up with what you where doing, imagine this will happen for the next two months. It is just a minor annoyance, right?
- wtallis 4y agoA relevant ping test should also be sending packets far more often than once per second (more like once per frame at a minimum), and should be sending larger packets than the default for ping.
- vel0city 4y agoHere you go, 1 thousand byte payload ping sent every 0.02 seconds on my Pi Zero W. ping -i 0.02 -s 1400 router.home.lan . . . lots of pings . . . 6203 packets transmitted, 6203 received, 0% packet loss, time 128938ms rtt min/avg/max/mdev = 2.023/3.397/43.075/1.785 ms, pipe 2 The previous ping had the Zero W way overloaded, I realized that after. Single core running with a load average of 2.8, still managed to be decently interactive and have the previous pings. This ping was happening while having 1 minute load average of 1.2. So only kind of overloaded ;) This kind of latency is achievable on a $10 board with only 2.4GHz Wireless N. Suggesting WiFi adds 50ms latency on average is extreme hyperbole.
- jimmydorry 4y agoAgain, max ping of 43ms. The worst kind of latency is the unpredictable kind that can't be compensated for. The reaction speed of a casual gamer will be somewhere near 180-250ms. If we take the upper bound, occasionally the casual gamer's input will take 17.2% longer to register.
- NavinF 4y ago> 64 packets transmitted, 64 received, 0% packet loss, time 156ms rtt min/avg/max/mdev = 2.293/6.699/63.116/7.364 ms So if a video frame consists of 64 packets, the whole frame will be delayed by 63.1ms. Yes there are ways around this (FEC), but getting 1ms 99%ile latency over wifi IRL is nontrivial. Btw fat-client PCs have much smaller latency spikes, but even those spikes are noticable and make games feel jittery. That's why we compare GPUs based on "1% lows" instead of average FPS. Also see frame pacing.
- deleted 4y ago[deleted]
- Dylan16807 4y ago> Yes there are ways around this (FEC), but getting 1ms 99%ile latency over wifi IRL is nontrivial. Streaming video is extremely nontrivial to start with. Use FEC when necessary. Also I just threw a thousand 1400B packets over my wifi and 99% was something like 5ms, max 10ms. 5ms is close enough for me, and I could probably hit 2ms with light effort.
- NavinF 4y agoNaw, streaming video is trivial if you have a 1 second latency budget so you can use LL-DASH and CMAF. We hit that target with <100 hours of dev work on a co-watching/cloud-streaming project with only 2 PoPs in the US. WebRTC FEC is a relatively modern and wasn't on the table in 2020. Btw you almost certainly tested on an unloaded connection so you're not seeing any HOL blocking like a real video stream would. Try playing a 20mbps YouTube video in the background while you ping. Oh and turn on a microwave oven when you're 3 walls (a room and a hallway) away from the AP for extra hilarity on the order of 80ms
- Dylan16807 4y agoI meant game control video. You don't get a second of buffer for the player. And you don't need to use webrtc, or you can add your own FEC on top for your client software. And yes a 4k YouTube video makes it worse but "don't do that" is a valid response and realtime video won't be so bursty. I can get a very nice ping while more stable bandwidth hogs are running. Microwave is also "don't do that".
- otabdeveloper4 4y agoYou probably live in the literal woods. Over here in the urbanized world it's a whole different world of pain.
- vel0city 4y agoI live in one of the top ten largest cities in the US. 5GHz doesn't go that far through walls. I live walking distance to a train to take me to an airport non stop around the world. Try again.