TLDR:
- If you do not own any hardware yet, consider alternatives to the Raspberry Pi 4 (see posts by @fakemanhk and @M10)
- With some tweaks, >= 900 Mbits/second with SQM can be reached on the Raspberry Pi
Has anybody managed to run simultaneous Gbit up- and download with the Raspberry Pi 4?
If so, what is needed to make it happen?
Backstory:
I got gigabit symmetrical fibre and my trusty Archer C7v2 can not handle SQM any more.
Following recommendations on the forum, I opted for a Pi 4B with a Realtek USB 3.0 Ethernet dongle.
Before putting it into production, I want to find the optimal SQM speeds. As a test setup, I have two laptops:
- one connected to the built-in (LAN) Ethernet port of the Raspberry acting as the iperf3 client (
iperf3 -c ip.of.the.server
) - the other connected to the USB 3.0 Ethernet dongle (WAN) on the Raspberry acting as the iperf3 server (
iperf3 -s
).
Testing with iperf3 reveals the following speeds:
Unidirectional (LAN - WAN) (~830 Mbits/sec, 3858 Retransmissions)
Unidirectional (WAN - LAN) (~820 Mbits/sec, 0 Retransmissions)
Bidirectional (LAN - WAN) (~225 Mbits/sec, 473 Retransmissions) iperf3 -c ip.of.the.server --bidir
Bidirectional (WAN - LAN) (~810 Mbits/sec, 0 Retransmissions) iperf3 -c ip.of.the.server --bidir
The way I interpret this is that the Pi 4 is not capable of running full duplex. To make sure my test setup is capable of running full duplex, I connected both laptops directly and got the following values:
Unidirectional (LAN - WAN) (~915 Mbits/sec, 3 Retransmissions)
Unidirectional (WAN - LAN) (~767 Mbits/sec, 0 Retransmissions)
Bidirectional (LAN - WAN) (~912 Mbits/sec, 11 Retransmissions) iperf3 -c ip.of.the.server --bidir
Bidirectional (WAN - LAN) (~792 Mbits/sec, 0 Retransmissions) iperf3 -c ip.of.the.server --bidir
Further information
I have already tried the following optimizations with no success:
- Overclocking the Pi
- Using irqbalance
- Enabling Packet steering
- Disabling EEE on the Pi for both interfaces
Raspberry info:
Model Raspberry Pi 4 Model B Rev 1.5
Firmware Version OpenWrt 23.05.2 r23630-842932a63d
Kernel Version 5.15.137
USB 3.0 Ethernet Dongle TP-Link UE300