TCPBENCH(1) | General Commands Manual | TCPBENCH(1) |
tcpbench
— TCP/UDP
benchmarking and measurement tool
tcpbench |
-l |
tcpbench |
[-46DRUuv ] [-B
buf] [-b
sourceaddr] [-k
kvars] [-n
connections] [-p
port] [-r
interval] [-S
space] [-T
toskeyword] [-t
secs] [-V
rtable] hostname |
tcpbench |
-s [-46DUuv ]
[-B buf]
[-k kvars]
[-p port]
[-r interval]
[-S space]
[-T toskeyword]
[-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:
-4
tcpbench
to use IPv4 addresses only.-6
tcpbench
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-D
-k
kvars-l
-n
connections-p
port-R
-B
.-r
interval-S
space-s
tcpbench
in server mode, where it will
listen on all interfaces for incoming connections. It defaults to using
TCP if -u
is not specified.-T
toskeyword-t
secs-U
-u
-k
flags don't apply.-V
rtable-v
The 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>.
August 15, 2022 | Debian |