Inconsistent ping with OpenWRT 19.07

I have an Archer C50 from TP-Link. I flashed OpenWRT 19.07-SNAPSHOT with kernel version 4.14.133.

My ping between two computers, locally over the 5Ghz Radio is really high and inconsistent.

PING 192.168.1.242 (192.168.1.242) 56(84) bytes of data.
64 bytes from 192.168.1.242: icmp_seq=1 ttl=64 time=147 ms
64 bytes from 192.168.1.242: icmp_seq=2 ttl=64 time=140 ms
64 bytes from 192.168.1.242: icmp_seq=3 ttl=64 time=185 ms
64 bytes from 192.168.1.242: icmp_seq=4 ttl=64 time=2.30 ms
64 bytes from 192.168.1.242: icmp_seq=5 ttl=64 time=2.61 ms
64 bytes from 192.168.1.242: icmp_seq=6 ttl=64 time=57.0 ms
64 bytes from 192.168.1.242: icmp_seq=7 ttl=64 time=101 ms
64 bytes from 192.168.1.242: icmp_seq=8 ttl=64 time=150 ms
64 bytes from 192.168.1.242: icmp_seq=9 ttl=64 time=860 ms
64 bytes from 192.168.1.242: icmp_seq=10 ttl=64 time=775 ms
64 bytes from 192.168.1.242: icmp_seq=11 ttl=64 time=308 ms
64 bytes from 192.168.1.242: icmp_seq=12 ttl=64 time=342 ms
64 bytes from 192.168.1.242: icmp_seq=13 ttl=64 time=45.3 ms
64 bytes from 192.168.1.242: icmp_seq=14 ttl=64 time=139 ms
64 bytes from 192.168.1.242: icmp_seq=15 ttl=64 time=2.51 ms
64 bytes from 192.168.1.242: icmp_seq=16 ttl=64 time=1.95 ms
64 bytes from 192.168.1.242: icmp_seq=17 ttl=64 time=3.02 ms
64 bytes from 192.168.1.242: icmp_seq=18 ttl=64 time=28.4 ms
64 bytes from 192.168.1.242: icmp_seq=19 ttl=64 time=2.03 ms
64 bytes from 192.168.1.242: icmp_seq=20 ttl=64 time=2.72 ms
64 bytes from 192.168.1.242: icmp_seq=21 ttl=64 time=2.04 ms
64 bytes from 192.168.1.242: icmp_seq=22 ttl=64 time=34.6 ms
64 bytes from 192.168.1.242: icmp_seq=23 ttl=64 time=81.1 ms
64 bytes from 192.168.1.242: icmp_seq=24 ttl=64 time=125 ms
64 bytes from 192.168.1.242: icmp_seq=25 ttl=64 time=77.8 ms
64 bytes from 192.168.1.242: icmp_seq=26 ttl=64 time=265 ms
64 bytes from 192.168.1.242: icmp_seq=27 ttl=64 time=14.0 ms
^C
--- 192.168.1.242 ping statistics ---
27 packets transmitted, 27 received, 0% packet loss, time 26044ms
rtt min/avg/max/mdev = 1.959/144.507/860.400/213.025 ms

The 5Ghz WiFi radio is a MediaTek MT76x2E 802.11ac. This is for a robotics project so we need the latency to be less than 20ms (at the bare minimum).

There are only 2 devices connected to the router, with no WAN cable plugged in, and device 1 is pinging device 2. There is no load on the network other than the 56 byte packet used to ping.

Is there anyway to improve the latency on the local network? Any help will be greatly appreciated.

Thanks in advance!

  • Use a current release
  • No load... have you verified layer 1 contention?
  • If symptoms persist after resolving the two items above ... paste a ping trace on stock firmware

Tried a current release, to no avail. AFAIK there is no layer 1 contention but I am not sure how to verify.
Here is a trace-route on stock firmware:

akhil@komputer:~/$ traceroute -q 10 192.168.0.39
traceroute to 192.168.0.39 (192.168.0.39), 30 hops max, 60 byte packets
 1  AkhilsOldMacbook.hitronhub.home (192.168.0.39)  265.695 ms  265.592 ms  265.536 ms  265.477 ms  266.472 ms  266.438 ms * * * *
akhil@komputer:~/ $ traceroute -q 10 192.168.0.39
traceroute to 192.168.0.39 (192.168.0.39), 30 hops max, 60 byte packets
 1  AkhilsOldMacbook.hitronhub.home (192.168.0.39)  70.522 ms  70.438 ms * * * * * * * *
akhil@komputer:~/ $ traceroute -q 10 192.168.0.39
traceroute to 192.168.0.39 (192.168.0.39), 30 hops max, 60 byte packets
 1  AkhilsOldMacbook.hitronhub.home (192.168.0.39)  106.205 ms * * * * * * * * *
akhil@komputer:~/ $ traceroute -q 10 192.168.0.39
traceroute to 192.168.0.39 (192.168.0.39), 30 hops max, 60 byte packets
 1  AkhilsOldMacbook.hitronhub.home (192.168.0.39)  48.048 ms * * * * * * * * *
akhil@komputer:~/$ traceroute -q 10 192.168.0.39
traceroute to 192.168.0.39 (192.168.0.39), 30 hops max, 60 byte packets
 1  AkhilsOldMacbook.hitronhub.home (192.168.0.39)  26.014 ms * * * * * * * * *
akhil@komputer:~/ $ traceroute -q 10 192.168.0.39
traceroute to 192.168.0.39 (192.168.0.39), 30 hops max, 60 byte packets
 1  AkhilsOldMacbook.hitronhub.home (192.168.0.39)  5.597 ms * * * * * * * * *
akhil@komputer:~/$ traceroute -q 10 192.168.0.39
traceroute to 192.168.0.39 (192.168.0.39), 30 hops max, 60 byte packets
 1  AkhilsOldMacbook.hitronhub.home (192.168.0.39)  6.893 ms * * * * * * * * *
akhil@komputer:~/$ traceroute -q 10 192.168.0.39
traceroute to 192.168.0.39 (192.168.0.39), 30 hops max, 60 byte packets
 1  AkhilsOldMacbook.hitronhub.home (192.168.0.39)  16.534 ms * * * * * * * * *
akhil@komputer:~/$ traceroute -q 10 192.168.0.39
traceroute to 192.168.0.39 (192.168.0.39), 30 hops max, 60 byte packets
 1  AkhilsOldMacbook.hitronhub.home (192.168.0.39)  58.549 ms * * * * * * * * *
akhil@komputer:~/$ traceroute -q 10 192.168.0.39
traceroute to 192.168.0.39 (192.168.0.39), 30 hops max, 60 byte packets

Thank you for the response