我从从PTP节点上的ptp4l命令获得以下输出。当我终止它时,会输出一些全局统计数据,但我无法解释这些值,因为我没有发现与上述输出中的值有任何明显的对应关系。准确地说,我知道offset、min、max这些字段一般应该指什么,但是:
dev到底是什么?如果这是“某物”的标准差,那么拥有min和max子字段有什么意义呢?drift的含义吗,特别是?ptp4l[156535.175]: selected /dev/ptp0 as PTP clock
ptp4l[156535.179]: port 1: INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[156535.181]: port 0: INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[156535.183]: version=2 ports=2
ptp4l[156535.184]: access_delay=164000
ptp4l[156535.185]: UTC offset: 37
ptp4l[156535.187]: port 1: link up
ptp4l[156536.340]: port 1: new foreign master 0010a1.fffe.9477ff-1
ptp4l[156540.354]: selected best master clock 0010a1.fffe.9477ff
ptp4l[156540.355]: port 1: LISTENING to UNCALIBRATED on RS_SLAVE
ptp4l[156541.044]: master offset 3199658 s0 freq -3906 path delay 0
ptp4l[156542.055]: master offset 3199829 s3 freq -3737 path delay 0
ptp4l[156543.066]: master offset 3199792 s1 freq -3737 path delay 38
ptp4l[156544.077]: master offset -8 s2 freq -3739 path delay 38
ptp4l[156544.078]: port 1: UNCALIBRATED to SLAVE on MASTER_CLOCK_SELECTED
ptp4l[156545.088]: master offset -25 s2 freq -3752 path delay 40
ptp4l[156546.099]: master offset -34 s2 freq -3759 path delay 40
ptp4l[156547.110]: master offset -43 s2 freq -3768 path delay 41
ptp4l[156548.111]: master offset -17 s2 freq -3757 path delay 41
ptp4l[156549.122]: master offset -19 s2 freq -3759 path delay 39
ptp4l[156550.133]: master offset -12 s2 freq -3757 path delay 39
ptp4l[156551.144]: master offset -7 s2 freq -3755 path delay 40
ptp4l[156552.155]: master offset -20 s2 freq -3764 path delay 40
ptp4l[156553.166]: master offset -9 s2 freq -3759 path delay 40
ptp4l[156554.177]: master offset -11 s2 freq -3761 path delay 40
^C1=19:0 0:0
ptp4l[156554.674]:
ptp4l[156554.674]: offset:
ptp4l[156554.674]: dev = 4.716450, -12.571429
ptp4l[156554.674]: min = 4.716450, 12.571429; max = 4.966555, 14.000000
ptp4l[156554.674]: dev:
ptp4l[156554.675]: dev = 1.903343, 3.305985
ptp4l[156554.675]: min = 1.903343, 2.691777; max = 1.959507, 3.305985
ptp4l[156554.675]: drift:
ptp4l[156554.675]: dev = 2.623987, -3758.795853
ptp4l[156554.675]: min = 2.623987, 3758.372996; max = 2.934894, 3758.795853
ptp4l[156554.676]: avg: 12发布于 2022-08-24 07:40:47
我无法在常规构建/可执行文件中看到这一点。您能否共享该版本以及您正在运行的系统。
ptp4l -v和其他任何东西都可以帮助识别准确的回购/版本。
是交换机还是服务器?看起来有两个端口/两个NIC,那么这两个条目可能是一个端口吗?假设是这样,O/P实际上是可以改进的。
https://unix.stackexchange.com/questions/711845
复制相似问题