![]() |
![]()
| ![]() |
![]()
NAMEsshping - measure character-echo latency and bandwidth for an interactive ssh session SYNOPSISsshping [options] [user@]addr[:port] DESCRIPTIONsshping is an SSH-based ping-like utility that measures interactive character echo latency and file transfer upload/download throughput. It's pronounced "shipping". PARAMETERSuser
addr
port
OPTIONSShort and long forms of options take the same arguments as shown. -b, --bindaddr IP
-c, --count NCHARS
-d, --delimited
-e, --echocmd CMD
-h, --help
-i, --identity FILE
-p, --password PWD
-r, --runtests e|s
-s, --size MB
-t, --time SECS
-v, --verbose
-z, --remote FILE
OUTPUT FIELDSConnectionssh-Login-Time
If an interactive password is needed to login, the time to supply the password is included as well - so type fast! Character Echo TestsThe character echo test issues a single byte to the remote system, then waits for it to be echoed back. It checks that the returned character is correct, then notes the wallclock time elapsed for the round-trip. This is repeated with a different character until either the test time limit is expired or the character count limit is reached. Since only a subset of the printable ASCII character set is used, bytes == characters. Minimum-Latency
Median-Latency
Average-Latency
Average-Deviation
Maximum-Latency
Echo-Count
Transfer Speed TestThe file transfer speed test measures the upload and download throughput rate, in bytes per second (Bps), using the scp subsystem. This is the subsystem typically used when copying files over ssh. For the upload test, a random 1MB file is copied to the target system ("uploads" it), measuring the time required for the transfer. The file is repeatedly copied to get transfer sizes greater than 1MB as given by --size. By default the target file is /tmp/sshping-PID.tmp but this can be changed with --remote. For the download test, the file just-uploaded is copied down repeatedly, 1MB at a time, as-if it were separate files to simulate downloading multiple files. The --size value again is used to determine the number of copies pulled. Upload-Size
Upload-Rate
Download-Size
Download-Rate
EXAMPLES# bin/sshping -d cheyenne.example.com ssh-Login-Time: 1,733,748,227 nsec Minimum-Latency: 847,107 nsec Median-Latency: 996,029 nsec Average-Latency: 992,186 nsec Average-Deviation: 67,079 nsec Maximum-Latency: 1,289,470 nsec Echo-Count: 1,000 Bytes Upload-Size: 8,000,000 Bytes Upload-Rate: 4,732,718 Bytes/second Download-Size: 8,000,000 Bytes Download-Rate: 3,781,725 Bytes/second AUTHORWritten by Uncle Spook. https://github.com/spook/sshping LICENSECopyright (c) 2017-2018 by Uncle Spook MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|