Lab 8/9 Using iperf

Lab 8 Due Nov 16

Lab 9 Due Nov 23

Lab Objective:

To learn to use use lab tools to compare the throughput of TCP and UDP. Also to compare the throughput of different OS’s and between two OS’s. This includes Win7/Win7, Win7/Linux, Linux/Linux.

You will also test the throughput with a WiFi connection.


  1. Iperfwiki
  2. iperf
  3. ifconfig

Download and install iperf

  • iperf download link
  • Download and install on both Linux and Windows
  • Linux - Download the ".deb" version. Install by double clicking
  • Windows 7 - download iPerf for 64 bit or 32 bit, depending on windows version. Run iperf.exe by moving to desired directory.

Lab Procedures

For this lab you will partner with someone else, or use someone else's system so you don't have to install everything on two separate systems. You will, however, each need to write your own report.

Lab 8

  • Complete all the steps in the following tutorial: iperf tutorial
  • For the tutorial do the tests with a partner with a Linux system connected to a Windows system
  • Do each step in the tutorial, copying bothst the commands and the results of every step to a your lab report

Lab 9

The goal here is to test the actual performance of a variety network situation.You will create a spreadsheet documenting all your tests, and comparing the results.

Step 1:

  1. disable firewall. on Linux: "sudo ufw disable"
  2. Run a 30 second test in TCP between each pair of OS's, recording the results in Excel. (Win7/Win7, Win7/Linux, Linux/Linux). Do the test with the systems directly connected with a wire. You will need to set an appropriate static IP addresses on each interface involved. On Linux and Mac this is done with the command (where the interface is eth0. you can type "ifconfig" to learn which interfaces you have)
    sudo ifconfig eth0 netmask up
  3. On Linux, DHCP will try to clear out your IP addresses. Follow these steps to assure that your addresses will remain
    1. Open a terminal window and type sudo kate /etc/network/interfaces
    2. When Kate opens, add the following to the end of the file and then restart:
auto eth0

iface eth0 inet static

address 10.1.1.X


  1. On Windows you will need to use the ipconfig command to find and set the static IP address..
  2. Run UDP tests between each test pair, both directly through a wire, and through a swtich. You will need to keep increasing the bandwidth until packets are dropped. Record the highest througput rate with less then 1% error rate. Record the result in Excel.

Test TCP UDP Wire UDP Switch
Do the rest of the lab with only a Linux/Linux combination. Only do TCP tests.
Step 2:

Measure the cost of the switch. Connect the systems with a Cisco switch. Compare the difference in throughput. Do you see any difference? Analyze the difference (if any) from the traffic through the switch. Do each test 5 times for 10 seconds, and show the average. Record everything in Excel.

Trial Wire Switch

Step 3

before continuing, remove the text you added to the "interfaces" text document in step 1.3

Measure the Wifi. Try the following combinations. I suggest you NOT do WiFi while other people are doing it.

  1. One laptop on wire (149.143.3.x), one on wireless (CS-WIFI2 or CS-WIFI5). Try with the server on the wire side, then on the wireless side. Is there a difference? Why if so?
  2. One laptop on wire (149.143.3.x), one on wireless (MVNU). What happens, why?
  3. Both on wireless (one on CS-WIFI2, other on MVNU). Can you go both ways? Why or why not?
  4. Both on wireless (both on CS-WIFI2)
  5. Both on wireless (one on CS-WIFI2, other on CS-WIFI5)

Test Server on wire Server on Wireless
Wire/CS-WIFI2 or 5    
Wire/MVNU Wireless    

Test Wireless/wireless

Step 4 - Analysis

Write a 1-2 page lab report describing what you learned, any problems encountered. How do you thing such a system would be useful?

-- JimSkon - 2011-10-11

Topic revision: r6 - 2015-11-23 - BenjaminKindle
This site is powered by the TWiki collaboration platformCopyright &© by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback