Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4387

Troubleshooting • Pi 5 8GB running Bookworm, WiFi is super slow ONLY IN UPLOAD!

$
0
0
I was having issues with downloading speeds and some esoteric docker configurations. My laptop was downloading a lot faster than my Pi 5 and even scp between the two was very slow, so I decided to test WiFi vs cable (shutting down one interface at the time with sudo ifconfig xxx down)

Below the results, and I have no clue what to do.

TL;DR:
the Pi 5 upload bandwidth within the same LAN drops from ~ 500Mbit/sec to ~3MBit/sec from wired to wireless. download is not so bad (from ~400Mbit/sec to ~100Mbit/sec)

Before going into iperf, speed test from the Pi 5 gives me
around 80MBit in download and 1MBit in upload with wireless
around 100MBit in download and 20MBit in upload with wired (20x upload speed compared to wireless)

for comparison, my MacBook gives me:
around 100MBit in download and 20MBit in upload with wireless

Physical layout:

my laptop and my Pi 5 are maybe 2-3 meters apart, and the access point (TP-Link Archer VR1210v) is in the same room, with no major barriers (if anything, the Pi 5 has more direct line of sight to the router).

these are the logs of iperf running on my MacBook AS SERVER (alway connected to the wireless throughout all tests).

192.168.1.121 is the Pi 5 wired interface
192.168.1.122 is the Pi 5 wireless interface

Code:

% sudo iperf -s------------------------------------------------------------Server listening on TCP port 5001TCP window size:  128 KByte (default)------------------------------------------------------------[  1] local 192.168.1.114 port 5001 connected with 192.168.1.121 port 43484[ ID] Interval       Transfer     Bandwidth[  1] 0.00-10.06 sec   550 MBytes   459 Mbits/sec[  2] local 192.168.1.114 port 5001 connected with 192.168.1.122 port 50788[ ID] Interval       Transfer     Bandwidth[  2] 0.00-10.27 sec  4.00 MBytes  3.27 Mbits/sec[  3] local 192.168.1.114 port 5001 connected with 192.168.1.122 port 45818[ ID] Interval       Transfer     Bandwidth[  3] 0.00-10.51 sec  4.00 MBytes  3.19 Mbits/sec[  4] local 192.168.1.114 port 5001 connected with 192.168.1.122 port 59700[ ID] Interval       Transfer     Bandwidth[  4] 0.00-10.37 sec  4.38 MBytes  3.54 Mbits/sec
Also, just to try, I reversed the roles, running the server on the Pi 5 and it's quite fast (I guess iperf is asymmetric?) for both wired and wireless.

This is the server running on the Pi5 via wireless:

Code:

$ sudo iperf -s------------------------------------------------------------Server listening on TCP port 5001TCP window size:  128 KByte (default)------------------------------------------------------------[  1] local 192.168.1.122 port 5001 connected with 192.168.1.114 port 61031 (icwnd/mss/irtt=14/1448/2914)[ ID] Interval       Transfer     Bandwidth[  1] 0.0000-10.0741 sec   150 MBytes   125 Mbits/sec
This is the server running on the Pi5 via wired:

Code:

$ sudo iperf -s------------------------------------------------------------Server listening on TCP port 5001TCP window size:  128 KByte (default)------------------------------------------------------------[  1] local 192.168.1.121 port 5001 connected with 192.168.1.114 port 60987 (icwnd/mss/irtt=14/1448/2725)[ ID] Interval       Transfer     Bandwidth[  1] 0.0000-10.0798 sec   522 MBytes   434 Mbits/sec
finally, even after I try to setup the right country for wireless using raspi-config, I still get this output (I'm not in Germany).

Code:

$ sudo iw reg getglobalcountry DE: DFS-ETSI(2400 - 2483 @ 40), (N/A, 20), (N/A)(5150 - 5250 @ 80), (N/A, 23), (N/A), NO-OUTDOOR, AUTO-BW(5250 - 5350 @ 80), (N/A, 20), (0 ms), NO-OUTDOOR, DFS, AUTO-BW(5470 - 5725 @ 160), (N/A, 26), (0 ms), DFS(5725 - 5875 @ 80), (N/A, 13), (N/A)(5945 - 6425 @ 160), (N/A, 23), (N/A), NO-OUTDOOR(57000 - 66000 @ 2160), (N/A, 40), (N/A)phy#0country 99: DFS-UNSET(2402 - 2482 @ 40), (6, 20), (N/A)(2474 - 2494 @ 20), (6, 20), (N/A)(5140 - 5360 @ 160), (6, 20), (N/A)(5460 - 5860 @ 160), (6, 20), (N/A)

Statistics: Posted by fiore42 — Sun Jan 12, 2025 6:16 pm — Replies 1 — Views 50



Viewing all articles
Browse latest Browse all 4387

Trending Articles