Netpref

From OnnoWiki
Jump to navigation Jump to search

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

Lebih Lanjut

Referensi