Iperf
Iperf
Iperf is a data-processing Logiciel allowing the measurement of various variables of a connection network IP. Iperf is developed by National Laboratory for Applied Network Research (NLANR). Based on an architecture client/server and available on various operating systems, Iperf is an important tool for the administrators networks.
How to recover it
There exist basic in the majority of the Linux distributions. You can however follow this bond to download the version which corresponds to your operating system (There exists a version Windows and MacOS X).
Under Debian/Ubuntu: # apt-get install iperf
Under Fedora: # yum install iperf
How does Iperf function?
Iperf must be launched on two machines being on both sides it network to test. The first machine launches Iperf in " serveur" mode; (with the option - S), the second in " client" mode; (option - C). By defect the test network is done by utilsant protocol TCP (but it is also possible to use mode UDP with the option - U).
How to use it
We will take the example of a test network between a machine has and a machine B.
On the machine has, it is necessary to launch the following order:
# iperf - s
Then on the machine B, one launches the order:
# iperf - C machine
The following result then will be posted:
- - - - - - - - - - - - - - - - - - - -
Customer connecting to 192.168.29.1, TCP port 5001
TCP window size: 65.0 Kbyte (default)
- - - - - - - - - - - - - - - - - - - -
3 room 192.168.29.157 port 50675 connected with 192.168.29.1 port 5001
ID Interval Transfer Bandwidth
3.0.0-10.0 dryness 110 MBytes 92.6 Mbits/sec
One thus obtains the real flow between the machine has and the machine B. By using the option - I one can have of another type of information like the times of transit or the gigue network.
It is possible to evaluate its connection to Internet via public a Iperf waiter, located on Internet network:
Under linux, here 3 suggestion of line of order for the waiter:
- TCP 5001: $ iperf - S - m - W 216K - I 5
- TCP 4662: $ iperf - S - m - W 216K - I 5 - p 4662
- UDP 5001: $ iperf - S - I 5 - U
Under linux, here 5 suggestion of line of order for the customer:
- upload only: $ iperf - C 212.27.33.25 - m - W 216K - I 5 - T 30
- upload + download: $ iperf - C 212.27.33.25 - m - W 216K - I 5 - T 30 - R
- upload + download simultaneous: $ iperf - C 212.27.33.25 - m - W 216K - I 5 - T 30 - D - P 2
- upload + download on port 4662: $ iperf - C 212.27.33.25 - m - W 216K - I 5 - T 30 - p 4662 - R
- upload + download in UDP with 80 Mb/s: $ iperf - C 212.27.33.25 - I 5 - T 30 - R - U - B 80M
The parameter - W is very important, it specifies " TCP window size" the default value being too small.
IPERF in multicast
Iperf can function in mode multicast (- B). It should be launched in the following way:
On the waiter:
- $ iperf - S - U - B 225.0.1.2
On the customer:
- $ iperf - C 225.0.1.2 - U - B 3M
That generates a flow multicast UDP (on the 225.0.1.2 address of 3 Mb/sec.
IPERF with Linux 2.6.21 and later
From the noyeau 2.6.21 " The new high resolution timer option in the kernel causes usleep (0) to Be has nop so the thread keeps running (until it' S quanta is exhausted). " => IPERF consumes much more CPU for the same flow.
On Pentium IV 2.8 Ghz HT:
- Noyeau 2.6.20 :
-
Noyeau 2.6.22 :
a patch exists: http://dast.nlanr.net/Projects/Iperf2.0/patch-iperf-linux-2.6.21.txt
Other information sources
-
Official site (in English)
- Directions for use and files batch for simple use under Windows (in French)
| Random links: | Trinium | Microsoft Project | Jean ThiƩbault Silbermann | Aero Adventure Barracuda | Ratkovac | Pont_de_Newby |