ping命令也可以来进行网速测试
说到网速测试测试网速大家几乎都是使用一些测速工具或者测速网站来进行测速的。其实使用P ing命令也可以测速。下面本文就来详细的介绍一下如何使用ping命令来进行网站测速。
Ping命令的使用是此网速测试方法的基础我们先来了解一下
网速测试——Ping命令帮助说明
1. C:\Documents and Settings\Administrator>ping /?
2.
3. Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i
TTL] [-v TOS]
4. [-r count] [-s count] [ [-j host-list] | [-k host-list] ]
5. [-w timeout] [-R] [-S srcaddr] [-4] [-6] target_name
6.
7. Options:
8. -t
Ping the specified host until stopped.
9. To see statistics and continue - type Control-Break
;
10. To stop - type Control-C.
11. -a
Resolve addresses to hostnames.
12. -n count Number of echo requests to send.
13. -l size
Send buffer size.
14. -f
Set Don't Fragment flag in packet (IPv4-only) .
15. -i TTL
Time To Live.
16. -v TOS
Type Of Service (IPv4-only) .
17. -r count Record route for count hops (IPv4-only) .
18. -s count Timestamp for count hops (IPv4-only) .
19. -j host-list Loose source route along host-list (IPv4-only) .
20. -k host-list Strict source route along host-list (IPv4-only) .
21. -w timeout Timeout in milliseconds to waitfor each reply.
22. -R
Trace round-trip path (IPv6-only) .
23. -S srcaddr Source address to use (IPv6-only) .
24. -4
Force using IPv4.
25. -6
Force using IPv6.
网速测试——Ping命令详解
使用ping可以测试计算机名和计算机的ip地址,验证与远程计算机的连接,通过将icmp回显数据包发送到计算机并侦听回显回复数据包来验证与一台或多台远程计算机的连接,该命令只有在安装了tcp/ip协议后才可以使用。现在打开你的ms-dos(开始→程序→ms-dos) 用win2000的朋友打开cm d.exe 这是win2000下的ms-dos开始→程序→附件→"命令提示符"或开始→搜索文件或文件夹→"填入cmd.exe",找到后双击运行就可以了。 下面我们来看看他的命令
1. ping [-t] [-a] [-n count] [-l length] [-f] [-i ttl]
[-v tos] [-r count] [-s count] [ [-j computer-list]| [-k computer-list] ] [-w timeout] destination-list参数
-t
ping指定的计算机直到中断。 ctrl+c停止
-a
将地址解析为计算机名。例:c:\>ping -a 127.0.0. 1
1. pinging china-hacker [127.0.0.1] with 32 bytes of data: china-hacker就是他的计算机名
2.
3. reply from 127.0.0.1: bytes=32 time<10ms ttl=128reply from 127.0.0.1: bytes=32 time<10ms ttl=128reply from 127.0.0.1: bytes=32 time<10ms ttl=128reply from
127.0.0.1: bytes=32 time<10ms ttl=128
4.
5. ping statistics for 127.0.0.1:packets: sent = 4, received = 4, lost = 0 (0% loss) ,approximate round trip times in milli-seconds:minimum = 0ms, maximum = 0ms, average = 0ms
6.
7. -n count
发送count指定的echo数据包数。默认值为4。
-l length
发送包含由 lengt h指定的数据量的echo数据包。默认为32字节最大值是65,527。
-f
在数据包中发送“不要分段”标志。数据包就不会被路由上的网关分段。-i ttl
将“生存时间”字段设置为 tt l指定的值。
-v tos
将“服务类型”字段设置为 tos指定的值。
-r count
在“记录路由”字段中记录传出和返回数据包的路由。 count可以指定最少1台最多9台计算机。
-s count
指定count指定的跃点数的时间戳。
-j compu ter-list
利用compu ter-l i st指定的计算机列表路由数据包。连续计算机可以被中间网关分隔路由稀疏源 ip允许的最大数量为9。
-k compu ter-list
利用compu ter-l i st指定的计算机列表路由数据包。连续计算机不能被中间网关分隔路由严格源 ip允许的最大数量为9。
-w timeout
指定超时间隔单位为毫秒。destination-list
指定要ping的远程计算机。
1. c:\>ping ds.internic.net
2.
3. pinging ds.internic.net [192.20.239.132] with 32 bytes of data: 192.20.239.132他的ip地址
4.
5. reply from 192.20.239.132:bytes=32 time=101ms ttl=2
43
6.
7. reply from 192.20.239.132:bytes=32 time=100ms ttl=2
43
8.
9. reply from 192.20.239.132:bytes=32 time=120ms ttl=2
43
10.
11. reply from 192.20.239.132:bytes=32 time=120ms ttl=2
43
网速测试——Ping命令格式ping ip地址-l字节数
注上面的命令中l是字母l,不是数字1 网速等于≈(发送的字节数/返回的时间 [毫秒])K字节 以上计算的结果速为字节(byt e) 不是我们通常说的位(bps) 如
1. C:\Documents and Settings\Administrator>ping 202.10
1.224.68 -l 1000
2.
3. Pinging 202.101.224. 68with 1000 bytes of data:
4.
5. Reply from 202.101.224. 68: bytes=1000 time=38ms TTL=251
6. Reply from 202.101.224. 68: bytes=1000 time=38ms TTL=251
7. Reply from 202.101.224. 68: bytes=1000 time=38ms TTL=251
8. Reply from 202.101.224. 68: bytes=1000 time=38ms TTL=251
9.
10. Ping statistics for 202.101.224. 68:
11. Packets: Sent = 4, Received = 4, Lost = 0 (0% loss) ,
12. Approximate round trip times in milli-seconds:
13. Minimum = 38ms, Maximum = 38ms, Average = 38ms根据上述发送及返回的信息可以简单得出到地址202. 101.224.68的网速为网速等于≈(发送的字节数/返回的时间 [毫秒])K字节
≈1000/38K字节
≈26.32K字节
网速测试的方法有很多其中使用p ing命令是一个比较典型和实用的技巧希望大家能够学会和掌握赶快动手操作测试一下你的网络速。
整理一下CloudCone商家之前推送的闪购VPS云服务器产品,数量有限,活动推出可能很快机器就售罄了,有需要美国便宜VPS云服务器的朋友可以关注一下。CloudCone怎么样?CloudCone服务器好不好?CloudCone值不值得购买?CloudCone是一家成立于2017年的美国服务器提供商,国外实力大厂,自己开发的主机系统面板,CloudCone主要销售美国洛杉矶云服务器产品,优势特点是...
pigyun怎么样?PIGYunData成立于2019年,2021是PIGYun为用户提供稳定服务的第三年,目前商家提供香港CN2线路、韩国cn2线路、美西CUVIP-9929、GIA等线路优质VPS,基于KVM虚拟架构,商家采用魔方云平台,所有的配置都可以弹性选择,目前商家推出了七月优惠,韩国和美国所有线路都有相应的促销,六折至八折,性价比不错。点击进入:PIGYun官方网站地址PIGYUN优惠...
2021年6月底,raksmart开发出来的新产品“cloud-云服务器”正式上线对外售卖,当前只有美国硅谷机房(或许以后会有其他数据中心加入)可供选择。或许你会问raksmart云服务器怎么样啊、raksm云服务器好不好、网络速度快不好之类的废话(不实测的话),本着主机测评趟雷、大家受益的原则,先开一个给大家测评一下!官方网站:https://www.raksmart.com云服务器的说明:底层...