【教學】PING這個指令其中的意義



贊助商連結


ed001227
2005-01-07, 10:35 AM
請問一下:

我對Ping有點疑問,請教一下



C:\Documents and Settings\adminstrator>PING WWW.HINET.NET



Pinging www.hinet.net [203.66.88.89] with 32 bytes of data:



Reply from 203.66.88.89: bytes=32 time=7ms TTL=247

Reply from 203.66.88.89: bytes=32 time=4ms TTL=247

Reply from 203.66.88.89: bytes=32 time=4ms TTL=247

Reply from 203.66.88.89: bytes=32 time=3ms TTL=247



Ping statistics for 203.66.88.89:

Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

Minimum = 3ms, Maximum = 7ms, Average = 4ms



問題一:

Reply from 203.66.88.89: bytes=32 time=7ms TTL=247

其中的time和TTL是什麼意思呢?

我知TTL(封包存活時間),那TIME和TTL的時間長短範圍要多少才是合理範圍呢?

也就是代表你的網路是比較通暢呢?



問題二:

Approximate round trip times in milli-seconds:

Minimum = 3ms, Maximum = 7ms, Average = 4ms

這個是代表來回需要的時間最小、大、平均值,那個有代表什麼涵意呢?



謝謝再一次熱心的回覆 :D

贊助商連結


ellery
2005-01-07, 10:47 AM
[1]time 就是封包回應的時間, 單位是毫秒(千分之一秒)時間是越短越好,
在區網內通常小於10ms, 若用 ADSL 正常範圍應小於100-200ms
若此值太高, 代表網路擁塞或網路設備可能有問題.

[2]表示ping 以後的統計結果, ping 4次內取最短及最長的時間,
以及四次的平均值.

ed001227
2005-01-07, 11:00 AM
[1]time 就是封包回應的時間, 單位是毫秒(千分之一秒)時間是越短越好,在區網內通常小於10ms, 若用 ADSL 正常範圍應小於100-200ms若此值太高, 代表網路擁塞或網路設備可能有問題.

[2]表示ping 以後的統計結果, ping 4次內取最短及最長的時間,
以及四次的平均值.

謝謝你的熱心回覆
用 ADSL 正常範圍應小於100-200ms若此值太高 :eek: 這個是什麼意思呢?
那TTL值要多少才是範圍呢

謝謝

cheerx
2005-01-07, 11:31 AM
TTL通常經過一台ROUTER會扣ㄧ,不太需要去管他.想知道經過幾個節點,WINDOWS平台可以用TRACERT,UNIX LIKE的作業系統可用traceroute來追蹤.

比方說我ping tw.yahoo.com

G:\Documents and Settings\Administrator>ping tw.yahoo.com

Pinging vip1.tw.tpe.yahoo.com [202.43.195.52] with 32 bytes of data:

Reply from 202.43.195.52: bytes=32 time=18ms TTL=57
Reply from 202.43.195.52: bytes=32 time=18ms TTL=57
Reply from 202.43.195.52: bytes=32 time=18ms TTL=57
Reply from 202.43.195.52: bytes=32 time=18ms TTL=57

Ping statistics for 202.43.195.52:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 18ms, Maximum = 18ms, Average = 18ms

這樣看來反應才18ms,似乎蠻不錯的.因為我用Hinet的12M/1M,到台灣YAHOO的反應有快一些,因為它放在HINET機房代管.如果我到其他地方的PING AVERAGE過高的話,通常表示我到這些地方網路有點塞,通常大於200ms就會覺得慢一些了.

比方說

G:\Documents and Settings\Administrator>ping www.ipbb.com

Pinging www.ipbb.com [66.150.161.140] with 32 bytes of data:

Reply from 66.150.161.140: bytes=32 time=165ms TTL=239
Reply from 66.150.161.140: bytes=32 time=165ms TTL=239
Reply from 66.150.161.140: bytes=32 time=165ms TTL=239
Reply from 66.150.161.140: bytes=32 time=165ms TTL=239

Ping statistics for 66.150.161.140:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 165ms, Maximum = 165ms, Average = 165ms