How To Install Iperf On Windows 7
Testing network functioning in terms of speed and bandwidth is a norm in both production and non-production environment.
A detailed study of speed and bandwidth analysis is very much necessary for the deployment of network dependent application servers. Also sometimes you demand to double check the speed of your network throughput while troubleshooting. All these requires a reliable network performance testing tool. This post will be concentrating on one such tool called equally "iperf" .
IPERF is an open source tool that can be used to examination network functioning. Iperf is much more than reliable in its exam results compared to many other online network speed exam providers.
An added advantage of using IPERF for testing network performance is the fact that, it is very reliable if you have ii servers, both in geographically different locations, and y'all want to measure network functioning betwixt them.
How to install iperf?
Installing iperf is very much piece of cake, if you have epel yum repository enabled(in redhat system's).
[root@slashroot1 ~]# yum install iperf ================================================================================ Bundle Curvation Version Repository Size ================================================================================ Installing: iperf i386 2.0.five-1.el5 epel 52 k
Installing iperf from source is also very much piece of cake. Only download the iperf source parcel from Iperf Source Package
And do a normal source installation steps as follows.
#tar -xvf iperf-2.0.5.tar.gz
The in a higher place command will excerpt the tar package You downloaded from the above link.
Now become inside the extracted directory and run the beneath command to configure, with the default options.
[root@slashroot2 ~]# cd iperf-2.0.5 [root@slashroot2 iperf-two.0.5]# ./configure
At present lets compile information technology with "make" command, then install information technology using "make install" control.
[root@slashroot2 iperf-2.0.v]# make [root@slashroot2 iperf-2.0.5]# make install
How to install iperf in windows auto?
Installing iperf in windows is besides quite easy. Lets see how.
Y'all can download iperf for windows from Iperf For windows. At present unzip this zip file to a folder named "iperf" and run the iperf.exe inside that directory.
For example i have extracted, the iperf aught in C:\iperf directory, and then will open up the Windows CMD, and navigate to that directory, to run the iperf.exe command.
C:\>cd C:\iperf C:\iperf>iperf.exe
How to examination the network speed betwixt one windows machine and a linux machine?
Equally i told before, iperf can exist used to perform speed test betwixt remote automobile's. It works in a client server model.
The operating arrangement does non thing, while you are using iperf. The commands for using iperf on windows is exactly the same as in linux. And also other operating system. Normally in the exam surround, iperf client sends data to the server for the test.
Before going ahead with the exam, lets understand some networking concepts related to speed test.
Network Throughput
Transfer rate of information from one place to another with respect to time is called as throughput. Throughput is considered a quality measuring metric for difficult disks,network etc. Its measured in Kbps(Kilo $.25 per second),Mbps(Mega bits per second),Gbps(Giga $.25 per 2d.)
TCP Window
TCP (Transmission Command Protocol), is a reliable transport layer protocol used for network communications. How TCP works, is beyond the scope of this article. TCP works on a reliable manner, past sending messages and waiting for acknowledgement from the receiver.
Whenever two car's are communicating with each other, then each of them will inform the other, nearly the amount of bytes it is set up to receive at one fourth dimension.
In other words, the maximum corporeality of data that a sender can ship the other end, without an acknowledgement is called equally Window Size. This TCP window size affects network throughput very badly sometimes. Lets take an case.
Suppose yous desire to send a 500MB of information from one machine to the other, with the tcp window size of 64KB.
Which means for sending the whole 500MB data, the sending automobile has to wait 800 times for an acknowledgement from the receiver.
500MB / 64KB = 800
So you can conspicuously come across that, if y'all increment the Window size a little bit to tune TCP, it can bring meaning difference to the throughput achieved.
Suppose you have a windows machine and want to mensurate the speed between information technology and another Linux machine, and so you lot demand to make one as customer, and some other as the server. Lets run into how.
We will make our windows car the server and the Linux machine as the client.
C:\iperf>iperf.exe -s ------------------------------------------------------------ Server listening on TCP port 5001 TCP window size: 64.0 KByte (default) ------------------------------------------------------------
-Due south statement is used for specifying server
The to a higher place command, starts iperf server on the windows machine, and it bydefault runs on the port 5001 by default.(Information technology also reports that the default TCP window size is 64.0KB).
Lets test the throughput from the Linux client machine, as shown below.
[root@slashroot2 ~]# iperf -c 192.168.0.101 ------------------------------------------------------------ Client connecting to 192.168.0.101, TCP port 5001 TCP window size: 16.0 KByte (default) ------------------------------------------------------------ [ 3] local 192.168.0.102 port 47326 connected with 192.168.0.101 port 5001 [ ID] Interval Transfer Bandwidth [ 3] 0.0-ten.0 sec 308 MBytes 258 Mbits/sec
From the to a higher place output, y'all can meet that i got a speed of 258Mbits/sec. The ouput shows something more.
Interval: Interval specifies the time duration for which the information is transferred.
Transfer: All data transferred using iperf is through memory, and is flushed out afterwards completing the test. So there is no need to articulate the transferred file after the test. This column shows the transferred data size.
Bandwidth: This shows the rate of speed with which the data is transferred.
Yous can kickoff your iperf server on your desired port with the following method.
C:\iperf>iperf.exe -s -p 2000 ------------------------------------------------------------ Server listening on TCP port 2000 TCP window size: 64.0 KByte (default) ------------------------------------------------------------
Also you can tell the client to connect to your desired server port and too tweak some more than connectedness and reporting parameter's as shown below.
root@slashroot2 ~]# iperf -c 192.168.0.101 -t 20 -p 2000 -w 40k ------------------------------------------------------------ Client connecting to 192.168.0.101, TCP port 2000 TCP window size: 80.0 KByte (Alarm: requested 40.0 KByte) ------------------------------------------------------------ [ 3] local 192.168.0.1[02 port 60961 continued with 192.168.0.101 port 2000 [ ID] Interval Transfer Bandwidth [ iii] 0.0-20.0 sec 1.74 GBytes 747 Mbits/sec
-t option used in the above command tells to transfer information for twenty seconds.
-p will tell the client to connect the port 2000 on the server
-westward volition specify your desired window size value. Equally i told before, window size tuning will ameliorate TCP transfer rate to a certain extent.
And you can clearly see from the above output that the bandwidth for the whole transfer has increased, as we accept increased the window size(I am using two virtual automobile'southward in ane physical box for this iperf demonstration, which is the reason am getting exceptional transfer charge per unit's).
Y'all can also tell the iperf client to show the transfer rate at an interval of one second, for the whole x second transfer, as shown below with -i pick.
[root@slashroot2 ~]# iperf -c 192.168.0.100 -P 1 -i 1 ------------------------------------------------------------ Client connecting to 192.168.0.100, TCP port 5001 TCP window size: xvi.0 KByte (default) ------------------------------------------------------------ [ three] local 192.168.0.102 port 49597 connected with 192.168.0.100 port 5001 [ ID] Interval Transfer Bandwidth [ 3] 0.0- 1.0 sec 28.half-dozen MBytes 240 Mbits/sec [ 3] ane.0- 2.0 sec 25.ix MBytes 217 Mbits/sec [ 3] 2.0- 3.0 sec 26.5 MBytes 222 Mbits/sec [ 3] 3.0- iv.0 sec 26.vi MBytes 223 Mbits/sec [ iii] 4.0- five.0 sec 26.0 MBytes 218 Mbits/sec [ 3] v.0- 6.0 sec 26.two MBytes 220 Mbits/sec [ 3] 6.0- 7.0 sec 26.8 MBytes 224 Mbits/sec [ 3] vii.0- 8.0 sec 26.0 MBytes 218 Mbits/sec [ 3] 8.0- 9.0 sec 25.eight MBytes 216 Mbits/sec [ iii] 9.0-10.0 sec 26.4 MBytes 221 Mbits/sec [ 3] 0.0-10.0 sec 265 MBytes 222 Mbits/sec
Until now we have only seen the throughput of ane TCP connexion. Because when you run iperf, by default if only creates one TCP connexion with the remote server.
You Might accept noticed that some internet Download manager's are so fast while they download any content from the internet, compared to the normal operating system downloader. The principal reason behind it is the fact that they work on "Parallel TCP connections." I such download manager, that i recall is "Internet Download Manager".
Permit's check the throughput written report by increasing the number of parallel connections using "iperf".
[root@slashroot2 ~]# iperf -c 192.168.0.100 -P 20 ------------------------------------------------------------ Client connecting to 192.168.0.100, TCP port 5001 TCP window size: sixteen.0 KByte (default) ------------------------------------------------------------ [ fifteen] local 192.168.0.102 port 57258 connected with 192.168.0.100 port 5001 [ iii] local 192.168.0.102 port 57246 connected with 192.168.0.100 port 5001 [ 4] local 192.168.0.102 port 57247 connected with 192.168.0.100 port 5001 [ five] local 192.168.0.102 port 57248 connected with 192.168.0.100 port 5001 [ 7] local 192.168.0.102 port 57250 continued with 192.168.0.100 port 5001 [ 6] local 192.168.0.102 port 57249 connected with 192.168.0.100 port 5001 [ 10] local 192.168.0.102 port 57253 connected with 192.168.0.100 port 5001 [ 8] local 192.168.0.102 port 57251 connected with 192.168.0.100 port 5001 [ ix] local 192.168.0.102 port 57252 connected with 192.168.0.100 port 5001 [ 16] local 192.168.0.102 port 57259 connected with 192.168.0.100 port 5001 [ nineteen] local 192.168.0.102 port 57261 connected with 192.168.0.100 port 5001 [ 18] local 192.168.0.102 port 57260 connected with 192.168.0.100 port 5001 [ 20] local 192.168.0.102 port 57262 connected with 192.168.0.100 port 5001 [ 17] local 192.168.0.102 port 57263 connected with 192.168.0.100 port 5001 [ 21] local 192.168.0.102 port 57264 connected with 192.168.0.100 port 5001 [ eleven] local 192.168.0.102 port 57254 continued with 192.168.0.100 port 5001 [ 12] local 192.168.0.102 port 57255 connected with 192.168.0.100 port 5001 [ 13] local 192.168.0.102 port 57256 connected with 192.168.0.100 port 5001 [ xiv] local 192.168.0.102 port 57257 connected with 192.168.0.100 port 5001 [ 22] local 192.168.0.102 port 57265 connected with 192.168.0.100 port 5001 [ ID] Interval Transfer Bandwidth [ viii] 0.0-x.six sec 16.6 MBytes 13.1 Mbits/sec [ xvi] 0.0-10.six sec 16.half-dozen MBytes 13.one Mbits/sec [ xviii] 0.0-10.6 sec sixteen.5 MBytes 13.ane Mbits/sec [ 17] 0.0-10.vii sec 16.6 MBytes 13.0 Mbits/sec [ 21] 0.0-10.7 sec 15.6 MBytes 12.iii Mbits/sec [ 12] 0.0-10.vii sec 17.5 MBytes 13.vii Mbits/sec [ 22] 0.0-x.7 sec 16.six MBytes 13.0 Mbits/sec [ fifteen] 0.0-ten.eight sec 17.8 MBytes 13.viii Mbits/sec [ 3] 0.0-10.7 sec 18.5 MBytes 14.5 Mbits/sec [ 4] 0.0-10.8 sec eighteen.1 MBytes 14.i Mbits/sec [ 5] 0.0-ten.7 sec 17.6 MBytes 13.nine Mbits/sec [ 7] 0.0-ten.viii sec 18.four MBytes fourteen.3 Mbits/sec [ half dozen] 0.0-10.8 sec 17.0 MBytes thirteen.two Mbits/sec [ 10] 0.0-x.8 sec 16.8 MBytes 13.ane Mbits/sec [ 9] 0.0-10.eight sec xvi.8 MBytes 13.0 Mbits/sec [ nineteen] 0.0-ten.half-dozen sec 16.5 MBytes thirteen.0 Mbits/sec [ 20] 0.0-x.7 sec 16.5 MBytes 12.nine Mbits/sec [ 11] 0.0-10.seven sec eighteen.0 MBytes 14.0 Mbits/sec [ 13] 0.0-10.7 sec 17.8 MBytes 13.ix Mbits/sec [ fourteen] 0.0-x.8 sec 18.ii MBytes 14.1 Mbits/sec [SUM] 0.0-10.viii sec 344 MBytes 266 Mbits/sec
In the to a higher place shown example i have told iperf client to create 20 parallel TCP connections to the remote host while the information transfer. And if observe the output, you can come across clearly that 20 different ports on the customer is connected to the default 5001 port on the server.
And all of the connections had different transfer charge per unit, and at the end we got a combined throughput of 266Mbits/southward.(Which is much amend that a single TCP connection.)
Conducting a UDP speed exam in iperf
Conducting a UDP speed exam using iperf will provide you with a couple of more data about your network which volition exist very much useful in finding network bottlenecks.
As we discussed earlier, non simply TCP window size but network parameter'southward like the post-obit likewise affects the throughput achieved during a connectionn.
- Out of order delivery
- Network Jitter
- Packet loss out of total number of packets
For conduction an iperf udp examination, you need to showtime the server with the -u choice so that the UDP port 5001 is opened on the server side.
C:\iperf>iperf.exe -south -u ------------------------------------------------------------ Server listening on UDP port 5001 Receiving 1470 byte datagrams UDP buffer size: 64.0 KByte (default) ------------------------------------------------------------
Now lets offset the information transfer from the customer side by sending UDP traffic.
[root@slashroot2 ~]# iperf -c 192.168.0.100 -u -b 100m ------------------------------------------------------------ Client connecting to 192.168.0.100, UDP port 5001 Sending 1470 byte datagrams UDP buffer size: 107 KByte (default) ------------------------------------------------------------ [ iii] local 192.168.0.102 port 50836 connected with 192.168.0.100 port 5001 [ ID] Interval Transfer Bandwidth [ 3] 0.0-ten.0 sec 97.4 MBytes 81.seven Mbits/sec [ 3] Sent 69508 datagrams [ 3] Server Report: [ three] 0.0-10.0 sec 97.iv MBytes 81.8 Mbits/sec 0.167 ms 49/69507 (0.07%) [ 3] 0.0-x.0 sec 1 datagrams received out-of-lodge [root@slashroot2 ~]#
In the above example, i accept used -b option to specify the bandwidth to use(because by default iperf UDP only used 1Mbps, i will recommend using your full available bandwidth to get an idea)
-u options needs to be also used on the client side for specifying UDP traffic.
The ouput tells us the following data.
Bandwidth = 81.7Mbits/sec
Network jitter = 0.167 ms (network jitter is the deviation in time for periodic arrival of data gram'due south. If you are doing the test with server'south on the other side of the globe, and then you lot might see higher jitter values in iperf output.)
Out of Order = i datagram
Lost/Total = 49/69508
0.07 per centum datagram loss is not at all meaning, infact you can say that you got a nice network packet loss ratio.
VOIP require'southward a very less datagram loss because its vocalism communication. A loftier data gram loss tin can drop the call altogether. And then UDP testing with iperf will exist very much helpful if you lot have VOIP or other such critical applications on your infrastructure.
Y'all can become all the option's related to iperf with the following control.
[root@slashroot2 ~]# iperf --assist Source: https://www.slashroot.in/iperf-how-test-network-speedperformancebandwidth
Posted by: hoytjusbabyes.blogspot.com

0 Response to "How To Install Iperf On Windows 7"
Post a Comment