lenovo-myc@lenovomyc-Lenovo-Product:~$ ping www.baidu.com
PING www.a.shifen.com (123.125.65.82) () bytes of data.    这句出现前的延时,为DNS对域名的解析时间
bytes from 123.125.65.82: icmp_seq= ttl= time=2.60 ms    这句time如果较长,可能是发送ARP请求和接受ARP应答所花的时间
bytes from 123.125.65.82: icmp_seq= ttl= time=3.36 ms
bytes from 123.125.65.82: icmp_seq= ttl= time=2.38 ms
bytes from 123.125.65.82: icmp_seq= ttl= time=2.75 ms
bytes from 123.125.65.82: icmp_seq= ttl= time=3.64 ms
^C
--- www.a.shifen.com ping statistics ---
packets transmitted, received, % packet loss, time 4006ms
rtt min/avg/max/mdev = 2.382/2.950/3.647/0.480 ms lenovo-myc@lenovomyc-Lenovo-Product:~$ ping 123.125.65.78
PING 123.125.65.78 (123.125.65.78) () bytes of data.
bytes from 123.125.65.78: icmp_seq= ttl= time=2.45 ms
bytes from 123.125.65.78: icmp_seq= ttl= time=2.35 ms
bytes from 123.125.65.78: icmp_seq= ttl= time=2.19 ms
bytes from 123.125.65.78: icmp_seq= ttl= time=2.94 ms
bytes from 123.125.65.78: icmp_seq= ttl= time=2.59 ms
bytes from 123.125.65.78: icmp_seq= ttl= time=2.71 ms
bytes from 123.125.65.78: icmp_seq= ttl= time=2.57 ms
^C
--- 123.125.65.78 ping statistics ---
packets transmitted, received, % packet loss, time 6008ms
rtt min/avg/max/mdev = 2.193/2.547/2.947/0.232 ms

ping -s packetsize 指定数据包大小,默认为56

-s packetsize
              Specifies  the  number of data bytes to be sent.  The default is
              56, which translates into 64 ICMP data bytes when combined  with
              the 8 bytes of ICMP header data.

lenovo-myc@lenovomyc-Lenovo-Product:~$ ping -s  www.baidu.com
PING www.a.shifen.com (220.181.112.244) () bytes of data.
bytes from 220.181.112.244: icmp_seq= ttl=
bytes from 220.181.112.244: icmp_seq= ttl=
bytes from 220.181.112.244: icmp_seq= ttl=
bytes from 220.181.112.244: icmp_seq= ttl=
bytes from 220.181.112.244: icmp_seq= ttl=
^C
--- www.a.shifen.com ping statistics ---
packets transmitted, received, % packet loss, time 5006ms

查看中间路由。。。没找到可以测的网址

lenovo-myc@lenovomyc-Lenovo-Product:~$ ping -R www.baidu.com
PING www.a.shifen.com (220.181.111.188) () bytes of data.
bytes from 220.181.111.188: icmp_seq= ttl= time= ms
NOP
RR: 220.181.111.188
220.181.111.188
220.181.111.188
220.181.111.188
220.181.111.188
220.181.111.188
220.181.111.188
220.181.111.188
220.181.111.188 bytes from 220.181.111.188: icmp_seq= ttl= time= ms
NOP
RR: 220.181.111.188
220.181.111.188
220.181.111.188
220.181.111.188
220.181.111.188
220.181.111.188
220.181.111.188
220.181.111.188
220.181.111.188 bytes from 220.181.111.188: icmp_seq= ttl= time= ms
NOP
RR: 220.181.111.188
220.181.111.188
220.181.111.188
220.181.111.188
220.181.111.188
220.181.111.188
220.181.111.188
220.181.111.188
220.181.111.188 bytes from 220.181.111.188: icmp_seq= ttl= time= ms
NOP
RR: 220.181.111.188
220.181.111.188
220.181.111.188
220.181.111.188
220.181.111.188
220.181.111.188
220.181.111.188
220.181.111.188
220.181.111.188 ^C
--- www.a.shifen.com ping statistics ---
packets transmitted, received, % packet loss, time 4006ms
rtt min/avg/max/mdev = 176.328/181.574/186.643/4.214 ms

ping同一个网段

lenovo-myc@lenovomyc-Lenovo-Product:~$ ping -R 10.100.156.2
PING 10.100.156.2 (10.100.156.2) () bytes of data.
bytes from 10.100.156.2: icmp_seq= ttl= time=2.30 ms
NOP
RR: 10.100.156.2
10.100.156.2
10.100.156.2
10.100.156.2 bytes from 10.100.156.2: icmp_seq= ttl= time=2.53 ms
NOP (same route)
bytes from 10.100.156.2: icmp_seq= ttl= time=1.11 ms
NOP (same route)
bytes from 10.100.156.2: icmp_seq= ttl= time=4.45 ms
NOP (same route)
^C
--- 10.100.156.2 ping statistics ---
packets transmitted, received, % packet loss, time 4005ms
rtt min/avg/max/mdev = 1.110/2.602/4.459/1.200 ms

TCP/IP 笔记 7 Ping的更多相关文章

  1. TCP/IP笔记(1)

    TCP/IP 背景和介绍 上世纪 70 年代,随着计算机技术的发展,计算机使用者意识到:要想发挥计算机更大的作用,就要将世界各地的计算机连接起来.但是简单的连接是远远不够的,因为计算机之间无法沟通.因 ...

  2. TCP/IP 笔记 - 用户数据报协议和IP分片

    关于本章中的IP分片部分,参考第五章IP分片头部知识点.需要注意的是,TCP有超时重传,UDP的超时重传则依赖上层应用程序实现. 用户数据报协议(UDP) UDP是一个简单的面向无连接.不可靠的数据报 ...

  3. TCP/IP 笔记 - ICMPv4和ICMPv6 : Internet控制报文协议

    ICMP是一种面向无连接的协议,负责传递可能需要注意的差错和控制报文,差错指示通信网络是否存在错误(如目的主机无法到达.IP路由器无法正常传输数据包等.注意,路由器缓冲区溢出导致的丢包不包括在ICMP ...

  4. TCP/IP笔记 一.综述

    1. TCP/IP分层 TCP/IP 是四层的体系结构:应用层.运输层.网际层和网络接口层,如下图: OSI协议是国际标准的网络协议,但是由于OSI的实用性等问题造成OSI没有流行起来.目前国际上广泛 ...

  5. TCP/IP笔记 二.网络层(1)

    1. IP 1.1 配套协议 IP 是 TCP/IP 体系中两个最主要的协议之一 . 与 IP 协议配套使用的还有四个协议:   (1)ARP (Address Resolution Protocol ...

  6. TCP/IP笔记(二)TCP/IP简介

    上回,主要介绍了下协议和OSI参考模型,并简单了解下网络构成要素,这回该说说TCP/IP了 互联网与TCP/IP的关系   互联网进行通信时,需要相应的网络协议,TCP/IP原本就是为使用互联网而开发 ...

  7. TCP/IP笔记(三)数据链路层

    数据链路的作用 数据链路层的协议定义了通过通信媒介互连的设备之间传输的规范.通信媒介包括双绞线电缆.同轴电缆.光纤.电波以及红外线等介质.此外,各个设备之间有时也会通过交换机.网桥.中继器等中转数据. ...

  8. TCP/IP笔记(四)IP协议

    前言 IP相当于OSI参考模型的第3层--网络层:主要作用是"实现终端节点之间的通信"又称"点对点通信". IP作为整个TCP/IP中至关重要的协议,主要负责将 ...

  9. TCP/IP笔记(五)IP协议相关技术

    IP旨在让最终目标主机收到数据包,但是在这一过程中仅仅有IP时无法实现通信的.必须还要又能够解析主机名称和MACdivide功能,以技术包在发送过程中异常情况处理的功能. 这篇主要介绍下DNS.ARP ...

随机推荐

  1. spring:使用会话和请求作用域

    在Web应用中,如果能够实例化在会话和请求范围内共享的bean,那将是非常有价值的事情.例如,在典型的电子商务应用中,可能会有一个bean代表用户的购物车.如果购物车是单例的话,那么将会导致所有的用户 ...

  2. spring boot: 条件注解@Condition

    @Conditional根据满足某一个特定的条件创建一个特定的Bean(基于条件的Bean的创建,即使用@Conditional注解). 比方说,当一个jar包在一个类的路径下的时候,自动配置一个或多 ...

  3. PowerDesigner 学习

    1. 创建主键,不能为空,递增列,唯一约束(key 通过唯一索引) 数据库-->根据数据库的改动更新model  或者 根据修改后的model (比如新添加的字段)产生新sql代码 2.powe ...

  4. BitmapUtil(高效压缩不失真)

    package com.changim.patient.app.utils; import android.app.Activity; import android.content.ContentRe ...

  5. Scala极速入门

    摘要 当面向对象遇到函数式编程,这就是Scala.简练的语言描述与简单的例子相辅相成,希望能够对大家学习Scala有所帮助. scala 入门 定义 Scala语言是一种面向对象语言,同时又结合了命令 ...

  6. 【scrapy实践】_爬取安居客_广州_新楼盘数据

    需求:爬取[安居客—广州—新楼盘]的数据,具体到每个楼盘的详情页的若干字段. 难点:楼盘类型各式各样:住宅 别墅 商住 商铺 写字楼,不同楼盘字段的名称不一样.然后同一种类型,比如住宅,又分为不同的情 ...

  7. BerOS file system

    The new operating system BerOS has a nice feature. It is possible to use any number of characters '/ ...

  8. 输入一个链表,输出该链表中倒数第k个结点

    package suanfa; import suanfa.doubleLinkedList.Node; public class solution { public Node find(Node h ...

  9. 微信小程序switch组件尺寸控制

    1.修改switch组件的属性值 /* switch */ .wx-switch-input{ width: 82rpx!important; height: 40rpx!important; } / ...

  10. 扒站工具Teleport Pro教程

    1.下载软件 http://www.jb51.net/softs/44134.html 2.安装 3.界面 先点开帮助点注册(类似于破解要不全站扒不全) 下面请看ppt, http://www.doc ...