This article describes how to test a network throughput using Iperf. Iperf allows administrators and engineers to test throughput between any two hosts, including physical systems and Virtual Machines (VM) running on XenServer.
Iperf for Windows
Download a copy of Iperf for Windows.
This is executable which need not be installed. You can save it in any location and run it from command prompt (cmd).
Iperf for Linux
Most Linux distributions include Iperf in their package repositories which can be downloaded and installed from there. Note that Iperf is not included in Dom0 and if installed would place your environment in an unsupported state until removed.
Complete the following procedure:
Run the following command to view Iperf options:
# iperf.exe –h
MACHINE1 – Iperf Server
Run the following command on the Iperf server. This system accepts the communication from the Iperf client. Ensure that this system’s firewall does not block the communication (default port 5001).
# iperf.exe -s
MACHINE2 – Iperf Client
Run the following command on the Iperf client and wait for the results.
# iperf.exe -c <ip_of_iperf_server> -f M -t 30 -i 1