Netpref
Netperf is a benchmark that can be used to measure the performance of many different types of networking. It provides tests for both unidirectional throughput, and end-to-end latency. The environments currently measureable by netperf include:
- TCP and UDP via BSD Sockets for both IPv4 and IPv6
- DLPI
- Unix Domain Sockets
- SCTP for both IPv4 and IPv6
Instalasi
apt-get install netperf
Dilakukan di dua node yang akan di ukur
Beberapa Contoh Pengukuran
Mengukur Bulk Data Transfer
netperf -H 192.168.0.100 netperf -H 192.168.0.100 -t UDP_STREAM -- -m 1024 netperf -H 192.168.0.100 -t DLCO_STREAM -- -m 1024 netperf -H 192.168.0.100 -t DLCL_STREAM -- -m 1024 netperf -t STREAM_STREAM netperf -t DG_STREAM netperf -t FORE_STREAM -H 192.168.0.100
Mengukur request/response performance
netperf -H 192.168.0.100 -t TCP_RR netperf -H 192.168.0.100 -t UDP_RR netperf -H 192.168.0.100 -t DLCO_RR netperf -H 192.168.0.100 -t DLCL_RR netperf -t STREAM_RR
Kalibrasi CPU
LOC_RATE=`netperf -t LOC_CPU` netperf -H 192.168.0.100 -c $LOC_RATE
Contoh Keluaran
netperf -H 192.168.0.100 -t TCP_RR
MIGRATED TCP REQUEST/RESPONSE TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.0.100 () port 0 AF_INET : demo : first burst 0 Local /Remote Socket Size Request Resp. Elapsed Trans. Send Recv Size Size Time Rate bytes Bytes bytes bytes secs. per sec 16384 87380 1 1 10.00 2472.55 16384 87380
netperf -H 192.168.0.100
MIGRATED TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.0.100 () port 0 AF_INET : demo Recv Send Send Socket Socket Message Elapsed Size Size Size Time Throughput bytes bytes bytes secs. 10^6bits/sec 87380 16384 16384 10.00 954.22