Page 1 of 1

USB Ethernet Question

Posted: Tue May 08, 2018 11:46 pm
by skillskills
So I recently tried setting up my Pi to monitor network traffic in and out of the network. I have bridge working now but am seeing some odd results and wanted to know if someone could chime in their thoughts?

When I run speedtest-cli in the the layout the results are:
Internet > (Onboard Ethernet > Pi > USB Ethernet) > Rest of network
On Pi - Download: 90.47 Mbit/s and Upload: 25.85 Mbit/s
On any device behind the Pi - 87 Mbit/s and Upload: 0.12 Mbit/s


However, if I run
Internet > (USB Ethernet > Pi > Onboard) > Rest of network
On Pi - Download: 1.30 Mbit/s and Upload: 30.22 Mbit/s
On any device behind the Pi - 0.17 Mbit/s and Upload: 25 Mbit/s

I appear to have some kind of issue with the direction and am looking for insight.

Hardware:
Pi 3 - Onboard ethernet
Trendnet USB Ethernet ( https://www.amazon.ca/gp/product/B00FFJ ... UTF8&psc=1 )

Software:
top (to ensure the pi is not too busy)
vnstat
speedtest-cli

Re: USB Ethernet Question

Posted: Wed May 09, 2018 12:59 am
by W. H. Heydt
The builtin Ethernet adapter is limited to 100Mb/s on every Pi prior to the Pi3B+. Whether a USB Ethernet dongle will go faster that 100Mb/s depends on the dongle.

Re: USB Ethernet Question

Posted: Wed May 09, 2018 2:00 am
by ejolson
skillskills wrote:
Tue May 08, 2018 11:46 pm
So I recently tried setting up my Pi to monitor network traffic in and out of the network. I have bridge working now but am seeing some odd results and wanted to know if someone could chime in their thoughts?

When I run speedtest-cli in the the layout the results are:
Internet > (Onboard Ethernet > Pi > USB Ethernet) > Rest of network
On Pi - Download: 90.47 Mbit/s and Upload: 25.85 Mbit/s
On any device behind the Pi - 87 Mbit/s and Upload: 0.12 Mbit/s


However, if I run
Internet > (USB Ethernet > Pi > Onboard) > Rest of network
On Pi - Download: 1.30 Mbit/s and Upload: 30.22 Mbit/s
On any device behind the Pi - 0.17 Mbit/s and Upload: 25 Mbit/s

I appear to have some kind of issue with the direction and am looking for insight.

Hardware:
Pi 3 - Onboard ethernet
Trendnet USB Ethernet ( https://www.amazon.ca/gp/product/B00FFJ ... UTF8&psc=1 )

Software:
top (to ensure the pi is not too busy)
vnstat
speedtest-cli
I think slow upload speeds are characteristic of consumer-grade DSL and cable modem connections in North America.

The idea is to segregate the producers of digital content from the consumers. Thus, setting up a small server becomes significantly more expensive and many innovations and startup ideas are effectively stifled. Given vested interests in preserving the status quo, those who talk about net neutrality never suggest that upstream and downstream packets should have the same priority. At the same time, there is not anything so bad that it can't be made worse.

Re: USB Ethernet Question

Posted: Thu May 10, 2018 8:58 am
by mfa298
skillskills wrote:
Tue May 08, 2018 11:46 pm
So I recently tried setting up my Pi to monitor network traffic in and out of the network. I have bridge working now but am seeing some odd results and wanted to know if someone could chime in their thoughts?

When I run speedtest-cli in the the layout the results are:
Internet > (Onboard Ethernet > Pi > USB Ethernet) > Rest of network
On Pi - Download: 90.47 Mbit/s and Upload: 25.85 Mbit/s
On any device behind the Pi - 87 Mbit/s and Upload: 0.12 Mbit/s

However, if I run
Internet > (USB Ethernet > Pi > Onboard) > Rest of network
On Pi - Download: 1.30 Mbit/s and Upload: 30.22 Mbit/s
On any device behind the Pi - 0.17 Mbit/s and Upload: 25 Mbit/s
Bold moved to highlight where the problem appears to lie.

The issue looks to be related to the usb ethernet and packets going into the pi through it.

The first test from the pi seems to show you internet speed is reasonable (download is probably limited by the pi and upload by your connection).

I'd probably try some tests with the pi setup as a router rather than bridge to rule out some some interaction with the bridging drivers and ethernet drivers as well as some iperf tests to demonstrate the slow speeds on one specific link.

It would probably be worth also checking the ethernet cables (swap out for some other cables) as well as watching error counts in the interfaces.

Re: USB Ethernet Question

Posted: Thu May 10, 2018 6:20 pm
by ejolson
mfa298 wrote:
Thu May 10, 2018 8:58 am
Bold moved to highlight where the problem appears to lie.
Thanks for the clarification. It seems the USB Ethernet dongle is broken. On a Pi 3B+ not all sockets are the same, but the person who made the original post seems to be using a 3B.

To the original poster, have you tried moving the dongle to a different USB socket? Also, check the output of lsusb to determine whether the dongle is connecting as a full speed or high speed USB device. Have you tried rebooting the Pi with the dongle plugged in? That sometimes helps with the autonegotiation. Make sure to fully power everything off.

Re: USB Ethernet Question

Posted: Thu May 10, 2018 6:38 pm
by fruitoftheloom
ejolson wrote:
Thu May 10, 2018 6:20 pm
mfa298 wrote:
Thu May 10, 2018 8:58 am
Bold moved to highlight where the problem appears to lie.
Thanks for the clarification. It seems the USB Ethernet dongle is broken. On a Pi 3B+ not all sockets are the same, but the person who made the original post seems to be using a 3B.

To the original poster, have you tried moving the dongle to a different USB socket? Also, check the output of lsusb to determine whether the dongle is connecting as a full speed or high speed USB device. Have you tried rebooting the Pi with the dongle plugged in? That sometimes helps with the autonegotiation. Make sure to fully power everything off.

https://www.jeffgeerling.com/blogs/jeff ... networking


https://www.jeffgeerling.com/blog/2018/ ... comparison