zoukankan      html  css  js  c++  java
  • 判断所ping主机的操作系统

    根据它的值判断所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的!

  • 相关阅读:
    jmeter-plugins-manager安装
    JMeter安装
    charles
    url地址有哪些组成?
    服务器的响应状态码
    jQuery链式编程
    jQuery 实现单选反选以及三元运算
    jQuery选择器的基本和层级
    将jmeter返回的json数据转码
    DOM的事件
  • 原文地址:https://www.cnblogs.com/k98091518/p/6992783.html
Copyright © 2011-2022 走看看