当前位置:K88软件开发文章中心编程全书编程全书01 → 文章内容

几款网络测试工具总结_2

减小字体 增大字体 作者:潇湘隐者  来源:潇湘隐者  发布时间:2018-12-31 4:05:43

延迟测试多了参数-r,-u,-f
 
C:\Users>psping -? l
 
PsPing v2.10 - PsPing - ping, latency, bandwidth measurement utility
Copyright (C) 2012-2016 Mark Russinovich
Sysinternals - www.sysinternals.com
 
TCP and UDP latency usage:
server: psping [-6|-4] [-f] -s address:port
client: psping -l requestsize[k|m] -n count[s] [-r] [-u] [-w count] [-f] [-h [b
ckets|val1,val2,...]] [-6|-4] destination:port
  -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.
  -u    UDP (default is TCP).
  -w    Warmup with the specified number of iterations (default is 5).
  -f    Open source firewall port during the run.
  -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").
  -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.
 
 
参数
参数说明
-f
Open source firewall port during the run.
 
-u
使用UDP ping(默认是TCP
-h
输出直方图(默认步长数量为20
-r
从服务器接收代替发送。
-i
指定ping包的间隔秒数,快ping则设置为0
-l
指定ping包大小,默认单位是byte。使用 k为单位代表kilobytes(KB),使用m为单位代表megabytes(MB)
-n
指定测试次数。还可以指定测试的时间长度,以秒为单位,使用时在数字后加上s,例如“10s”
-q
测试过程中不输出结果,结束后显示统计结果;
-t
类似于 ICMP 的长 ping 测试,直到按下 Ctrl+C 停止测试,并显示统计结果;
-w
热身次数,默认为 次;
-4
强制使用 IPv4
-6
强制使用 IPv6
-s
服务器监听地址和端口
 
 
 
C:\Users>psping -? b
 
PsPing v2.10 - PsPing - ping, latency, bandwidth measurement utility
Copyright (C) 2012-2016 Mark Russinovich
Sysinternals - www.sysinternals.com
 
TCP and UDP bandwidth usage:
server: psping [-6|-4] [-f] -s address:port
client: psping -b -l requestsize[k|m] -n count[s] [-r] [-u [target]] [-i outstan
ding] [-w count] [-f] [-h [buckets|val1,val2,...]] [-6|-4] destination:port
  -b    Bandwidth test.
  -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.
  -u    UDP (default is TCP). Specify target bandwidth in MB/s.
  -i    Number of outstanding I/Os (default is min of 16 and 2x CPU cores).
  -w    Warmup for the specified iterations (default is 2x CPU cores).
  -f    Open source firewall port during the run.
  -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").
  -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.
 
带宽测试多了-b-i两个参数。如下所示:
 
-b 带宽测试
-i 未完成的I/O数量
 
PsPing测试案例 

例子1,例如我要检查服务器的1433端口是否开放

例子2网络时延测试
 
C:\Users>psping -n 6 -w 2 -h xxxxxx.database.chinacloudapi.cn:1433
 
PsPing v2.10 - PsPing - ping, latency, bandwidth measurement utility
Copyright (C) 2012-2016 Mark Russinovich
Sysinternals - www.sysinternals.com
 
TCP connect to 139.219.130.35:1433:
8 iterations (warmup 2) ping test:
Connecting to 139.xxx.130.xx:1433 (warmup): from 192.168.103.21:57851: 36.10ms
Connecting to 139.xxx.130.xx:1433 (warmup): from 192.168.103.21:57852: 36.32ms
Connecting to 139.xxx.130.xx:1433: from 192.168.103.21:57853: 40.33ms
Connecting to 139.xxx.130.xx:1433: from 192.168.103.21:57854: 34.71ms
Connecting to 139.xxx.130.xx:1433: from 192.168.103.21:57855: 35.60ms
Connecting to 139.xxx.130.xx:1433: from 192.168.103.21:57856: 35.74ms
Connecting to 139.xxx.130.xx:1433: from 192.168.103.21:57858: 40.21ms
Connecting to 139.xxx.130.xx:1433: from 192.168.103.21:57859: 39.50ms
 
TCP connect statistics for 139.xxx.130.xxx:1433:
  Sent = 6, Received = 6, Lost = 0 (0% loss),
  Minimum = 34.71ms, Maximum = 40.33ms, Average = 37.68ms
 
Latency Count
34.71   1
35.01   0
35.30   0
35.60   2
35.89   0
36.19   0
36.49   0
36.78   0
37.08   0
37.37   0
37.67   0
37.96   0
38.26   0
38.56   0
38.85   0
39.15   0
39.44   1
39.74   0
40.03   1
40.33   1
 
 

例子3网络带宽测试

[1] [2]  下一页


几款网络测试工具总结_2