This is how to use iperf!

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware
Author Message
JAMESMTL
DD-WRT Guru


Joined: 13 Mar 2014
Posts: 856
Location: Montreal, QC

PostPosted: Wed Sep 09, 2015 17:35    Post subject: This is how to use iperf! Reply with quote
Its iperf3 that's included with the most recent build. To run use iperf3 -s etc.
_________________
IPv6 Ready - HE IPv6 Tunnel
http://test-ipv6.com (10/10)
http://ipv6-test.com (20/20)
http://test-ipv6.netiter.dk (20/20)

Sponsor
Vishwa
DD-WRT User


Joined: 05 Mar 2014
Posts: 193
Location: Edmonton, AB

PostPosted: Wed Sep 09, 2015 18:01    Post subject: Reply with quote
Thanks for the tip. I was looking for iperf and thought it was left out. Will try the iperf3 today.
Gaudi
DD-WRT Novice


Joined: 08 Mar 2007
Posts: 10

PostPosted: Tue Nov 17, 2015 0:13    Post subject: Reply with quote
Am trying to run iperf3 as described, but it is not available in the build.


Code:
==========================================================

     ___  ___     _      _____  ______       ____  ___
    / _ \/ _ \___| | /| / / _ \/_  __/ _  __|_  / / _ \
   / // / // /___/ |/ |/ / , _/ / /   | |/ //_ <_/ // /
  /____/____/    |__/|__/_/|_| /_/    |___/____(_)___/

                       DD-WRT v3.0
                   http://www.dd-wrt.com

==========================================================


BusyBox v1.23.2 (2015-09-11 00:59:39 CEST) built-in shell (ash)

root@DD-WRT Client:~# uname -a
Linux DD-WRT Client 2.6.24.111 #26917 Fri Sep 11 00:59:58 CEST 2015 mips GNU/Linux
root@DD-WRT Client:~# iperf
-sh: iperf: not found
root@DD-WRT Client:~# iperf3
-sh: iperf3: not found


Can you comment how to install iperf3 on the router, if it is not already bundled?
Am using dd-wrt.v24-27805_NEWD-2_K2.6_mega-nv60k on a Linksys E4200 v1 router.

Thank you.
JAMESMTL
DD-WRT Guru


Joined: 13 Mar 2014
Posts: 856
Location: Montreal, QC

PostPosted: Tue Nov 17, 2015 1:46    Post subject: Reply with quote
ummm. looks like this thread was split off from another as I was answering someone's question at the time.

Anyhow from what you've posted I suspect your running an older router with less storage and iperf3 is not included to keep FW size down.

_________________
IPv6 Ready - HE IPv6 Tunnel
http://test-ipv6.com (10/10)
http://ipv6-test.com (20/20)
http://test-ipv6.netiter.dk (20/20)

Gaudi
DD-WRT Novice


Joined: 08 Mar 2007
Posts: 10

PostPosted: Tue Nov 17, 2015 1:52    Post subject: Reply with quote
JAMESMTL wrote:
ummm. looks like this thread was split off from another as I was answering someone's question at the time.

Anyhow from what you've posted I suspect your running an older router with less storage and iperf3 is not included to keep FW size down.


That is strange, as it has 8 mb flash, and 64 mb ram.
Firmware is 7.6 mb, so for such a small command as iperf there should be plenty of space.

Code:
Memory
Total Available 57.5 MB / 64.0 MB
Free 38.9 MB / 57.5 MB
Used 18.6 MB / 57.5 MB
Buffers 2.3 MB / 18.6 MB
Cached 6.0 MB / 18.6 MB
Active 1.5 MB / 18.6 MB
Inactive 1.2 MB / 18.6 MB

Space Usage
NVRAM 36.83 KB / 60 KB
CIFS (Not mounted)
JFFS2 (Not mounted)
rpaulcox
DD-WRT Novice


Joined: 06 Apr 2016
Posts: 1
Location: East Africa

PostPosted: Wed Apr 06, 2016 11:20    Post subject: Finding iperf on dd-wrt Reply with quote
On my version of dd-wrt (v24-sp2) iperf (version 2) is found in /usr/sbin. Change to this directory and one can run iperf. While I have yet to test iperf, at least it is installed in this version of dd-wrt.

Below are the details showing how I got to iperf.

DD-WRT v24-sp2 std (c) 2012 NewMedia-NET GmbH
Release: 02/11/13 (SVN revision: 20675)
==========================================================

____ ___ __ ______ _____ ____ _ _
| _ \| _ \ \ \ / / _ \_ _| __ _|___ \| || |
|| | || ||____\ \ /\ / /| |_) || | \ \ / / __) | || |_
||_| ||_||_____\ V V / | _ < | | \ V / / __/|__ _|
|___/|___/ \_/\_/ |_| \_\|_| \_/ |_____| |_|

DD-WRT v24-sp2
http://www.dd-wrt.com

==========================================================


BusyBox v1.20.2 (2013-02-11 05:10:57 CET) built-in shell (ash)
Enter 'help' for a list of built-in commands.

root@cipher-cat:~# cd /usr/sbin
root@cipher-cat:/usr/sbin# iperf -v
iperf version 2.0.5 (08 Jul 2010) pthreads
root@cipher-cat:/usr/sbin#
Brimmy
DD-WRT User


Joined: 29 Mar 2015
Posts: 381

PostPosted: Wed Apr 06, 2016 19:46    Post subject: Re: This is how to use iperf! Reply with quote
JAMESMTL wrote:
Its iperf3 that's included with the most recent build. To run use iperf3 -s etc.


Hi,

new to iperf, can i use this tool on a wzr1750dhpd with these specs on BS r29346?

Memory
Total Available503.3 MB / 512.0 MB
Free448.1 MB / 503.3 MB
Used55.2 MB / 503.3 MB
Buffers4.9 MB / 55.2 MB
Cached13.5 MB / 55.2 MB
Active14.1 MB / 55.2 MB
Inactive7.4 MB / 55.2 MB

Space Usage
NVRAM36 KB / 64 KB
CIFS(Not mounted)
JFFS2(Not mounted)

Also, i saw this post about iperf http://www.wi-fiplanet.com/tutorials/print.php/3658331 and in the post the writer, Carla Schroder, stated that if i run this code admin@router1:~$ iperf -s user@remotepc:~$ iperf -c router1.yourdomain.com i should be all set to run/use iperf on any router with ddwrt. Would i save this code to Firewall/Startup/RunCommand or other?

Can you tell me what i should look for, maybe a new setting in the ddwrt webgui, if i succeed in getting iperf to run?
JAMESMTL
DD-WRT Guru


Joined: 13 Mar 2014
Posts: 856
Location: Montreal, QC

PostPosted: Wed Apr 06, 2016 20:16    Post subject: Reply with quote
As your wzr1750dhpd runs an ARM DDWRT build, iperf3 is included.

To run as server, run the following from CLI
iperf3 -s

To run as client, run the following from CLI
iperf3 -c 192.168.1.2

where 192.168.1.2 is target IP or alternatively hostname


You could start iperf3 server as a daemon via startup script but I dont see the point.

iperf3 -s -D

_________________
IPv6 Ready - HE IPv6 Tunnel
http://test-ipv6.com (10/10)
http://ipv6-test.com (20/20)
http://test-ipv6.netiter.dk (20/20)

Brimmy
DD-WRT User


Joined: 29 Mar 2015
Posts: 381

PostPosted: Wed Apr 06, 2016 21:15    Post subject: Reply with quote
Thanks James, got it running, saw no increase in my CPU's speed but my bandwidth was cut in half, so i think this is not for me as i need every kilobit of bandwidth as i only have a 15/2mbps line.

I thought it would get like lower ping/jitter but it was the same.

Thanks anyway!
coletrain
DD-WRT User


Joined: 01 Oct 2016
Posts: 172
Location: St.louis, MO USA

PostPosted: Sun Oct 25, 2020 20:05    Post subject: Reply with quote
JAMESMTL wrote:
As your wzr1750dhpd runs an ARM DDWRT build, iperf3 is included.

To run as server, run the following from CLI
iperf3 -s

To run as client, run the following from CLI
iperf3 -c 192.168.1.2

where 192.168.1.2 is target IP or alternatively hostname


You could start iperf3 server as a daemon via startup script but I dont see the point.

iperf3 -s -D


your the man!

_________________
[MAIN GATEWAY] Netgear R7000 DD-WRT v3.0-r43324 std (06/02/20)
[AP1-wired] Asus RT-AC68U - D-WRT v3.0-r44467 std (09/24/20)
[AP2-wired] Asus RT-AC68RD-WRT v3.0-r44467 std (09/24/20)
(switch) 1 AP WRT160N v3 - DD-WRT v3.0-r30731 mini (10/06/16)
==
YOU CAN'T STOP THE COLETRAIN BABY!
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum