使用ping命令查看网络延迟

Using ping To Measure Network Latency

ping命令持续发送少量互联网流量到远程地址并报告收到回应的总时间。如果流量因为网络故障或者错误配置而被丢弃,它也会报告。ping命令是最基本和初级的诊断网络问题的工具之一。

The ping command will continuously send a tiny bit of internet traffic to a remote address and report the amount of time it took to receive a response. It will also report if the traffic was dropped, which is indicative of a bad network connection or a misconfigured network. The ping command one of the most basic and essential tools for diagnosing network problems.

下面是个例子:

Here is an example:

$ ping google.com

PING google.com (172.217.0.238)

56(84) bytes of data.

64 bytes from 172.217.0.238:

icmp_seq=1 ttl=56 time=0.849 ms

64 bytes from 172.217.0.238:

icmp_seq=2 ttl=56 time=0.822 ms

64 bytes from 172.217.0.238:

icmp_seq=3 ttl=56 time=0.905 ms

64 bytes from 172.217.0.238:

icmp_seq=4 ttl=56 time=0.894 ms

64 bytes from 172.217.0.238:

icmp_seq=5 ttl=56 time=0.888 ms

--- google.com ping statistics ---

5 packets transmitted, 5 received,

0% packet loss, time 4001ms

rtt min/avg/max/mdev =

0.822/0.871/0.905/0.044 ms

$

ping会持续工作直到你把他停掉。“time=”这段是最重要的。这台特殊机器大概1毫秒就从google.com得到了回应,这非常快了。ping也会给出包括发送的ping包数,丢包率,关于往返时延的变化数据等信息的“ping会话”整体汇总。

The ping command will continue to do this until it is stopped. The time= field is the most important. This particular machine is getting a response back from google.com in about 1 millisecond, which is very fast. ping will also give an overall summary of the "ping session", which includes the number of ping packets sent, the percentage of packets lost, and various statistics about the round trip time (rtt).

记住延迟与链路质量和发ping机器到被ping机器直接的物理距离有关。

Keep in mind that latency has to do with both the quality of your connection and the physical distance between the machine on which you issue the ping command and the machine being pinged.

$ ping duma.ru

PING duma.ru (212.11.128.31)

56(84) bytes of data.

64 bytes from duma.ru (212.11.128.31):

icmp_seq=1 ttl=113 time=149 ms

64 bytes from duma.ru (212.11.128.31):

icmp_seq=2 ttl=113 time=149 ms

64 bytes from duma.ru (212.11.128.31):

icmp_seq=3 ttl=113 time=149 ms

64 bytes from duma.ru (212.11.128.31):

icmp_seq=4 ttl=113 time=149 ms

--- duma.ru ping statistics ---

5 packets transmitted, 4 received,

20% packet loss, time 4005ms

rtt min/avg/max/mdev =

149.660/149.811/149.946/0.484 ms

$

ping 延迟 linux,使用ping命令查看网络延迟--用Enki学Linux系列(7)相关推荐

  1. 使用ping命令查看网络延迟--用Enki学Linux系列(7)

    使用ping命令查看网络延迟 Using ping To Measure Network Latency ping命令持续发送少量互联网流量到远程地址并报告收到回应的总时间.如果流量因为网络故障或者错 ...

  2. 查2个服务器之间网络延迟,科普一下!如何查看网络延迟与服务器LAG以及解决方法!...

    该楼层疑似违规已被系统折叠 隐藏此楼查看此楼 首先解答一下关于玩家延迟(LAG)的问题 1,如果你的电脑网络IP是动态IP的话,会随着你连接的时间长短IP会自动更换地址,所以使用的是网络是动态IP的玩 ...

  3. 使用dd命令测试CPU性能--用Enki学Linux系列(16)

    dd命令也可以作为一个简单的CPU性能测试工具来使用!你可以用如下方法运行这个"开箱即用"的功能: $ dd if=/dev/zero bs=1M count=1024 | md5 ...

  4. 使用vmstat命令监视系统内存--用Enki学Linux系列(14)

    vmstat使用户监视如进程,内存,页面,IO块,陷阱,磁盘和CPU活动. 用户可指定监视取样的周期. $ vmstat 1 procs -----------memory---------- --- ...

  5. linux 网络端口状态,Linux下用netstat查看网络状态、端口状态(转)

    转:http://blog.csdn.net/guodongdongnumber1/article/details/11383019 在linux一般使用netstat 来查看系统端口使用情况步. n ...

  6. 监控io性能, free命令, ps命令, 查看网络状态, linux下抓包

    2019独角兽企业重金招聘Python工程师标准>>> 监控io性能 free命令 ps命令 查看网络状态 linux下抓包 --- 监控io性能 查看磁盘 iostat 和sar属 ...

  7. Linux中一行命令查看网卡流量、统计网络流量的各种实现方法

    Linux中一行命令查看网卡流量.统计网络流量的各种实现方法. 方法一.nload工具 源码包路径: wget http://heanet.dl.sourceforge.net/project/nlo ...

  8. linux查看80端口连接ip,Linux通过netstat命令查看80端口连接数的方法

    服务器上的一些统计数据: 1)统计80端口连接数 netstat -nat|grep -i "80"|wc -l 2)统计httpd协议连接数 ps -ef|grep httpd| ...

  9. Linux查看WAS的jvm信息,linux 下使用命令查看jvm信息

    java程序员除了编写业务代码之外,特别是项目上线之后,更需要关注的是系统的性能表现,这个时候就需要了解一下jvm的性能表现了,可以借助于java虚拟机自带的一些分析工具,主要有三个常用的命令. 1. ...

最新文章

  1. (NO.00003)iOS游戏简单的机器人投射游戏成形记(二)
  2. cocos2dx多线程以及线程同步 与 cocos2dx内存管理与多线程问题
  3. max函数的平滑(log-sum-exp trick)
  4. 方舟修改显示服务器个数,方舟生存进化服务器模式设置教程
  5. 如何优雅的实现界面跳转 之 统跳协议 - DarwinNativeRouter
  6. 用撸Arduino的方法撸STM32F103xx
  7. 分享:假如浏览器和搜索引擎不再支持外部链接跳转,优化何去何从呢?
  8. python/c++计算psnr
  9. 二级VB培训笔记04:程序控制结构、数组和过程
  10. redis原子性读写操作之LUA脚本和watch机制
  11. 怎样通过Java程序提交yarn的mapreduce计算任务
  12. mysql repair 索引_MySQ索引操作命令总结(创建、重建、查询和删除索引命令详解)...
  13. 网络工程师考试-计算机网络笔记
  14. 推荐 7 个神级 Java 开源项目
  15. 窗户控制app开发day1(机智云的二次开发之换皮肤)
  16. 线性代数笔记【矩阵与线性方程组】
  17. 微商公社新兵连第一天
  18. flutter能开发游戏吗_Flutter Flame游戏开发上手(1)
  19. 线段覆盖 java,南邮 OJ 1407 线段覆盖
  20. WPS文字怎么设置页面如分隔符、背景、页面边框等等

热门文章

  1. Unity打包apk后,应用icon是安卓小机器人
  2. 【Linux】详解linux中 Nginx 常见502错误问题解决办法
  3. 倍数(Python)
  4. c语言错误L104,KEILC51编译问题ERROR L104
  5. 机器学习LDA-基础Julia与Python的实现
  6. Python进阶——网课不愁系列AI换脸技术
  7. 使用 SAP UI5 Smart Chart 控件轻松绘制十数种不同类型的专业图表试读版
  8. quartus linux 安装教程,在Linux下安装Quartus II
  9. MySQL倒序查询最后三条语句_MySQL 中 一条 order by index limit 语句的分析
  10. shell脚本入门与Netkeeper破解路由