TCPBENCH(1) | General Commands Manual | TCPBENCH(1) |
tcpbench
— TCP/UDP
benchmarking and measurement tool
tcpbench |
-l |
tcpbench |
[-46RUuv ] [-B
buf] [-b
addr] [-k
kvars] [-n
connections] [-p
port] [-r
interval] [-S
space] [-T
toskeyword] [-t
secs] [-V
rtable] hostname |
tcpbench |
-s [-46Uuv ]
[-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 display
throughput statistics along with 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.
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
addr-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>.
September 28, 2018 | Debian |