| OpenSS7 SS7 for the Common Man | © Copyright 1997-2007 OpenSS7 Corporation All Rights Reserved. Last modified: Thu, 16 Mar 2006 11:01:25 GMT | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| netperf ManualDescription: OpenSS7 Online ManualsA PDF version of this document is available here. OpenSS7 NETPERF UtilityOpenSS7 NETPERF Utility Installation and Reference ManualAbout This ManualThis is Edition 6, last updated 2007-06-24, of The OpenSS7 NETPERF Utility Installation and Reference Manual, for Version 2.3 release 6 of the OpenSS7 NETPERF Utility package. PrefaceNoticeThis version of netperf is a version modified by The OpenSS7 Project to support network performance testing and benchmarking of the OpenSS7 Linux Kernel Native and STREAMS implementations of Stream Control Transmission Protocol (SCTP) as described in RFC 2960. To support testing of the emerging SCTP protocol, specific stream, request/response and connect/close tests were added to test the SCTP protocol in a fashion similar to Transmission Control Protocol (TCP). The objective of retaining as much compatibility as possible to the TCP tests was to provide a basis for comparison between TCP and SCTP implementations on the Linux and HP-UX operating systems. In addition, XTI tests have been enhanced and are used to test the OpenSS7 STREAMS XTI INET implementation, See OpenSS7 STREAMS INET Driver. The OpenSS7 STREAMS INET implementation is an implementation XTI STREAMS over Sockets for the Linux operating system. Tests in the XTI API test group compared against equivalent tests in the Sockets API test group provide an indication of the overheads introduced by running XTI over Sockets. The OpenSS7 STREAMS INET driver also provides XTI over Sockets for the Linux Native SCTP implementation and comparisons between the XTI over Sockets and pure STREAMS approaches to SCTP can be made. AbstractThis manual provides a Installation and Reference Manual for OpenSS7 NETPERF Utility. ObjectiveThe objective of this manual is to provide a guide for the STREAMS programmer when developing STREAMS modules, drivers and application programs for OpenSS7 NETPERF Utility. This guide provides information to developers on the use of the STREAMS mechanism at user and kernel levels. STREAMS was incorporated in UNIX System V Release 3 to augment the character input/output (I/O) mechanism and to support development of communication services. STREAMS provides developers with integral functions, a set of utility routines, and facilities that expedite software design and implementation. Intent
The intent of this manual is to act as an introductory guide to the STREAMS programmer. It
is intended to be read alone and is not intended to replace or supplement the
OpenSS7 NETPERF Utility manual pages. For a reference for writing code, the manual pages
(see AudienceThis manual is intended for a highly technical audience. The reader should already be familiar with Linux kernel programming, the Linux file system, character devices, driver input and output, interrupts, software interrupt handling, scheduling, process contexts, multiprocessor locks, etc. The guide is intended for network and systems programmers, who use the STREAMS mechanism at user and kernel levels for Linux and UNIX system communication services. Readers of the guide are expected to possess prior knowledge of the Linux and UNIX system, programming, networking, and data communication. RevisionsTake care that you are working with a current version of this manual: you will not be notified of updates. To ensure that you are working with a current version, contact the Author, or check The OpenSS7 Project website for a current version. A current version of this manual is normally distributed with the OpenSS7 NETPERF Utility package, netperf-2.3.6.1 Version Control
netperf.texi,v
Revision 0.9.2.15 2007/02/28 06:30:21 brian
- updates and corrections, #ifdef instead of #if
Revision 0.9.2.14 2006/09/18 01:06:18 brian
- updated manuals and release texi docs
Revision 0.9.2.13 2006/08/28 10:46:52 brian
- correction
Revision 0.9.2.12 2006/08/28 10:32:43 brian
- updated references
Revision 0.9.2.11 2006/08/27 12:26:32 brian
- finalizing auto release files
Revision 0.9.2.10 2006/08/26 18:31:36 brian
- handle long urls
Revision 0.9.2.9 2006/08/26 09:16:18 brian
- better release file generation
Revision 0.9.2.8 2006/08/23 11:00:25 brian
- added preface, corrections and updates for release
Revision 0.9.2.6 2006-03-22 03:01:58 -0700 brian
- added makefile target index
Revision 0.9.2.5 2006-03-03 04:56:43 -0700 brian
- 64-bit compatibility
Revision 0.9.2.4 2005-07-08 07:15:37 -0600 brian
- updates to documentation
Revision 0.9.2.3 2005-07-01 01:29:37 -0600 brian
- updates for LE2005 build
Revision 0.9.2.2 2005-06-24 07:38:58 -0600 brian
- added troubleshooting section to manuals
Revision 0.9.2.1 2005-05-30 02:44:01 -0600 brian
- moved documentation for RHEL4 build
Revision 0.9 2005-05-30 02:44:01 -0600 brian
file netperf.texi was initially added on branch HP.
ISO 9000 ComplianceOnly the TeX, texinfo, or roff source for this manual is controlled. An opaque (printed, postscript or portable document format) version of this manual is an UNCONTROLLED VERSION. DisclaimerOpenSS7 Corporation disclaims all warranties with regard to this documentation including all implied warranties of merchantability, fitness for a particular purpose, non-infringement, or title; that the contents of the manual are suitable for any purpose, or that the implementation of such contents will not infringe on any third party patents, copyrights, trademarks or other rights. In no event shall OpenSS7 Corporation be liable for any direct, indirect, special or consequential damages or any damages whatsoever resulting from loss of use, data or profits, whether in an action of contract, negligence or other tortious action, arising out of or in connection with any use of this manual or the performance or implementation of the contents thereof. OpenSS7 Corporation reserves the right to revise this software and documentation for any reason, including but not limited to, conformity with standards promulgated by various agencies, utilization of advances in the state of the technical arts, or the reflection of changes in the design of any techniques, or procedures embodied, described, or referred to herein. OpenSS7 Corporation is under no obligation to provide any feature listed herein. U.S. Government Restricted RightsIf you are licensing this Software on behalf of the U.S. Government ("Government"), the following provisions apply to you. If the Software is supplied by the Department of Defense ("DoD"), it is classified as "Commercial Computer Software" under paragraph 252.227-7014 of the DoD Supplement to the Federal Acquisition Regulations ("DFARS") (or any successor regulations) and the Government is acquiring only the license rights granted herein (the license rights customarily provided to non-Government users). If the Software is supplied to any unit or agency of the Government other than DoD, it is classified as "Restricted Computer Software" and the Government's rights in the Software are defined in paragraph 52.227-19 of the Federal Acquisition Regulations ("FAR") (or any successor regulations) or, in the cases of NASA, in paragraph 18.52.227-86 of the NASA Supplement to the FAR (or any successor regulations). AcknowledgementsAs with most open source projects, this project would not have been possible without the valiant efforts and productive software of the Free Software Foundation and the Linux Kernel Community. SponsorsFunding for completion of the OpenSS7 OpenSS7 NETPERF Utility package was provided in part by:
Additional funding for The OpenSS7 Project was provided by: ContributorsThe primary contributor to the OpenSS7 OpenSS7 NETPERF Utility package is Brian F. G. Bidulock. The following is a list of significant contributors to The OpenSS7 Project:
AuthorsThe authors of the OpenSS7 OpenSS7 NETPERF Utility package include:
See Author Index, for a complete listing and cross-index of authors to sections of this manual. MaintainerThe maintainer of the OpenSS7 OpenSS7 NETPERF Utility package is:
Please send bug reports to bugs@openss7.org using the send-pr script included in the package, only after reading the BUGS file in the release, or See Problem Reports. Web ResourcesThe OpenSS7 Project provides a website dedicated to the software packages released by the OpenSS7 Project. Bug ReportsPlease send bug reports to bugs@openss7.org using the send-pr script included in the OpenSS7 NETPERF Utility package, only after reading the BUGS file in the release, or See Problem Reports. You can access the OpenSS7 GNATS database directly via the web, however, the preferred method for sending new bug reports is via mail with the send-pr script. Mailing ListsThe OpenSS7 Project provides a number of general discussion Mailing Lists for discussion concerning the OpenSS7 OpenSS7 NETPERF Utility package as well as other packages released by The OpenSS7 Project. These are mailman mailing lists and so have convenient web interfaces for subscribers to control their settings. See http://www.openss7.org/mailinglist.html. The mailing lists are as follows:
SpamTo avoid spam being sent to the members of the OpenSS7 mailing list(s), we have blocked mail from non-subscribers. Please subscribe to the mailing list before attempting to post to them. (Attempts to post when not subscribed get bounced.) As an additional measure against spam, subscriber lists for all OpenSS7 mailing lists are not accessible to non-subscribers; for most lists subscriber lists are only accessible to the list administrator. This keeps your mailing address from being picked off our website by bulk mailers. Acceptable Use PolicyIt is acceptable to post professional and courteous messages regarding the OpenSS7 package or any general information or questions concerning STREAMS, SS7, SIGTRAN, SCTP or telecommunications applications in general. Large AttachmentsThe mailing list is blocked from messages of greater than Quick Start GuideOpenSS7 NETPERF UtilityPackage netperf-2.3.6 was released under GPLv2 2007-06-24. Netperf is a general purpose tool for benchmarking bandwidth and performance of the Internet Protocol suite. The OpenSS7 Modified OpenSS7 NETPERF Utility package is an OpenSS7 Project release of the of the Hewlett-Packard netperf package configured to run with OpenSS7 STREAMS SCTP (Stream Control Transmission Protocol) and the OpenSS7 STREAMS XNS, XTI/TLI and INET packages. The OpenSS7 NETPERF Utility package provide primarily the This is a fork of the Netperf package released by Hewlett-Packard modified by the OpenSS7 Project for use with OpenSS7 STREAMS XNS, XTI/TLI, INET and SCTP packages. This OpenSS7 release of the package is based on the Netperf-2.3 release from Hewlett-Packard. Modifications to the package are derived from the OpenSS7 STREAMS XNS, XTI/TLI, INET and SCTP implementations and are release under the GNU General Public License (GPL) Version 2. The Netperf tool itself is licensed under specific terms by Hewlett-Packard. Please see file LICENSES for the Hewlett-Packard Netperf copyright notices and licensing restrictions. The Netperf tool is Copyright © 1993, 1994, 1995 Hewlett-Packard Company See the Hewlett-Packard License in the LICENSES file for complete details. Please note that this modified version of the Netperf package is not endorsed by Hewlett-Packard in any way and that neither the original copyright holders nor OpenSS7 Corporation will take any responsibility in it. This distribution is only currently applicable to Linux 2.4 and 2.6 kernels and was targeted
at ReleaseThis is the netperf-2.3.6 package, released 2007-06-24. This `2.3.6' release, and the latest version, can be obtained from the download area of The OpenSS7 Project website using a command such as: $> wget http://www.openss7.org/tarballs/netperf-2.3.6.tar.bz2 The release is available as an autoconf(1) tarball, src.rpm or dsc, or as a set of binary rpms or debs. See the download page for the autoconf(1) tarballs, src.rpms or dscs. See the netperf package page for tarballs, source and binary packages. Please see the NEWS file for release notes and history of user visible changes for the current version, and the ChangeLog file for a more detailed history of implementation changes. The TODO file lists features not yet implemented and other outstanding items. Please see the INSTALL, INSTALL-netperf and README-make, files (or see Installation) for installation instructions. When working from cvs(1) or git(1), please see the README-cvs, file (or see Downloading from CVS). An abbreviated installation procedure that works for most applications appears below. This release of the package is published strictly under Version 2 of the GNU Public License which can be found in the file COPYING. Package specific licensing terms (if any) can be found in the file LICENSES. Please respect these licensing arrangements. If you are interested in different licensing terms, please contact the copyright holder, or OpenSS7 Corporation <sales@openss7.com>. See README-alpha (if it exists) for alpha release information. PrerequisitesThe quickest and easiest way to ensure that all prerequisites are met is to download and install this package from within the OpenSS7 Master Package, openss7-0.9.2.F, instead of separately. Prerequisites for the OpenSS7 NETPERF Utility package are as follows:
(Note: If you acquired netperf a part of the OpenSS7 Master Package, then the dependencies listed below will already have been met by unpacking the master package.)
When configuring and building multiple OpenSS7 Project release packages, place all of the source packages (unpacked tarballs) at the same directory level and all build directories at the same directory level (e.g. all source packages under /usr/src). When installing packages that install as kernel modules, it is necessary to have the correct kernel development package installed. For the following distributions, use the following commands: Ubuntu: $> apt-get install linux-headers
Debian: $> apt-get install kernel-headers
Fedora: $> yum install kernel-devel
You also need the same version of gcc(1) compiler with which the kernel was built. If it is not the default, add `CC=kgcc' on the line after `./configure', for example: $> ../netperf-2.3.6/configure CC='gcc-3.4' InstallationThe following commands will download, configure, build, check, install, validate, uninstall and remove the package: $> wget http://www.openss7.org/tarballs/netperf-2.3.6.tar.bz2
$> tar -xjvf netperf-2.3.6.tar.bz2
$> mkdir build
$> pushd build
$> ../netperf-2.3.6/configure --enable-autotest
$> make
$> make check
$> sudo make install
$> sudo make installcheck
$> sudo make uninstall
$> popd
$> sudo rm -rf build
$> rm -rf netperf-2.3.6
$> rm -f netperf-2.3.6.tar.bz2
If you have problems, try building with the logging targets instead. If the make of a logging target fails, an automatic problem report will be generated that can be mailed to The OpenSS7 Project.5 Installation steps using the logging targets proceed as follows: $> wget http://www.openss7.org/tarballs/netperf-2.3.6.tar.bz2
$> tar -xjvf netperf-2.3.6.tar.bz2
$> mkdir build
$> pushd build
$> ../netperf-2.3.6/configure --enable-autotest
$> make compile.log
$> make check.log
$> sudo make install.log
$> sudo make installcheck.log
$> sudo make uninstall.log
$> popd
$> sudo rm -rf build
$> rm -rf netperf-2.3.6
$> rm -f netperf-2.3.6.tar.bz2
See README-make for additional specialized make targets. For custom applications, see the INSTALL and INSTALL-netperf files or the see Installation, as listed below. If you encounter troubles, see Troubleshooting, before issuing a bug report. Brief Installation InstructionsThe OpenSS7 NETPERF Utility package is available from the downloads area of The OpenSS7 Project website using a command such as: $> wget http://www.openss7.org/tarballs/netperf-2.3.6.tar.bz2 Unpack the tarball using a command such as: $> tar -xjvf netperf-2.3.6.tar.bz2 The tarball will unpack into the relative subdirectory named after the package name: netperf-2.3.6. The package builds using the GNU autoconf utilities and the configure script. To build the package, we recommend using a separate build directory as follows: $> mkdir build
$> cd build
$> ../netperf-2.3.6/configure
In general, the package configures and builds without adding any special options to the configure script. For general options to the configure script, see the GNU INSTALL file in the distribution: $> less ../netperf-2.3.6/INSTALL For specific options to the configure script, see the INSTALL-netperf file in the distribution, or simply execute the configure script with the --help option like so: $> ../netperf-2.3.6/configure --help After configuring the package, the package can be compiled simply by issuing the `make' command: $> make Some specialized makefile targets exists, see the README-make file in the distribution or simply invoke the `help' target like so: $> make help | less After successfully building the package, the package can be checked by invoking the `check' make target like so: $> make check After successfully checking the package, the package can be installed by invoking the `install' make target (as root) like so: $> sudo make install The test suites that ship with the package can be invoked after the package has been installed by invoking the `installcheck' target. This target can either be invoked as root, or as a normal user, like so: $> make installcheck (Note: you must add the --enable-autotest flag to configure, above for the test suites to be invoked with `make installcheck'.) The package can be cleanly removed by invoking the `uninstall' target (as root): $> sudo make uninstall Then the build directory and tarball can be simply removed: $> cd ..
$> rm -rf build
$> rm -rf netperf-2.3.6
$> rm -f netperf-2.3.6.tar.bz2
Detailed Installation InstructionsMore detailed installation instructions can be found in the Installation, contained in the distribution in `text', `info', `html' and `pdf' formats: $> cd ../netperf-2.3.6
$> less doc/manual/netperf.txt
$> lynx doc/manual/netperf.html
$> info doc/manual/netperf.info
$> xpdf doc/manual/netperf.pdf
The `text' version of the manual is always available in the MANUAL file in the release. The current manual is also always available online from The OpenSS7 Project website at: $> lynx http://www.openss7.org/netperf_manual.html 1 IntroductionThis manual documents the design, implementation, installation, operation and future development schedule of the OpenSS7 NETPERF Utility package. 1.1 OverviewThis manual documents the design, implementation, installation, operation and future development of the OpenSS7 NETPERF Utility package. Netperf is a benchmark that can be used to measure various aspects of networking performance. Its primary focus is on bulk data transfer and request/response performance using SCTP, TCP or UDP, the X/Open XTI/TLI XNS 5.2 interface and the Berkeley Sockets interface. There are optional tests available to measure the performance of DLPI, Unix Domain sockets and STREAMS, the Fore ATM API and the HP HiPPI LLA interface. This tool is maintained and informally supported by the IND Networking Performance Team. It is NOT supported via any of the normal Hewlett-Packard support channels. You are free to make enhancements and modifications to this tool. 1.2 Organization of this ManualThis manual is organized (loosely) into several sections as follows:
We thank you in advance for your comments, and hope that you find this tool useful. The maintainers of netperf. "How fast is it? It's so fast, that ..." ;-) 1.3 Conventions and DefinitionsThis manual uses texinfo typographic conventions. You may not be familiar with some of the conventions and definitions used by this manual. Generally, items of particular importance, command line options, and commands will be in boldface type. Filenames and command line items requiring user substitution will appear in italicized type. A sizespec is a one or two item list passed with a command line option that can set the value of
one or two netperf parameters. If you wish to set both parameters to separate values, items should
be separated by a comma, for example: " Netperf has two types of command line options. The first are global command line options. They
are essentially any option that is not tied to a particular test, or group of tests. An example of
a global command line option is the test type. The second options are test specific options. These
are options that are only applicable to a particular test. An example of a test specific option
would be the send socket buffer size for a TCP_STREAM test. Global command line options are
specified first, test specific options second. They must be separated from each other by a
" For example: $ netperf -- -m 1024 2 Objective3 Reference3.1 FilesNETPERF installs the following utility programs in the system binary directory, /usr/sbin/:
NETPERF installs the following user programs in the user binary directory, /usr/bin/:
NETPERF installs the following info files in the system info directory, /usr/share/info/:
NETPERF installs the following manpage macros and reference database files in the system man directory, /usr/share/man/:6
NETPERF installs the following manual pages in the system man directory, /usr/share/man/man1/:
NETPERF installs the following manual pages in the system man directory, /usr/share/man/man2/: NETPERF installs the following manual pages in the system man directory, /usr/share/man/man3/: NETPERF installs the following manual pages in the system man directory, /usr/share/man/man4/: NETPERF installs the following manual pages in the system man directory, /usr/share/man/man5/:
NETPERF installs the following manual pages in the system man directory, /usr/share/man/man7/: NETPERF installs the following manual pages in the system man directory, /usr/share/man/man8/:
3.2 Drivers3.3 Modules3.4 Libraries3.5 Utilities3.6 Development4 Tests4.1 Design4.1.1 Design BasicsNetperf is designed around the basic client-server model. There are two executables – netperf and netserver. Generally you will only execute the netperf program – the netserver program will be invoked by the other system's inetd. When you execute netperf, the first thing that happens is the establishment of a control connection to the remote system. This connection will be used to pass test configuration information and results to and from the remote system. Regardless of the type of test being run, the control connection will be a TCP connection using BSD sockets. Once the control connection is up and the configuration information has been passed, a separate connection will be opened for the measurement itself using the APIs and protocols appropriate for the test. The test will be performed, and the results will be displayed. Netperf places no traffic on the control connection while a test is in progress. Certain TCP options, such as SO_KEEPALIVE, if set as your system's default, may put packets out on the control connection. 4.1.2 CPU UtilizationCPU utilization is a frequently requested metric of networking performance. Unfortunately, it can also be one of the most difficult metrics to measure accurately. Netperf is designed to use one of several (perhaps platform dependent) CPU utilization measurement schemes. Depending on the CPU utilization measurement technique used, a unique single-letter code will be included in the CPU portion of the test banner for both the local and remote systems. The default CPU measurement technique is based on the use of "loopers" which will sit in tight little loops consuming any CPU left over by the networking. This method is not without its added overhead, but wherever possible, card has been taken to keep that overhead to a minimum. If you would like to get an estimate of the overhead, run one test with CPU utilization, and one test without, and compare the throughputs. Use of loopers in measuring CPU utilization is indicated by the letter code "L". NOTE: For accurate CPU utilization on MP systems, it is crucial
that netperf and netserver know the number of processors
on the system. For some systems (HP-UX) this can be determined
programmatically. Other systems require the use of the " HP-UX 10.X offers a zero additional overhead, very accurate CPU
utilization mechanism based on the pstat() system call. If you are
compiling on HP-UX 10, you should replace the " Other codes may be included in later versions of netperf. When the CPU utilization mechanism is unknown, either a "U" or a "?" will be displayed. Great care should be exercised when looking at CPU utilization. Be certain you are familiar with the technique being used, and its implications. For example, a mechanism that is based solely on CPU charged to the netperf (netserver) process alone will likely under-report the real CPU utilization significantly. Much network processing takes place away from the user process context. Caveat Benchmarker! 4.1.3 Supported Interfaces
4.1.4 Supported Protocols
4.1.5 Supported Tests
4.2 Stream Tests4.2.1 Available bulk data transfer performance tests4.2.1.1 Forward Unidirectional Stream Performance Test (STREAM)The intent of the STREAMS performance tests is to test forward unidirectional bulk data transfer in the direction from client to server. This is similar to the MAERTS tests, with the exception that the data transfer is in the forward direction. The basic test sequence is as follows: server: bind()
server: listen()
client: bind()
client: connect()
server: accept()
client: send() [repeated]
server: recv() [repeated]
client: shutdown()
client: close()
server: close()
test complete
There are three interface types that are of interest:
4.2.1.2 Reverse Unidirectional Stream Performance Test (MAERTS)The intent of the MAERTS performance tests is to test reverse unidirectional bulk data transfer in the direction from server to client. This is similar to the STREAM tests, with the exception that the data transfer is in the opposite direction. The basic test sequence is as follows: server: bind()
server: listen()
client: bind()
client: connect()
server: accept()
server: send() [repeated]
client: recv() [repeated]
server: shutdown()
server: close()
client: close()
test complete
Supported tests are:
4.2.1.3 Paged Unidirectional Stream Performance Test (SENDFILE)The intent of the SENDFILE performance tests is to test paged unidirectional stream bulk data transfer in the direction from client to server. This is similar to the STREAM tests with the variation that the BSD-style sendfile() system call is used to transfer data directly from a mmap'ed file to the connection. The basic test sequence is as follows: server: bind()
server: listen()
client: bind()
client: connect()
server: accept()
client: sendfile()
server: recv() [repeated]
client: shutdown()
client: close()
server: close()
test complete
This test has traditionally only been available for TCP under netperf; however, OpenSS7 has added SCTP as another protocol for SENDFILE testing. These tests only used the BSD/POSIX IPv4 Sockets interface. Supported tests are:
4.2.2 Using Netperf to measure bulk data transfer performanceThe most common use of netperf is measuring bulk data transfer performance. This is also referred to as "stream" or "unidirectional stream" performance. Essentially, these tests will measure how fast one system can send data to another and/or how fast the other system can receive it. 4.2.2.1 SCTP Stream Forward Performance4.2.2.2 SCTP Stream Reverse Performance4.2.2.3 SCTP Stream Sendfile Performance4.2.2.4 TCP Stream Forward PerformanceThe TCP stream performance test is the default test for the netperf program. The simplest test is performed by entering the command: $ netperf -H remotehost which will perform a 10 second test between the local system and the system identified by remotehost. The socket buffers on either end will be sized according to the systems' default and all TCP options (e.g. TCP_NODELAY) will be at their default settings. To assist in measuring TCP stream performance, two script files are provided with the netperf distribution. They are tcp_stream_script and tcp_range_script. tcp_stream_script will invoke netperf based on the setting of script variables controlling socket and send sizes. tcp_range_script will perform a similar set of tests, with the difference being that where tcp_stream_script tests specific data points, tcp_range_script will perform tests at points within a specified range. If you would like to perform tests other than those done by the scripts, you can invoke netperf manually. Some of the options you will likely want to experiment with are:
This is not a complete list of options that can affect TCP stream performance, but it does cover those options that are used most often. A complete list of netperf options can be found in "Test Options". 4.2.2.5 TCP Stream Reverse Performance4.2.2.6 TCP Stream Sendfile Performance4.2.2.7 UDP Stream Performance
A UDP stream performance test is very similar to a TCP stream test. One
difference is that the send size cannot be larger than the smaller of the
local and remote socket buffer sizes. What this means is that you must make
certain that when you specify the $ netperf -H remotehost -t UDP_STREAM -- -m 1024 There is a script provided that performs various UDP stream performance tests. It is called udp_stream_script. As with TCP stream performance, you can use the script provided, or perform tests yourself to get data points not covered by the script. NOTE: UDP is an unreliable protocol. It is important that you examine the results carefully as the reported send rate can be much higher than the actual receive rate. Great care should be taken when reporting UDP_STREAM test results to make sure they are not misleading. For example, one should always report both send and receive rates together for a UDP_STREAM test. If you are going to report a single number, you should report the receive rate. NOTE: If you would like to "pace" the send rate of the UDP_STREAM
test, add a " 4.2.2.8 XTI SCTP Stream Performance4.2.2.9 XTI TCP Stream PerformanceThe XTI TCP stream performance test is quite similar to the TCP_STREAM test. XTI requires a device file to be opened – as the device file is placed in different locations on different systems, it generally must be specified. The simplest XTI TCP stream test on HP-UX is performed by entering the command: $ netperf -H remotehost -t XTI_TCP_STREAM -- -X /dev/inet_cots which will perform a 10 second test between the local system and the system identified by remotehost. The STREAMS buffers on either end will be sized according to the systems' default and all TCP options (e.g. T_TCP_NODELAY) will be at their default settings. The test parameters for an XTI_TCP_STREAM test are the same as for a TCP_STREAM test with the addition of:
4.2.2.10 XTI UDP PerformanceThe XTI UDP stream performance test is quite similar to the UDP_STREAM test. XTI requires a device file be opened. As the device file is placed in different locations on different systems, it generally must be specified. The simplest XTI UDP stream test on HP-UX is performed by entering the command: $ netperf -H remotehost -t XTI_UDP_STREAM -- -X /dev/inet_clts The test parameters for an XTI_UDP_STREAM test are the same as for a UDP_STREAM test with the addition of:
NOTE: UDP is an unreliable protocol. It is important that you examine the results carefully as the reported send rate can be much higher than the actual receive rate. Great care should be taken when reporting UDP_STREAM test results to make sure they are not misleading. For example, one should always report both send and receive rates together for a UDP_STREAM test. If you are going to report a single number, you should report the receive rate. NOTE: If you would like to "pace" the send rate of the UDP_STREAM
test, add a " 4.2.2.11 SCTP IPv6 Stream Forward Performance4.2.2.12 TCP IPv6 Stream Forward Performance4.2.2.13 UDP IPv6 Stream Forward Performance4.2.2.14 DLPI Connection Oriented Stream Performance
NOTE: DLPI tests are not compiled-in by default with netperf.
If you wish to measure performance over DLPI, you will need to add a
A DLPI Connection Oriented Stream test (DLCO_STREAM) looks very similar to a TCP Stream test – they both use reliable, connection oriented protocols. The DLPI tests differs from the TCP test in that the message size must always be less than or equal to the local interface's MTU – DLPI does not provide TCP-style segmentation and reassembly. The simplest DLPI Connection Oriented Stream test would look something like this: $ netperf -H remotehost -t DLCO_STREAM -- -m 1024 Here are some of the DLPI-specific command line options:
4.2.2.15 DLPI Connectionless Stream Performance
NOTE: DLPI tests are not compiled-in by default with netperf.
If you wish to measure performance over DLPI, you will need to add a
A DLPI Connectionless Stream test (DLCL_STREAM) is analogous to a UDP_STREAM test. They both make use of unreliable, connectionless transports. The DLPI test differs from the UDP test in that the message size must always be less than or equal to the link MTU – DLPI does not provide IP-like segmentation and reassembly functionality, and the netperf benchmark does not presume to provide one. The simplest DLPI Connectionless Stream test command line would look something like this: $ netperf -H remotehost -t DLCL_STREAM -- -m 1024 Here are some of the DLPI-specific command line options for the DLCL_STREAM test:
4.2.2.16 Unix Domain Stream Sockets Performance
NOTE: Unix Domain Socket tests are not compiled into netperf by
default. If you wish to measure the performance of Unix Domain Sockets, you
must recompile netperf and netserver with A Unix Domain Stream Socket Stream test (STREAM_STREAM) is very much like a TCP_STREAM test. The simplest Unix Domain Socket Stream test command line would look something like this: $ netperf -t STREAM_STREAM The Here are some of the Unix Domain-specific command line options for the STREAM_STREAM test:
4.2.2.17 Unix Domain Datagram Sockets Performance
NOTE: Unix Domain Socket tests are not compiled into netperf by
default. If you wish to measure the performance of Unix Domain Sockets, you
must recompile netperf and netserver with
A Unix Domain Datagram Socket stream test (DG_STREAM) is very much like a TCP_STREAM test except that message boundaries are preserved. The simplest Unix Domain Datagram Socket stream test command line would look something like this: $ netperf -t DG_STREAM The
4.2.2.18 Fore ATM API Stream Performance
NOTE: Fore ATM API tests are not compiled into netperf by
default. If you wish to measure the performance of connections over the Fore
ATM API, you must recompile netperf and netserver with
A Fore ATM API stream test (FORE_STREAM) is very much like a UDP_STREAM test. NOTE: The Fore ATM API explores an unreliable protocol. It is important that you examine the results carefully as the reported send rate can be much higher than the actual receive rate. Great care should be taken when reporting FORE_STREAM test results to make sure they are not misleading. For example, one should always report both send and receive rates together for a FORE_STREAM test. If you are going to report a single number, you should report the receive rate. The simplest Fore ATM API stream test command line would look something like this: $ netperf -t FORE_STREAM -H remotehost Here are some of the test specific command line options applicable to a FORE_STREAM test.
|