This is an old revision of the document!



Download the archive and unpack it

wget http:///

The archive contains the follosing files

  • ubuntu.img - the virtual machine's disk
  • - the script for setting up the virtual machine
  • - launches multiple streams using iperf
  • - listens on multiple sockets using iperf

Install the necessary packets

sudo ./ prepare

Boot up the virtual machine

sudo ./ start

Open SSH consoles to the virtual machine

ssh root@



Run a simple netperf test

netperf -H
  • What is the bandwidth of the virtual link?
  • How does netperf run? On the virtual machine, check the TCP listening ports
    netstat -tlpn

    Which options are available to the netperf users?

    netperf --help

    The user can choose from a series of tests. Which are them?

    man netperf

    Run a TCP stream test. Now, the virtual machine should be the sender and the host the receiver. Compare the CPU load of the sender and the receiver.

    netperf -H -t TCP_MAERTS -cC

Measure bandwidth and delay on links towards California and Spain



Ping the following hosts

Compare the latencies and verify the number of hops along each way using traceroute.


Run a 2 seconds UDP request-response test and display the CPU usage for both the host and the virtual machine

netperf -H -t UDP_RR -l 2 -cC

How many request-responses have been issued ?

DNS latency

Browse the Web for a few random pages. Do you find the response time acceptable? What does a browser do when you type a web page's address? Which DNS server are you using? Try resolving a random hostname. What is the query time?


Edit /etc/resolv.conf to use Google's DNS instead of your ISP's DNS. Add the following line at the top of the file.


Try resolving again. Is the query time better? Surf the web. Is the lag significant? Revert your nameserver changes.


What is the MTU of the br0 link?

ip link sh dev br0

Measure the UDP bandwidth using the default send size (MTU). Display the UDP statistics before and after running the test for the host interface.

netperf -H -t UDP_STREAM -l 1 -cC

Repeat the test sending 64-byte packets.

netperf -H -t UDP_STREAM -l 1 -cC -- -m 64

The throughput is obviously worse and the CPU load is higher. Why?





sesiuni/virtualization-networking/session6.1372206991.txt.gz · Last modified: 2013/06/26 03:36 by freescale