| TCPBENCH(1) | General Commands Manual | TCPBENCH(1) |
tcpbench — TCP/UDP
benchmarking and measurement tool
tcpbench |
-l |
tcpbench |
[-46cDRUuv] [-B
buf] [-b
sourceaddr] [-k
kvars] [-n
connections] [-p
port] [-r
interval] [-S
space] [-T
keyword] [-t
secs] [-V
rtable] hostname |
tcpbench |
-s [-46cDUuv]
[-B buf]
[-C certfile -K keyfile]
[-k kvars]
[-p port]
[-r interval]
[-S space]
[-T keyword]
[-V rtable]
[hostname] |
tcpbench is a small tool that performs
throughput benchmarking and concurrent sampling of kernel network
variables.
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
to.
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 -l option.
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:
-4tcpbench to use IPv4 addresses only.-6tcpbench to use IPv6 addresses only.-B
buftcpbench. 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.-b
sourceaddr-C
certfile-s and -c.-c-D-K
keyfile-s and
-c.-k
kvars-l-n
connections-p
port-R-B.-r
interval-S
space-stcpbench in server mode, where it will
listen on all interfaces for incoming connections. It defaults to using
TCP if -u is not specified.-T
keywordFor TLS options, keyword specifies a
value in the form of a
key=value pair:
ciphers, which allows the supported TLS ciphers
to be specified (see
tls_config_set_ciphers(3)
for further details) or protocols, which allows
the supported TLS protocols to be specified (see
tls_config_parse_protocols(3)
for further details). Specifying TLS options requires
-c.
-t
secs-U-u-k flags don't apply.-V
rtable-vThe tcpbench program first appeared in
OpenBSD 4.4.
The tcpbench program was written by
Damien Miller
<djm@openbsd.org>.
UDP mode and libevent port by Christiano F. Haesbaert <haesbaert@haesbaert.org>.
| November 6, 2024 | openbsd |