Netperf is a network performance measurement tool, mainly for TCP or UDP-based transmissions. Netperf tools work in a client/server fashion. The server side is netserver, which is used to listen for connections from the client side, and the client side is netperf, which is used to initiate network tests to the server. During testing, run serverperf on the server and netperf on the client.
1. Installation
The official download address of netperf: http://www.netperf.org/netperf/NetperfPage.html
tar -xzvf netperf-2.4.5.tar.gz
cd netperf-2.4.5
./configure
make
make install
2. Use
Do the same on the server, install netperf on the server,
cd src
Run: ./netserver
Run on client: ./netperf -H server IP
Regarding the specific use of netperf and its various parameters, I will introduce two good web pages to you:
http://www.ibm.com/developerworks/cn/linux/l-netperf/ and
http://blog.csdn.net/hjason2042/article/details/7741028/ The above is very detailed.