PsPing v2.1
By Mark Russinovich
Published: June 29, 2016
Introduction
PsPing implements Ping functionality, TCP ping, latency and bandwidth measurement. Use the following command-line options to show the usage for each test type:
Installation
Copy PsPing onto your executable path. Typing “psping” displays its usage syntax.
Using PsPing
PsPing implements Ping functionality, TCP ping, latency and bandwidth measurement. Use the following command-line options to show the usage for each test type:
Usage: psping -? [i|t|l|b]
| Parameter | Description |
|---|---|
| -? I | Usage for ICMP ping. |
| -? T | Usage for TCP ping. |
| -? L | Usage for latency test. |
| -? B | Usage for bandwidth test. |
| Parameter | Description |
|---|---|
| -h | Print histogram (default bucket count is 20). |
| If you specify a single argument, it’s interpreted as a bucket count and the histogram will contain that number of buckets covering the entire time range of values. Specify a comma-separated list of times to create a custom histogram (e.g. “0.01,0.05,1,5,10”). | |
| -i | Interval in seconds. Specify 0 for fast ping. |
| -l | Request size. Append ‘k’ for kilobytes and ‘m’ for megabytes. |
| -n | Number of pings or append ‘s’ to specify seconds e.g. ’10s’. |
| -q | Don’t output during pings. |
| -t | Ping until stopped with Ctrl+C and type Ctrl+Break for statistics. |
| -w | Warmup with the specified number of iterations (default is 1). |
| -4 | Force using IPv4. |
| -6 | Force using IPv6. |
For high-speed ping tests use -q and -i 0.
| Parameter | Description |
|---|---|
| -h | Print histogram (default bucket count is 20). |
| If you specify a single argument, it’s interpreted as a bucket count and the histogram will contain that number of buckets covering the entire time range of values. Specify a comma-separated list of times to create a custom histogram (e.g. “0.01,0.05,1,5,10”). | |
| -i | Interval in seconds. Specify 0 for fast ping. |
| -l | Request size. Append ‘k’ for kilobytes and ‘m’ for megabytes. |
| -n | Number of pings or append ‘s’ to specify seconds e.g. ’10s’. |
| -q | Don’t output during pings. |
| -t | Ping until stopped with Ctrl+C and type Ctrl+Break for statistics. |
| -w | Warmup with the specified number of iterations (default is 1). |
| -4 | Force using IPv4. |
| -6 | Force using IPv6. |
For high-speed ping tests use -q and -i 0.
TCP and UDP latency usage:
server: psping [[-6]|[-4]] [-f] <-s source:sourceport>
client: psping [[-6]|[-4]] [-f] [-u] [-h [buckets |
,
,…]] [-r] <-l requestsize>[k|m]] <-n count> [-w
]
| Parameter | Description |
|---|---|
| -f | Open source firewall port during the run. |
| -u | UDP (default is TCP). |
| -h | Print histogram (default bucket count is 20). |
| If you specify a single argument, it’s interpreted as a bucket count and the histogram will contain that number of buckets covering the entire time range of values. Specify a comma-separated list of times to create a custom histogram (e.g. “0.01,0.05,1,5,10”). | |
| -l | Request size. Append ‘k’ for kilobytes and ‘m’ for megabytes. |
| -n | Number of sends/receives. Append ‘s’ to specify seconds e.g. ’10s’ |
| -r | Receive from the server instead of sending. |
| -w | Warmup with the specified number of iterations (default is 5). |
| -4 | Force using IPv4. |
| -6 | Force using IPv6. |
| -s | Server listening address and port. |
The server can serve both latency and bandwidth tests and remains active until you terminate it with Control-C.
TCP and UDP bandwidth usage:
server: psping [[-6]|[-4]] [-f] <-s source:sourceport>
client: psping [[-6]|[-4]] [-f] [-u] [-h [buckets |
,
,…]] [-r] <-l requestsize>[k|m]] <-n count> [-i
] [-w
]
| Parameter | Description |
|---|---|
| -f | Open source firewall port during the run. |
| -u | UDP (default is TCP). |
| -b | Bandwidth test. |
| -h | Print histogram (default bucket count is 20). |
| If you specify a single argument, it’s interpreted as a bucket count and the histogram will contain that number of buckets covering the entire time range of values. Specify a comma-separated list of times to create a custom histogram (e.g. “0.01,0.05,1,5,10”). | |
| -i | Number of outstanding I/Os (default is min of 16 and 2x CPU cores). |
| -l | Request size. Append ‘k’ for kilobytes and ‘m’ for megabytes. |
| -n | Number of sends/receives. Append ‘s’ to specify seconds e.g. ’10s’ |
| -r | Receive from the server instead of sending. |
| -w | Warmup for the specified iterations (default is 2x CPU cores). |
| -4 | Force using IPv4. |
| -6 | Force using IPv6. |
| -s | Server listening address and port. |
The server can serve both latency and bandwidth tests and remains active until you terminate it with Control-C.
Examples
转载于:https://www.cnblogs.com/fatt/p/8359672.html
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/202713.html原文链接:https://javaforall.net

