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

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

Sat Mar 24, 2018 1:30 pm

Strange. 'Retr' column missing entirely. Maybe you need test other direction or look at client output? If I understood correctly retransmits are the problem?

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

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

Sat Mar 24, 2018 1:48 pm

el_grappaduro wrote:
Sat Mar 24, 2018 1:30 pm
Strange. 'Retr' column missing entirely. Maybe you need test other direction or look at client output? If I understood correctly retransmits are the problem?
I only have posted iperf -s that is the RPi3B+ output nor my big PC output.

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)

This howto:

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

Problem is bad speed internet downloads with my gigabit ethernet RPi3B+.
No more than 80 Mbit/s in any way.

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

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

Sat Mar 24, 2018 1:55 pm

RPIgoodSBC wrote:
Sat Mar 24, 2018 1:48 pm
I only have posted iperf -s that is the RPi3B+ output nor my big PC output.
Yeah, you don't want to look for retransmit. I see. OK. What about PC output or testing in other direction? It's the 'Retr' column that contains the information :)

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

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

Sat Mar 24, 2018 2:09 pm

el_grappaduro wrote:
Sat Mar 24, 2018 1:55 pm
RPIgoodSBC wrote:
Sat Mar 24, 2018 1:48 pm
I only have posted iperf -s that is the RPi3B+ output nor my big PC output.
Yeah, you don't want to look for retransmit. I see. OK. What about PC output or testing in other direction? It's the 'Retr' column that contains the information :)
My big PC output:

iperf3 -c XXX.XXX.X.XXX
Connecting to host XXX.XXX.X.XXX, port 5201
[ 4] local XXX.XXX.X.XXX port 52840 connected to XXX.XXX.X.XXX port 5201
[ ID] Interval Transfer Bandwidth Retr Cwnd
[ 4] 0.00-1.00 sec 27.0 MBytes 227 Mbits/sec 338 24.0 KBytes
[ 4] 1.00-2.00 sec 27.4 MBytes 230 Mbits/sec 359 29.7 KBytes
[ 4] 2.00-3.00 sec 27.3 MBytes 229 Mbits/sec 336 28.3 KBytes
[ 4] 3.00-4.00 sec 27.4 MBytes 230 Mbits/sec 355 29.7 KBytes
[ 4] 4.00-5.00 sec 27.4 MBytes 230 Mbits/sec 362 28.3 KBytes
[ 4] 5.00-6.00 sec 27.3 MBytes 229 Mbits/sec 343 35.4 KBytes
[ 4] 6.00-7.00 sec 27.4 MBytes 230 Mbits/sec 315 26.9 KBytes
[ 4] 7.00-8.00 sec 27.4 MBytes 230 Mbits/sec 374 28.3 KBytes
[ 4] 8.00-9.00 sec 27.5 MBytes 230 Mbits/sec 390 26.9 KBytes
[ 4] 9.00-10.00 sec 26.8 MBytes 225 Mbits/sec 312 28.3 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth Retr
[ 4] 0.00-10.00 sec 273 MBytes 229 Mbits/sec 3484 sender
[ 4] 0.00-10.00 sec 273 MBytes 229 Mbits/sec receiver

iperf Done.

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

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

Sat Mar 24, 2018 2:12 pm

RPIgoodSBC wrote:
Fri Mar 23, 2018 11:17 pm
In my opinion something is wrong about gigabit ethernet adapter on Raspbian 2018-03-13.
Note that something was also wrong earlier

So the adapter can handle the speed but something is throttling the speed using speedtest-cli. My suggestion is some kernel parameters are interfering the connection via the USB adapter.

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

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

Sat Mar 24, 2018 2:17 pm

---> el_grappaduro

In other direction:

[email protected]:~ $ iperf3 -c XXX.XXX.X.XXX
Connecting to host XXX.XXX.X.XXX port 5201
[ 4] local XXX.XXX.X.XXX port 40480 connected to XXX.XXX.X.XXX port 5201
[ ID] Interval Transfer Bandwidth Retr Cwnd
[ 4] 0.00-1.00 sec 38.1 MBytes 319 Mbits/sec 0 222 KBytes
[ 4] 1.00-2.00 sec 37.7 MBytes 316 Mbits/sec 0 222 KBytes
[ 4] 2.00-3.00 sec 37.8 MBytes 317 Mbits/sec 0 235 KBytes
[ 4] 3.00-4.00 sec 37.8 MBytes 317 Mbits/sec 0 246 KBytes
[ 4] 4.00-5.00 sec 37.8 MBytes 317 Mbits/sec 0 286 KBytes
[ 4] 5.00-6.00 sec 37.7 MBytes 317 Mbits/sec 0 298 KBytes
[ 4] 6.00-7.00 sec 37.7 MBytes 316 Mbits/sec 0 314 KBytes
[ 4] 7.00-8.00 sec 37.7 MBytes 316 Mbits/sec 0 314 KBytes
[ 4] 8.00-9.00 sec 37.7 MBytes 316 Mbits/sec 0 314 KBytes
[ 4] 9.00-10.00 sec 37.7 MBytes 316 Mbits/sec 0 314 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth Retr
[ 4] 0.00-10.00 sec 378 MBytes 317 Mbits/sec 0 sender
[ 4] 0.00-10.00 sec 377 MBytes 316 Mbits/sec receiver

iperf Done.

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

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

Sat Mar 24, 2018 2:22 pm

RPIgoodSBC wrote:
Sat Mar 24, 2018 2:09 pm
[ 4] 0.00-10.00 sec 273 MBytes 229 Mbits/sec 3484 sender
3484 retransmits are 3484 too much :)

Fix this cabling/contact problem and your download speed will be OK too (when you access hosts on the Internet round-trip times are much higher so every retransmit trashes performance a lot more compared to a local network)

If the issue only occurs in one direction you know already which cable pair in the Ethernet cable or which contacts on the Ethernet jack are to be blamed.

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

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

Sat Mar 24, 2018 2:40 pm

el_grappaduro wrote:
Sat Mar 24, 2018 2:22 pm
RPIgoodSBC wrote:
Sat Mar 24, 2018 2:09 pm
[ 4] 0.00-10.00 sec 273 MBytes 229 Mbits/sec 3484 sender
3484 retransmits are 3484 too much :)

Fix this cabling/contact problem and your download speed will be OK too (when you access hosts on the Internet round-trip times are much higher so every retransmit trashes performance a lot more compared to a local network)

If the issue only occurs in one direction you know already which cable pair in the Ethernet cable or which contacts on the Ethernet jack are to be blamed.
Then in your opinion is a hardware fault on contact internal gigabit ethernet RPI3B+?
I have tested the same cable in same conditions on same port on a Tinkerboard and I can achieve 180 Mbits/sec internet download speeds.

Sorry I don't understand very well how works iperf and what data is more relevant.I look at bandwith and is up to100 Mbits/sec then adapter can achieve gigabits speeds but in fact in download speed from internet the adapter works better in 100 mode than in 1000 mode.
Read the full post.
And I can not undersatand why.

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

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

Sat Mar 24, 2018 3:02 pm

RPIgoodSBC wrote:
Sat Mar 24, 2018 2:40 pm
I have tested the same cable in same conditions on same port on a Tinkerboard and I can achieve 180 Mbits/sec internet download speeds.
Nice, obviously it doesn't help with your Pi. So why focus on TB? Or the other way around: do you get same amount of retransmits with iperf3 and the PC with same cable?

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

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

Sat Mar 24, 2018 3:26 pm

el_grappaduro wrote:
Sat Mar 24, 2018 3:02 pm
RPIgoodSBC wrote:
Sat Mar 24, 2018 2:40 pm
I have tested the same cable in same conditions on same port on a Tinkerboard and I can achieve 180 Mbits/sec internet download speeds.
Nice, obviously it doesn't help with your Pi. So why focus on TB? Or the other way around: do you get same amount of retransmits with iperf3 and the PC with same cable?
Sorry, I'm tired of testing iperf.

Read about my usb 3.0 hub with gigabit ethernet adapter Kensington brand in this thread.
In this case the internal RPI3B+ ethernet gigabit adapter is not in work and the performance download speeds on 100 mode is better than 1000 mode.
Something is wrong here.
Is an usb external gigabit adapter and I can not achieve gigabit speeds.All ever below 100.But more better in 100 mode than in 1000 mode and that is ilogical.
I have tested now again with two differents cables cat 5e.

This points to a kernel related problem with gigabits transfers on RPi3B+.

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

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

Sat Mar 24, 2018 5:55 pm

What I don't understand is why in our testing we get well above 100 (up to 300!), but you don't, using the same hardware and the same software.

That's another oddness bit.

Just to confirm, I presume you are using the latest Raspbian and the board is definitely a 3b+?
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I think it’s wrong that only one company makes the game Monopoly.” – Steven Wright

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

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

Sat Mar 24, 2018 7:32 pm

jamesh wrote:
Sat Mar 24, 2018 5:55 pm
What I don't understand is why in our testing we get well above 100 (up to 300!), but you don't, using the same hardware and the same software.

That's another oddness bit.

Just to confirm, I presume you are using the latest Raspbian and the board is definitely a 3b+?
Of course is a RPi3B+ running latest raspbian os like you see in the screenshots and sold by PC componentes reseller in Spain.
Is less than one week old.
The case have printed made in UK.
Sorry the case is in the trash now.
I have only the little paper manual.
The board dont have antiestatic plastic bag.
Only the paper case and the little print manual paper and nothing more.

https://www.pccomponentes.com/raspberry ... elo-b-plus

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

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

Sat Mar 24, 2018 8:05 pm

RPIgoodSBC wrote:
Sat Mar 24, 2018 7:32 pm
jamesh wrote:
Sat Mar 24, 2018 5:55 pm
What I don't understand is why in our testing we get well above 100 (up to 300!), but you don't, using the same hardware and the same software.

That's another oddness bit.

Just to confirm, I presume you are using the latest Raspbian and the board is definitely a 3b+?
Of course is a RPi3B+ running latest raspbian os like you see in the screenshots and sold by PC componentes reseller in Spain.
Is less than one week old.
The case have printed made in UK.
Sorry the case is in the trash now.
I have only the little paper manual.
The board dont have antiestatic plastic bag.
Only the paper case and the little print manual paper and nothing more.

https://www.pccomponentes.com/raspberry ... elo-b-plus
OK, Element14 PI's comes in an antistatic paper container, that's nothing to worry about. sounds like you got everything you should have done in the package.

We are looking in to ethernet issues at the moment, once something comes up we will let the forums know.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I think it’s wrong that only one company makes the game Monopoly.” – Steven Wright

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

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

Sun Mar 25, 2018 1:54 pm

Some more iperf3 tests that can help to understand the problem:

[email protected]:~ $ sudo ethtool -s eth0 speed 100 duplex full
[email protected]:~ $ sudo iperf3 -s
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from XXX.XXX.X.XXX, port 33134
[ 5] local XXX.XXX.X.XXX port 5201 connected to XXX.XXX.X.XXX port 33136
[ ID] Interval Transfer Bandwidth
[ 5] 0.00-1.00 sec 11.0 MBytes 92.4 Mbits/sec
[ 5] 1.00-2.00 sec 11.2 MBytes 94.1 Mbits/sec
[ 5] 2.00-3.00 sec 11.2 MBytes 94.1 Mbits/sec
[ 5] 3.00-4.00 sec 11.2 MBytes 94.1 Mbits/sec
[ 5] 4.00-5.00 sec 11.2 MBytes 94.1 Mbits/sec
[ 5] 5.00-6.00 sec 11.2 MBytes 94.2 Mbits/sec
[ 5] 6.00-7.00 sec 11.2 MBytes 94.2 Mbits/sec
[ 5] 7.00-8.00 sec 11.2 MBytes 94.1 Mbits/sec
[ 5] 8.00-9.00 sec 11.2 MBytes 94.2 Mbits/sec
[ 5] 9.00-10.00 sec 11.2 MBytes 93.9 Mbits/sec
[ 5] 10.00-10.02 sec 263 KBytes 105 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 112 MBytes 93.9 Mbits/sec receiver
-----------------------------------------------------------
Server listening on 5201

[email protected]:~ $ speedtest-cli
Retrieving speedtest.net configuration...
Testing from R Cable y Telecomunicaciones Galicia, S.A. (XX.XX.XX.XX)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Telecable (Oviedo) [208.06 km]: 31.758 ms
Testing download speed................................................................................
Download: 87.51 Mbit/s
Testing upload speed....................................................................................................
Upload: 19.39 Mbit/s

Terminal output on my big PC:

sudo iperf3 -c XXX.XXX.X.XXX (sudo ifconfig inet eth0 ip XXX.XXX.X.XXX RPi3B+)
Connecting to host XXX.XXX.X.XXX, port 5201
[ 4] local XXX.XXX.X.XXX port 33136 connected to XXX.XXX.X.XXX port 5201
[ ID] Interval Transfer Bandwidth Retr Cwnd
[ 4] 0.00-1.00 sec 11.3 MBytes 94.6 Mbits/sec 213 26.9 KBytes
[ 4] 1.00-2.00 sec 11.2 MBytes 94.1 Mbits/sec 235 25.5 KBytes
[ 4] 2.00-3.00 sec 11.2 MBytes 94.1 Mbits/sec 234 25.5 KBytes
[ 4] 3.00-4.00 sec 11.2 MBytes 94.2 Mbits/sec 227 25.5 KBytes
[ 4] 4.00-5.00 sec 11.2 MBytes 94.3 Mbits/sec 236 26.9 KBytes
[ 4] 5.00-6.00 sec 11.2 MBytes 93.7 Mbits/sec 243 24.0 KBytes
[ 4] 6.00-7.00 sec 11.3 MBytes 94.6 Mbits/sec 208 25.5 KBytes
[ 4] 7.00-8.00 sec 11.2 MBytes 94.0 Mbits/sec 224 26.9 KBytes
[ 4] 8.00-9.00 sec 11.2 MBytes 94.1 Mbits/sec 257 29.7 KBytes
[ 4] 9.00-10.00 sec 11.2 MBytes 94.1 Mbits/sec 268 29.7 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth Retr
[ 4] 0.00-10.00 sec 112 MBytes 94.2 Mbits/sec 2345 sender
[ 4] 0.00-10.00 sec 112 MBytes 94.1 Mbits/sec receiver

iperf Done.

Now on 1000 mode on RPi3B+

[email protected]:~ $ sudo ethtool -s eth0 speed 1000 duplex full
[email protected]:~ $ sudo iperf3 -s
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from XXX.XXX.X.XXX, port 33184
[ 5] local XXX.XXX.X.XXX port 5201 connected to XXX.XXX.X.XXX port 33186
[ ID] Interval Transfer Bandwidth
[ 5] 0.00-1.01 sec 25.9 MBytes 215 Mbits/sec
[ 5] 1.01-2.00 sec 25.3 MBytes 214 Mbits/sec
[ 5] 2.00-3.00 sec 26.6 MBytes 223 Mbits/sec
[ 5] 3.00-4.00 sec 27.1 MBytes 227 Mbits/sec
[ 5] 4.00-5.00 sec 27.3 MBytes 229 Mbits/sec
[ 5] 5.00-6.00 sec 27.1 MBytes 228 Mbits/sec
[ 5] 6.00-7.00 sec 27.4 MBytes 230 Mbits/sec
[ 5] 7.00-8.00 sec 27.2 MBytes 228 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 544 KBytes 226 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 269 MBytes 225 Mbits/sec receiver
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------

On my big PC:

sudo iperf3 -c XXX.XXX.X.XXX (sudo ifconfig inet eth0 ip XXX.XXX.X.XXX RPi3B+)
Connecting to host XXX.XXX.X.XXX, port 5201
[ 4] local XXX.XXX.X.XXX port 33186 connected to XXX.XXX.X.XXX port 5201
[ ID] Interval Transfer Bandwidth Retr Cwnd
[ 4] 0.00-1.00 sec 26.2 MBytes 219 Mbits/sec 311 18.4 KBytes
[ 4] 1.00-2.00 sec 25.6 MBytes 215 Mbits/sec 297 32.5 KBytes
[ 4] 2.00-3.00 sec 26.6 MBytes 223 Mbits/sec 295 32.5 KBytes
[ 4] 3.00-4.00 sec 27.1 MBytes 227 Mbits/sec 305 25.5 KBytes
[ 4] 4.00-5.00 sec 27.2 MBytes 228 Mbits/sec 325 39.6 KBytes
[ 4] 5.00-6.00 sec 27.2 MBytes 228 Mbits/sec 382 26.9 KBytes
[ 4] 6.00-7.00 sec 27.4 MBytes 230 Mbits/sec 376 28.3 KBytes
[ 4] 7.00-8.00 sec 27.2 MBytes 228 Mbits/sec 374 41.0 KBytes
[ 4] 8.00-9.00 sec 27.3 MBytes 229 Mbits/sec 370 28.3 KBytes
[ 4] 9.00-10.00 sec 27.3 MBytes 229 Mbits/sec 361 28.3 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth Retr
[ 4] 0.00-10.00 sec 269 MBytes 226 Mbits/sec 3396 sender
[ 4] 0.00-10.00 sec 269 MBytes 226 Mbits/sec receiver

iperf Done.

[email protected]:~ $ speedtest-cli
Retrieving speedtest.net configuration...
Testing from R Cable y Telecomunicaciones Galicia, S.A. (XX.XX.XX.XX)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Telecable (Oviedo) [208.06 km]: 29.876 ms
Testing download speed................................................................................
Download: 33.85 Mbit/s
Testing upload speed....................................................................................................
Upload: 19.33 Mbit/s

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

Tested enviroment is:

Tested on Raspbian 2013-03-13 usb booting from Sandisk Extreme USB-3.0 SDCZ80 Flash Drive.
Same results USB booting or Sandisk Ultra A1 SD card booting.

Note: Sandisk Extreme USB-3.0 SDCZ80 Flash Drive dd write speeds:

[email protected]:~ $ sudo dd if=/dev/zero of=/tmp/testfile bs=1000k count=1k && sync ; sudo rm -f /tmp/testfile
1024+0 registros leídos
1024+0 registros escritos
1048576000 bytes (1,0 GB, 1000 MiB) copied, 32,5495 s, 32,2 MB/s (very good)

Sandisk Ultra A1 SD card write speed is average 13,5MB/s

Belkin usb (2.0) 4 ports hub.
Wireless 2.4 Ghz dongle mouse.
Wireless 2.4 Ghz dongle keyboard.
Official PSU rasberry pi.
Official case Raspberry pi.
Heatsinks on cpu and ethernet chipset.
I have removed the heatsink on ethernet chip and same results, seems no matter heatsink or not.
No signs of physical damage on the board or internal ethernet gigabit contacts.

[email protected]:~ $ lsusb
Bus 001 Device 006: ID 0e8f:00a7 GreenAsia Inc.
Bus 001 Device 010: ID 0781:5580 SanDisk Corp. SDCZ80 Flash Drive
Bus 001 Device 004: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 001 Device 005: ID 1d57:f134 Xenta
Bus 001 Device 008: ID 0781:5580 SanDisk Corp. SDCZ80 Flash Drive
Bus 001 Device 007: ID 0424:7800 Standard Microsystems Corp.
Bus 001 Device 003: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

I am thinking about the problem is related how kernel Raspbian manage gigabit speeds on gigabit ethernet card and how to ISP negotiate the speed transmisions on a heavy loss packets enviroment with a gigabit NIC.
This can explain the different behaviour from one ISP to other about download speeds from internet.
It seems that my ISP sees the gigabit card like a 10/100 card on 100 half duplex mode or something related to slow modes reported by kernel raspbian (speedtest-cli 40 Mbit/s average download speed is the result) when the gigabit card is on 1000 mode.
The negotiation between ISP and RPI3B+ kernel related to gigabit card results in a heavy lost of packets, this heavy loss packets is show us iperf3 in transmisions over Rpi3B+ and my big PC on the same network.
And this causes a poor performance download speeds from internet that speedtest-cli show us.
This poor performance can be different on different ISP.
Better ping and more ISP download bandwith, less us see the loss of download speeds.

HermannSW in this thread:
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).
195 Mbit/s less is a great loss.
Asuming an RPi3B+ bandwith maximum 300 Mbit/s because usb 2.0 transfers and hardware buses stuff on RPi3B+ HermannSW must have about 250-300 Mbit/s on his good ISP 400 down, 20 up connection.
In my opinion HermannSW must have about 80-100 Mbit/s more on RPI3B+.

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

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

Sun Mar 25, 2018 2:59 pm

This is an old problem kernel driver raspbian on raspberry pi.
The problem is too on my old RPi3B look at this:

sudo iperf3 -c XXX.XXX.X.XXX
Connecting to host XXX.XXX.X.XXX, port 5201
[ 4] local XXX.XXX.X.XXX port 34902 connected to XX.XXX.X.XXX port 5201
[ ID] Interval Transfer Bandwidth Retr Cwnd
[ 4] 0.00-1.00 sec 11.2 MBytes 93.8 Mbits/sec 271 17.0 KBytes
[ 4] 1.00-2.00 sec 11.1 MBytes 93.4 Mbits/sec 243 25.5 KBytes
[ 4] 2.00-3.00 sec 11.1 MBytes 93.4 Mbits/sec 244 29.7 KBytes
[ 4] 3.00-4.00 sec 11.2 MBytes 93.8 Mbits/sec 206 25.5 KBytes
[ 4] 4.00-5.00 sec 11.1 MBytes 93.2 Mbits/sec 250 24.0 KBytes
[ 4] 5.00-6.00 sec 11.2 MBytes 93.7 Mbits/sec 210 28.3 KBytes
[ 4] 6.00-7.00 sec 11.1 MBytes 93.4 Mbits/sec 242 29.7 KBytes
[ 4] 7.00-8.00 sec 11.2 MBytes 93.7 Mbits/sec 240 24.0 KBytes
[ 4] 8.00-9.00 sec 11.2 MBytes 93.6 Mbits/sec 239 22.6 KBytes
[ 4] 9.00-10.00 sec 11.2 MBytes 93.9 Mbits/sec 263 31.1 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth Retr
[ 4] 0.00-10.00 sec 112 MBytes 93.6 Mbits/sec 2408 sender
[ 4] 0.00-10.00 sec 112 MBytes 93.6 Mbits/sec receiver

iperf Done.

My old RPi3B is loosing packages too, but like is an etehernet 10/100 card speedtest-cli reports 70 Mbits/sec average download speed.
RPi3B is different ethernet kernel driver 10/100 card and reports 10 Mbits/sec less average performance.

Then, this is an old problem on Raspbian that can see now because we are using gigabit NIC on new RPi3B+.

tkaiser
Posts: 103
Joined: Fri Aug 05, 2016 1:28 pm

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

Sun Mar 25, 2018 3:17 pm

RPIgoodSBC wrote:
Sat Mar 24, 2018 3:26 pm
Sorry, I'm tired of testing iperf.
Great choice since it will prevent you from understanding the problem (packet loss occuring in one direction). This is how it should look like in a LAN (0 retransmits and iperf3 numbers above 300 Mbits/sec): viewtopic.php?f=63&t=207863&p=1286160#p1286162

Here you find a link which explains relationship between round-trip times, packet loss and throughput: https://forum.openmediavault.org/index. ... post171017

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

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

Sun Mar 25, 2018 3:39 pm

tkaiser wrote:
Sun Mar 25, 2018 3:17 pm
RPIgoodSBC wrote:
Sat Mar 24, 2018 3:26 pm
Sorry, I'm tired of testing iperf.
Great choice since it will prevent you from understanding the problem (packet loss occuring in one direction). This is how it should look like in a LAN (0 retransmits and iperf3 numbers above 300 Mbits/sec): viewtopic.php?f=63&t=207863&p=1286160#p1286162

Here you find a link which explains relationship between round-trip times, packet loss and throughput: https://forum.openmediavault.org/index. ... post171017
Do you read my multiple above iperf3 test in this thread?
How many test do you want?
I am not an expert but I have submited tons of test and information, sorry if I am tired sometimes.

More test.
My tinkerboard on same net on same port with same cable have 930 Mbits/sec on iperf3 and 0 lost packets.

tkaiser
Posts: 103
Joined: Fri Aug 05, 2016 1:28 pm

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

Sun Mar 25, 2018 4:05 pm

RPIgoodSBC wrote:
Sun Mar 25, 2018 3:39 pm
My tinkerboard on same net on same port with same cable have 930 Mbits/sec on iperf3 and 0 lost packets.
In both directions? With iperf3 you set up one side as server and can test for both directions on the other machine: -R reverts the direction.

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

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

Sun Mar 25, 2018 4:10 pm

Yes in both directions.Tested now.
Average 930Mbits/sec 0 retransmits.
Same cable same net same router same guy.
:D

[ ID] Interval Transfer Bandwidth Retr
[ 5] 0.00-10.04 sec 1.09 GBytes 936 Mbits/sec 0 sender
[ 5] 0.00-10.04 sec 1.09 GBytes 935 Mbits/sec receiver
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------

sudo iperf3 -s on my big PC and onRPi3B+ tested and viceversa.
sudo iperf3 -c XXX.XXX.X.XXX on my big PC and onRPi3B+ tested and viceversa.

Is right?

Linaro system on Tinkerboard, Tinker OS 2.0.5 latest version.

tkaiser
Posts: 103
Joined: Fri Aug 05, 2016 1:28 pm

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

Sun Mar 25, 2018 4:28 pm

RPIgoodSBC wrote:
Sun Mar 25, 2018 4:10 pm
Yes in both directions.Tested now.
Thank you! :)

Just remembered we (Armbian) had recently an EEE related issue with one board so it might be worth a try to disable EEE on your Pi. I don't know whether you can control this from a running installation (eg. using ethtool or mii-tool) but it should work to convert the .dtb file to .dts, then set eee-enabled to disabled, convert back to .dtb and reboot.

Code: Select all

apt install device-tree-compiler
cd /boot
cp bcm2710-rpi-3-b-plus.dtb bcm2710-rpi-3-b-plus.dtb.bak
dtc -I dtb -O dts -o bcm2710-rpi-3-b-plus.dts bcm2710-rpi-3-b-plus.dtb
nano bcm2710-rpi-3-b-plus.dts
dtc -I dts -O dtb -o bcm2710-rpi-3-b-plus.dtb bcm2710-rpi-3-b-plus.dts
In case something went wrong you need another machine and restore bcm2710-rpi-3-b-plus.dtb from bcm2710-rpi-3-b-plus.dtb.bak.

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

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

Sun Mar 25, 2018 5:05 pm

Very complicated for me now.Perhaps later.

But I can tell something very interesting.
For error I plug my usb dongle with raspbian latest on tinkerboard and this is running now.
I am writing this lines from tinkerboard on raspbian latest.
This happens to me because I use 2 equal usb sandisk extreme to boot my little machines and are labeled for the back but I dont look in this boot time and boot tinkerboard for error with raspbian.

AND WORKS.I am writing now from it.


Need more testing wifi dont work and bluetooth too.

Go out now.
Bye.
Ahh! more food for thoutght.

iperf3 is running fine in both directions.
EDITED...UPDATED...Because is tinker OS kernel.

Ah! I understand now the SD card with tinker boot is on the tinkerboard SD plug and the raspbian system is on the usb.
Previously I had running Tinker OS from usb with SD card booting.
For this reason works!!!
Last edited by RPIgoodSBC on Sun Mar 25, 2018 8:58 pm, edited 1 time in total.

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

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

Sun Mar 25, 2018 5:13 pm

RPIgoodSBC wrote:
Sun Mar 25, 2018 5:05 pm
Very complicated for me now.Perhaps later.

But I can tell something very interesting.
For error I plug my usb dongle with raspbian latest on tinkerboard and this is running now.
I am writing this lines from tinkerboard on raspbian latest.
This happens to me because I use 2 equal usb sandisk extreme to boot my little machines and are labeled for the back but I dont look in this boot time and boot tinkerboard for error with raspbian.

AND WORKS.I am writing now from it.


Need more testing wifi dont work and bluetooth too.

Go out now.

Ahh! more food for thotght.

iperf3 is running fine in both directions.Same performance than Tinkers OS.
Then Raspbian problem is not or is only with the RPI3B+ NIC.
I dont know.
Bye.

Ah! I understand now the SD card with tinker boot is on the tinkerboard SD and the raspbian system is on the usb.
Previously I have running Tinker from usb with SD boot.
For this reason works!!!
Sorry, this post is a bit confusing. SO what have you got working on which device?
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I think it’s wrong that only one company makes the game Monopoly.” – Steven Wright

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

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

Sun Mar 25, 2018 7:19 pm

RASPBIAN ON TINKERBOARD
raspbian-on-tinkerboard-2018-03-25.png
raspbian-on-tinkerboard-2018-03-25.png (249.24 KiB) Viewed 3623 times
OK.I'm back.

I have and RPi3B+ and the tinkerboard and others.

Both can run from usb but only the RPi3B, RPi3B+ can boot without any SD card inside.
Right?
Tinkerboard needs an SD card to boot system kernel.

I have 2 Sandisk USB extreme 3.0 flash memory back labeled with name system and that works very well on sequential read/write performance and I/O read/write performance, more important in an SBC.
About 10Mb/s I/O random read/write performance and about 35Mb/s on sequential read/write performance over USB 2.0.
On USb 3.0 at this time is not possible on related SBC.I hope RPi4 can do.
Performance is much better than any SD avaliable.

I run tinkerboard from SD and edited extlinux.conf to point the usb Sandisk extreme usb.I have installed tinker OS on both SD and USB.
This way read/write is very good.
Note that internal controller Sandisk extreme is a SSD controller in an usb flash memory.
Well.
Then for error I have plugged the latest OS Raspbian Sandisk extreme on the Tinkerboard because all this job to test, and test, and test iperf3.

And Tinkerboard boot with latest Raspbian.
Kernel machinery is tinker OS (see screenshoot) and like the ethernet card is compiled at kernel level not like a module I have ethernet running.
Then now I have running and writing this lines from a tinkerboard machine with tinker OS kernel and Raspbian desktop.

Understand?

look:

[email protected]:~ $ glxinfo -B
name of display: :0.0
display: :0 screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
Vendor: VMware, Inc. (0xffffffff)
Device: llvmpipe (LLVM 3.9, 128 bits) (0xffffffff)
Version: 13.0.6
Accelerated: no
Video memory: 2014MB
Unified memory: no
Preferred profile: core (0x1)
Max core profile version: 3.3
Max compat profile version: 3.0
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 3.0
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 3.9, 128 bits)
OpenGL core profile version string: 3.3 (Core Profile) Mesa 13.0.6
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 3.0 Mesa 13.0.6
OpenGL shading language version string: 1.30
OpenGL context flags: (none)

OpenGL ES profile version string: OpenGL ES 3.0 Mesa 13.0.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00

:lol:

[email protected]:~ $ uname -a
Linux raspberrypi 4.4.71+ #1 SMP Thu Feb 22 18:23:31 CST 2018 armv7l GNU/Linux

some dmesg output:

8.901548] systemd[1]: systemd-modules-load.service: Main process exited, code=exited, status=1/FAILURE
[ 8.903439] systemd[1]: Failed to start Load Kernel Modules.
[ 8.905591] systemd[1]: systemd-modules-load.service: Unit entered failed state.
[ 8.911849] systemd[1]: systemd-modules-load.service: Failed with result 'exit-code'.
raspbian-on-tinkerboard-2018-03-25.png
raspbian-on-tinkerboard-2018-03-25.png (249.24 KiB) Viewed 3623 times
My extlinux.conf:

label kernel-4.4
kernel /zImage
fdt /rk3288-miniarm.dtb
# append earlyprintk quiet splash plymouth.ignore-serial-consoles console=tty1 rw init=/sbin/init

#...boot from usb...
append earlyprintk quiet splash plymouth.ignore-serial-consoles root=/dev/sda2 console=tty1 rw init=/sbin/init

---
No sound, no wifi, no bluetooth but acceptable youtube performance on 1080p and better on 720p.
But youtube performance on chromium is better on RPi3B+.

asandford
Posts: 1997
Joined: Mon Dec 31, 2012 12:54 pm
Location: Waterlooville

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

Mon Mar 26, 2018 12:20 am

Strange things on speedtest, perhaps the versions are making problems:

Linux PC:

Code: Select all

[email protected]:~$ speedtest-cli
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from Virgin Media (My IP)...
Selecting best server based on latency...
Hosted by Virgin Media (Brentford) [2.16 km]: 24.638 ms
Testing download speed........................................
Download: 202.69 Mbits/s
Testing upload speed..................................................
Upload: 11.76 Mbits/s
[email protected]:~$ speedtest-cli --list | grep -i brentford
3788) Virgin Media (Brentford, Great Britain) [2.16 km]
[email protected]:~$ speedtest-cli --server 3788
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from Virgin Media (My IP)...
Hosted by Virgin Media (Brentford) [2.16 km]: 29.468 ms
Testing download speed........................................
Download: 185.74 Mbits/s
Testing upload speed..................................................
Upload: 11.95 Mbits/s
[email protected]:~$ speedtest-cli --version
0.3.1
[email protected]:~$ uname -a
Linux debianlib 3.16.0-4-amd64 #1 SMP Debian 3.16.51-3 (2017-12-13) x86_64 GNU/Linux
Pi 3B+ (uses a totally different 'node'):

Code: Select all

[email protected]:~# speedtest-cli
Retrieving speedtest.net configuration...
Testing from Virgin Media (My IP)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Structured Communications (London) [6.53 km]: 15.286 ms
Testing download speed................................................................................
Download: 174.70 Mbit/s
Testing upload speed....................................................................................................
Upload: 12.02 Mbit/s
[email protected]:~# speedtest-cli --server 3788
Retrieving speedtest.net configuration...
Testing from Virgin Media (My IP)...
Retrieving speedtest.net server list...
No matched servers: 3788
ERROR: 1
Linux raspberrypi 4.9.80-v7+ #1098 SMP Fri Mar 9 19:11:42 GMT 2018 armv7l GNU/Linux
[email protected]:~# apt update
Hit:1 http://mirrordirector.raspbian.org/raspbian stretch InRelease
Hit:2 http://archive.raspberrypi.org/debian stretch InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
[email protected]:~# speedtest-cli --version
1.0.0
[email protected]:~#
[/code}

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

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

Mon Mar 26, 2018 8:56 am

RPIgoodSBC wrote:
Sun Mar 25, 2018 7:19 pm
RASPBIAN ON TINKERBOARD

raspbian-on-tinkerboard-2018-03-25.pngOK.I'm back.

I have and RPi3B+ and the tinkerboard and others.

Both can run from usb but only the RPi3B, RPi3B+ can boot without any SD card inside.
Right?
Tinkerboard needs an SD card to boot system kernel.

I have 2 Sandisk USB extreme 3.0 flash memory back labeled with name system and that works very well on sequential read/write performance and I/O read/write performance, more important in an SBC.
About 10Mb/s I/O random read/write performance and about 35Mb/s on sequential read/write performance over USB 2.0.
On USb 3.0 at this time is not possible on related SBC.I hope RPi4 can do.
Performance is much better than any SD avaliable.

I run tinkerboard from SD and edited extlinux.conf to point the usb Sandisk extreme usb.I have installed tinker OS on both SD and USB.
This way read/write is very good.
Note that internal controller Sandisk extreme is a SSD controller in an usb flash memory.
Well.
Then for error I have plugged the latest OS Raspbian Sandisk extreme on the Tinkerboard because all this job to test, and test, and test iperf3.

And Tinkerboard boot with latest Raspbian.
Kernel machinery is tinker OS (see screenshoot) and like the ethernet card is compiled at kernel level not like a module I have ethernet running.
Then now I have running and writing this lines from a tinkerboard machine with tinker OS kernel and Raspbian desktop.

Understand?

look:

[email protected]:~ $ glxinfo -B
name of display: :0.0
display: :0 screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
Vendor: VMware, Inc. (0xffffffff)
Device: llvmpipe (LLVM 3.9, 128 bits) (0xffffffff)
Version: 13.0.6
Accelerated: no
Video memory: 2014MB
Unified memory: no
Preferred profile: core (0x1)
Max core profile version: 3.3
Max compat profile version: 3.0
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 3.0
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 3.9, 128 bits)
OpenGL core profile version string: 3.3 (Core Profile) Mesa 13.0.6
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 3.0 Mesa 13.0.6
OpenGL shading language version string: 1.30
OpenGL context flags: (none)

OpenGL ES profile version string: OpenGL ES 3.0 Mesa 13.0.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00

:lol:

[email protected]:~ $ uname -a
Linux raspberrypi 4.4.71+ #1 SMP Thu Feb 22 18:23:31 CST 2018 armv7l GNU/Linux

some dmesg output:

8.901548] systemd[1]: systemd-modules-load.service: Main process exited, code=exited, status=1/FAILURE
[ 8.903439] systemd[1]: Failed to start Load Kernel Modules.
[ 8.905591] systemd[1]: systemd-modules-load.service: Unit entered failed state.
[ 8.911849] systemd[1]: systemd-modules-load.service: Failed with result 'exit-code'.

raspbian-on-tinkerboard-2018-03-25.png

My extlinux.conf:

label kernel-4.4
kernel /zImage
fdt /rk3288-miniarm.dtb
# append earlyprintk quiet splash plymouth.ignore-serial-consoles console=tty1 rw init=/sbin/init

#...boot from usb...
append earlyprintk quiet splash plymouth.ignore-serial-consoles root=/dev/sda2 console=tty1 rw init=/sbin/init

---
No sound, no wifi, no bluetooth but acceptable youtube performance on 1080p and better on 720p.
But youtube performance on chromium is better on RPi3B+.
I'm still not sure what this has to do with the Raspberry Pi 3B+ ethernet speed. You seem to be running on the TB, an entirely different device with entirely different ethernet and wireless chips.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I think it’s wrong that only one company makes the game Monopoly.” – Steven Wright

Return to “General discussion”