Difference between revisions of "Netpref"

From OnnoWiki
Jump to navigation Jump to search
(New page: 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...)
 
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
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:
+
Netperf adalah benchmark yang dapat digunakan untuk mengukur kinerja dari berbagai tipe jaringan. netperf menyediakan test untuk unidirectional throughput maupun end-to-end latenct. Lingkungan yang saat ini dapat diukur oleh netperf termasuk:
  
    TCP and UDP via BSD Sockets for both IPv4 and IPv6
+
* TCP dan UDP via BSD Sockets untuk IPv4 dan IPv6
    DLPI
+
* DLPI
    Unix Domain Sockets
+
* Unix Domain Sockets
    SCTP for both IPv4 and IPv6  
+
* SCTP untuk IPv4 dan 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
  
==Lebih Lanjut==
 
  
 +
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
  
 +
==Lebih Lanjut==
  
 +
* [[netperf: instalasi]]
  
 
==Referensi==
 
==Referensi==
  
 
* http://www.netperf.org/netperf/
 
* http://www.netperf.org/netperf/

Latest revision as of 14:29, 7 June 2015

Netperf adalah benchmark yang dapat digunakan untuk mengukur kinerja dari berbagai tipe jaringan. netperf menyediakan test untuk unidirectional throughput maupun end-to-end latenct. Lingkungan yang saat ini dapat diukur oleh netperf termasuk:

  • TCP dan UDP via BSD Sockets untuk IPv4 dan IPv6
  • DLPI
  • Unix Domain Sockets
  • SCTP untuk IPv4 dan 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

Lebih Lanjut

Referensi