根据它的值判断所ping主机的操作系统类型。
TTL被称为生存期,也就是你所传输的数据在网络上经过的路由器的最大个数。
操作系统 TTL
LINUX 64
WIN2K/NT 128
WINDOWS 系列 32UNIX 系列 255
如果TTL=63,64-63=1,由此来判断跨一个路由。
例如:现在ping www.seobye.com,得到的返回值是:
C:Documents and SettingsAdministrator>ping www.seobye.com
Pinging www.seobye.com [203.171.239.157] with 32 bytes of data:
Reply from 203.171.239.157: bytes=32 time=12ms TTL=57
Reply from 203.171.239.157: bytes=32 time=12ms TTL=57
Reply from 203.171.239.157: bytes=32 time=12ms TTL=57
Reply from 203.171.239.157: bytes=32 time=12ms TTL=57
Ping statistics for 203.171.239.157:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 12ms, Maximum = 12ms, Average = 12ms
57比较接近64 中间可能通过了7个路由,由此来判断落水鱼博客所有的操作系统是linux的!