自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

ping命令也可以來進(jìn)行網(wǎng)速測試

網(wǎng)絡(luò) 網(wǎng)絡(luò)優(yōu)化 網(wǎng)絡(luò)運(yùn)維
說到網(wǎng)速測試,測試網(wǎng)速,大家?guī)缀醵际鞘褂靡恍y速工具,或者測速網(wǎng)站來進(jìn)行測速的。其實(shí)使用Ping命令也可以測速。下面本文就來詳細(xì)的介紹一下如何使用ping命令來進(jìn)行網(wǎng)站測速。

Ping命令的使用是此網(wǎng)速測試方法的基礎(chǔ),我們先來了解一下:

網(wǎng)速測試——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 wait for 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. 

網(wǎng)速測試——Ping命令詳解

使用 ping可以測試計(jì)算機(jī)名和計(jì)算機(jī)的 ip 地址,驗(yàn)證與遠(yuǎn)程計(jì)算機(jī)的連接,通過將 icmp 回顯數(shù)據(jù)包發(fā)送到計(jì)算機(jī)并偵聽回顯回復(fù)數(shù)據(jù)包來驗(yàn)證與一臺(tái)或多臺(tái)遠(yuǎn)程計(jì)算機(jī)的連接,該命令只有在安裝了 tcp/ip 協(xié)議后才可以使用。 現(xiàn)在打開你的ms-dos(開始→程序→ms-dos),用win2000的朋友打開cmd.exe(這是win2000下的ms-dos,開始→程序→附件→"命令提示符" 或 開始→搜索文件或文件夾→"填入cmd.exe",找到后雙擊運(yùn)行就可以了。) 下面我們來看看他的命令:

  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 

參數(shù)

-t

ping 指定的計(jì)算機(jī)直到中斷。ctrl+c停止

-a

將地址解析為計(jì)算機(jī)名。例:c:\>ping -a 127.0.0.1

  1. pinging china-hacker [127.0.0.1] with 32 bytes of data:(china-hacker就是他的計(jì)算機(jī)名)  
  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 = 4received = 4lost = 0 (0% loss),approximate round trip times in milli-seconds:minimum = 0msmaximum = 0msaverage = 0ms 
  6.  
  7. -n count 

發(fā)送 count 指定的 echo 數(shù)據(jù)包數(shù)。默認(rèn)值為 4。

-l length

發(fā)送包含由 length 指定的數(shù)據(jù)量的 echo 數(shù)據(jù)包。默認(rèn)為 32 字節(jié);最大值是 65,527。

-f

在數(shù)據(jù)包中發(fā)送“不要分段”標(biāo)志。數(shù)據(jù)包就不會(huì)被路由上的網(wǎng)關(guān)分段。

-i ttl

將“生存時(shí)間”字段設(shè)置為 ttl 指定的值。

-v tos

將“服務(wù)類型”字段設(shè)置為 tos 指定的值。

-r count

在“記錄路由”字段中記錄傳出和返回?cái)?shù)據(jù)包的路由。count 可以指定最少 1 臺(tái),最多 9 臺(tái)計(jì)算機(jī)。

-s count

指定 count 指定的躍點(diǎn)數(shù)的時(shí)間戳。

-j computer-list

利用 computer-list 指定的計(jì)算機(jī)列表路由數(shù)據(jù)包。連續(xù)計(jì)算機(jī)可以被中間網(wǎng)關(guān)分隔(路由稀疏源)ip 允許的最大數(shù)量為 9。

-k computer-list

利用 computer-list 指定的計(jì)算機(jī)列表路由數(shù)據(jù)包。連續(xù)計(jì)算機(jī)不能被中間網(wǎng)關(guān)分隔(路由嚴(yán)格源)ip 允許的最大數(shù)量為 9。

-w timeout

指定超時(shí)間隔,單位為毫秒。

destination-list

指定要 ping 的遠(yuǎn)程計(jì)算機(jī)。

  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=243 
  6.  
  7. reply from 192.20.239.132:bytes=32 time=100ms ttl=243 
  8.  
  9. reply from 192.20.239.132:bytes=32 time=120ms ttl=243 
  10.  
  11. reply from 192.20.239.132:bytes=32 time=120ms ttl=243 

網(wǎng)速測試——Ping命令格式

ping ip地址 -l 字節(jié)數(shù)

注:上面的命令中 l 是字母l,不是數(shù)字1,網(wǎng)速等于≈(發(fā)送的字節(jié)數(shù)/返回的時(shí)間[毫秒])K字節(jié),以上計(jì)算的結(jié)果速為字節(jié)(byte),不是我們通常說的位(bps),如:

  1. C:\Documents and Settings\Administrator>ping 202.101.224.68 -l 1000  
  2.  
  3. Pinging 202.101.224.68 with 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 = 4Received = 4Lost = 0 (0% loss),  
  12. Approximate round trip times in milli-seconds:  
  13.     Minimum = 38msMaximum = 38msAverage = 38ms 

根據(jù)上述發(fā)送及返回的信息可以簡單得出到地址202.101.224.68的網(wǎng)速為:

網(wǎng)速等于≈(發(fā)送的字節(jié)數(shù)/返回的時(shí)間[毫秒])K字節(jié)
 

≈1000/38K字節(jié)

 

≈26.32K字節(jié)

網(wǎng)速測試的方法有很多,其中使用ping命令是一個(gè)比較典型和實(shí)用的技巧,希望大家能夠?qū)W會(huì)和掌握,趕快動(dòng)手操作測試一下你的網(wǎng)絡(luò)速。

責(zé)任編輯:佚名 來源: 卡卡網(wǎng)
相關(guān)推薦

2011-09-02 10:45:29

網(wǎng)速測試網(wǎng)速測試方法

2019-05-27 08:30:52

ping命令網(wǎng)絡(luò)命令ping

2014-01-24 09:09:32

Linux命令行網(wǎng)速

2014-01-22 10:21:55

Linux命令行

2013-12-03 09:23:06

命令行網(wǎng)速

2010-12-31 13:44:33

pingnet view

2011-09-09 09:29:37

192.168.1.1pingping 192.16

2020-02-12 13:00:09

網(wǎng)速度測試工具開源工具

2023-11-01 11:27:42

ping命令網(wǎng)絡(luò)

2023-02-15 08:24:12

數(shù)據(jù)分析數(shù)據(jù)可視化

2021-08-27 10:55:18

桌面GNOME 41Linux

2022-07-18 08:48:06

HtmxHTML

2023-07-24 15:20:05

機(jī)器學(xué)習(xí)集成學(xué)習(xí)

2021-05-07 14:45:07

SpeedtestStarlink網(wǎng)速測試

2018-04-19 09:23:07

Linux網(wǎng)速測試命令行工具

2010-11-09 12:54:55

局域網(wǎng)網(wǎng)速局域網(wǎng)測速

2012-10-08 10:09:14

測速器網(wǎng)絡(luò)

2010-10-08 14:16:29

2015-06-24 10:23:54

2012-08-14 09:20:00

Python
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)