# tcpspray.ndisc6(1) - man - phpman

[TCPSPRAY(1)](https://www.chedong.com/phpMan.php/man/TCPSPRAY/1/markdown)                                 User's Manual                                [TCPSPRAY(1)](https://www.chedong.com/phpMan.php/man/TCPSPRAY/1/markdown)



## NAME
       tcpspray - TCP/IP bandwidth measurement tool (Discard and Echo client)

## SYNOPSIS
       **tcpspray** [**-46ev**] [**-b** **block**___**size**] [**-d** **wait**___µµ**s**] [ **-f** **filename**] [**-n** **count**] <**hostname**> [**port**]


## DESCRIPTON
       **tcpspray**  uses  the  _Discard_ resp. _Echo_ protocol (RFC 863 resp. RFC 862) to perform bandwidth
       measurements of _TCP_ sessions between the local system, and a _Discard_ resp. _Echo_ server.

       Unix-based hosts can provide a Discard and/or Echo servers with the Internet _super-server_ **in**‐‐
       **etd**. On Windows NT, the _simple_ _network_ _protocols_ optional component will do the same.

       The  name or address of the server node must be specified. tcpspray will automatically try to
       use IPv6 when available. If not, or if it fails, it will fallback to IPv4. However, tcpspray4
       resp. tcpspray6 only try to use IPv4 resp. IPv6.


## OPTIONS
### -4 --ipv4
              Force usage of TCP over IPv4.


### -6 --ipv6
              Force usage of TCP over IPv6.


### -b --bsize
              Send block of the specified byte size (default: 1024).


### -d --delay
              Waits  for the given amount of microseconds after any given was sent before attempting
              to send the next one. There is no delay by default.


### -e --echo
              Use the Echo protocol instead of Discard. tcpspray will measure the time  required  to
              send data and receive it back, instead of simply sending it.


### -f --fill
              Read  data  from  the  specified file to fill sent blocks with. If the file is smaller
              than the size of blocks, or if no file were specified, the  remaining  trailing  bytes
              are all set to zero.


### -h --help
              Display some help and exit.


### -n --count
              Send the specified amount of data blocks for the measurements (default: 100).


### -V --version
              Display program version and license and exit.


### -v --verbose
              Display  more verbose informations. In particular, tcpspray will print a dot each time
              a block is sent. If the Echo protocol is used (option -e), dots will be erased as data
              is received back.


## DIAGNOSTICS
       If you get no response while you know the remote host is up, it is most likely that it has no
       Discard/Echo service running, or that these services are blocked by a firewall. Running  tcp‐
       [traceroute6(8)](https://www.chedong.com/phpMan.php/man/traceroute6/8/markdown)  resp.  [tcptraceroute(8)](https://www.chedong.com/phpMan.php/man/tcptraceroute/8/markdown) toward the IPv6 resp. IPv4 remote host might help de‐
       tecting such a situation.


## SECURITY
       tcpspray does not require any privilege to run.


## SEE ALSO
       [tcp(7)](https://www.chedong.com/phpMan.php/man/tcp/7/markdown), [inetd(8)](https://www.chedong.com/phpMan.php/man/inetd/8/markdown), [tcptraceroute6(8)](https://www.chedong.com/phpMan.php/man/tcptraceroute6/8/markdown), [tcptraceroute(8)](https://www.chedong.com/phpMan.php/man/tcptraceroute/8/markdown)


## AUTHOR
       Rémi Denis-Courmont <remi at remlab dot net>

       <http://www.remlab.net/ndisc6/>



tcpspray                                       $Date$                                    [TCPSPRAY(1)](https://www.chedong.com/phpMan.php/man/TCPSPRAY/1/markdown)
