TCP/IP 笔记 7 Ping
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的更多相关文章
- TCP/IP笔记(1)
TCP/IP 背景和介绍 上世纪 70 年代,随着计算机技术的发展,计算机使用者意识到:要想发挥计算机更大的作用,就要将世界各地的计算机连接起来.但是简单的连接是远远不够的,因为计算机之间无法沟通.因 ...
- TCP/IP 笔记 - 用户数据报协议和IP分片
关于本章中的IP分片部分,参考第五章IP分片头部知识点.需要注意的是,TCP有超时重传,UDP的超时重传则依赖上层应用程序实现. 用户数据报协议(UDP) UDP是一个简单的面向无连接.不可靠的数据报 ...
- TCP/IP 笔记 - ICMPv4和ICMPv6 : Internet控制报文协议
ICMP是一种面向无连接的协议,负责传递可能需要注意的差错和控制报文,差错指示通信网络是否存在错误(如目的主机无法到达.IP路由器无法正常传输数据包等.注意,路由器缓冲区溢出导致的丢包不包括在ICMP ...
- TCP/IP笔记 一.综述
1. TCP/IP分层 TCP/IP 是四层的体系结构:应用层.运输层.网际层和网络接口层,如下图: OSI协议是国际标准的网络协议,但是由于OSI的实用性等问题造成OSI没有流行起来.目前国际上广泛 ...
- TCP/IP笔记 二.网络层(1)
1. IP 1.1 配套协议 IP 是 TCP/IP 体系中两个最主要的协议之一 . 与 IP 协议配套使用的还有四个协议: (1)ARP (Address Resolution Protocol ...
- TCP/IP笔记(二)TCP/IP简介
上回,主要介绍了下协议和OSI参考模型,并简单了解下网络构成要素,这回该说说TCP/IP了 互联网与TCP/IP的关系 互联网进行通信时,需要相应的网络协议,TCP/IP原本就是为使用互联网而开发 ...
- TCP/IP笔记(三)数据链路层
数据链路的作用 数据链路层的协议定义了通过通信媒介互连的设备之间传输的规范.通信媒介包括双绞线电缆.同轴电缆.光纤.电波以及红外线等介质.此外,各个设备之间有时也会通过交换机.网桥.中继器等中转数据. ...
- TCP/IP笔记(四)IP协议
前言 IP相当于OSI参考模型的第3层--网络层:主要作用是"实现终端节点之间的通信"又称"点对点通信". IP作为整个TCP/IP中至关重要的协议,主要负责将 ...
- TCP/IP笔记(五)IP协议相关技术
IP旨在让最终目标主机收到数据包,但是在这一过程中仅仅有IP时无法实现通信的.必须还要又能够解析主机名称和MACdivide功能,以技术包在发送过程中异常情况处理的功能. 这篇主要介绍下DNS.ARP ...
随机推荐
- struts学习(3)
1 ognl概述 2 ognl入门案例 3 什么是值栈 (1)servlet和action区别 (2)值栈存储位置 4 如何获取值栈对象 5 值栈内部结构 6 向值栈放数据 (1)s:debug标签 ...
- ActiveMQ消费者接收消息的过程
[http://manzhizhen.iteye.com/blog/2094130] org.apache.activemq.ActiveMQMessageConsumer同步接收
- IIS7 配置PHP服务器
安装PHP Manager: 1)访问 http://phpmanager.codeplex.com/releases/view/69115 下载PHP Manager.其中,x86 为32位 Win ...
- Ceph的现状
转自:https://www.ustack.com/blog/ceph-distributed-block-storage/ 1. Ceph简介 Ceph是统一分布式存储系统,具有优异的性能.可靠性. ...
- Switching from Redhat Linux to Oracle Linux in about 5,000 easy steps
Wayback When I remember being at Oracle Open World when Larry Ellison unveiled Oracle Enterprise Lin ...
- C#中的线程(二)线程同步
C#中的线程(二)线程同步 Keywords:C# 线程Source:http://www.albahari.com/threading/Author: Joe AlbahariTranslato ...
- 使用ES6的Promise 解决回调函数。
//创建一个Promise实例,获取数据.并把数据传递给处理函数resolve和reject.需要注意的是Promise在声明的时候就执行了. var getUserInfo=new Promise( ...
- 配合Jenkins自动化构建,bat脚本(二)
批量通过模板,拷贝文件,然后替换模板文件中的标记位为预制的内容. 1 Set servicePath=Ehong.MedicareReview.Web\地区配置\ Set webPath=Ehong. ...
- 条款50:使用自定义的new以及delete的时机会
几种最常见的这么做的理由: 1.用来检测运行上的错误:可以在分配的内存空间的起始以及结束分别放置单独的签名 2.为了强化性能 3.为了收集使用上的统计数据 按照第一点就可以举一 ...
- C#中的索引器的简单理解和用法
索引器是一种特殊的类成员,它能够让对象以类似数组的方式来存取,使程序看起来更为直观,更容易编写. 1.索引器的定义 C#中的类成员可以是任意类型,包括数组和集合.当一个类包含了数组和集合成员时,索引器 ...