很多服务器会设置禁用ping,此时测网速就没有使用简单的ping看time值了。
此时可以使用第三方的工具tcping.exe
下载地址
https://www.elifulkerson.com/projects/tcping.php
PS C:\Users\tengl\Downloads> .\tcping.exe
--------------------------------------------------------------
tcping.exe by Eli Fulkerson
Please see http://www.elifulkerson.com/projects/ for updates.
--------------------------------------------------------------
Usage: C:\Users\tengl\Downloads\tcping.exe [-flags] server-address [server-port]
Usage (full): C:\Users\tengl\Downloads\tcping.exe [-t] [-d] [-i interval] [-n times] [-w ms] [-b n] [-r times] [-s] [-v] [-j] [-js size] [-4] [-6] [-c] [-g count] [-S source_address] [--file] [--tee filename] [-h] [-u] [--post] [--head] [--proxy-port port] [--proxy-server server] [--proxy-credentials username:password] [-f] server-address [server-port]
-t : ping continuously until stopped via control-c
-n 5 : for instance, send 5 pings
-i 5 : for instance, ping every 5 seconds
-w 0.5 : for instance, wait 0.5 seconds for a response
-d : include date and time on each line
-b 1 : enable beeps (1 for on-down, 2 for on-up,
3 for on-change, 4 for always)
-r 5 : for instance, relookup the hostname every 5 pings
-s : automatically exit on a successful ping
-v : print version and exit
-j : include jitter, using default rolling average
-js 5 : include jitter, with a rolling average size of (for instance) 5.
--tee : mirror output to a filename specified after '--tee'
--append : Append to the --tee filename rather than overwriting it
-4 : prefer ipv4
-6 : prefer ipv6
-c : only show an output line on changed state
--file : treat