tokenize
Posts: 11
Joined: Tue Jun 18, 2019 2:55 pm

Cannot get 1Gbps on RPI4

Sun Nov 10, 2019 11:24 pm

Hello,

I've recently acquired a RPi4 2GB version and I must say I'm very pleased with the results.
The only thing that keeps bugging me is that I cannot get the full 1Gbps throughput I was hoping for in the ethernet connection, not even close.

I ran some iperf tests between the RPI and my desktop and the results are the following (both are connected to the router using Cat 6 ethernet cables)
- RPI as server, desktop as client: ~330Mbps average
- Desktop as server, RPI as client: ~430Mbps average

I'm using the most recent eeprom and firmware on the latest version of Arch Linux. Is there anyone with a clue on what could it be? Are there any tweaks that I can apply?

Best

fruitoftheloom
Posts: 23869
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Cannot get 1Gbps on RPI4

Mon Nov 11, 2019 7:47 am

tokenize wrote:
Sun Nov 10, 2019 11:24 pm
Hello,

I've recently acquired a RPi4 2GB version and I must say I'm very pleased with the results.
The only thing that keeps bugging me is that I cannot get the full 1Gbps throughput I was hoping for in the ethernet connection, not even close.

I ran some iperf tests between the RPI and my desktop and the results are the following (both are connected to the router using Cat 6 ethernet cables)
- RPI as server, desktop as client: ~330Mbps average
- Desktop as server, RPI as client: ~430Mbps average

I'm using the most recent eeprom and firmware on the latest version of Arch Linux. Is there anyone with a clue on what could it be? Are there any tweaks that I can apply?

Best

What results do you achieve when running the RPF / RPT fully supported Raspbian Buster Operating System ??
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot) RaspiOS64 ARM64
Asus ChromeBox 3 Celeron is my other computer...

User avatar
RaTTuS
Posts: 10565
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Cannot get 1Gbps on RPI4

Mon Nov 11, 2019 9:02 am

and how are you testing
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

User avatar
B.Goode
Posts: 10410
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Cannot get 1Gbps on RPI4

Mon Nov 11, 2019 10:54 am

RaTTuS wrote:
Mon Nov 11, 2019 9:02 am
and how are you testing

@tokenise wrote
I ran some iperf tests between the RPI and my desktop
A couple of comments -
1. A lot of people now use iperf3 for network performance testing.
2. For diagnostic/troubleshooting purposes is it possible to test a direct point-to-point connection between RPi and Desktop?

tokenize
Posts: 11
Joined: Tue Jun 18, 2019 2:55 pm

Re: Cannot get 1Gbps on RPI4

Tue Nov 12, 2019 4:22 pm

fruitoftheloom wrote:
Mon Nov 11, 2019 7:47 am
What results do you achieve when running the RPF / RPT fully supported Raspbian Buster Operating System ??
I haven't tested that option yet. I've always used Arch and I've seen reports of people being able to achieve 1Gbps with it. I will consider this route as a last resort only.
RaTTuS wrote:
Mon Nov 11, 2019 9:02 am
and how are you testing
As I mentioned, I'm running iperf to perform the tests, with the pi and desktop connected to the router via a cat6 ethernet cable.
B.Goode wrote:
Mon Nov 11, 2019 10:54 am
A couple of comments -
1. A lot of people now use iperf3 for network performance testing.
2. For diagnostic/troubleshooting purposes is it possible to test a direct point-to-point connection between RPi and Desktop?
I should have mentioned that I'm using iperf3 as well sorry.
I will try your suggestion of connecting the PI directly to the desktop and see. It could be the router's fault.

trejan
Posts: 2327
Joined: Tue Jul 02, 2019 2:28 pm

Re: Cannot get 1Gbps on RPI4

Tue Nov 12, 2019 4:58 pm

Works fine here with iperf and iperf3 between a Pi 4 running Raspbian and a x64 PC. I've tried transferring a file using NFS + Samba and speeds are what they should be.

Code: Select all

$ iperf -c 192.168.1.50 
------------------------------------------------------------
Client connecting to 192.168.1.50, TCP port 5001
TCP window size:  400 KByte (default)
------------------------------------------------------------
[  3] local 192.168.1.52 port 50794 connected with 192.168.1.50 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec  1.09 GBytes   940 Mbits/sec

Code: Select all

$ iperf3 -c 192.168.1.50
Connecting to host 192.168.1.50, port 5201
[  5] local 192.168.1.52 port 54108 connected to 192.168.1.50 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec   113 MBytes   944 Mbits/sec    0    380 KBytes       
[  5]   1.00-2.00   sec   110 MBytes   923 Mbits/sec    0    380 KBytes       
[  5]   2.00-3.00   sec   111 MBytes   928 Mbits/sec    0    380 KBytes       
[  5]   3.00-4.00   sec   110 MBytes   924 Mbits/sec    0    380 KBytes       
[  5]   4.00-5.00   sec   109 MBytes   912 Mbits/sec    0    416 KBytes       
[  5]   5.00-6.00   sec   110 MBytes   926 Mbits/sec    0    416 KBytes       
[  5]   6.00-7.00   sec   112 MBytes   937 Mbits/sec    0    416 KBytes       
[  5]   7.00-8.00   sec   110 MBytes   926 Mbits/sec    0    416 KBytes       
[  5]   8.00-9.00   sec   106 MBytes   887 Mbits/sec    0    416 KBytes       
[  5]   9.00-10.00  sec   106 MBytes   892 Mbits/sec    0    416 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec  1.07 GBytes   920 Mbits/sec    0             sender
[  5]   0.00-10.00  sec  1.07 GBytes   918 Mbits/sec                  receiver

User avatar
B.Goode
Posts: 10410
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Cannot get 1Gbps on RPI4

Tue Nov 12, 2019 5:32 pm

tokenize wrote:
Tue Nov 12, 2019 4:22 pm
fruitoftheloom wrote:
Mon Nov 11, 2019 7:47 am
What results do you achieve when running the RPF / RPT fully supported Raspbian Buster Operating System ??
I haven't tested that option yet. I've always used Arch and I've seen reports of people being able to achieve 1Gbps with it. I will consider this route as a last resort only.

For the purposes of troubleshooting and diagnostics it seems an obvious step to compare your implementation with the Operating System recommended and supported by Raspberry Pi themselves. You don't have to relinquish the OS you have always used: it is simply an information-gathering exercise. Odd to regard that as a 'last resort only.' No-one will know you have been unfaithful!

tokenize
Posts: 11
Joined: Tue Jun 18, 2019 2:55 pm

Re: Cannot get 1Gbps on RPI4

Sun Dec 01, 2019 3:46 pm

So I've finally had time to make some tests and I seem to have found the problem.

When I performed the tests I mentioned earlier, I used the following network configuration, which is my normal setup:

RPI4 -> Main Router -> Secondary Router -> PC

I've eliminated the seconday router, connecting both the RPI and PC to the main router and now I'm able to get 1Gbps on iperf.

This brings me to the question, what could be wrong with my secondary router, which is a TP-Link Archer AC1200? I've already scanned through all possible configurations on it and I don't find anything strange. Could it be the router simply does not have enough processing power for a full duplex 1Gbps connection?

epoch1970
Posts: 5427
Joined: Thu May 05, 2016 9:33 am
Location: Paris, France

Re: Cannot get 1Gbps on RPI4

Sun Dec 01, 2019 4:08 pm

Is it applying NAT to the traffic that passes through?
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

tokenize
Posts: 11
Joined: Tue Jun 18, 2019 2:55 pm

Re: Cannot get 1Gbps on RPI4

Sun Dec 01, 2019 4:19 pm

epoch1970 wrote:
Sun Dec 01, 2019 4:08 pm
Is it applying NAT to the traffic that passes through?
The router is configured as an access point, effectively extending my main routers network and, as such, I think it does not apply NAT. I don't find any option related with it in the settings.

According to the router's setting, it does not allow NAT in this mode.
Attachments
Capture.PNG
Capture.PNG (22.46 KiB) Viewed 819 times

epoch1970
Posts: 5427
Joined: Thu May 05, 2016 9:33 am
Location: Paris, France

Re: Cannot get 1Gbps on RPI4

Sun Dec 01, 2019 4:31 pm

Right, it is not [configured as] a router in this case. No NAT then.
Maybe its built-in switch is a bit slow? Do you have gigabit transfers between 2 machines connected into the AP via ethernet ?
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

tokenize
Posts: 11
Joined: Tue Jun 18, 2019 2:55 pm

Re: Cannot get 1Gbps on RPI4

Sun Dec 08, 2019 7:13 pm

I found the root cause of the problem. If I configure the router as normal router mode, I can get Gbps speed. However, if I switch it to AP mode the results tumble to the 400Mbps range. It seems this is a problem with the router itself and I already reported it to TP Link.

Thanks everyone for the support.

Return to “Networking and servers”