deady1000
Posts: 23
Joined: Fri Oct 06, 2017 4:47 pm

Ethernet slower than internal wifi?

Thu Oct 19, 2017 9:52 pm

Hello,
I did some speedtests with speedtest-cli and I got these results.
Image

I also did these test some time later and they still said that my internal wifi is faster then my 300Mbps-wifi-usb-adapter and internal ethernet.

My bandwidth should be between 20-30Mbps down and 6Mbps up (at least).
Distance to router is 2 meters, Ethernet-cable is 3m, adapter is AWUS052NH(300mbps).

Is this normal??
Greetings

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

Re: Ethernet slower than internal wifi?

Thu Oct 19, 2017 11:05 pm

I am supprised that the Ethernet down load is slower I would have expected it to be able to reach full down load speed on 30 mbs broad band connection.
I have a pi2 set up to do speed tests on my 70 mbs broadband and it has no problem reaching full speed if fact at off peak times it often reaches 76mbs the same as my desktop pc.

Are all the speed tests on all the connections to the same server on both the pi and your pc ?
We want information… information… information........................no information no help
The use of crystal balls & mind reading are not supported

User avatar
davidcoton
Posts: 4190
Joined: Mon Sep 01, 2014 2:37 pm
Location: Cambridge, UK

Re: Ethernet slower than internal wifi?

Thu Oct 19, 2017 11:36 pm

What else is the Pi doing, particularly on USB? The on-board Ethernet is connected via a single shared USB port.
Signature retired

deady1000
Posts: 23
Joined: Fri Oct 06, 2017 4:47 pm

Re: Ethernet slower than internal wifi?

Thu Oct 19, 2017 11:40 pm

I am surprised too.
At the raspberry I used the command/program "speedtest-cli".
My computer uses http://www.speedtest.net .

I connected it to my smartphone hotspot and instantly got 30mbps over 4G/LTE....
Maybe I try another ethernet cable but I dont think that this is the reason. :|

USB-devices:
1x Dongle for 2,4GHz keyboard/mouse
2x Wifiadapter (default Y-cable, enough power, no lightning symbol)
1x not used

I am connected over SSH and VNC. No display.

EDIT:
Is there any possibility to check max transfer bandwidth inside the LAN-network eg. between computer and raspi in mbps?

Milliways
Posts: 465
Joined: Fri Apr 25, 2014 12:18 am
Location: Sydney, Australia

Re: Ethernet slower than internal wifi?

Fri Oct 20, 2017 2:31 am

deady1000 wrote:
Thu Oct 19, 2017 9:52 pm
Hello,
I did some speedtests with speedtest-cli and I got these results.


I also did these test some time later and they still said that my internal wifi is faster then my 300Mbps-wifi-usb-adapter and internal ethernet.

My bandwidth should be between 20-30Mbps down and 6Mbps up (at least).
Distance to router is 2 meters, Ethernet-cable is 3m, adapter is AWUS052NH(300mbps).

Is this normal??
It is hardly surprising - Ethernet and WiFi dongle use the USB2 hub so the fastest you could expect is 30MB/s if nothing else is using the hub. The on-board WiFi is direct sdio connection.

deady1000
Posts: 23
Joined: Fri Oct 06, 2017 4:47 pm

Re: Ethernet slower than internal wifi?

Fri Oct 20, 2017 7:05 am

I am going to try the program iperf today.
apt-get install iperf

Thanks

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

Re: Ethernet slower than internal wifi?

Fri Oct 20, 2017 7:08 am

deady1000 wrote:
Thu Oct 19, 2017 11:40 pm
I am surprised too.
At the raspberry I used the command/program "speedtest-cli".
My computer uses http://www.speedtest.net .

I connected it to my smartphone hotspot and instantly got 30mbps over 4G/LTE....
Maybe I try another ethernet cable but I dont think that this is the reason. :|

USB-devices:
1x Dongle for 2,4GHz keyboard/mouse
2x Wifiadapter (default Y-cable, enough power, no lightning symbol)
1x not used

I am connected over SSH and VNC. No display.

EDIT:
Is there any possibility to check max transfer bandwidth inside the LAN-network eg. between computer and raspi in mbps?
Try disconnecting the USB Wifi, and see if that fixes it.
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
DougieLawson
Posts: 36312
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Ethernet slower than internal wifi?

Fri Oct 20, 2017 8:38 am

Start by looking at which adapter has the route to your gateway router.

Post the output from
ip addr show
ip link show
ip route
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

deady1000
Posts: 23
Joined: Fri Oct 06, 2017 4:47 pm

Re: Ethernet slower than internal wifi?

Fri Oct 20, 2017 12:46 pm

Code: Select all

[email protected]:/home/raspi# ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: KABEL: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether b8:27:eb:2c:bd:88 brd ff:ff:ff:ff:ff:ff
    inet 192.168.2.17/24 brd 192.168.2.255 scope global dynamic KABEL
       valid_lft 863612sec preferred_lft 863612sec
    inet6 fe80::1c45:5e7b:b6a5:1470/64 scope link 
       valid_lft forever preferred_lft forever
4: WIFI: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
    link/ether b8:27:eb:79:e8:dd brd ff:ff:ff:ff:ff:ff

	
	
	[email protected]:/home/raspi# ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: KABEL: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
    link/ether b8:27:eb:2c:bd:88 brd ff:ff:ff:ff:ff:ff
4: WIFI: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000
    link/ether b8:27:eb:79:e8:dd brd ff:ff:ff:ff:ff:ff

	
	
	[email protected]:/home/raspi# ip route
default via 192.168.2.1 dev KABEL  proto static  metric 100 
169.254.0.0/16 dev KABEL  scope link  metric 1000 
192.168.2.0/24 dev KABEL  proto kernel  scope link  src 192.168.2.17  metric 100 
[email protected]:/home/raspi# 
My router-ip/gateway is 192.168.2.1.
I deactivated wifi (internal and external) and unplugged all usb-devices except the keyboard-dongle.

I also tested network speeds with iperf:
LINK/Picture:
Image

This shows that theoretically I could get ~84mbps bandwidth over LAN.
However when I check speedtest-cli again it says:

RASPI
Ping: 39ms
Download: 12,40Mbps
Upload: 5,46Mbps

PC - VirtualMachine/Ubuntu
Ping: 38ms
Download: 25,86Mbps
Upload: 5,59Mbps

Both with speedtest-cli on the same server!
And again Raspi only has half bandwidth... :(

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

Re: Ethernet slower than internal wifi?

Fri Oct 20, 2017 1:20 pm

So just be way of another speed test to see if its some thing to do with speedtest.cli or python.

Now if i run this on one of my test pi's it will be on Jessie lite using 2 ssh connections one to display results and one to download file.

so first install nload

Code: Select all

sudo apt-get update
sudo apt-get install nload
once installed
now in the first ssh screen run nload.

in the second ssh screen you need to download a test file as you have not said were in the world you are select the nearest down load file from the ones on this site : https://linhost.info/2013/10/download-test-files/
just copy paste the appropriate line.

This is the sort of output you will get from nload

Image

as you can see you get max, min and curr download / upload speeds.
We want information… information… information........................no information no help
The use of crystal balls & mind reading are not supported

deady1000
Posts: 23
Joined: Fri Oct 06, 2017 4:47 pm

Re: Ethernet slower than internal wifi?

Sat Oct 21, 2017 4:22 pm

Ok I guess it was some kind of performance problem.
So I installed Raspbian and overclocked the cpu to 1420MHz which seems stable after I had a freeze at 1450MHz.

Now my download-speed reaches up to 25Mbits over wifi and ethernet.
Image

By the way the reason why I came here was because I had a Garry's Mod (Source-Engine) server running and it went awesome until the 4th player joined.
The server began to lag and that was because of a high ping >200 and not because of RAM-usage (50%!) or CPU (80%).
So I tested the bandwidth and the RPi only had 6-7mbits down / 4-5mbits up which is not enough.

Now with the overclock it should run smoother I hope :mrgreen: .

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

Re: Ethernet slower than internal wifi?

Sun Oct 22, 2017 9:27 am

Out of interest which pi are you using ?

Because a pi 2 or 3 should not need over clocking to saturate the LAN connection and achieve full speed.
my pi 2 is not over clocked and it reaches speeds of 76Mbits with out any problems.
We want information… information… information........................no information no help
The use of crystal balls & mind reading are not supported

deady1000
Posts: 23
Joined: Fri Oct 06, 2017 4:47 pm

Re: Ethernet slower than internal wifi?

Sun Oct 22, 2017 9:56 am

It is a new RPi 3.
My internet connection sometimes is not consistently because it is a combination of DSL (max 4-5mbps) and LTE (5-30mbps) so that I mostly have got 25mbps but nevertheless it is conspicuous that the RPi is much slower in direct comparison.

(Raspbian-Browser is capable of using www.speedtest.net!)

When I used a smartphone hotspot with a galaxy s7 I also reached higher bandwidth like 20-30mbps which accords to my phones LTE-speed.

In two weeks I will check how RPi performs when I plug it into a dsl100 connection.

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

Re: Ethernet slower than internal wifi?

Sun Oct 22, 2017 10:06 am

May be the fact that you are using a combination of DSL (max 4-5mbps) and LTE (5-30mbps) is what's causing your problems.

It will be good to compare it when using a DLS100 connection I suspect you will find even at stock cpu speed you will see much faster speed tests , but just be aware that you will probably not get full 100Mbits download speed as the LAN port is only 100Mbits and you will have some overheads on the connection but you might see speeds in 90-95 range.
We want information… information… information........................no information no help
The use of crystal balls & mind reading are not supported

Return to “Troubleshooting”