210 likes | 470 Views
NetPerf. 2006. 04. 19 Lee, Sang Ho divx98@hotmail.com. Contents. Introduction Features Installation Configuration Result Reference sites. Introduction. Netperf is a benchmark that can be used to measure various aspects of networking performance.
E N D
NetPerf 2006. 04. 19 Lee, Sang Ho divx98@hotmail.com
Contents • Introduction • Features • Installation • Configuration • Result • Reference sites
Introduction • Netperf is a benchmark that can be used to measure various aspects of networking performance. • supported by the IND Networking Performance Team. • Netperf is designed around the basic client-server model Server Client Network Topology
Features • To measure various aspects of networking performance • Bulk data transfer performance • Request / response performance • can measure of networking performance of TCP and UDP • with various command line option
Installation • Download • http://www.netperf.org • ftp://ftp.cup.hp.com(with ID anonymous) • dist / networking / benchmarks • Install • OS : Linux • File name • Server : netserver • Client : netperf (only copied) • Compile • command : #make install • be compiled and copied into (/user path…/) netperf/
Configuration • File edit • Add this line to the /etc/services file • netperf 12865/tcp • Add this line to the /etc/xinetd.conf file (for a consecutive launch) • service netperf { socket_type = stream protocol = tcp wait = no user = root server = /opt/netperf/netserver server_arg = netserver }
User manual 1/4 • TCP Stream Performance • #./netperf –H remotehost –t TCP_STREAM • The TCP stream test can be invoked with netperf though the use of the –t option with an argument of TCP_STREAM. • will perform a 10 sec test between the local and remote systems. • Option • -s sizespec : set local send and receive socket buffer sizes (Default: system default socket buffer sizes) • -S sizespec : which behaves just like –s for the remote system • -m sizespec : set the local send size to value bytes (Default: local socket buffer size) • -M sizespec : set the receive size for the remote system, like –m option • -l sizespec : set the test length to value seconds, |value | • -D : set the TCP_NODELAY option to true on both systems
User manual 2/4 • UDP Stream Performance • #./netperf –H remotehost –t UDP_STREAM –m 1024 • The UDP stream test can be invoked with netperf though the use of the –t option with an argument of UDP_STREAM. • will perform a 10 sec test between the local and remote systems. • Option • -s sizespec : set local send and receive socket buffer sizes (Default: system default socket buffer sizes) • -S sizespec : which behaves just like –s for the remote system • -m sizespec : set the local send size to value bytes (Default: local socket buffer size) • -M sizespec : set the receive size for the remote system, like –m option • -l sizespec : set the test length to value seconds, |value | • -D(meaningless): set the TCP_NODELAY option to true on both systems
User manual 3/4 • TCP Request/Response Performance • #./netperf –H remotehost –t TCP_RR • The TCP request/response test can be invoked with netperf though the use of the –t option with an argument of TCP_RR. • Option • -r sizespec : set the request or response sizes • -l value : set the test duration based on value • -s sizespec : set the local send and receive socket buffer sizes (Default: system default socket buffer sizes) • -S sizespec : set the remote system send and receive socket buffer sizes • -D : set the TCP_NODELAY option to true on both systems
User manual 4/4 • UDP Request/Response Performance • #./netperf –H remotehost –t UDP_RR • The TCP request/response test can be invoked with netperf though the use of the –t option with an argument of UDP_RR. • Option • -r sizespec : set the request or response sizes • -l value : set the test duration based on value • -s sizespec : set the local send and receive socket buffer sizes (Default: system default socket buffer sizes) • -S sizespec : set the remote system send and receive socket buffer sizes • -D(meaningless) : set the TCP_NODELAY option to true on both systems
Test environment 1/2 • System spec : Client • CPU : Pentium IV 2.6G • OS : Linux kernel 2.4.20-8 • NIC : Realtek RTL8139 • System spec : Server • CPU : Pentium 4 2.4G • OS : Linux kernel 2.4.20-8smp • NIC : Realtek RTL8139
Test environment 2/2 • Network Topology Throughput, RTT Router switching hub switching hub NetPerf Server NetPerf Client
send socket buffer size on the local system receive socket buffer size on the remote system Result 1/4 • TCP stream performance
send performance receive performance Failed send calls(ENOBUFS) successful calls to send message size successful calls to receive receive socket size on remote Result 2/4 • UDP stream performance
local send socket size local receive socket size remote receive socket size remote send socket size Result 3/4 • TCP Request/Response Performance
Result 4/4 • UDP Request/Response Performance
Reference sites • http://www.netperf.org/netperf/NetperfNew.html