'iperf' est un outils Open, installable depuis un RPM, permettant de calculer le débit réseau entre 2 serveurs.

Le fonctionnement est simple:

- Récupérer le .RPM sur chacun des serveurs à analyser

- Installer le RPM par la commande 'rpm -ivh Nom_Paquet.rpm'

- Lancer ensuite le service d'écoute sur le premier serveur  : 'iperf -s'.

- Lancer le test depuis l'autre serveur en spécifiant l'adresse du serveur à contacter : 'iperf -c IP_add_Serveur -t 60 -P 8'  ( Ou P 8 est le nombre de traitements en parallèle)

Après le temps spécifié par l'option '-t', le résultat est affiché.

Exemple côté serveur :

# iperf -s 

------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 512 KByte (default)
------------------------------------------------------------
[ 5] local 10.42.3.166 port 5001 connected with 10.42.3.167 port 57313
[ 7] local 10.42.3.166 port 5001 connected with 10.42.3.167 port 57315
[ 6] local 10.42.3.166 port 5001 connected with 10.42.3.167 port 57314
[ 8] local 10.42.3.166 port 5001 connected with 10.42.3.167 port 57316
[ 9] local 10.42.3.166 port 5001 connected with 10.42.3.167 port 57317
[ 10] local 10.42.3.166 port 5001 connected with 10.42.3.167 port 57318
[ 11] local 10.42.3.166 port 5001 connected with 10.42.3.167 port 57319
[ 12] local 10.42.3.166 port 5001 connected with 10.42.3.167 port 57320
[ ID] Interval Transfer Bandwidth
[ 7] 0.0-60.0 sec 8.15 GBytes 1.17 Gbits/sec
[ 6] 0.0-60.0 sec 8.18 GBytes 1.17 Gbits/sec
[ 8] 0.0-60.0 sec 8.15 GBytes 1.17 Gbits/sec
[ 10] 0.0-60.0 sec 8.18 GBytes 1.17 Gbits/sec
[ 12] 0.0-60.0 sec 8.18 GBytes 1.17 Gbits/sec
[ 5] 0.0-60.0 sec 8.17 GBytes 1.17 Gbits/sec
[ 9] 0.0-60.0 sec 8.17 GBytes 1.17 Gbits/sec
[ 11] 0.0-60.0 sec 8.16 GBytes 1.17 Gbits/sec
[SUM] 0.0-60.0 sec 65.3 GBytes 9.35 Gbits/sec
[ 5] local 10.42.3.166 port 5001 connected with 10.42.3.167 port 61891
[ 5] 0.0-60.0 sec 59.0 GBytes 8.44 Gbits/sec

Exemple avec 8 canaux:

# iperf -c 10.42.3.166 -t 60 -P 8
------------------------------------------------------------
Client connecting to 10.42.3.166, TCP port 5001
TCP window size: 256 KByte (default)
------------------------------------------------------------
[ 10] local 10.42.3.167 port 57320 connected with 10.42.3.166 port 5001
[ 5] local 10.42.3.167 port 57314 connected with 10.42.3.166 port 5001
[ 6] local 10.42.3.167 port 57316 connected with 10.42.3.166 port 5001
[ 8] local 10.42.3.167 port 57318 connected with 10.42.3.166 port 5001
[ 7] local 10.42.3.167 port 57315 connected with 10.42.3.166 port 5001
[ 11] local 10.42.3.167 port 57319 connected with 10.42.3.166 port 5001
[ 3] local 10.42.3.167 port 57313 connected with 10.42.3.166 port 5001
[ 9] local 10.42.3.167 port 57317 connected with 10.42.3.166 port 5001
[ ID] Interval Transfer Bandwidth
[ 10] 0.0-60.0 sec 8.18 GBytes 1.17 Gbits/sec
[ 5] 0.0-60.0 sec 8.18 GBytes 1.17 Gbits/sec
[ 6] 0.0-60.0 sec 8.15 GBytes 1.17 Gbits/sec
[ 8] 0.0-60.0 sec 8.18 GBytes 1.17 Gbits/sec
[ 7] 0.0-60.0 sec 8.15 GBytes 1.17 Gbits/sec
[ 3] 0.0-60.0 sec 8.17 GBytes 1.17 Gbits/sec
[ 9] 0.0-60.0 sec 8.17 GBytes 1.17 Gbits/sec
[ 11] 0.0-60.0 sec 8.16 GBytes 1.17 Gbits/sec
[SUM] 0.0-60.0 sec 65.3 GBytes 9.35 Gbits/sec

Exemple côté client avec 1 canal :

$ iperf -c 10.42.3.166 -t 60 -P 1
------------------------------------------------------------
Client connecting to 10.42.3.166, TCP port 5001
TCP window size: 256 KByte (default)
------------------------------------------------------------
[ 3] local 10.42.3.167 port 61891 connected with 10.42.3.166 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-60.0 sec 59.0 GBytes 8.44 Gbits/sec

 

# iperf -h

 

Usage: iperf [-s|-c host] [options]

       iperf [-h|--help] [-v|--version]

Client/Server:

  -f, --format    [kmKM]   format to report: Kbits, Mbits, KBytes, MBytes

  -i, --interval  #        seconds between periodic bandwidth reports

  -l, --len       #[KM]    length of buffer to read or write (default 8 KB)

  -m, --print_mss          print TCP maximum segment size (MTU - TCP/IP header)

  -o, --output    <filename> output the report or error message to this specified file

  -p, --port      #        server port to listen on/connect to

  -u, --udp                use UDP rather than TCP

  -w, --window    #[KM]    TCP window size (socket buffer size)

  -B, --bind      <host>   bind to <host>, an interface or multicast address

  -C, --compatibility      for use with older versions does not sent extra msgs

  -M, --mss       #        set TCP maximum segment size (MTU - 40 bytes)

  -N, --nodelay            set TCP no delay, disabling Nagle's Algorithm

  -V, --IPv6Version        Set the domain to IPv6

Server specific:

  -s, --server             run in server mode

  -U, --single_udp         run in single threaded UDP mode

  -D, --daemon             run the server as a daemon

Client specific:

  -b, --bandwidth #[KM]    for UDP, bandwidth to send at in bits/sec

                           (default 1 Mbit/sec, implies -u)

  -c, --client    <host>   run in client mode, connecting to <host>

  -d, --dualtest           Do a bidirectional test simultaneously

  -n, --num       #[KM]    number of bytes to transmit (instead of -t)

  -r, --tradeoff           Do a bidirectional test individually

  -t, --time      #        time in seconds to transmit for (default 10 secs)

  -F, --fileinput <name>   input the data to be transmitted from a file

  -I, --stdin              input the data to be transmitted from stdin

  -L, --listenport #       port to receive bidirectional tests back on

  -P, --parallel  #        number of parallel client threads to run

  -T, --ttl       #        time-to-live, for multicast (default 1)

  -Z, --linux-congestion <algo>  set TCP congestion control algorithm (Linux only)

Miscellaneous:

  -x, --reportexclude [CDMSV]   exclude C(connection) D(data) M(multicast) S(settings) V(server) reports

  -y, --reportstyle C      report as a Comma-Separated Values

  -h, --help               print this message and quit

  -v, --version            print version information and quit

[KM] Indicates options that support a K or M suffix for kilo- or mega-

The TCP window size option can be set by the environment variable

TCP_WINDOW_SIZE. Most other options can be set by an environment variable

IPERF_<long option name>, such as IPERF_BANDWIDTH.

Report bugs to <Cette adresse e-mail est protégée contre les robots spammeurs. Vous devez activer le JavaScript pour la visualiser.;

 

 

 

icon phone
Téléphone/Whatsapp : +33 (0)6 83 84 85 74
icon phone