Cable Guy
Posts: 2
Joined: Tue May 12, 2015 7:30 pm

Iperf - Pi to Pi LAN

Mon Jun 01, 2015 7:06 pm

Hey, im trying to do some low level network testing using to raspberry Pi 2's to test wifi throughput over the lan. I am attempting to use Iperf but cant seem to get them to connect to each other.

Anyone have any experience that can assist? Im sure its simple but im a bit of a noob with this.. :D

User avatar
expandables
Posts: 654
Joined: Fri Jun 27, 2014 7:34 pm
Location: Neverland with Michael Jackson

Re: Iperf - Pi to Pi LAN

Mon Jun 01, 2015 7:27 pm

Use Epiphany browser and go to http://www.speedtest.net/
By thinking like an engineer you can create a raspberry pi.
Michael Jackson enthusiast.
I got the PI model B, B+ and PI 2 model B.
When will I get the A? I don't know.

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

Re: Iperf - Pi to Pi LAN

Mon Jun 01, 2015 7:41 pm

Cable Guy wrote:Hey, im trying to do some low level network testing using to raspberry Pi 2's to test wifi throughput over the lan. I am attempting to use Iperf but cant seem to get them to connect to each other.

Anyone have any experience that can assist? Im sure its simple but im a bit of a noob with this.. :D
Run one copy of iperf as server or daemon.

Run the other copy as client and tell it to connect to the other node by citing that node's IP address.

(Have both RPis been assigned valid IP addresses for use on your LAN?)

[Speedtest fulfils a similar but different purpose: it is not a useful substitute for measuring lan-lan traffic.]

EDIT: real life sample -
On the node (arbitrarily) designated the 'server' -

Code: Select all

pi@raspberrypi ~ $ hostname -I
192.168.1.17
pi@raspberrypi ~ $ iperf -s
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
[  4] local 192.168.1.17 port 5001 connected with 192.168.1.12 port 56454
[ ID] Interval       Transfer     Bandwidth
[  4]  0.0-10.0 sec   112 MBytes  93.9 Mbits/sec
On the other node, being used as the 'client' -

Code: Select all

pi@RPi2B ~/text2speech $ iperf -c 192.168.1.17     ## note the target is the IP address of the 'server' node
------------------------------------------------------------
Client connecting to 192.168.1.17, TCP port 5001
TCP window size: 43.8 KByte (default)
------------------------------------------------------------
[  3] local 192.168.1.12 port 56454 connected with 192.168.1.17 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec   112 MBytes  94.2 Mbits/sec
pi@RPi2B ~/text2speech $

Return to “Beginners”