Friday, January 23, 2015

How to Check the Network Bandwidth between two network by using Iperf

Check your Network Bandwidth with Iperf






What is Iperf ?


Iperf is a tool to measure maximum TCP bandwidth, allowing the tuning of various parameters and UDP characteristics. Iperf reports bandwidth, delay jitter, datagram loss.

For this we needs 2 machine, Client(Sender) and Server(Receiver).

Here :-
Node 1 - 192.168.1.1 (Server)
Node 2 - 192.168.2.1 (Client)



From Node 1- (192.168.1.1) :-

Install iperf package
yum -y install iperf

Run the server service from Node 1 (192.168.1.1)
# iperf -s



From Node 2- (192.168.2.1) :-


Install iperf package
yum -y install iperf



Execute the below command from Node 2 (192.168.2.1), This will print the bandwidth.

# iperf -c 192.168.1.1 -fM -m -i5 -t25


Here the output :-

------------------------------------------------------------
Client connecting to 192.168.1.1, TCP port 5001
TCP window size: 0.02 MByte (default)
------------------------------------------------------------
[  3] local 192.168.2.1 port 41773 connected with 192.168.1.1 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0- 5.0 sec  3.25 MBytes  0.65 MBytes/sec
[  3]  5.0-10.0 sec  2.75 MBytes  0.55 MBytes/sec
[  3] 10.0-15.0 sec  3.00 MBytes  0.60 MBytes/sec
[  3] 15.0-20.0 sec  2.88 MBytes  0.57 MBytes/sec
[  3] 20.0-25.0 sec  3.00 MBytes  0.60 MBytes/sec
[  3]  0.0-25.3 sec  15.0 MBytes  0.59 MBytes/sec
[  3] MSS size 1376 bytes (MTU 1416 bytes, unknown interface)


For more detail execute this command :
# man iperf



Thank You
****



No comments:

Post a Comment