I recently switched from Windows to Void Linux, and ever since, my internet connection has been extremely unreliable.
Symptoms:
- In a live environment / after a fresh install of Void Linux, browsing internet is smooth and internet speeds are around 100 Mbps download and upload.
- After a few hours, browsing internet is inconsistent, and while download speed stays around 100 Mbps (slightly lower (?), and also inconsistent, between 50-300 Mbps), upload speeds take a big hit: between 0 and 50 Mbps (tested on speedtest.net and testmy.net).
- This happens on all browsers I have tried (Firefox and Chromium).
- This did not happen when my laptop had Windows.
- This only happens on my Void Linux laptop, no other device on my home network has this issue.
- This does not happen on my university's eduroam WiFi.
ping
ing anddig
ing websites while they are taking forever to load get instant and correct replies; doing a CLI speed test indicates (mostly) normal download speeds (see above).- Wireshark shows a very large number of TCP retransmissions and dup ACK's with several seconds passing between each one, though I am not 100% sure what is a normal amount. (I am fairly certain this amount is not normal from what little I can gather though.)
- Internet sometimes randomly drops.
- All of these symptoms are extremely random and I seem to get new problems all the time.
Things I have tried:
- Since internet starting dipping around the time I ran a system upgrade, I thought switching to an older kernel version might work, but it does not (tested on version 5.14, 5.15, and 5.16).
- I have blacklisted my laptop vendor's
acer_wmi
driver, but it does not seem to affect anything. - I have tried setting my MTU to a wide range of values (1000 - 1492) to no avail.
- I have tried using several public DNS servers (Cloudflare, Google, OpenDNS).
- I have checked power management for my WiFi card, power management is turned off.
What I think:
- I don't think it could be a hardware problem since my laptop connects to my university's wifi with no problems and other devices on my home network connect to the router and have good download and upload speeds.
- I think this might be a driver problem, but I can't find any good resources to troubleshoot WiFi driver problems + this unreliable internet doesn't help when I need to troubleshoot something.
Info:
- No errors in log files or
dmesg
. - Network card:
Intel Corporation Wi-Fi 6 AX200
- Firewall is turned off.
- Though I am not the only one using my home network, it is definitely not congested (I am pretty much the only one generating traffic on it).
iwconfig
output:
lo no wireless extensions.
wlp1s0 IEEE 802.11 ESSID:"energifyn-70209695"
Mode:Managed Frequency:5.24 GHz Access Point: 00:0F:94:C5:7E:D8
Bit Rate=40.5 Mb/s Tx-Power=22 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:off
Link Quality=43/70 Signal level=-67 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:12 Invalid misc:7 Missed beacon:0
ip address
output:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: wlp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 18:26:49:43:cd:99 brd ff:ff:ff:ff:ff:ff
inet 192.168.20.251/24 brd 192.168.20.255 scope global dynamic noprefixroute wlp1s0
valid_lft 85264sec preferred_lft 85264sec
inet6 fe80::3d37:94bc:a28a:60c5/64 scope link noprefixroute
valid_lft forever preferred_lft forever
ip route
output:
default via 192.168.20.254 dev wlp1s0 proto dhcp src 192.168.20.252 metric 3002
192.168.20.0/24 dev wlp1s0 proto dhcp scope link src 192.168.20.252 metric 3002
ip -s -s link show dev wlp1s0
output:
2: wlp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DORMANT group default qlen 1000
link/ether 18:26:49:43:cd:99 brd ff:ff:ff:ff:ff:ff
RX: bytes packets errors dropped missed mcast
2497582 3439 0 0 0 0
RX errors: length crc frame fifo overrun
0 0 0 0 0
TX: bytes packets errors dropped carrier collsns
615263 2579 0 0 0 0
TX errors: aborted fifo window heartbeat transns
0 0 0 0 2
resolv.conf
contents:
# Generated by resolvconf
domain fibernetcpe
nameserver 1.1.1.1
nameserver 1.0.0.1
nameserver 192.168.20.254
ip link
orsudo ifconfig
. Have you looked at the logs (in/var/log/
) for entries around the time of failure?dig
andnslookup
and friends command output for the misbehaving websites, but the issue is so random that it is very difficult./etc/resolv.vonf
contents? Trydig +trace
. Counter details from the interface. Whenslow
, do you mean to resolv or do you mean the actual page comes through slowly?dig
+tracepath
commands, I chose a random destination, but for any destination I try it does the same thing, whether I can load the web page in the browser or not. By "slow", I mean it takes forever to resolv, and once it gets there the web page loads normally.dig +trace
, notdig
andtrace
.+trace
is part of the dig command. And to pick a random host, I alway do search for something weird, then pick a random host from the returned results.