Random fix for slow networking on Windows (or how I lost my Saturday afternoon)
This caused me so much grief I have to get it off my chest.
I bought a new USB wireless adapter and with iperf to my NAS was getting ~80Mbit/s. I tried the following things:
- Relocated the adapter
- Relocated the router to the top of a bookcase
- Performed a network reset
- Update drivers
- Downgrade drivers
- Uninstalled anything that was installed that could mess with the network
- Hamachi
- Virtual Box
- These weird MS virtual wifi adapters that show up
- Tried every USB port on the PC
- Tried the adapter in USB2.0 mode
- A bunch of other things
I then connected it to my laptop, and got pretty much the full speed I would expect (300+ ish Mbit/s). Did some more googling for an hour and found this command to show the network interface settings and diff'ed them between my laptop and PC:
netsh interface tcp show global
TCP Global Parameters
----------------------------------------------
Receive-Side Scaling State : enabled <---- different
Receive Window Auto-Tuning Level : normal <---- different
Add-On Congestion Control Provider : default
ECN Capability : disabled
RFC 1323 Timestamps : disabled
Initial RTO : 1000
Receive Segment Coalescing State : enabled
Non Sack Rtt Resiliency : disabled
Max SYN Retransmissions : 4
Fast Open : enabled
Fast Open Fallback : enabled
HyStart : enabled
Proportional Rate Reduction : enabled
Pacing Profile : off
Did the following:
netsh int tcp set global rss=enabled
netsh int tcp set global autotuninglevel=normal
And fixed:
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-10.0 sec 488 MBytes 410 Mbits/sec
FML. But at least it's working now and might help someone out in future.
Posted Nov 18, 2023, 6:47 PM UTC
12
Do you have a router that combines 2,4 and 5GHz on a single SSID? Did you check for the initial tests that you used 5GHz and not 2,4GHz? ("netsh wlan show interface" will give you that information).
They do have different SSIDs but I disabled 2.4G whilst I was testing. As I said the only thing that fixed it was changing those two config parameters with netsh back to what is presumably the Windows default.