New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
High ping on WRT1900ACS #74
Comments
Thank god, i thought i was the only one experiencing this..... I'm experiencing the same issue (high latency when connected via WiFi) with clients running Linux Kernel 4.5 and newer and Windows-10, in combination with Intel Wireless-AC 7265 and and Intel AC 8260. I'm not seeing high latency when using my Netgear R7000 so it isn't my internet connection that is at fault. |
My client: Win 7 Pro, Broadcom BCM94352HMB (AW-CE123H). |
Hi, |
Been seeing long ping times with the WRT1900ACv1 on one of my Apple clients on every version of the wireless driver that I've used, maybe even before 10.3.0.12, including on 10.3.0.17. The internet ping time on my Apple iPad Air 2 is more than double the time that I see on other routers (37ms. versus <=15ms. on other routers). And now I'm also getting the same ballpark long ping time on my Nexus 6P phone. This is very frustrating, especially since I don't see this on the stock Linksys firmware. I'm glad to see it finally being reported and discussed. Love to see this finally get fixed. |
The issue in my opinion is related to AMPDU priorities. For some reason the driver is treating everything as low priority traffic (best effort). |
If you have linux, you can try different ToS values with ping using the -Q parameter. |
Hi, root@debian:~# ping 192.168.1.100 -c 10 --- 192.168.1.100 ping statistics --- --- 192.168.1.100 ping statistics --- |
This issue will be enhanced for next release. |
It is related to AMSDU. |
Another sample to router from physical machine: --- 192.168.1.1 ping statistics --- --- 192.168.1.1 ping statistics --- |
@yuhhaurlin |
However, this issue will not affect throughput. |
Yes it does not affect throughput, but it affects latency and that is a problem when you're making voice calls, playing games and doing other stuff that is heavy reliant on latency. |
The problem is that if traffic is not heavy and AMSDU is on. AMSDU packets must wait for flush function to send them out. |
Basically, this issue will only affect single ping. However, I will enhance it on next release. |
The interesting thing is that it is not obeying the setting on the parameter in the wireless adapter advanced settings - U-APSD Support. It does not matter if I set it to disabled. |
@yuhhaurlin it is not affecting only ping .... RDP, Voice, PCoIP and others are affected as well. For example if I disable WMM I get PCoIP latency of <2ms. With it enabled it is above 20ms. |
Flush function is called around 10ms, the minimum sample interval of CODEC is 10ms. I think the driver should be all right for VoIP application. |
BTW, only AMSDU will affect ping latency. AMPDU will not. |
I am not sure ... I mean, I am just guessing about the protocol responsible for the latency. My observations on the other side are correct. When is the new driver expected to arrive? |
I think running with 10.3.0.17-20160520, this problem should be gone. |
I never have really experienced the issue, But gave the newest commit some quick testing: Very first ping to router via 5ghz: Ping statistics for 192.168.1.1: so that is not good. Pinging www.google.com [74.125.136.105] with 32 bytes of data: thats really nice. retried the router: that looks a lot better. Pinging the router stayed fast after that. only thing i observe is that the initial ping is slow after a longer pause (5min) between the ping tries; Roughly the same with pinging the router, there i see initial pings going up to 10/11 msec. (if pause using the wifi for a minute or 5) [edit] copied the wrong info here and there, corrected it now |
Thanks. I will close this one. |
How can you close this issue when the person that emaled said that "I never Thanks. -Roger On Fri, May 20, 2016 at 5:16 PM, yuhhaurlin notifications@github.com
|
Thanks. Reopen it. |
Thank you very much! -Roger On Fri, May 20, 2016 at 6:22 PM, yuhhaurlin notifications@github.com
|
I agree with MrDoh. Thanks for reopening it. Am looking forward to the new driver. |
Does anyone still get high ping Times for the latest driver? |
I guess, disabling AMSDU won't help then, since ping is much higher than mentioned added latency of 10ms, up to 30-50ms. Is there any debug info I can provide for you, you're welcome! |
No need to debug. If there is no traffic, BA stream will be tear down. If application is running. flushing of AMSDU won't take action. I suggest you disable power save of client, the ping won't be so high. If application is running, client won't enter power save mode. |
Powersaving is disabled, of course. I tried several clients, intel 7265, 8265, and atheros on 2.4. All the same. |
Can you cat /sys/kernel/debug/ieee80211/phy0 or phy1/mwlwifi/ampdu to see if AMPDU is established? |
Both read 0. |
If this is the case, it means there is no BA stream established. In fact, if traffic is pretty low with client, BA stream will be removed. I think your problem does not due to AMSDU (AMSDU must run on AMDPU, that means BA stream must be established). If you ping to router, the response time should be quick. |
@ONjAXX if WMM is still disabled there will be no ba stream. it must be enabled for testing |
WMM is enabled. I did clean Lede install with latest mwlwifi |
A am sorry, I posted wrong data: |
Yes, WMM must enable. BA streams of 88W8864 are limited. If traffic with a client is low, BA stream will be removed. 88W8964 has no this mechanism, it can support full BA streams for all TIDs of all associated stations. |
Did you have traffic with this client? If you stop traffic and only ping out, the BA stream will be removed. That is, if BA stream is established, it means traffic running with client, there should be no need to flush AMSDU if traffic is running. |
Yes, once I stop the youtube stream, BA stream is getting removed (cat reads nothing) and ping backs to 1ms. That means, that my problem is indeed AMSDU? Can you point me out please, how can I safely disable it (maybe in sources) to test the latency and possible harm to bandwidth? In my case latency is much more critical. Thanks a lot! |
Maybe there's some threshold when this technology kicks in to play with, without fully disabling? |
I am just curious: what kind of application that you encounter problems? |
All right, I think I will add debug file to control AMPDU and AMSDU. But it will be done later. 88W8964 has higher priority. Thanks. |
Basically everything reads higher pings, like online gaming, where I cleary see 90-100ms with added jerkines versus sub 50 ms on stock fw. This is not a placebo. When the most critical path (lan) is delayed, everything will be a bit slower. Thank you for considering adding a tune! |
One addition: I also notice packet drops when AMSDU kicks in: |
Ok, I recompiled with Ping is OK now (~1-3ms), same as stock. WAN throughput is unaffected on 50mbit channel, will check LAN throughput and report back. edit: WLAN speed is also seems the same. I will keep this config. |
Thanks. I will check it later. |
@yuhhaurlin, I notice the same thing here on my WRT1200AC as @ONjAXX reported. Using 5GHz (didn't try 2.4), when pinging router with nothing else running, ping is fine (1-3ms). But simply reloading a webpage, or watching a youtube video causes pings to go to the 20-40ms range, with some packet loss as well. Basically, whenever the output of cat /sys/kernel/debug/ieee80211/phy0/mwlwifi/ampdu is blank, pings are normal, but whenever there is activity and cat /sys/kernel/debug/ieee80211/phy0/mwlwifi/ampdu has output, pings go to the 20-40ms range (with occasional packet loss). I am using the very latest version of mwlwifi with all the latest commits baked in on @davidc502's latest build of LEDE. Thanks! |
I hope this issue wasn't forgotten, maybe it is worth getting it reopen? |
Wow, I'm not sure if it's related but since I switched to a wrt1900acs v2 gaming on my wifi is not possible anymore, goes up to 70. Also while playing rocket league I notice lots of lag spikes. And i'm also using @ @davidc502's latest build of lede. I also notice while reloading a webpage or anything else that generates a bit of load the latency goes up to around 300 now and then. For the info only one device is connected to the 5ghz band. |
@Toetje585 You may recompile the driver with AMSDU disabled:
I run such config while waiting for the proper solution. |
@ONjAXX Ohh boy, Never did compile a thing, might need to read a bit about it and try it. Thanks for all the info! |
@ONjAXX, how exactly do you compile the driver with:
When I look at the mac802.11c file, I see:
This shows it already set to false and all other references to amsdu are also already set to false in the mac80211.c file. What am I missing here? |
@yuhhaurlin, could you please revisit this issue? |
@starcms Line 733 |
@ONjAXX thanks so much! The fix works perfectly on my 1200AC! Any news if @yuhhaurlin will look into amsdu and find the actual problem? |
Two days ago, I bought this device, and flashed firmware (first test OpenWRT 15.05.1, next probe http://personalpages.tds.net/~davidc502/mvebu/Kernel4.4.6/4.4WNandPatchShelby/openwrt-mvebu-armada-385-linksys-shelby-squashfs-factory.img). I Tried 2Ghz & 5Ghz everywhere high ping (12-30ms+), to router and all connected to router devices and internet. Distance from the laptop to the router 3 meters, no walls.
From time to time the device reboots itself. Speed on 5Gnz falls from 320Mbit/s to 64Mbit/s on copy file from NAS (but Wifi speed 866.5Mbit/s).
-55 dbm -89 dbm 234.0 Mbit/s, MCS 0, 20Mhz 866.7 Mbit/s, MCS 0, 20MHz
I am find identical problem https://dev.openwrt.org/ticket/22130
Previous router flashed by OpenWRT RB2011UAS-2HnD-IN there were no problems? ping smolest 1 ms.
The text was updated successfully, but these errors were encountered: