{
    "content": [
        {
            "type": "text",
            "text": "# tcpspray.ndisc6(1) (man)\n\n**Summary:** tcpspray - TCP/IP bandwidth measurement tool (Discard and Echo client)\n\n**Synopsis:** tcpspray [-46ev] [-b blocksize] [-d waitµµs] [ -f filename] [-n count] <hostname> [port]\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| -4 | --ipv4 | — | Force usage of TCP over IPv4. |\n| -6 | --ipv6 | — | Force usage of TCP over IPv6. |\n| -b | --bsize | — | Send block of the specified byte size (default: 1024). |\n| -d | --delay | — | Waits for the given amount of microseconds after any given was sent before attempting to send the next one. There is no  |\n| -e | --echo | — | Use the Echo protocol instead of Discard. tcpspray will measure the time required to send data and receive it back, inst |\n| -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 fil |\n| -h | --help | — | Display some help and exit. |\n| -n | --count | — | Send the specified amount of data blocks for the measurements (default: 100). |\n| -V | --version | — | Display program version and license and exit. |\n| -v | --verbose | — | Display more verbose informations. In particular, tcpspray will print a dot each time a block is sent. If the Echo proto |\n\n## See Also\n\n- tcp(7)\n- inetd(8)\n- tcptraceroute6(8)\n- tcptraceroute(8)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (3 lines)\n- **DESCRIPTON** (11 lines)\n- **OPTIONS** (1 lines) — 10 subsections\n  - -4 --ipv4 (3 lines)\n  - -6 --ipv6 (3 lines)\n  - -b --bsize (3 lines)\n  - -d --delay (4 lines)\n  - -e --echo (4 lines)\n  - -f --fill (5 lines)\n  - -h --help (3 lines)\n  - -n --count (3 lines)\n  - -V --version (3 lines)\n  - -v --verbose (5 lines)\n- **DIAGNOSTICS** (6 lines)\n- **SECURITY** (3 lines)\n- **SEE ALSO** (3 lines)\n- **AUTHOR** (7 lines)\n\n## Full Content\n\n### NAME\n\ntcpspray - TCP/IP bandwidth measurement tool (Discard and Echo client)\n\n### SYNOPSIS\n\ntcpspray [-46ev] [-b blocksize] [-d waitµµs] [ -f filename] [-n count] <hostname> [port]\n\n### DESCRIPTON\n\ntcpspray  uses  the  Discard resp. Echo protocol (RFC 863 resp. RFC 862) to perform bandwidth\nmeasurements of TCP sessions between the local system, and a Discard resp. Echo server.\n\nUnix-based hosts can provide a Discard and/or Echo servers with the Internet super-server in‐‐\netd. On Windows NT, the simple network protocols optional component will do the same.\n\nThe  name or address of the server node must be specified. tcpspray will automatically try to\nuse IPv6 when available. If not, or if it fails, it will fallback to IPv4. However, tcpspray4\nresp. tcpspray6 only try to use IPv4 resp. IPv6.\n\n### OPTIONS\n\n#### -4 --ipv4\n\nForce usage of TCP over IPv4.\n\n#### -6 --ipv6\n\nForce usage of TCP over IPv6.\n\n#### -b --bsize\n\nSend block of the specified byte size (default: 1024).\n\n#### -d --delay\n\nWaits  for the given amount of microseconds after any given was sent before attempting\nto send the next one. There is no delay by default.\n\n#### -e --echo\n\nUse the Echo protocol instead of Discard. tcpspray will measure the time  required  to\nsend data and receive it back, instead of simply sending it.\n\n#### -f --fill\n\nRead  data  from  the  specified file to fill sent blocks with. If the file is smaller\nthan the size of blocks, or if no file were specified, the  remaining  trailing  bytes\nare all set to zero.\n\n#### -h --help\n\nDisplay some help and exit.\n\n#### -n --count\n\nSend the specified amount of data blocks for the measurements (default: 100).\n\n#### -V --version\n\nDisplay program version and license and exit.\n\n#### -v --verbose\n\nDisplay  more verbose informations. In particular, tcpspray will print a dot each time\na block is sent. If the Echo protocol is used (option -e), dots will be erased as data\nis received back.\n\n### DIAGNOSTICS\n\nIf you get no response while you know the remote host is up, it is most likely that it has no\nDiscard/Echo service running, or that these services are blocked by a firewall. Running  tcp‐\ntraceroute6(8)  resp.  tcptraceroute(8) toward the IPv6 resp. IPv4 remote host might help de‐\ntecting such a situation.\n\n### SECURITY\n\ntcpspray does not require any privilege to run.\n\n### SEE ALSO\n\ntcp(7), inetd(8), tcptraceroute6(8), tcptraceroute(8)\n\n### AUTHOR\n\nRémi Denis-Courmont <remi at remlab dot net>\n\nhttp://www.remlab.net/ndisc6/\n\n\n\ntcpspray                                       $Date$                                    TCPSPRAY(1)\n\n"
        }
    ],
    "structuredContent": {
        "command": "tcpspray.ndisc6",
        "section": "1",
        "mode": "man",
        "summary": "tcpspray - TCP/IP bandwidth measurement tool (Discard and Echo client)",
        "synopsis": "tcpspray [-46ev] [-b blocksize] [-d waitµµs] [ -f filename] [-n count] <hostname> [port]",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [
            {
                "flag": "-4",
                "long": "--ipv4",
                "arg": null,
                "description": "Force usage of TCP over IPv4."
            },
            {
                "flag": "-6",
                "long": "--ipv6",
                "arg": null,
                "description": "Force usage of TCP over IPv6."
            },
            {
                "flag": "-b",
                "long": "--bsize",
                "arg": null,
                "description": "Send block of the specified byte size (default: 1024)."
            },
            {
                "flag": "-d",
                "long": "--delay",
                "arg": null,
                "description": "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."
            },
            {
                "flag": "-e",
                "long": "--echo",
                "arg": null,
                "description": "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."
            },
            {
                "flag": "-f",
                "long": "--fill",
                "arg": null,
                "description": "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."
            },
            {
                "flag": "-h",
                "long": "--help",
                "arg": null,
                "description": "Display some help and exit."
            },
            {
                "flag": "-n",
                "long": "--count",
                "arg": null,
                "description": "Send the specified amount of data blocks for the measurements (default: 100)."
            },
            {
                "flag": "-V",
                "long": "--version",
                "arg": null,
                "description": "Display program version and license and exit."
            },
            {
                "flag": "-v",
                "long": "--verbose",
                "arg": null,
                "description": "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."
            }
        ],
        "examples": [],
        "see_also": [
            {
                "name": "tcp",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/tcp/7/json"
            },
            {
                "name": "inetd",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/inetd/8/json"
            },
            {
                "name": "tcptraceroute6",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/tcptraceroute6/8/json"
            },
            {
                "name": "tcptraceroute",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/tcptraceroute/8/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "DESCRIPTON",
                "lines": 11,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-4 --ipv4",
                        "lines": 3,
                        "flag": "-4",
                        "long": "--ipv4"
                    },
                    {
                        "name": "-6 --ipv6",
                        "lines": 3,
                        "flag": "-6",
                        "long": "--ipv6"
                    },
                    {
                        "name": "-b --bsize",
                        "lines": 3,
                        "flag": "-b",
                        "long": "--bsize"
                    },
                    {
                        "name": "-d --delay",
                        "lines": 4,
                        "flag": "-d",
                        "long": "--delay"
                    },
                    {
                        "name": "-e --echo",
                        "lines": 4,
                        "flag": "-e",
                        "long": "--echo"
                    },
                    {
                        "name": "-f --fill",
                        "lines": 5,
                        "flag": "-f",
                        "long": "--fill"
                    },
                    {
                        "name": "-h --help",
                        "lines": 3,
                        "flag": "-h",
                        "long": "--help"
                    },
                    {
                        "name": "-n --count",
                        "lines": 3,
                        "flag": "-n",
                        "long": "--count"
                    },
                    {
                        "name": "-V --version",
                        "lines": 3,
                        "flag": "-V",
                        "long": "--version"
                    },
                    {
                        "name": "-v --verbose",
                        "lines": 5,
                        "flag": "-v",
                        "long": "--verbose"
                    }
                ]
            },
            {
                "name": "DIAGNOSTICS",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "SECURITY",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 7,
                "subsections": []
            }
        ]
    }
}