NAME
tcptraffic - TCP network traffic generator

SYNOPSIS
tcptraffic mode [ -option ... ] host

/usr/etc/in.tcptraffic

DESCRIPTION
Tcptraffic is a program used in conjunction with a remote MachTen
in.tcptraffic 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, tcptraffic 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 transmitted/received/echoed (default is
1024).

-lbuffer length
length of each buffer transmitted/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 in.tcptraffic
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 generate the specified number
of packets and report performance 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)