• Contact Us
  • Home
  • About Us
  • News
    • Entertainment
    • Trending
  • IT
    • Code
    • Cloud
    • Linux
    • Splunk
  • Login
  • Register
Upgrade
CloudiBee
  • Contact Us
  • Home
  • About Us
  • News
    • Entertainment
    • Trending
  • IT
    • Code
    • Cloud
    • Linux
    • Splunk
No Result
View All Result
  • Contact Us
  • Home
  • About Us
  • News
    • Entertainment
    • Trending
  • IT
    • Code
    • Cloud
    • Linux
    • Splunk
No Result
View All Result
CloudiBee
No Result
View All Result
Home Linux

iperf : Network throughput measurement tool

cloudibee by cloudibee
February 23, 2009
in Linux
0
0
SHARES
38
VIEWS
Share on FacebookShare on Twitter
Iperf is a commonly used network testing tool that can create TCP and UDP data streams and measure the throughput of a network. Iperf allows the user to set various parameters that can be used for testing a network, or alternately for optimizing or tuning a network. Iperf has a client and server functionality, and can measure the throughput between the two ends, either unidirectonally or bi-directionally. You can download it in Sourceforce http://sourceforge.net/projects/iperf .  Iperf is a client server program. In our example, let us start “server” iperf at location1 and let the “location2” be the client.

Server side : To start iperf as “server” service, use the “-s” flag.

[root@location1 ~]# iperf  -s
—————————————
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
—————————————

Table of Contents

  • You might also like
  • Linux Change Password Command: Change password expiry in Linux
  • Top Open Source Email Servers

You might also like

Linux Change Password Command: Change password expiry in Linux

April 7, 2021
Email Servers

Top Open Source Email Servers

September 7, 2021

To stop the server, send Ctrl+C.

Client side: For client side, iperf has to be initiated with “-c” option. There are lot of other options, which performs different kind of testing. Few examples are explained below.

1) Measuring throughput using default iperf option. This connects to the iperf server mentioned and finds out the network throughput.

[root@location2 ~]# iperf -c location1
—————————————
Client connecting to location1, TCP port 5001
TCP window size: 16.0 KByte (default)
—————————————
[  3] local 201.87.4.3 port 41505 connected with 131.15.17.19 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.1 sec  27.4 MBytes  22.8 Mbits/sec
[root@location2 ~]#

2) Measuring bidirectional throughput usind -d option.

[root@location2 ~]# iperf  -c location1 -d
—————————————
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
—————————————
Client connecting to location1, TCP port 5001
TCP window size: 16.0 KByte (default)
—————————————
[  5] local 201.87.4.3 port 41518 connected with 131.15.17.19 port 5001
[  4] local 201.87.4.3 port 5001 connected with 131.15.17.19 port 59284
[ ID] Interval       Transfer     Bandwidth
[  5]  0.0-10.1 sec  27.2 MBytes  22.7 Mbits/sec
[  4]  0.0-10.0 sec  25.2 MBytes  21.1 Mbits/sec
[root@location2 ~]#

3) Measuring multi-thread throughput. Use -P option to specify the number of parallel threads to be started.

[root@location2 ~]# iperf  -c location1 -P 3
—————————————
Client connecting to location1, TCP port 5001
TCP window size: 16.0 KByte (default)
—————————————
[  5] local 201.87.4.3 port 41523 connected with 131.15.17.19 port 5001
[  4] local 201.87.4.3 port 41522 connected with 131.15.17.19 port 5001
[  3] local 201.87.4.3 port 41521 connected with 131.15.17.19 port 5001
[ ID] Interval       Transfer     Bandwidth
[  5]  0.0-10.1 sec  27.9 MBytes  23.3 Mbits/sec
[  4]  0.0-10.1 sec  27.9 MBytes  23.2 Mbits/sec
[  3]  0.0-10.1 sec  27.8 MBytes  23.1 Mbits/sec
[SUM]  0.0-10.1 sec  83.6 MBytes  69.5 Mbits/sec
[root@location2 ~]#

3) Measuring throughput by disabling Nagle’s Algorithm.

Nagle’s algorithm, named after John Nagle, is a means of improving the efficiency of TCP/IP networks by reducing the number of packets that need to be sent over the network. [ http://en.wikipedia.org/wiki/Nagle%27s_algorithm ]

[root@location2 ~]# iperf  -c location1 -P 3 -N
—————————————
Client connecting to location1, TCP port 5001
TCP window size: 16.0 KByte (default)
—————————————
[  3] local 201.87.4.3 port 41527 connected with 131.15.17.19 port 5001
[  4] local 201.87.4.3 port 41528 connected with 131.15.17.19 port 5001
[  5] local 201.87.4.3 port 41529 connected with 131.15.17.19 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.1 sec  27.8 MBytes  23.1 Mbits/sec
[  4]  0.0-10.1 sec  27.9 MBytes  23.2 Mbits/sec
[  5]  0.0-10.1 sec  28.0 MBytes  23.2 Mbits/sec
[SUM]  0.0-10.1 sec  83.7 MBytes  69.6 Mbits/sec
[root@location2 ~]#

You can even run the client side on regular intervals using cron daemon and plot graphs (using mrtg or rrd) for the throughput. Hope this is helpful.

Previous Post

Vmware Performance tuning Tips

Next Post

GSmartControl : GUI for smartctl

cloudibee

cloudibee

Related Posts

Linux

Linux Change Password Command: Change password expiry in Linux

by cloudibee
April 7, 2021
Email Servers
Linux

Top Open Source Email Servers

by cloudibee
September 7, 2021
Linux

How to Determine Redhat Versions Command

by cloudibee
May 27, 2022
Linux

How-to Linux List Processes in 3 Simple Commands

by cloudibee
May 27, 2022
Linux

What is Cron Job in Linux?

by cloudibee
May 27, 2022
Next Post

GSmartControl : GUI for smartctl

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Premium Content

Leadership

May 27, 2022

Hosted Solution Profiles

May 30, 2022

All about My DNS Server

January 26, 2021

Browse by Category

  • Business
  • Cloud
  • Code
  • Debt
  • Entertainment
  • finance
  • Game
  • Health
  • IT
  • Lawyers
  • Lifestyle
  • Linux
  • Marketing
  • Misc
  • News
  • SEO
  • Services
  • Splunk
  • Sports
  • Tech
  • Technology
  • Tipes
  • Tips
  • Uncategorized

Browse by Tags

algorithm Apache Apache2 AWS Bash bash history Bind Blacklists Buffer C C++ CentOS Cerner chage Cloud Cloud Computing Cloud jobs Cloud Storage Cloud Suite Commands Compliance Cron job Debian Directory DMS DNS Docker Dovecot drop cache Email servers Enteprise Cloud Enterprise External FAT32 Format kernel Linux linux kernel Nirvanix passwd Sendmail SSH SSL Terminal Ubuntu

About CloudiBee

cloudibee logo


CloudiBee is an open-source for people who love technology. Here we will be sharing lots of technical information over the web so that a lot of people visit us and gain some knowledge. We are a completely open to all platform. We assure you that you can easily get any info and updated news about the tech world from us. Let's begin with us!

Hot Topic

What are the best internet options for lawyers?

by samanvya
August 15, 2022
0
What are the best internet options for lawyers?

Meeting clients, questioning possible witnesses and getting in contact with other people in the case, or preparing for hearings with...

Read more

Recent News

Lifestyle

Best Gifts To Offer A Friend Who Owned A New House

July 22, 2022
Business

The main reasons for the startup fails. How to avoid failure?

July 21, 2022
Business

Hacks for packing wine glasses so they don’t break

July 21, 2022

CloudiBee. © 2021. All Rights Reserved

No Result
View All Result
  • Contact Us
  • Home
  • About Us
  • News
    • Entertainment
    • Trending
  • IT
    • Code
    • Cloud
    • Linux
    • Splunk

CloudiBee. © 2021. All Rights Reserved

Welcome Back!

Login to your account below

Forgotten Password? Sign Up

Create New Account!

Fill the forms bellow to register

All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In