Bandwidth Measurement:
========here first ===========
By iftop, I found another tool:
$ sudo apt-get install bwm-ng
by which, you can save the log into a file! it is more helpful.
I did not check in detail the usage of such tool, but the following command will allow you to generate a log in /tmp/a.csv
which log all the networking status of the network interface eth0
$bwm-ng --count 0 -o csv -I eth0 -T 0.1 -u bytes -t 1000 > /tmp/a.csv
you can open .csv file directly in matlab for example.
for simple test (without log a file), you can use
$ bwm-ng --count 0 -I eth0 -T 0.1 -u bytes -t 1000
you can see the Rx (输入) Tx(输出) bandwidth in plain text.
Please try to study what does each column in the .csv file mean by yourself.
$ bwm-ng -h
gives you parameter setups.
for more information just check :
http://www.gropp.org/?id=
=====================
the tool is called "iftop"
install:
sudo apt-get install iftop
usage:
check
$ iftop -h
e.g.
sudo iftop -i eth0 -F ming-laptop -P