大网数据广告活动
服务器运维问答

What does the time field indicate in ping statistics?

· 52CE 我爱测

In the ping output on Linux, what does the time field indicate? It is obvious for individual packets, but not in the summary. What took 5ms in the output below? It is not described in the man page. My OS is Debian Buster, using t…

问题原文

原帖链接 · Nohus · CC BY-SA 4.0

In the ping output on Linux, what does the time field indicate? It is obvious for individual packets, but not in the summary.

What took 5ms in the output below?

It is not described in the man page. My OS is Debian Buster, using the ping binary from this package: https://packages.debian.org/buster/iputils-ping

已采纳解答

原帖链接 · blaimi · CC BY-SA 4.0

This is a bug in the current implementation of iputils-ping.

https://github.com/iputils/iputils/issues/193

This should show the complete time the command has been running.

Comparation with Version 20161105 from debian stretch which doesn't have this bug:

ping -c 4 1.1.1.1
PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data.
64 bytes from 1.1.1.1: icmp_seq=1 ttl=63 time=34.1 ms
64 bytes from 1.1.1.1: icmp_seq=2 ttl=63 time=28.9 ms
64 bytes from 1.1.1.1: icmp_seq=3 ttl=63 time=29.9 ms
64 bytes from 1.1.1.1: icmp_seq=4 ttl=63 time=29.0 ms

--- 1.1.1.1 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3003ms
rtt min/avg/max/mdev = 28.986/30.526/34.118/2.111 ms

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2020-01-20)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。