User avatar
RPIgoodSBC
Posts: 136
Joined: Tue Mar 20, 2018 11:37 am

RPi 3B+ gigabit ethernet bad download speeds.

Tue Mar 20, 2018 12:20 pm

Please can someone confirm download ethernet speeds on new RPi 3B+ with program speedtest-cli?

Code: Select all

sudo apt-get install speedtest-cli
I have tested the new RPi 3B+ over a fresh install latest raspbian and official PSU raspberry pi and good SD card A1 class.
The performance on download speeds from internet is about 40 Mbit/s but my ISP is 200 Mbit/s and on my old Rpi3B I obtain 80 Mbit/s download speed.

I believe is a problem with kernel driver.I hope is not a related hardware problem.

In this web page someone discover similar problem...

https://volumio.org/raspberry-pi-3-b-pl ... o-review/
"So, it seems that there is still some issue (hopefully it’s driver related) to the Ethernet controller, which seems to give up lots of packets in high-bandwidth situations. I am however pretty confident that the foundation will solve this issue, as it’s not uncommon that hardware performances get dramatic improvements as software gets tuned up after community feedbacks."
Thanks in advance.

ZaGOn
Posts: 2
Joined: Tue Mar 20, 2018 4:12 pm

Re: RPi 3B+ gigabit ethernet bad download speeds.

Tue Mar 20, 2018 4:19 pm

Mine is exactly the same, the best i got is 43 ~ 44 down and the same up.
have tested everything and a little more.

pcmanbob
Posts: 13570
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

Re: RPi 3B+ gigabit ethernet bad download speeds.

Tue Mar 20, 2018 4:21 pm

Hi.

I have not noticed any problems with wire connection speed, reports the same speed as my pi2B and pi3B of around the 70-74mb/s which is correct for my up 70Mb/s broadband.

I did do some testing of file transfer on a wired 10/100/1000 network between a pi3B+ and a PC and I achieved speeds of 20.4MB/s which is
163 Mb/s but I think the limiting factor here was that the files were being copied from a USB drive on the pi using winSCP on the pc
We want information… information… information........................no information no help
The use of crystal balls & mind reading are not supported

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 32227
Joined: Sat Jul 30, 2011 7:41 pm

Re: RPi 3B+ gigabit ethernet bad download speeds.

Tue Mar 20, 2018 5:18 pm

Odd. We have been doing tests in the office and definitely get better performance from the 3B+ than the 3B. We are testing between two Pi3B+'s, and between Pi3VB+ and Linux/Mac laptops. Pi 2 Pi is a bit slower than expected, will investigate, but well over the 100 of the previous ethernet chip.
Principal Software Engineer at Raspberry Pi Ltd.
Working in the Applications Team.

User avatar
ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6400
Joined: Fri Jul 29, 2011 5:36 pm

Re: RPi 3B+ gigabit ethernet bad download speeds.

Tue Mar 20, 2018 5:26 pm

jamesh wrote:
Tue Mar 20, 2018 5:18 pm
Odd. We have been doing tests in the office and definitely get better performance from the 3B+ than the 3B. We are testing between two Pi3B+'s, and between Pi3VB+ and Linux/Mac laptops. Pi 2 Pi is a bit slower than expected, will investigate, but well over the 100 of the previous ethernet chip.
If you run speedtest-cli from the office, you get about 97Mbit, whether running on a Pi or PC. But I assume that there's something to prevent one client in the office hogging up all the traffic or there's a 100mbit switch in the way somewhere.

ZaGOn
Posts: 2
Joined: Tue Mar 20, 2018 4:12 pm

Re: RPi 3B+ gigabit ethernet bad download speeds.

Tue Mar 20, 2018 5:45 pm

Here is prints from pi and my pc

and normaly my pc is over 200
is there anything we can do to help u figure it out

Image
Image

User avatar
RPIgoodSBC
Posts: 136
Joined: Tue Mar 20, 2018 11:37 am

Re: RPi 3B+ gigabit ethernet bad download speeds.

Tue Mar 20, 2018 8:49 pm

Thanks to people for sharing.
I discover this weird behaviour on ethernet RPi3B+
My ISP is 200 Mbit/s download speed and 20 Mbit/s upload speed.
rpi-3b-plus-gigabit-problem-2018-03-20.png
rpi-3b-plus-gigabit-problem-2018-03-20.png (237.13 KiB) Viewed 56244 times

Code: Select all

sudo apt-get install ethtool

Code: Select all

sudo ethtool -s eth0 speed 100 duplex full

Code: Select all

sudo ethtool -s eth0 speed 1000 duplex full
Ethernet card RPi3B+ on Raspbian release date:2018-03-13 works better on 10/100 mode than on 10/100/1000.

evilkitty
Posts: 474
Joined: Tue Apr 15, 2014 11:39 pm

Re: RPi 3B+ gigabit ethernet bad download speeds.

Tue Mar 20, 2018 11:22 pm

Here is a test over my gigabit switch (Asus GX-D1081)
Cat 6 on the pi (i needed shielding) and cat 5e on the desktop (Intel Corporation 82572EI Gigabit Ethernet Controller)

Code: Select all

pi@raspberrypi:~ $ iperf -c 10.0.0.50
------------------------------------------------------------
Client connecting to 10.0.0.50, TCP port 5001
TCP window size: 43.8 KByte (default)
------------------------------------------------------------
[  3] local 10.0.0.25 port 42730 connected with 10.0.0.50 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec   351 MBytes   294 Mbits/sec
pi@raspberrypi:~ $ iperf -s
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
[  4] local 10.0.0.25 port 5001 connected with 10.0.0.50 port 56560
[ ID] Interval       Transfer     Bandwidth
[  4]  0.0-10.1 sec   220 MBytes   183 Mbits/sec (Yep ONLY 185... but I get 294 the other direction)
[  5] local 10.0.0.25 port 5001 connected with 10.0.0.50 port 56634
------------------------------------------------------------
Client connecting to 10.0.0.50, TCP port 5001
TCP window size:  101 KByte (default)
------------------------------------------------------------
[  6] local 10.0.0.25 port 42732 connected with 10.0.0.50 port 5001
[  6]  0.0-10.0 sec  96.9 MBytes  80.9 Mbits/sec
[  5]  0.0-10.1 sec   186 MBytes   155 Mbits/sec
^Cpi@raspberrypi:~ $ iperf -c 10.0.0.50 -d
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
------------------------------------------------------------
Client connecting to 10.0.0.50, TCP port 5001
TCP window size: 43.8 KByte (default)
------------------------------------------------------------
[  5] local 10.0.0.25 port 42734 connected with 10.0.0.50 port 5001
[  4] local 10.0.0.25 port 5001 connected with 10.0.0.50 port 56690
[ ID] Interval       Transfer     Bandwidth
[  5]  0.0-10.0 sec  97.9 MBytes  81.8 Mbits/sec
[  4]  0.0-10.1 sec   186 MBytes   155 Mbits/sec
pi@raspberrypi:~ $
Lets try real file use a ramdisk on both origin and destination to avoid disk I/O limits (sorry only tested this one way)

Code: Select all

pi@raspberrypi:/tmp/500mb $ wget 10.0.0.50:81/testfile.mkv
--2018-03-20 19:18:25--  http://10.0.0.50:81/testfile.mkv
Connecting to 10.0.0.50:81... connected.
HTTP request sent, awaiting response... 200 OK
Length: 517673349 (494M) [video/x-matroska]
Saving to: ‘testfile.mkv’

testfile.mkv         100%[===================>] 493.69M  24.5MB/s    in 21s     

2018-03-20 19:18:47 (23.0 MB/s) - ‘testfile.mkv’ saved [517673349/517673349]
*24.5MB/s = 196Mbps (about double what a 10/100 network can do)
Sadly this is only 2/3 of what it can upload
My Pi Server: http://imgur.com/a/6xIUI | Thermostat: http://imgur.com/a/4LVnT

User avatar
RPIgoodSBC
Posts: 136
Joined: Tue Mar 20, 2018 11:37 am

Re: RPi 3B+ gigabit ethernet bad download speeds.

Thu Mar 22, 2018 9:09 pm

More doc and information about the problem...
https://netbeez.net/blog/differences-be ... peedtest/
The speedtest-cli command is the network engineer’s best friend. You can run this command remotely, from the command line, on any Linux host without having to gain access to the browser of a remote workstation.
To conclude, use iperf for internal and advanced bandwidth measurements and speedtest for getting an estimate of download and upload speeds.
Raspberry Pi 3 B+: lan78xx does not work with upstream kernel?
https://github.com/raspberrypi/firmware/issues/957


Can all this a driver problem?
On RPi3B+...

Code: Select all

sudo ethtool -i eth0
driver: lan78xx
version: 1.0.4
firmware-version:
expansion-rom-version:
bus-info: usb-3f980000.usb-1.1.1
supports-statistics: yes
supports-test: no
supports-eeprom-access: yes
supports-register-dump: no
supports-priv-flags: no

Is not firmware version on RPi3B+.
Is this a problem?

On RPi3B...

Code: Select all

sudo ethtool -i eth0
driver: smsc95xx
version: 22-Aug-2005
firmware-version: smsc95xx USB 2.0 Ethernet
bus-info: usb-3f980000.usb-1.1
supports-statistics: no
supports-test: no
supports-eeprom-access: yes
supports-register-dump: yes
supports-priv-flags: no

Please people test yours RPi3B+ with speedtest-cli and submit the results.
This thread is about bad download speeds from Internet, speedtest-cli is better tool for this measurement.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 32227
Joined: Sat Jul 30, 2011 7:41 pm

Re: RPi 3B+ gigabit ethernet bad download speeds.

Thu Mar 22, 2018 10:09 pm

With regard to the upstream stuff, we have made some changes to the Lan78xx driver for our particular use case, so is not quite the same as upstream.
Principal Software Engineer at Raspberry Pi Ltd.
Working in the Applications Team.

User avatar
HawaiianPi
Posts: 7748
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: RPi 3B+ gigabit ethernet bad download speeds.

Thu Mar 22, 2018 10:39 pm

Frontier 100/100 FiOS Internet (Cat5e cable from ONT to router)
ASUS RT-AC66R router (3x3 dual-band wireless AC and Gigabit Ethernet)
Router has an external IP and NAT2 on local network.

My new Raspberry Pi3B+ (Made in the UK)
Raspbian Stretch 2018-03-13 (dist-upgraded)
SanDisk Ultra A1 micro-SD card (32GB)
Cat6 Ethernet cable from Pi3B+ to router.
No heatsink or fan, enclosed in an old SB components plastic case.

Code: Select all

~ $ speedtest-cli
Retrieving speedtest.net configuration...
Testing from Frontier Communications (xxx.xxx.xxx.xx)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by SilverStarTelecom (Portland, OR) [18.30 km]: 18.79 ms
Testing download speed................................................................................
Download: 90.54 Mbit/s
Testing upload speed....................................................................................................
Upload: 86.72 Mbit/s
My "old" Pi3B (Made in the UK)
Raspbian Stretch Lite 2017-11-29 fully dist-upgraded
Samsung Pro micro-SD card (32GB)
Ethernet cable to router (Cat 5e or 6, I forget which)
Cooled by a Flirc Gen2 case.

Code: Select all

~ $ speedtest-cli
Retrieving speedtest.net configuration...
Testing from Frontier Communications (xxx.xxx.xxx.xxx)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by SilverStarTelecom (Portland, OR) [18.30 km]: 17.771 ms
Testing download speed................................................................................
Download: 87.84 Mbit/s
Testing upload speed....................................................................................................
Upload: 83.23 Mbit/s
Numbers are close enough to be considered margin of error, so I'm getting the same performance from each as far as Internet goes. However, my Internet speed is only 100Mbit, so I would not expect to see an big difference with the 3B+ (and I didn't). On the other hand, I'm not getting worse performance either.
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups, and where is that annoying music coming from?

User avatar
RPIgoodSBC
Posts: 136
Joined: Tue Mar 20, 2018 11:37 am

Re: RPi 3B+ gigabit ethernet bad download speeds.

Thu Mar 22, 2018 11:13 pm

Maybe they are related problems...
Pi3B+ : USB+ethernet file transfer problem

https://github.com/raspberrypi/linux/issues/2449

User avatar
RPIgoodSBC
Posts: 136
Joined: Tue Mar 20, 2018 11:37 am

Re: RPi 3B+ gigabit ethernet bad download speeds.

Fri Mar 23, 2018 12:11 am

Pay attention:
pi@raspberrypi:~ $ sudo ethtool -s eth0 autoneg on speed 100 duplex half
pi@raspberrypi:~ $ speedtest-cli
Retrieving speedtest.net configuration...
Testing from R Cable y Telecomunicaciones Galicia, S.A.
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Telecable (Oviedo) [208.06 km]: 32.87 ms
Testing download speed................................................................................
Download: 37.18 Mbit/s
Testing upload speed....................................................................................................
Upload: 19.50 Mbit/s
pi@raspberrypi:~ $ sudo ethtool -s eth0 autoneg on speed 1000 duplex full
pi@raspberrypi:~ $ speedtest-cli
Retrieving speedtest.net configuration...
Testing from R Cable y Telecomunicaciones Galicia, S.A.
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by NOS (Porto) [247.07 km]: 30.61 ms
Testing download speed................................................................................
Download: 34.99 Mbit/s
Testing upload speed....................................................................................................
Upload: 19.61 Mbit/s
pi@raspberrypi:~ $ sudo ethtool -s eth0 autoneg on speed 100 duplex full
pi@raspberrypi:~ $ speedtest-cli
Retrieving speedtest.net configuration...
Testing from R Cable y Telecomunicaciones Galicia, S.A.
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by NOS (Porto) [247.07 km]: 30.831 ms
Testing download speed................................................................................
Download: 75.91 Mbit/s
Testing upload speed....................................................................................................
Upload: 19.56 Mbit/s
speed 100 duplex half = speed 1000 duplex full

Weird!

:shock:

pi@raspberrypi:~ $ sudo ethtool -s eth0 autoneg on speed 1000 duplex half

I can't up the interface eth0 in speed 1000 duplex half.

User avatar
HawaiianPi
Posts: 7748
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: RPi 3B+ gigabit ethernet bad download speeds.

Fri Mar 23, 2018 12:31 am

RPIgoodSBC wrote:
Thu Mar 22, 2018 11:13 pm
Maybe they are related problems...
Pi3B+ : USB+ethernet file transfer problem

https://github.com/raspberrypi/linux/issues/2449
Seems like those problems are relating to running a different kernel. Everyone in that link is running a newer kernel, except one guy to reverted back the the default kernel and said it fixed his problem.
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups, and where is that annoying music coming from?

Bruny
Posts: 159
Joined: Fri Feb 06, 2015 5:22 pm

Re: RPi 3B+ gigabit ethernet bad download speeds.

Fri Mar 23, 2018 1:13 am

RPIgoodSBC wrote:
Fri Mar 23, 2018 12:11 am
I can't up the interface eth0 in speed 1000 duplex half.
Maybe this could be a case of duplex mismatch? :?

mfa298
Posts: 1386
Joined: Tue Apr 22, 2014 11:18 am

Re: RPi 3B+ gigabit ethernet bad download speeds.

Fri Mar 23, 2018 9:37 am

RPIgoodSBC wrote:
Fri Mar 23, 2018 12:11 am
pi@raspberrypi:~ $ sudo ethtool -s eth0 autoneg on speed 100 duplex full
Setting the speed like that often causes issues. By fixing the config you disabke auto negotiation which means the other end doesn't know how to configure itself, this usually means the other end switches to half duplex mode. Having a mismatch like that can lead to collisions and all sorts of other issues. I've had to re-educate plenty of server admins about that in the past when they've complained about the network, switch back to the default option and all is fast again.

As an aside I've also see the effects recently with a 3B+. I've been playing with pxe boot on it and had to fix the speed on the switch for the Poe splitter (only connects two pairs through so gigabit negotiation fails), with the switch set to 100/full it faiks to boot properly as the pi comes up in 100/half duplex, setting the switch to 100/half works better.
RPIgoodSBC wrote:
Fri Mar 23, 2018 12:11 am
pi@raspberrypi:~ $ sudo ethtool -s eth0 autoneg on speed 1000 duplex half

I can't up the interface eth0 in speed 1000 duplex half.
I think that's to be expected, Gigabit Ethernet mandates auto negotiation and I don't think has any expectations of connecting to a half duplex network. Half duplex goes back to the days of hubs (rather than switches) where packets were broadcast out of all ports meaning the wire was effectively a shared medium between many devices (similar to how 10base2 and 10base5 worked). There were a few fast Ethernet hubs around (rare, but they did exist)

User avatar
RPIgoodSBC
Posts: 136
Joined: Tue Mar 20, 2018 11:37 am

Re: RPi 3B+ gigabit ethernet bad download speeds.

Fri Mar 23, 2018 10:56 am

--> mfa298

You are right.
It seems speed 1000 duplex half is a not valid mode to gigabit ethernets cards.
Tested on mi big PC and on my Asus Tinkerboard both with gigabit ethernet cards and in both the ethernet card goes down and is not possible to up until must do speed 1000 duplex full.

Here a comparison speedtest-cli with my Tinkerboard running latest Tinker-OS 2.0.5 and conected exactly the same way like my RPi3B+ to the router.

linaro@tinkerboard:~$ uname -a

Linux tinkerboard 4.4.71+ #1 SMP Thu Feb 22 18:23:31 CST 2018 armv7l GNU/Linux

linaro@tinkerboard:~$ sudo ethtool -i eth0

driver: st_gmac
version: March_2013
firmware-version:
expansion-rom-version:
bus-info:
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: yes
supports-priv-flags: no

linaro@tinkerboard:~$ speedtest-cli

Retrieving speedtest.net configuration...
Testing from R Cable y Telecomunicaciones Galicia, S.A. ( )...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by NOS (Porto) [247.07 km]: 31.487 ms
Testing download speed...
Download: 184.29 Mbit/s
Testing upload speed...
Upload: 19.33 Mbit/s


On my RPI3B+ the gigabit ethernet card led changes from orange in 1000 mode to green on 100 mode.
This seems to be ok and implies that gigabit card is recognized for the system like gigabit card and can switch modes.

User avatar
RPIgoodSBC
Posts: 136
Joined: Tue Mar 20, 2018 11:37 am

Re: RPi 3B+ gigabit ethernet bad download speeds.

Fri Mar 23, 2018 8:15 pm

How we can be fooled by the results of iperf on download/upload speeds from Internet...
rpi-3b-plus-gigabit-problem-iperf-versus-speedtest-cli-2018-03-23.jpg
rpi-3b-plus-gigabit-problem-iperf-versus-speedtest-cli-2018-03-23.jpg (217.07 KiB) Viewed 55676 times

Code: Select all

sudo apt-get install -y iperf
(on the Pi): iperf -s

On another machine on the same network:

iperf -c (Here your related ifconfig eth0 inet IP XXX.XXX.X.XXX)

---

https://www.pidramble.com/wiki/benchmarks/networking

---

iperf bandwith 226 Mbits/sec

speedtest-cli bandwith 35.66 Mbit/s

mfa298
Posts: 1386
Joined: Tue Apr 22, 2014 11:18 am

Re: RPi 3B+ gigabit ethernet bad download speeds.

Fri Mar 23, 2018 9:07 pm

RPIgoodSBC wrote:
Fri Mar 23, 2018 8:15 pm
How we can be fooled by the results of iperf on download/upload speeds from Internet...
They're testing two different things.
RPIgoodSBC wrote:
Fri Mar 23, 2018 8:15 pm
speedtest-cli bandwith 35.66 Mbit/s
speedtest-cli can also fool you - have you tried different servers ?

A couple of tests from a VPS (my Pi's aren't on that good a connection)

Code: Select all

$ ./speedtest_cli.py 
Testing from VPS (x.y.z.176)...
Selecting best server based on latency...
Hosted by Speedtest.net (Chicago, IL) [5.09 km]: 3.538 ms
Download: 34.48 Mbits/s
Upload: 93.77 Mbits/s
selecting a bit further down on the server list (--list)

Code: Select all

Testing from VPS (x.y.z.176)...
Hosted by AT&T (Cicero, IL) [12.57 km]: 8.613 ms
Download: 69.29 Mbits/s
Upload: 98.27 Mbits/s
From a number of runs the default test server gave incredibly variable results, that was just one of them (some tests were faster, others slower). With speedtest-cli you're testing the speed of the Pi's ethernet, your internet connection, the servers internet connection and all the stuff in between - that's a lot of variables. (For reference the VPS is gig connected and I have had speedtest results at 900Mbit/s and over)

User avatar
RPIgoodSBC
Posts: 136
Joined: Tue Mar 20, 2018 11:37 am

Re: RPi 3B+ gigabit ethernet bad download speeds.

Fri Mar 23, 2018 9:38 pm

I have tested an usb hub usb 3.0 with gigabit ethernet adapter Kensington brand.

sudo ethtool -s eth1 speed 100 duplex full
54.77 Mbit/s

sudo ethtool -s eth1 speed 1000 duplex full
37.08 Mbit/s


lsmod reports ax88179_178a kernel module.

The onboard RPi3B+ gigabit ethernet performed a little better but in this test is down.
AX88179-Gigabit-Ethernet-usb-3-0-hub-2018-03-23-on-raspbian-2018-03-13.jpg
AX88179-Gigabit-Ethernet-usb-3-0-hub-2018-03-23-on-raspbian-2018-03-13.jpg (247.03 KiB) Viewed 55625 times

--> mfa298
I only want understand this weird behaviour on my gigabit ethernet adapter.
I have submited a lot of information to solve or understand the problem and in my opinion iperf test is not sufficient to know the global performance of an ethernet adapter.
My case is very clear example and the ZaGOn user have the same problem like me.

How you can explain better peformance on 100 mode than on 1000 mode?
speedtest-cli is very accurate.I run it at least 4 times and results are consistent over my others PC.
Only mi RPI3B+ have this extrange behaviour on gigabit speeds.

Do you read the full post?
Last edited by RPIgoodSBC on Fri Mar 23, 2018 11:19 pm, edited 1 time in total.

User avatar
RPIgoodSBC
Posts: 136
Joined: Tue Mar 20, 2018 11:37 am

Re: RPi 3B+ gigabit ethernet bad download speeds.

Fri Mar 23, 2018 11:17 pm

I have tested an usb hub usb 3.0 with gigabit ethernet adapter Kensington brand.
Now on tinkerboard:
gigabit-ethernet-usb-3_0-card-on-tinkerboard.png
gigabit-ethernet-usb-3_0-card-on-tinkerboard.png (252.49 KiB) Viewed 55589 times
We can see that I can up over 100 Mbit/s on usb gigabit ethernet card ( 130.99 Mbit/s ) on linaro system and the behaviour on 100 mode and 1000 mode is right.
On Linaro 1000 mode have better performance than 100 mode to the same usb gigabit adapter not like on Raspbian 2018-03-13.
On Raspbian only on 100 mode go about 80 Mbit/s and in 1000 mode 40 Mbit/s over usb or internal ethernet adapter.
:(

In my opinion something is wrong about gigabit ethernet adapter on Raspbian 2018-03-13.

User avatar
HermannSW
Posts: 5932
Joined: Fri Jul 22, 2016 9:09 pm
Location: Eberbach, Germany

Re: RPi 3B+ gigabit ethernet bad download speeds.

Sat Mar 24, 2018 2:28 am

I was able to get 191Mbit/s with Raspbian Stretch 2018-03-13 on my new Pi 3B+.
So more than 100Mbit/s, but laptop gets 386Mbit/s on same switch with speedtest-cli (400 down, 20 up connection).
viewtopic.php?f=63&t=208778

Code: Select all

pi@raspberrypi3Bplus:~ $ speedtest-cli 
Retrieving speedtest.net configuration...
Testing from Kabel BW (46.223.20.147)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by PfalzKom (Ludwigshafen) [11.73 km]: 24.753 ms
Testing download speed................................................................................
Download: 191.04 Mbit/s
Testing upload speed....................................................................................................
Upload: 19.59 Mbit/s
pi@raspberrypi3Bplus:~ $ 
https://github.com/Hermann-SW/RSA_numbers_factored
https://stamm-wilbrandt.de/GS_cam_1152x192@304fps
https://hermann-sw.github.io/planar_graph_playground
https://github.com/Hermann-SW/Raspberry_v1_camera_global_external_shutter
https://stamm-wilbrandt.de/

User avatar
RPIgoodSBC
Posts: 136
Joined: Tue Mar 20, 2018 11:37 am

Re: RPi 3B+ gigabit ethernet bad download speeds.

Sat Mar 24, 2018 11:34 am

--> el_grappaduro

Thanks but is no an ethernet cable problem.
My cable cat-5e can do iperf bandwith 226 Mbits/sec.
I have runned all test with cat5e cable and I have probed another cat6 and another cat5e.
Raspbian is latest version and I have probed rpi-update latest firmware too with same results.
My tinkerboard with the same cable on the same net on the same router port can achieve 180 Mbits/sec.

iperf bandwith test is ok on my RPi3B+...226 Mbits/sec with:

sudo ethtool -s eth0 speed 1000 duplex full

and around 90 Mbits/sec with:

sudo ethtool -s eth0 speed 100 duplex full

This implies that mi gigabit etehernet card RPi3B+ can achieve gigabits speeds and iperf use the 100 and 1000 modes gigabit card ok.
But for any misterious reason I can not do more than 80 Mbits/sec speed download on speedtest-cli.I tried a lot of servers and default servers are the best.I have tested with online web pages test velocity and the same results then is not speedtest-cli problem.
The best performance on speedtest-cli is on 100 duplex full (average 80 Mbits/sec) than 1000 duplex full (average 40
Mbits/sec).
This is ilogical because 1000 duplex full performance must be higher than 100 duplex full.

Hardware fault?.
I don't know, but is clear that leds on my ethernet gigabit RPi3B+ card works properly and can achieve gigabits speeds on iperf tests.

My net is CISCO EPC3928 (ISP 200down/20up gigabit router and 2.4Ghz and 5Ghz wifi.Router is on bridged mode to...)
---> Tplink TL-WR1043ND (gigabit router with openwrt firmware and 2.4 Ghz wifi and 4 ports gigabit) ---> one cable cat6 to my big PC and the other cat5e to RPi3B,Tinkerboard,RPi3B+...
is a very common net configuration and works without isues in all my hardware but now not on my new RPi3B+ about download speeds from internet.

I have tested the RPi3B+ directly to only mi CISCO ISP router without the TP-link and the results are the same then is not a TP-link router problem with gigabit ethernet card RPi3B+.

Something related to ipv4 versus ipv6 on some ISP?
But I have disabled ipv6 totally on config.txt and in /etc/modprobe.d/ipv6.conf and the problem persist with or without ipv6 enabled.
Last edited by RPIgoodSBC on Sat Mar 24, 2018 11:59 am, edited 1 time in total.

el_grappaduro
Posts: 14
Joined: Thu Mar 22, 2018 7:06 pm

Re: RPi 3B+ gigabit ethernet bad download speeds.

Sat Mar 24, 2018 11:44 am

RPIgoodSBC wrote:
Sat Mar 24, 2018 11:34 am
iperf bandwith test is ok on my RPi3B+...226 Mbits/sec
Not ok. If you get below 300 Mbits/sec you most probably suffer from retransmits all the time. Use iperf3 and not iperf as suggested. viewtopic.php?f=63&t=207863&p=1286160#p1286150 vs. viewtopic.php?f=63&t=207863&p=1286160#p1286162

User avatar
RPIgoodSBC
Posts: 136
Joined: Tue Mar 20, 2018 11:37 am

Re: RPi 3B+ gigabit ethernet bad download speeds.

Sat Mar 24, 2018 12:34 pm

---> el_grappaduro

A test with iperf3 like was suggested:

pi@raspberrypi:~ $ iperf3 -s
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from XXX.XXX.X.XXX, port 33634
[ 5] local XXX.XXX.X.XXX port 5201 connected to XXX.XXX.X.XXX port 33636
[ ID] Interval Transfer Bandwidth
[ 5] 0.00-1.00 sec 26.2 MBytes 220 Mbits/sec
[ 5] 1.00-2.00 sec 27.3 MBytes 229 Mbits/sec
[ 5] 2.00-3.00 sec 27.3 MBytes 229 Mbits/sec
[ 5] 3.00-4.00 sec 27.2 MBytes 228 Mbits/sec
[ 5] 4.00-5.00 sec 27.4 MBytes 230 Mbits/sec
[ 5] 5.00-6.00 sec 27.3 MBytes 229 Mbits/sec
[ 5] 6.00-7.00 sec 27.3 MBytes 229 Mbits/sec
[ 5] 7.00-8.00 sec 27.3 MBytes 229 Mbits/sec
[ 5] 8.00-9.00 sec 27.3 MBytes 229 Mbits/sec
[ 5] 9.00-10.00 sec 27.3 MBytes 229 Mbits/sec
[ 5] 10.00-10.02 sec 520 KBytes 227 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth
[ 5] 0.00-10.02 sec 0.00 Bytes 0.00 bits/sec sender
[ 5] 0.00-10.02 sec 272 MBytes 228 Mbits/sec receiver

pi@raspberrypi:~ $ uname -a
Linux raspberrypi 4.9.80-v7+ #1098 SMP Fri Mar 9 19:11:42 GMT 2018 armv7l GNU/Linux

Return to “General discussion”