TamP
Posts: 95
Joined: Mon Feb 19, 2018 1:28 pm

WiFi speeds

Sat Apr 13, 2019 9:12 am

My PC gets a connection of approx 75Mbps downloads
My Pi 3b+ gets approx 33Mbps wireless
and approx 25 Ethernet

Should there be such a big difference on the Pi ?

fruitoftheloom
Posts: 24504
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: WiFi speeds

Sat Apr 13, 2019 9:47 am

TamP wrote:
Sat Apr 13, 2019 9:12 am
My PC gets a connection of approx 75Mbps downloads
My Pi 3b+ gets approx 33Mbps wireless
and approx 25 Ethernet

Should there be such a big difference on the Pi ?

How are you measuring the speeds iperf ?

https://linux.die.net/man/1/iperf
Thinking outside the box is better than burying your head in the sand...

TamP
Posts: 95
Joined: Mon Feb 19, 2018 1:28 pm

Re: WiFi speeds

Sat Apr 13, 2019 10:38 am

I was using speedtest.net

fruitoftheloom
Posts: 24504
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: WiFi speeds

Sat Apr 13, 2019 10:56 am

TamP wrote:
Sat Apr 13, 2019 10:38 am
I was using speedtest.net

speedetest has proved inconclusive In various posts, for speed between your router and RPi iperf is better......


This blog though not specific to your issue has some good benchmarks:

https://www.jeffgeerling.com/blogs/jeff ... networking
Thinking outside the box is better than burying your head in the sand...

TamP
Posts: 95
Joined: Mon Feb 19, 2018 1:28 pm

Re: WiFi speeds

Sat Apr 13, 2019 11:01 am

Thanks for that
What do I enter to use iperf
I am a beginner

TamP
Posts: 95
Joined: Mon Feb 19, 2018 1:28 pm

Re: WiFi speeds

Sat Apr 13, 2019 11:20 am

I didnt realise I had to install iperf
I entered
sudo apt-get install iperf;
iperf -s
But it just starts a server and waits
Any help appreciated

User avatar
B.Goode
Posts: 10725
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: WiFi speeds

Sat Apr 13, 2019 11:24 am

TamP wrote:
Sat Apr 13, 2019 11:20 am
I didnt realise I had to install iperf
I entered
sudo apt-get install iperf;
iperf -s
But it just starts a server and waits
Any help appreciated



So now you go to another device on your network and run iperf as a client.

fruitoftheloom
Posts: 24504
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: WiFi speeds

Sat Apr 13, 2019 11:31 am

TamP wrote:
Sat Apr 13, 2019 11:20 am
I didnt realise I had to install iperf
I entered
sudo apt-get install iperf;
iperf -s
But it just starts a server and waits
Any help appreciated

https://www.thegeekdiary.com/how-to-use ... -in-linux/

https://linux.die.net/man/1/iperf
Thinking outside the box is better than burying your head in the sand...

TamP
Posts: 95
Joined: Mon Feb 19, 2018 1:28 pm

Re: WiFi speeds

Sat Apr 13, 2019 11:56 am

Thank you for your time and patience
After installing on my Windows PC and the pi, I got a result
Unfortunately, it was a round about way, of showing approx the same results as speedtest.net

robjak
Posts: 26
Joined: Sun Mar 12, 2017 7:22 pm

Re: WiFi speeds

Sat Apr 13, 2019 10:12 pm

You need to tell us a little more about your network and how each device is connected. 3B+ should max at about 270 Mb/s. More than enough to handle your full 75Mb/s connection.

robjak
Posts: 26
Joined: Sun Mar 12, 2017 7:22 pm

Re: WiFi speeds

Sat Apr 13, 2019 10:58 pm

3b+ ethernet
iperf3 -c 192.168.0.190 -i 5 -t 10
Connecting to host 192.168.0.190, port 5201
[ 5] local 192.168.0.194 port 38164 connected to 192.168.0.190 port 5201
[ ID] Interval Transfer Bitrate Retr Cwnd
[ 5] 0.00-5.00 sec 166 MBytes 278 Mbits/sec 0 567 KBytes
[ 5] 5.00-10.00 sec 165 MBytes 276 Mbits/sec 0 567 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -

3b+ wi-fi
iperf3 -c 192.168.0.190 -i 5 -t 10
Connecting to host 192.168.0.190, port 5201
[ 4] local 192.168.0.191 port 41150 connected to 192.168.0.190 port 5201
[ ID] Interval Transfer Bandwidth Retr Cwnd
[ 4] 0.00-5.00 sec 52.0 MBytes 87.2 Mbits/sec 0 170 KBytes
[ 4] 5.00-10.00 sec 54.2 MBytes 90.9 Mbits/sec 0 281 KBytes

Mode:Managed Frequency:5.765 GHz
Bit Rate=433.3 Mb/s Tx-Power=31 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Link Quality=70/70 Signal level=-8 dBm

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

Re: WiFi speeds

Sat Apr 13, 2019 11:15 pm

If you are using the browser benchmark on speedtest.net, try the CLI version (browser test overwhelms the Pi's limited resources).

Code: Select all

sudo apt install speedtest-cli

speedtest-cli
Of course, this only tests your Internet speed, and you should run the test several times and throw out any unusually low results (as others have said, speedtest.net is not consistent).

Here's what I get on a 100/100 fiber connection (3B+ 5GHz wireless AC, Raspbian Stretch, ASUS RT-AC68U router).
Image

On the browser based test I get:
Image

Compared to the browser test on my Win10 gaming laptop:
Image

So you can see that the browser based speedtest.net benchmark does not work well on the Pi.
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?

TamP
Posts: 95
Joined: Mon Feb 19, 2018 1:28 pm

Re: WiFi speeds

Sun Apr 14, 2019 8:12 am

I thank you for that
The cmi works great
I am getting accurate results
My windows pc returns a speed of 75.3 Mbps using ethernet
and the Pi returns a speed of 72.7 Mbps using ethernet

Great
Thanks again

Return to “Beginners”