TCPSPRAY(1)
๐ธ TCPSPRAY(1) โ like, the actual manual page, bestie ๐ธ
okay so this is the manual for tcpspray from the User's Manual section, and I'm gonna walk you through it like we're texting at 2am, except every single flag is still exactly where it should be. no cap. ๐
โจ 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]
periodt. that's the whole shape of it. ๐
๐ฆ DESCRIPTION ๐ฆ
so tcpspray uses the Discard protocol (that's RFC 863) or the Echo protocol (that's RFC 862) to do bandwidth measurements of TCP sessions between your local system and a Discard server or an Echo server. it's giving "scientific but make it chill." โจ
on Unix-based hosts you can get a Discard and/or Echo server from the Internet super-server, inetd. and on Windows NT, the simple network protocols optional component does the same thing. iconic cross-platform moment. ๐
you must specify the name or address of the server node. no server, no vibe check, sorry.
tcpspray will automatically try to use IPv6 when it's available. if IPv6 isn't available, or if it fails, it falls back to IPv4 like a polite little bestie. ๐ซถ
but here's the tea: tcpspray4 and tcpspray6 are pickier โ they only try IPv4 and IPv6 respectively. no fallback, no backup plan, main character energy only. ๐
๐ OPTIONS ๐
-4,--ipv4โ force usage of TCP over IPv4. that's it. that's the whole thing. ๐ธ๐ฎ-6,--ipv6โ force usage of TCP over IPv6. the other one. ๐-bblock_size,--bsizeblock_size โ send a block of the specified byte size. the default is1024. slay. ๐ฅ-dwait_ยตs,--delaywait_ยตs โ waits for the given amount of microseconds after any given block was sent, before attempting to send the next one. there is no delay by default, so it's just full send unless you say otherwise. โญ-e,--echoโ use the Echo protocol instead of Discard. so instead of just throwing data out there,tcpspraywill measure the time required to send data and receive it back. it's the difference between posting and getting a reply, honestly. ๐ญ-ffilename,--fillfilename โ 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. filling the void with zeros, literally. ๐-h,--helpโ display some help and exit. we love a helpful icon. ๐-nblock_count,--countblock_count โ send the specified amount of data blocks for the measurements. the default is100. โจ-V,--versionโ display program version and license and exit. the receipts, bestie. ๐งพ-v,--verboseโ display more verbose informations. in particular,tcpspraywill print a dot each time a block is sent. and if the Echo protocol is used (that's option-e), those dots will be erased as data is received back. so cute, the dots come and go. ๐ฆ
๐ DIAGNOSTICS ๐
if you get no response while you know the remote host is up, it's most likely that it has no Discard/Echo service running, or that these services are blocked by a firewall. not me getting ghosted by a firewall. ๐
running tcptraceroute6(8) or tcptraceroute(8) toward the IPv6 or IPv4 remote host (respectively) might help detecting such a situation. detective work, but make it network-y. ๐
๐ SECURITY ๐
tcpspray does not require any privilege to run. low maintenance queen. ๐
๐ SEE ALSO ๐
tcp(7), inetd(8), tcptraceroute6(8), tcptraceroute(8)
๐ธ AUTHOR ๐ธ
Rรฉmi Denis-Courmont <remi at remlab dot net>
okay and finally, the lil' sign-off: this page is tcpspray, dated $Date$, and it lives in section TCPSPRAY(1). that's the footer, bestie โ now go measure some bandwidth. ๐โจ๐ซถ
๐ฆ where this page comes from
- alpine 3.22: ndisc6-doc 1.0.8-r1 ยท GPL-2.0-or-later
- alpine 3.23: ndisc6-doc 1.0.8-r1 ยท GPL-2.0-or-later
- alpine 3.24: ndisc6-doc 1.0.8-r1 ยท GPL-2.0-or-later
- arch rolling: ndisc6 1.0.9-1 ยท GPL-2.0-only OR GPL-3.0-only
- epel 10: ndisc6 1.0.8-4.el10_2 ยท GPL-2.0-only OR GPL-3.0-only
- epel 9: ndisc6 1.0.7-3.el9 ยท GPL-2.0-only OR GPL-3.0-only
- fedora 43: ndisc6 1.0.8-4.fc43 ยท GPL-2.0-only OR GPL-3.0-only
- fedora 44: ndisc6 1.0.8-5.fc44 ยท GPL-2.0-only OR GPL-3.0-only
- nixos 26.05: ndisc6 1.0.4
- nixpkgs unstable: ndisc6 1.0.9
- Copyright ยฉ 2006 Rรฉmi Denis-Courmont
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms