logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

tcpspray - print average throughput for a tcp connection

Author

       Greg Christy (gmc@quotron.com)

                                                 23 October 1991                                     TCPSPRAY(1)

Description

tcpspray  sends  data  to  either  the  discard  or echo TCP service on the specified host and prints the
       average throughput.

Name

       tcpspray - print average throughput for a tcp connection

Options

-v             Prints a dot for each block sent. Will also print a backspace for each block  received  in
                      echo mode.  Note: the I/O required for this option will affect the throughput rates.

       -e             Use  the  TCP echo service instead of discard (the default) and print throughput rates for
                      both transmission and reception.

       -h             Print a usage description.

       -bblksize     Sets the size of a block (the internal buffer) in bytes.  Defaults to 1024.

       -nnblks       Sets the number of blocks to transfer.  Defaults to 100.

       -ffilename    Copy the contents of the specified file into the internal buffer  (sized  by  -b  option).
                      The  buffer  is  zeroed by default.  If the file is larger than the buffer, only the first
                      blksize bytes will be used.  If the file is smaller than the buffer, the  remaining  bytes
                      are zeroed.

                      This  option  is  useful  in  determining  the  relationship  of  the  data transferred to
                      throughput.  E.g., if data compression is used on any of the intermediate links comprising
                      the TCP connection, preloading the buffer with a text file will produce greater throughput
                      than with a file that has already been compressed.

       -ddelay       Sets the time in microseconds  to  wait  between  successive  buffer  transmissions.   The
                      default is no delay.

See Also

ping(8), spray(8)

Synopsis

tcpspray [ -v ] [ -e ] [ -h ] [ -bblksize ] [ -nnblks ]
            [ -ffilename ] hostname

See Also