|TCPBENCH(1)||General Commands Manual||TCPBENCH(1)|
tcpbench — TCP/UDP
benchmarking and measurement tool
tcpbench is a small tool that performs
throughput benchmarking and concurrent sampling of kernel network
tcpbench is run as a client/server pair.
The server must be invoked with the
-s flag, which
will cause it to listen for incoming connections. The client must be invoked
with the hostname of a listening server to connect
Once connected, the client will send TCP or UDP traffic as fast as
possible to the server. Both the client and server will periodically compute
and display throughput statistics. The server starts computing these for UDP
on receipt of the first datagram, and stops for TCP when it has no
connections. This display also includes any kernel variables the user has
selected to sample (using the
-k option, which is
only available in TCP mode). A list of available kernel variables may be
obtained using the
A summary over the periodic throughput statistics is displayed on
exit. Its accuracy may be increased by decreasing the
interval. The summary bytes and duration cover the
interval from transfer start to process exit. The summary information can
also be displayed while
tcpbench is running by
sending it a
SIGINFO signal (see the
status argument of
stty(1) for more information).
The options are as follows:
tcpbenchto use IPv4 addresses only.
tcpbenchto use IPv6 addresses only.
tcpbench. The default is 262144 bytes for TCP client/server and UDP server. In UDP client mode this may be used to specify the packet size on the test stream.
tcpbenchin server mode, where it will listen on all interfaces for incoming connections. It defaults to using TCP if
-uis not specified.
-kflags don't apply.
tcpbench program first appeared in
tcpbench program was written by
UDP mode and libevent port by Christiano F. Haesbaert <firstname.lastname@example.org>.
|May 4, 2020||OpenBSD-current|