Sudden very high latency between laptop and router in wifi

Hello everybody,

The problem almost always occurs when I’m watching youtube (idw why but I didn’t notice that with other bandwidth-intensive tasks). My network works just fine and suddenly crashes for tens of seconds and sometimes minutes. I have a high ping (>10.000ms with both 1.1.1.1 and my router) and I’m not able to load any web page.

I’ve performed some tests to narrow down the issue:

  • The issue does not occur with other devices on Windows or MacOS
  • When I experiencing high latency, other devices have normal ping time with the router
  • The issue does not seem to occur when connected in ethernet

Thank you for your help!

lspci -k:

[...]
02:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter (rev 32)
	Subsystem: Rivet Networks Killer 1435 Wireless-AC
	Kernel driver in use: ath10k_pci
	Kernel modules: ath10k_pci
[...]

inxi:

System:
  Kernel: 5.14.0-0-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.14-x86_64 
  root=UUID=13ccbe19-229b-4d29-a2ce-fa622e2868db rw quiet udev.log_priority=3 
  resume=/dev/disk/by-uuid/13ccbe19-229b-4d29-a2ce-fa622e2868db 
  resume_offset=7217152 
  Desktop: Xfce 4.16.0 tk: Gtk 3.24.29 info: xfce4-panel wm: xfwm 4.16.1 vt: 7 
  dm: LightDM 1.30.0 Distro: Manjaro Linux base: Arch Linux 
Machine:
  Type: Laptop System: Dell product: XPS 13 9370 v: N/A serial: <filter> 
  Chassis: type: 10 serial: <filter> 
  Mobo: Dell model: 0VM1FG v: A00 serial: <filter> UEFI: Dell v: 1.5.1 
  date: 08/09/2018 
Battery:
  ID-1: BAT0 charge: 44.9 Wh (100.0%) condition: 44.9/52.0 Wh (86.3%) 
  volts: 8.7 min: 7.6 model: SMP DELL G8VCF6C type: Li-poly serial: <filter> 
  status: Full 
  Device-1: hidpp_battery_2 model: Logitech ERGO M575 Trackball 
  serial: <filter> charge: 100% rechargeable: yes status: Discharging 
Memory:
  RAM: total: 7.49 GiB used: 3.25 GiB (43.4%) 
  RAM Report: permissions: Unable to run dmidecode. Root privileges required. 
CPU:
  Info: Quad Core model: Intel Core i5-8250U bits: 64 type: MT MCP 
  arch: Kaby Lake note: check family: 6 model-id: 8E (142) stepping: A (10) 
  microcode: EA cache: L2: 6 MiB bogomips: 28808 
  Speed: 781 MHz min/max: 400/3400 MHz Core speeds (MHz): 1: 781 2: 1980 
  3: 1354 4: 800 5: 800 6: 800 7: 800 8: 800 
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat arch_perfmon art 
  avx avx2 bmi1 bmi2 bts clflush clflushopt cmov constant_tsc cpuid 
  cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts epb ept ept_ad erms est 
  f16c flexpriority flush_l1d fma fpu fsgsbase fxsr ht hwp hwp_act_window 
  hwp_epp hwp_notify ibpb ibrs ida intel_pt invpcid invpcid_single lahf_lm lm 
  mca mce md_clear mmx monitor movbe mpx msr mtrr nonstop_tsc nopl nx pae pat 
  pbe pcid pclmulqdq pdcm pdpe1gb pebs pge pln pni popcnt pse pse36 pti pts 
  rdrand rdseed rdtscp rep_good sdbg sep sgx smap smep ss ssbd sse sse2 sse4_1 
  sse4_2 ssse3 stibp syscall tm tm2 tpr_shadow tsc tsc_adjust 
  tsc_deadline_timer vme vmx vnmi vpid x2apic xgetbv1 xsave xsavec xsaveopt 
  xsaves xtopology xtpr 
  Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
  Type: l1tf 
  mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable 
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
  Type: meltdown mitigation: PTI 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, 
  IBRS_FW, STIBP: conditional, RSB filling 
  Type: srbds mitigation: Microcode 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: Intel UHD Graphics 620 vendor: Dell driver: i915 v: kernel 
  bus-ID: 00:02.0 chip-ID: 8086:5917 class-ID: 0300 
  Device-2: Realtek Integrated_Webcam_HD type: USB driver: uvcvideo 
  bus-ID: 1-5:2 chip-ID: 0bda:58f4 class-ID: 0e02 serial: <filter> 
  Display: x11 server: X.Org 1.20.13 compositor: xfwm4 v: 4.16.1 driver: 
  loaded: modesetting alternate: fbdev,vesa display-ID: :0.0 screens: 1 
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2") 
  s-diag: 582mm (22.9") 
  Monitor-1: DP-1-3 res: 1920x1080 hz: 60 dpi: 93 size: 527x296mm (20.7x11.7") 
  diag: 604mm (23.8") 
  OpenGL: renderer: Mesa Intel UHD Graphics 620 (KBL GT2) v: 4.6 Mesa 21.2.1 
  direct render: Yes 
Audio:
  Device-1: Intel Sunrise Point-LP HD Audio vendor: Dell driver: snd_hda_intel 
  v: kernel alternate: snd_soc_skl bus-ID: 00:1f.3 chip-ID: 8086:9d71 
  class-ID: 0403 
  Device-2: Realtek USB Audio type: USB driver: snd-usb-audio 
  bus-ID: 3-1.3.4:7 chip-ID: 0bda:402e class-ID: 0102 serial: <filter> 
  Sound Server-1: ALSA v: k5.14.0-0-MANJARO running: yes 
  Sound Server-2: JACK v: 1.9.19 running: no 
  Sound Server-3: PulseAudio v: 15.0 running: yes 
  Sound Server-4: PipeWire v: 0.3.34 running: yes 
Network:
  Device-1: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter 
  vendor: Rivet Networks Killer 1435 Wireless-AC driver: ath10k_pci v: kernel 
  port: f040 bus-ID: 02:00.0 chip-ID: 168c:003e class-ID: 0280 
  IF: wlp2s0 state: up mac: <filter> 
  IP v4: <filter> type: dynamic noprefixroute scope: global 
  broadcast: <filter> 
  IP v6: <filter> type: noprefixroute scope: link 
  Device-2: Realtek RTL8153 Gigabit Ethernet Adapter type: USB driver: r8152 
  bus-ID: 4-1.4:4 chip-ID: 0bda:8153 class-ID: 0000 serial: <filter> 
  IF: enp57s0u1u4 state: down mac: <filter> 
  WAN IP: <filter> 
Bluetooth:
  Device-1: Foxconn / Hon Hai type: USB driver: btusb v: 0.8 bus-ID: 1-7:3 
  chip-ID: 0489:e0a2 class-ID: e001 
  Report: rfkill ID: hci0 rfk-id: 2 state: up address: see --recommends 
Logical:
  Message: No logical block device data found. 
RAID:
  Message: No RAID data found. 
Drives:
  Local Storage: total: 297.95 GiB used: 84.22 GiB (28.3%) 
  SMART Message: Required tool smartctl not installed. Check --recommends 
  ID-1: /dev/mmcblk0 maj-min: 179:0 vendor: SanDisk model: SL64G 
  size: 59.48 GiB block-size: physical: 512 B logical: 512 B type: SSD 
  serial: <filter> scheme: MBR 
  ID-2: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: PM981 NVMe 256GB 
  size: 238.47 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s 
  lanes: 4 type: SSD serial: <filter> rev: EXD71D1Q temp: 42.9 C scheme: GPT 
  Message: No optical or floppy data found. 
Partition:
  ID-1: / raw-size: 97.95 GiB size: 95.86 GiB (97.86%) used: 84.22 GiB (87.9%) 
  fs: ext4 dev: /dev/nvme0n1p3 maj-min: 259:3 label: N/A 
  uuid: 13ccbe19-229b-4d29-a2ce-fa622e2868db 
  ID-2: /boot/efi raw-size: 512 MiB size: 511 MiB (99.80%) 
  used: 6.8 MiB (1.3%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1 label: N/A 
  uuid: C3FA-926B 
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default) 
  ID-1: swap-1 type: file size: 11 GiB used: 130.8 MiB (1.2%) priority: -2 
  file: /swapfile 
Unmounted:
  ID-1: /dev/mmcblk0p1 maj-min: 179:1 size: 256 MiB fs: vfat label: boot 
  uuid: EBBA-157F 
  ID-2: /dev/mmcblk0p2 maj-min: 179:2 size: 59.22 GiB fs: ext4 label: rootfs 
  uuid: b3ce35cd-ade9-4755-a4bb-1571e37fc1b9 
  ID-3: /dev/nvme0n1p2 maj-min: 259:2 size: 58.81 GiB fs: ext4 label: N/A 
  uuid: ddb6bb55-105b-4e99-a105-17271ab923d0 
USB:
  Hub-1: 1-0:1 info: Full speed (or root) Hub ports: 12 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Device-1: 1-5:2 info: Realtek Integrated_Webcam_HD type: Video 
  driver: uvcvideo interfaces: 4 rev: 2.0 speed: 480 Mb/s power: 500mA 
  chip-ID: 0bda:58f4 class-ID: 0e02 serial: <filter> 
  Device-2: 1-7:3 info: Foxconn / Hon Hai type: Bluetooth driver: btusb 
  interfaces: 2 rev: 1.1 speed: 12 Mb/s power: 100mA chip-ID: 0489:e0a2 
  class-ID: e001 
  Device-3: 1-10:4 info: Shenzhen Goodix Fingerprint Reader 
  type: Abstract (modem),CDC-Data driver: cdc_acm interfaces: 2 rev: 2.0 
  speed: 12 Mb/s power: 100mA chip-ID: 27c6:5385 class-ID: 0a00 
  serial: <filter> 
  Hub-2: 2-0:1 info: Full speed (or root) Hub ports: 6 rev: 3.0 speed: 5 Gb/s 
  chip-ID: 1d6b:0003 class-ID: 0900 
  Hub-3: 3-0:1 info: Full speed (or root) Hub ports: 2 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Hub-4: 3-1:2 info: Realtek Dell dock ports: 5 rev: 2.1 speed: 480 Mb/s 
  chip-ID: 0bda:5487 class-ID: 0900 
  Hub-5: 3-1.3:3 info: Realtek Dell dock ports: 6 rev: 2.1 speed: 480 Mb/s 
  chip-ID: 0bda:5413 class-ID: 0900 
  Device-1: 3-1.3.2:5 info: Logitech Unifying Receiver 
  type: Keyboard,Mouse,HID driver: logitech-djreceiver,usbhid interfaces: 3 
  rev: 2.0 speed: 12 Mb/s power: 98mA chip-ID: 046d:c52b class-ID: 0300 
  Device-2: 3-1.3.3:6 info: Dell Dell Universal Receiver 
  type: Keyboard,Mouse,HID driver: hid-generic,usbhid interfaces: 3 rev: 2.0 
  speed: 12 Mb/s power: 100mA chip-ID: 413c:8505 class-ID: 0300 
  Device-3: 3-1.3.4:7 info: Realtek USB Audio type: Audio 
  driver: snd-usb-audio interfaces: 4 rev: 2.0 speed: 480 Mb/s power: 500mA 
  chip-ID: 0bda:402e class-ID: 0102 serial: <filter> 
  Device-4: 3-1.3.5:8 info: Dell Dell dock type: HID 
  driver: hid-generic,usbhid interfaces: 1 rev: 2.0 speed: 480 Mb/s 
  power: 100mA chip-ID: 413c:b06f class-ID: 0300 
  Device-5: 3-1.5:4 info: Dell Dell dock type: HID driver: hid-generic,usbhid 
  interfaces: 1 rev: 2.0 speed: 480 Mb/s power: 100mA chip-ID: 413c:b06e 
  class-ID: 0300 
  Hub-6: 4-0:1 info: Full speed (or root) Hub ports: 2 rev: 3.1 speed: 10 Gb/s 
  chip-ID: 1d6b:0003 class-ID: 0900 
  Hub-7: 4-1:2 info: Realtek Dell dock ports: 4 rev: 3.1 speed: 10 Gb/s 
  chip-ID: 0bda:0487 class-ID: 0900 
  Hub-8: 4-1.3:3 info: Realtek Dell dock ports: 4 rev: 3.1 speed: 5 Gb/s 
  chip-ID: 0bda:0413 class-ID: 0900 
  Device-1: 4-1.4:4 info: Realtek RTL8153 Gigabit Ethernet Adapter 
  type: Network driver: r8152 interfaces: 1 rev: 3.0 speed: 5 Gb/s 
  power: 288mA chip-ID: 0bda:8153 class-ID: 0000 serial: <filter> 
Sensors:
  System Temperatures: cpu: 49.0 C mobo: 40.0 C sodimm: SODIMM C 
  Fan Speeds (RPM): cpu: 0 
Info:
  Processes: 245 Uptime: 5h 56m wakeups: 665 Init: systemd v: 248 
  tool: systemctl Compilers: gcc: 11.1.0 Packages: 1405 pacman: 1398 lib: 356 
  flatpak: 4 snap: 3 Shell: Bash v: 5.1.8 running-in: gnome-terminal 
  inxi: 3.3.06 

Did you try another kernel?

1 Like

Yes, I also tried with the 5.12.19-1

5.12 kernel is EOL. Please try with one of the LTS kernels, 5.10 or 5.4.

1 Like

Try switching nameserver to your providers DNS - Cloudflare is sometimes unreliable.

What causes this - I have wondered myself - never found an answer though.

Cloudflare boast of the fastest DNS - but mine is faster :slight_smile: maybe not - running locally on a RPI using bind querying only root-servers.

Thank you for trying to help. I just tested with LTS 5.10.61-1 → same problem.

Hi Arrhus,
I don’t think this is a DNS problem as the latency occurs between my laptop and router in my internal network (ping are perform with the actual IPs). Nevertheless, I tried to use Google’s public DNS service it does not fix the issue.
Thanks!

It is impossible to troubleshoot such issue in a forum. It could be anything but if it were my network - I would most certainly reset the router.

When it is an issue with different kernels - and not a nameserver issue - I suspect

Perhaps using a vpn or a proxy?

Which Google usually detects and stop answering - become a black hole so to speak.

  • I restart my router several times (I don’t want to reset factory settings because I have some special services running)
  • I don’t use VPN or proxy

However, a switch to a 5 GHZ wifi (vs. 2.4 GHz from the same router) seems to solve the issue.
The 5 GHz network runs on a/n/ac protocols whereas the 2.4 GHz one only allows b/g/n.
I don’t have any clue why the later cause this latency issue

Like @linux-aarhus already said: without having extremely detailed information about your network (router brand / model / firmware version / config / …) it’s very unlikely we will be able to diagnose your problem.

As you seem to have found a workaround, (5GHz), I’d advise you to click the 3 dots below your last post to mark a solution like this:
Solution
so that the next person that has the exact same problem you just had will benefit from your post as well as your question will now be in the “solved” status.

:sob:

Then I have an idea on what your issue is.

Most likely your router is set to auto-selecton on the channel but that does not always work well.

The channel your router uses on 2.4 is crowded - not by your usage but adjecent AP points in the area.

Using 5G there are more channels and more bandwidth but the range is shorter - roughly the half of 2.4.

I usually use an app on my phone to check how crowded the channel is - then I change the channel in the routers firmware.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.