• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
    • 軟件測試技術
    • 軟件測試博客
    • 軟件測試視頻
    • 開源軟件測試技術
    • 軟件測試論壇
    • 軟件測試沙龍
    • 軟件測試資料下載
    • 軟件測試雜志
    • 軟件測試人才招聘
      暫時沒有公告

    字號: | 推薦給好友 上一篇 | 下一篇

    正確使用Windows中的Ping命令

    發布: 2007-6-23 19:14 | 作者: Molly  | 來源: 天極網  | 查看: 13次 | 進入軟件測試論壇討論

    領測軟件測試網

    下一頁 1 2 3 

       
      對于Windows下ping命令相信大家已經再熟悉不過了,但是能把ping的功能發揮到最大的人卻并不是很多,當然我也并不是說我可以讓ping發揮最大的功能,我也只不過經常用ping這個工具,也總結了一些小經驗,現在和大家分享一下。

      現在我就參照ping命令的幫助說明來給大家說說我使用ping時會用到的技巧,ping只有在安裝了TCP/IP協議以后才可以使用:


      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

      Options:

      -t Ping the specified host until stopped.To see statistics and continue - type Control-Break;To stop - type Control-C.

      不停的ping地方主機,直到你按下Control-C。

      此功能沒有什么特別的技巧,不過可以配合其他參數使用,將在下面提到。

      -a Resolve addresses to hostnames.

      解析計算機NetBios名。

      示例:C:\>ping -a 192.168.1.21

      Pinging iceblood.yofor.com [192.168.1.21] with 32 bytes of data:

      Reply from 192.168.1.21: bytes=32 time<10ms TTL=254

      Reply from 192.168.1.21: bytes=32 time<10ms TTL=254

      Reply from 192.168.1.21: bytes=32 time<10ms TTL=254

      Reply from 192.168.1.21: bytes=32 time<10ms TTL=254

      Ping statistics for 192.168.1.21:

      Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds:

      Minimum = 0ms, Maximum = 0ms, Average = 0ms

      從上面就可以知道IP為192.168.1.21的計算機NetBios名為iceblood.yofor.com。

      -n count Number of echo requests to send.

      發送count指定的Echo數據包數。

      在默認情況下,一般都只發送四個數據包,通過這個命令可以自己定義發送的個數,對衡量網絡速度很有幫助,比如我想測試發送50個數據包的返回的平均時間為多少,最快時間為多少,最慢時間為多少就可以通過以下獲知:

      C:\>ping -n 50 202.103.96.68

      Pinging 202.103.96.68 with 32 bytes of data:

      Reply from 202.103.96.68: bytes=32 time=50ms TTL=241

      Reply from 202.103.96.68: bytes=32 time=50ms TTL=241

      Reply from 202.103.96.68: bytes=32 time=50ms TTL=241

      Request timed out.

      ………………

      Reply from 202.103.96.68: bytes=32 time=50ms TTL=241

      Reply from 202.103.96.68: bytes=32 time=50ms TTL=241

      Ping statistics for 202.103.96.68:

      Packets: Sent = 50, Received = 48, Lost = 2 (4% loss),Approximate round trip times in milli-seconds:

      Minimum = 40ms, Maximum = 51ms, Average = 46ms

      從以上我就可以知道在給202.103.96.68發送50個數據包的過程當中,返回了48個,其中有兩個由于未知原因丟失,這48個數據包當中返回速度最快為40ms,最慢為51ms,平均速度為46ms。

      -l size Send buffer size.

    文章來源于領測軟件測試網 http://www.kjueaiud.com/


    關于領測軟件測試網 | 領測軟件測試網合作伙伴 | 廣告服務 | 投稿指南 | 聯系我們 | 網站地圖 | 友情鏈接
    版權所有(C) 2003-2010 TestAge(領測軟件測試網)|領測國際科技(北京)有限公司|軟件測試工程師培訓網 All Rights Reserved
    北京市海淀區中關村南大街9號北京理工科技大廈1402室 京ICP備2023014753號-2
    技術支持和業務聯系:info@testage.com.cn 電話:010-51297073

    軟件測試 | 領測國際ISTQBISTQB官網TMMiTMMi認證國際軟件測試工程師認證領測軟件測試網

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>