Iperf

Iperf

Iperf est un logiciel informatique permettant la mesure de différentes variables d'une connexion réseau IP. Iperf est développé par le National Laboratory for Applied Network Research (NLANR, États-Unis d'Amérique). Basé sur une architecture client/serveur et disponible sur différents systèmes d'exploitations (Unix, Windows, MacOS X,...), Iperf est un outil important pour les administrateurs réseaux.

Sommaire

Comment fonctionne Iperf ?

Iperf doit être lancé sur deux machines se trouvant de part et d'autre du réseau à tester. La première machine lance Iperf en "mode serveur" (avec l'option -s), la seconde en "mode client" (option -c). Par défaut le test réseau se fait en utilisant le protocole TCP (mais il est également possible d'utiliser le mode UDP avec l'option -u).

Comment l'utiliser

Nous allons prendre l'exemple d'un test réseau entre une machine A et une machine B.

Sur la machine A, il faut lancer la commande suivante:

# iperf -s

Ensuite sur la machine B, on lance la commande:

# iperf -c <adresse IP de la machine A>

Le résultat suivant va alors s'afficher:

————————————————————

Client connecting to 192.168.29.1, TCP port 5001
TCP window size: 65.0 KByte (default)
————————————————————
[ 3] local 192.168.29.157 port 50675 connected with 192.168.29.1 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-10.0 sec 110 MBytes 92.6 Mbits/sec

On obtient donc le débit TCP réel entre la machine A et la machine B. En utilisant l'option -i on peut fixer le délai entre les rapports de mesure de bande passante.


Il est possible d'évaluer le débit de sa connexion à Internet via un serveur Iperf public, situé sur le réseau Internet :

Iperf.png


Sous linux, voici 3 suggestions de ligne de commande pour le serveur :

  • TCP 5001 : $ iperf -s -m -w 200K -i 3
  • TCP 4662 : $ iperf -s -m -w 200K -i 3 -p 4662
  • UDP 5001 : $ iperf -s -i 5 -u


Sous linux, voici 5 suggestions de ligne de commande pour le client (192.168.1.2 est l'@IP du serveur) :

  • upload uniquement : $ iperf -c 192.168.1.2 -m -w 200K -i 3 -t 30
  • upload + download : $ iperf -c 192.168.1.2 -m -w 200K -i 3 -t 30 -r
  • upload + download simultané : $ iperf -c 192.168.1.2 -m -w 200K -i 3 -t 30 -d -P 2
  • upload sur 15 connexions TCP : $ iperf -c 192.168.1.2 -m -w 200K -i 10 -t 240 -P 15
  • upload + download sur port TCP 4662 : $ iperf -c 192.168.1.2 -m -w 200K -i 3 -t 30 -p 4662 -r
  • upload + download en UDP à 80 Mb/s : $ iperf -c 192.168.1.2 -i 3 -t 30 -r -u -b 80M

Le paramètre -w est très important, il spécifie la taille mémoire du "socket buffer" (respectivement d'émission ou de réception) la valeur par défaut étant trop petite sur certains systèmes. La taille du socket buffer ne pourra de toute façon pas dépasser le maximum autorisé par le système d'exploitation.


Iperf4662.png

IPERF en multicast

Iperf peut fonctionner en mode multicast (-B). Il faut le lancer de la manière suivante:

Sur le serveur:

  • $ iperf -s -u -B 225.0.1.2

Sur le client:

  • $ iperf -c 225.0.1.2 -u -b 3M

Cela génère un flux multicast UDP (sur l’adresse 225.0.1.2 de 3 Mb/s)

Autres sources d'informations


Wikimedia Foundation. 2010.

Contenu soumis à la licence CC-BY-SA. Source : Article Iperf de Wikipédia en français (auteurs)

Игры ⚽ Нужно сделать НИР?

Regardez d'autres dictionnaires:

  • Iperf — is a commonly used network testing tool that can create TCP and UDP data streams and measure the throughput of a network that is carrying them. Iperf is a modern tool for network performance measurement written in C++. Iperf allows the user to… …   Wikipedia

  • Iperf — Тип управление пропускной способностью Разработчик Jeff Boote, Jon Dugan Написана на C, C++[1] Операционная система Кроссплатформенная Последняя версия 2.0.5 …   Википедия

  • Liste der standardisierten Ports — Die folgende Liste enthält die Zuordnung von Ports zu Protokollen, die von der IANA standardisiert wurden. Eine vollständige Liste kann unter Unixoiden Betriebssystemen in der Datei /etc/services eingesehen werden. Inhaltsverzeichnis 1 Legende 2… …   Deutsch Wikipedia

  • Throughput — This article is about the use of Throughput in communication networks. For disk drives, see Throughput (disk drive). For business management, see Throughput (business). In communication networks, such as Ethernet or packet radio, throughput or… …   Wikipedia

  • Measuring network throughput — Throughput of a network can be measured using various tools available on different platforms. This page explains the theory behind what these tools set out to measure and the issues regarding these measurements. Contents 1 Reasons for measuring… …   Wikipedia

  • Knoppix STD — (Security Tools Distribution) is a Live CD Linux distribution based on Knoppix that focuses on computer security tools. It includes GPL licensed tools in the following categories: authentication, password cracking, encryption, forensics,… …   Wikipedia

  • TTCP — is a utility program for measuring network throughput, popular on Unix systems.TTCP can be used for both Windows and *nix systems alike. Testing can be done from a Windows machine to a *nix machine as long as they both have a TTCP application… …   Wikipedia

  • PerfSONAR — [http://www.perfsonar.net| perfSONAR] ( Performance focused Service Oriented Network monitoring ARchitecture ) is an international collaboration for network monitoring. Contributors are the EU funded GN2 JRA1 project, [http://www.internet2.edu|… …   Wikipedia

  • Bwping — is a tool to measure bandwidth and response times between two hosts using Internet Control Message Protocol (ICMP) echo request/echo reply mechanism. It does not require any special software on remote host. The only requirement is the ability to… …   Wikipedia

  • Nagios — Capture d écran de l interface web de Nagios …   Wikipédia en Français

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”