Regarding NetPerf

standguideNetworking and Communications

Oct 26, 2013 (3 years and 9 months ago)

81 views

Sungkyunkwan University

Copyright 2006 Networking Laboratory

NetPerf

2006. 04. 19


Lee, Sang Ho

divx98@hotmail.com


PERFORMANCE TCP/IP NETWORKING

Networking Laboratory
2
/17

Contents


Introduction


Features


Installation


Configuration


Result


Reference sites

PERFORMANCE TCP/IP NETWORKING

Networking Laboratory
3
/17

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

Network Topology

Client

Server

PERFORMANCE TCP/IP NETWORKING

Networking Laboratory
4
/17

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

PERFORMANCE TCP/IP NETWORKING

Networking Laboratory
5
/17

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/



PERFORMANCE TCP/IP NETWORKING

Networking Laboratory
6
/17

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



}

PERFORMANCE TCP/IP NETWORKING

Networking Laboratory
7
/17


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
1/4

PERFORMANCE TCP/IP NETWORKING

Networking Laboratory
8
/17


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
2/4

PERFORMANCE TCP/IP NETWORKING

Networking Laboratory
9
/17

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

PERFORMANCE TCP/IP NETWORKING

Networking Laboratory
10
/17

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

PERFORMANCE TCP/IP NETWORKING

Networking Laboratory
11
/17

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


PERFORMANCE TCP/IP NETWORKING

Networking Laboratory
12
/17

Test environment
2/2


Network Topology


Throughput, RTT

switching hub

switching hub

NetPerf
Client

NetPerf
Server

Router

PERFORMANCE TCP/IP NETWORKING

Networking Laboratory
13
/17

Result
1/4


TCP stream performance

send socket buffer size on the local system

receive socket buffer size on the remote system

PERFORMANCE TCP/IP NETWORKING

Networking Laboratory
14
/17

Result
2/4

message size

successful calls to send

receive socket size on remote

successful calls to receive

send performance

receive performance

Failed send calls(ENOBUFS)


UDP stream performance

PERFORMANCE TCP/IP NETWORKING

Networking Laboratory
15
/17

Result
3/4

local send socket size

remote send socket size

remote receive socket size

local receive socket size


TCP Request/Response Performance

PERFORMANCE TCP/IP NETWORKING

Networking Laboratory
16
/17

Result

4/4


UDP Request/Response Performance

PERFORMANCE TCP/IP NETWORKING

Networking Laboratory
17
/17

Reference sites


http://www.netperf.org/netperf/NetperfNew.html