clemzky
Posts: 5
Joined: Sat Jan 04, 2014 3:12 pm

RASPBERRY PI 4 GIGABIT PORT SPEED

Sun Aug 18, 2019 5:44 am

Yesterday my new Raspberry Pi 4 4GB version arrived and quickly setup and tested. I am subscribe to 1Gbps internet speed at home and tested I always got 900+Gbps with speedtest, I quickly tested my new Raspberry Pi 4 as based from the specs it is using a true Giga port, to my surprise I only get
less than 100Mbps like the same as Pi3, I am using the latest Debian Buster, also noticed that when you switched from one port hdmi to another hdmi port, you have to shutdown connect the cable then reboot.

Any help to achieved 1GB?

Thanks and best regards

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

Re: RASPBERRY PI 4 GIGABIT PORT SPEED

Sun Aug 18, 2019 8:19 am

Get your units right or someday it will come and... bite you.

If a gigabit Ethernet device (1000mbps) is connected to a “fast” Ethernet (100mbps) device they will communicate at 100mbps only.
If the Ethernet cable you’re using between the devices is not marked “cat 5e”, “cat 6” or above, the devices will communicate at the fastest speed allowed by the cable, usually 100mbps.

Also, speedcli tests how fast your ISP connects you to the internet. It has nothing to do with the speed of your local network. On the Pi, run “ethtool eth0”, it will show how your Ethernet adapter is actually setup.

If none of the above applies and ethtool says the adapter is set to 100mbps only, describe how the Pi is connected and the make/model of the switch(es) and router involved in the network.
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

User avatar
rpdom
Posts: 17232
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: RASPBERRY PI 4 GIGABIT PORT SPEED

Sun Aug 18, 2019 8:44 am

Also, there apparently is a bug in the speedetest-cli in Buster that shows lower speeds than is available. There are later versions available through something called pip (wasn't that something on CP/M?) that fixed that bug.
Unreadable squiggle

clemzky
Posts: 5
Joined: Sat Jan 04, 2014 3:12 pm

Re: RASPBERRY PI 4 GIGABIT PORT SPEED

Sun Aug 18, 2019 9:28 am

Thanks for all your reply. I am using Speedtest.net to test the speed of both my Mac Mini with 10Gbps Ethernet port using cat7e flat cable while my new RPi4 using cat6e. Both connected to a router then to fiber point to local ISP. Both tested using local ISP server. Mac mini getting 985Mbps more or less while RPi is getting less than 100Mbps the most 94Mbps. 8 bits is 1 byte.

Regards

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

Re: RASPBERRY PI 4 GIGABIT PORT SPEED

Sun Aug 18, 2019 10:20 am

clemzky wrote:
Sun Aug 18, 2019 9:28 am
8 bits is 1 byte.
You can make that 10 with tcp/ip (to account for frames headers), it’s easier and not really more inaccurate than 8.
Do check out what ethtool says on the Pi.
Perhaps if possible see if swapping cables between the Mac and the Pi changes anything.
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

clemzky
Posts: 5
Joined: Sat Jan 04, 2014 3:12 pm

Re: RASPBERRY PI 4 GIGABIT PORT SPEED

Sun Aug 18, 2019 2:48 pm

RPI4.jpeg
RPi4
RPI4.jpeg (175.78 KiB) Viewed 9821 times
MacMini.jpeg
McMini
MacMini.jpeg (168.02 KiB) Viewed 9821 times
Just got home from work and quickly swapped the Cat7e from MacMini into RPi4 and Cat6e from RPi4 into MacMini. Results are attached inline. What can we say about this simple test for a normal user, is RPi4 really having 1Gbps Ethernet port? Or should I ask for replacement since I got it for only 2 days? Any thoughts would be highly appreciated.

Regards

bls
Posts: 652
Joined: Mon Oct 22, 2018 11:25 pm
Location: Seattle, WA
Contact: Twitter

Re: RASPBERRY PI 4 GIGABIT PORT SPEED

Sun Aug 18, 2019 2:52 pm

rpdom wrote:
Sun Aug 18, 2019 8:44 am
There are later versions available through something called pip (wasn't that something on CP/M?) that fixed that bug.
I haven't checked to see whether the apt version is updated yet, buti It appears that the correct speedtest-cli is available via 'sudo pip3 install speedtest-cli'.

As for PIP, not sure about CP/M, but we dinosaurs can confirm it was definitely on RSX-11M and early versions of VAX/VMS :lol:
Pi tools:
RPi SD Card Image Manager: https://github.com/gitbls/sdm
Lightweight Virtual VNC Config: https://github.com/gitbls/RPiVNCHowTo
Easy VPN installer/manager: https://github.com/gitbls/pistrong
DNS/DHCP manager:https://github.com/gitbls/ndm

clemzky
Posts: 5
Joined: Sat Jan 04, 2014 3:12 pm

Re: RASPBERRY PI 4 GIGABIT PORT SPEED

Wed Aug 21, 2019 3:05 pm

pi@raspberrypi:~ $ speedtest-cli
Retrieving speedtest.net configuration...
Testing from StarHub Cable Vision (xxx.xxx.xxx.xxx)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by StarHub Mobile Pte Ltd (Singapore) [11.95 km]: 5.309 ms
Testing download speed................................................................................
Download: 385.50 Mbit/s
Testing upload speed......................................................................................................
Upload: 307.90 Mbit/s
pi@raspberrypi:~ $

This is what I get and still not up to what it should be

jerrm
Posts: 202
Joined: Wed May 02, 2018 7:35 pm

Re: RASPBERRY PI 4 GIGABIT PORT SPEED

Wed Aug 21, 2019 4:35 pm

Have you opened up a terminal and ran htop during the test? The overhead of the test itself may be the problem.

My Pi4 is on wireless right now, so that my limiting factor (at 48mbps) , but based cpu usage, it looks like cpu would be maxed out running speedtest-cli long before it could hit 1gbps (if it scales anywhere close to linearly).

I don't have a GUI on my Pi4 currently, so can't comment on the Chromium based tests.

I have tested lan performance, and know my pi4 will hit a full 1gbps wired using iperf or in a straight http download.
Last edited by jerrm on Wed Aug 21, 2019 9:38 pm, edited 1 time in total.

drgeoff
Posts: 10783
Joined: Wed Jan 25, 2012 6:39 pm

Re: RASPBERRY PI 4 GIGABIT PORT SPEED

Wed Aug 21, 2019 6:11 pm

epoch1970 wrote:
Sun Aug 18, 2019 8:19 am
Get your units right or someday it will come and... bite you.

If a gigabit Ethernet device (1000mbps)....
@epoch1970. You are bitten. Pot, kettle, black. "m" is the standard abbreviation for milli, 1/1000.

Additionally, all ambiguity is avoided by using the recommended nomenclature ie bit and byte. For example 1 Gbit/s = 1000 Mbit/s = 125 Mbyte/s
Quis custodiet ipsos custodes?

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

Re: RASPBERRY PI 4 GIGABIT PORT SPEED

Wed Aug 21, 2019 6:55 pm

And so I am.
I was ready to quote the Wikipedia page but while they acknowledge the devolved “ps” form (instead of “/s”), they do write
megabit per second (symbol Mbit/s or Mb/s, often abbreviated "Mbps")
All these years I was sending millibits over the network, and nobody told me anything!
I shall try to use Mbps when not using the correct Mbit/s unit.
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

gondoro
Posts: 2
Joined: Wed Jul 31, 2019 10:53 am

Re: RASPBERRY PI 4 GIGABIT PORT SPEED

Thu Aug 22, 2019 2:09 pm

Hi people,

I try Iperf3 on RaspberryPi but the maximum speed is 891 Mbit/s on TCP or 958 Mbit/s on UDP, and the 2 of 4 cores was on 100% on htop
Can anyone give advice for better performance I need to be 950 Mbit/s on TCP, Jerrm can you share how you get 1 Gbit/s on ethernet port.

Thank in advance!

jerrm
Posts: 202
Joined: Wed May 02, 2018 7:35 pm

Re: RASPBERRY PI 4 GIGABIT PORT SPEED

Thu Aug 22, 2019 8:28 pm

gondoro wrote:
Thu Aug 22, 2019 2:09 pm
Hi people,

I try Iperf3 on RaspberryPi but the maximum speed is 891 Mbit/s on TCP or 958 Mbit/s on UDP, and the 2 of 4 cores was on 100% on htop
Can anyone give advice for better performance I need to be 950 Mbit/s on TCP, Jerrm can you share how you get 1 Gbit/s on ethernet port.

Thank in advance!
To be more precise I see 941Mbits/s with a point to point cat6 ethernet connection to an 8year old i3 notebook. Results are pretty consistent as server or client +/- 2Mbits/s as either client or server. The Pi does have two cores at 95%+ when run as the server. As client it is usually well below 25%.

Nothing special on the settings iperf -s / iperf -c xx.xx.xx.xx.

Reporting 940 Mbit/s is pretty much the theoretical max. Reporting 1000Mbit/s is impossible. Might approach 950 playing with various IP settings/jumbo frames/etc, but realizing that in any sort of real world usage is unlikely.

Andyroo

Re: RASPBERRY PI 4 GIGABIT PORT SPEED

Thu Aug 22, 2019 10:01 pm

bls wrote:
Sun Aug 18, 2019 2:52 pm
...
As for PIP, not sure about CP/M, but we dinosaurs can confirm it was definitely on RSX-11M and early versions of VAX/VMS :lol:
Peripheral Interchange Program

Supposed to have been ‘copied’ from the PDP range by DEC and allowed for file to file, disk to disk, file to print, tape to file to tape and any other device that was supported.

gondoro
Posts: 2
Joined: Wed Jul 31, 2019 10:53 am

Re: RASPBERRY PI 4 GIGABIT PORT SPEED

Fri Aug 23, 2019 10:21 am

jerrm wrote:
Thu Aug 22, 2019 8:28 pm
gondoro wrote:
Thu Aug 22, 2019 2:09 pm
Hi people,

I try Iperf3 on RaspberryPi but the maximum speed is 891 Mbit/s on TCP or 958 Mbit/s on UDP, and the 2 of 4 cores was on 100% on htop
Can anyone give advice for better performance I need to be 950 Mbit/s on TCP, Jerrm can you share how you get 1 Gbit/s on ethernet port.

Thank in advance!
To be more precise I see 941Mbits/s with a point to point cat6 ethernet connection to an 8year old i3 notebook. Results are pretty consistent as server or client +/- 2Mbits/s as either client or server. The Pi does have two cores at 95%+ when run as the server. As client it is usually well below 25%.

Nothing special on the settings iperf -s / iperf -c xx.xx.xx.xx.

Reporting 940 Mbit/s is pretty much the theoretical max. Reporting 1000Mbit/s is impossible. Might approach 950 playing with various IP settings/jumbo frames/etc, but realizing that in any sort of real world usage is unlikely.
Thanks for the information!

User avatar
fxv300
Posts: 3
Joined: Thu Aug 06, 2020 7:03 pm
Location: United Kingdom
Contact: Website Twitter YouTube

Re: RASPBERRY PI 4 GIGABIT PORT SPEED

Sun Aug 09, 2020 11:30 am

RASPBERRY PI 4 GIGABIT PORT SPEED:
same problem for me, I have PI 4 next to a PC. Using same ethernet cable I get 220 Mbps on the PC and about 97 Mbps on the PI4. Clearly this is not on. I have tested this with 2 different OS installations on the pi (Ubuntu and Raspberry PI OS ). All show that the port is not capable of more than 100Mbps. I can only assume that there is not a working 1Gig ethernet. Very disappointed to say the least.

By the way I am testing connected directly to a monitor so there is no speed degradation due to a remote connection. And using the same LAN cable that works on my PC. Info from terminal looks promising so what is causing this issue?


pi@raspberrypi:~ $ ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.113 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 xxxxxxxxxxxxxx prefixlen 64 scopeid 0x20<link>
ether xxxxxxxxxxxxx txqueuelen 1000 (Ethernet)
RX packets 421191 bytes 430799160 (410.8 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 231942 bytes 141046336 (134.5 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

root@raspberrypi:/home/pi# ethtool eth0 | grep -i speed
Speed: 1000Mb/s

root@raspberrypi:/home/pi# mii-tool -v eth0
eth0: negotiated 1000baseT-FD flow-control, link ok
product info: vendor 18:03:61, model 10 rev 2
basic mode: autonegotiation enabled
basic status: autonegotiation complete, link ok
capabilities: 1000baseT-HD 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
advertising: 1000baseT-HD 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
link partner: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
Last edited by fxv300 on Sun Aug 09, 2020 11:58 am, edited 2 times in total.
PC Aorus Gaming 5 CPU: RyZen 1700x
Raspberry PI 4 4G

AV: SONY STR-DN860
website: https://sites.google.com/view/fxv300tech/

jahboater
Posts: 5806
Joined: Wed Feb 04, 2015 6:38 pm
Location: West Dorset

Re: RASPBERRY PI 4 GIGABIT PORT SPEED

Sun Aug 09, 2020 11:39 am

fxv300 wrote:
Sun Aug 09, 2020 11:30 am
I can only assume that there is not a working 1Gig ethernet. Very disappointed to say the least.
I get for the Pi4 (running Raspberry Pi OS 64-bit):

Code: Select all

$ iperf -c pi
------------------------------------------------------------
Client connecting to pi, TCP port 5001
TCP window size: 85.0 KByte (default)
------------------------------------------------------------
[  3] local 192.168.0.10 port 56862 connected with 192.168.0.80 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec  1.08 GBytes   930 Mbits/sec
930Mbs seems reasonable to me and that's going through a distant router (via the mains) and a switch.
Pi4 8GB running PIOS64

User avatar
rpdom
Posts: 17232
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: RASPBERRY PI 4 GIGABIT PORT SPEED

Sun Aug 09, 2020 11:42 am

fxv300 wrote:
Sun Aug 09, 2020 11:30 am
same problem for me, I have PI 4 next to a PC. Using same ethernet cable I get 220 Mbps on the PC and about 97 Mbps on the PI4. Clearly this is not on. I have tested this with 2 different OS installations on the pi (Ubuntu and Raspberry PI OS ). All show that the port is not capable of more than 100Mbps. I can only assume that there is not a working 1Gig ethernet. Very disappointed to say the least.
I just copied a 1GB file from my laptop PC to a Pi 4B running RaspiOS 32 bit with scp. It took 24 seconds at 42.0MB/s. That's around 450Mb/s. Fairly good considering the Pi 4 uses software for the SSH encryption.

Is your port actually connected at 1Gb?

Have you checked with ethtool?

Why are you replying to a year-old thread rather than starting a new issue?
Unreadable squiggle

Return to “Troubleshooting”