首页 > 学院 > 网络通信 > 正文

ping命令进行网速测试技巧

2020-04-29 13:52:31
字体:
来源:转载
供稿:网友

  Ping命令的使用是此网速测试方法的基础,我们先来了解一下:

  网速测试--Ping命令帮助说明

  C:/Documents and Settings/Administrator>ping /? Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS] [-r count] [-s count] [[-j host-list]   [-k host-list]] [-w timeout] [-R] [-S srcaddr] [-4] [-6] target_name Options: -tPing the specified host until stopped. To see statistics and continue - type Control-Break; To stop - type Control-C. -aResolve addresses to hostnames. -n count Number of echo requests to send. -l sizeSend buffer size. -fSet Don't Fragment flag in packet (IPv4-only). -i TTLTime To Live. -v TOSType Of Service (IPv4-only). -r count Record route for count hops (IPv4-only). -s count Timestamp for count hops (IPv4-only). -j host-list Loose source route along host-list (IPv4-only). -k host-list Strict source route along host-list (IPv4-only). -w timeout Timeout in milliseconds to wait for each reply. -RTrace round-trip path (IPv6-only). -S srcaddr Source address to use (IPv6-only). -4Force using IPv4. -6Force using IPv6. 网速测试--Ping命令详解

  使用 ping可以测试计算机名和计算机的 ip 地址,验证与远程计算机的连接,通过将 icmp 回显数据包发送到计算机并侦听回显回复数据包来验证与一台或多台远程计算机的连接,该命令只有在安装了 tcp/ip 协议后才可以使用. 现在打开你的ms-dos(开始→程序→ms-dos),用win2000的朋友打开cmd.exe(这是win2000下的ms-dos,开始→程序→附件→"命令提示符" 或 开始→搜索文件或文件夹→"填入cmd.exe",找到后双击运行就可以了.) 下面我们来看看他的命令:

  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

  pinging china-hacker [127.0.0.1] with 32 bytes of data:(china-hacker就是他的计算机名) 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 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 -n count 发送 count 指定的 echo 数据包数.默认值为 4.

  -l length

  发送包含由 length 指定的数据量的 echo 数据包.默认为 32 字节;最大值是 65,527.

  -f

  在数据包中发送"不要分段"标志.数据包就不会被路由上的网关分段.

  -i ttl
(责任编辑:武林网)

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表