TCPTRAFFIC(1) MachTen Programmer’s Manual TCPTRAFFIC(1)

NAME
tcptraffic - TCP network traffic generator

SYNOPSIS
tcptraffic mode [ -option ... ] host

/usr/libexec/tcptrafficd

DESCRIPTION
Tcptraffic is a program used in conjunction with a remote
MachTen tcptrafficd daemon to test TCP connectivity and
performance over a network. If the -t mode is selected,
tcptraffic will source (transmit) the TCP data to host.
If the -r mode is selected, tcptraffic will sink (receive)
the TCP data from host. If the -e mode is selected, tcp-
traffic will transmit each packet and receive the echoed
packet from the remote daemon. Options are meaningful
depending on the selected mode (-t/-r/-e) and can be one
of the following:

-nbuffer count
number of buffers transmit-
ted/received/echoed (default is 1024).

-lbuffer length
length of each buffer transmit-
ted/received/echoed (default is 1024).

-pport number
internet port number on which to connect
(default is 4002).

The tcptraffic program will connect to a remote tcptraf-
ficd listening on the designated TCP port via inetd. The
port number should correspond the tcptraffic entry in the
remote system’s /etc/services file. The program will gen-
erate the specified number of packets and report perfor-
mance statistics in the form of kilobytes sent (received)
per local CPU second and kilobytes sent (received) per
real second.

EXAMPLE
Send one hundred 4096 byte packets on port 4002 to host
joe:

tcptraffic -t -n100 -l4096 joe

SEE ALSO
tcp(4), inetd(8), services(5)

MachTen November 10, 1995 1