windows – Ntpd过于不准确

前端之家收集整理的这篇文章主要介绍了windows – Ntpd过于不准确前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我已经设置了ntpd( Windows 7客户端上用于Windows的Meinberg ntp-4.2.6p5@london版本),其中附近有一堆服务器用于低ping时间(通常为10-20ms ping).然而,似乎我的时钟只能在100毫秒或更短的时间内准确,并且随着时间的推移它不会变得更好.我认为它可以比ping时间更准确,这是令人失望的.如何让它更好地工作?
  1. ntpq -p
  2. remote refid st t when poll reach delay offset jitter
  3. ==============================================================================
  4. +pool-test.ntp.o 216.218.254.202 2 u 259 1024 17 12.920 -106.39 111.972
  5. +palpatine.steve 208.201.242.2 3 u 239 1024 17 16.959 -102.84 112.056
  6. +grom.polpo.org 127.67.113.92 2 u 259 1024 17 17.362 -184.43 74.468
  7. +paladin.latt.ne 204.123.2.72 2 u 378 1024 3 24.211 -106.97 61.825
  8. +public-ntp1.iso 204.13.164.164 3 u 259 1024 17 33.080 -100.17 65.970
  9. +nist1.symmetric .ACTS. 1 u 214 1024 17 17.548 -108.30 111.951
  10. *nist1-sj.ustimi .ACTS. 1 u 245 1024 17 21.826 -111.02 63.313

抖动和偏移如何比延迟大得多?当ping时间为12ms时关闭10​​0ms似乎很荒谬,我读错了吗?

事实上,我不确定ntp是否正在做任何事情来改变我的时钟 – 似乎有时间,但不一定设置任何东西.我怎么检查?

一些信息:

  1. ntpdc> sysinfo
  2. system peer: nist1-sj.ustiming.org
  3. system peer mode: client
  4. leap indicator: 00
  5. stratum: 2
  6. precision: -11
  7. root distance: 0.02182 s
  8. root dispersion: 0.15431 s
  9. reference ID: [216.171.124.36]
  10. reference time: d4dae2b5.3c32ce54 Fri,Mar 1 2013 0:17:57.235
  11. system flags: auth monitor ntp kernel stats
  12. jitter: 0.045776 s
  13. stability: 0.000 ppm
  14. broadcastdelay: 0.000000 s
  15. authdelay: 0.000000 s
  16.  
  17. more "c:\Program Files (x86)\NTP\etc\ntp.drift"
  18. 192.049
  19.  
  20. more "c:\Program Files (x86)\NTP\etc\ntp.conf"
  21. driftfile "C:\Program Files (x86)\NTP\etc\ntp.drift"
  22. server nist1.symmetricom.com iburst
  23. server nist1-sj.ustiming.org iburst
  24. server 149.20.68.17 iburst
  25. server 173.230.144.109 iburst
  26. server 65.19.178.219 iburst
  27. server 204.2.134.162 iburst
  28. server 173.230.144.109 iburst
  29. server 207.115.64.229 iburst

理想情况下,我想要一个距配置服务器的中位数不超过50毫秒的时间,如果它离得更远,我希望它能够步进.是否有任何我可以设置的配置选项会使ntp这样做?

抖动(在较旧的NTP中的分散)可以并且将随着时间的推移而变化很大.特别是如果您有一个设置,您和NTP服务器之间的连接是拥塞的.您需要经常运行“ntpq -p”(大约每个“轮询”秒)来监视抖动,或者打开性能文件(ntp.conf文件中的“statsdir”和“statistics”行).

http://www.ntp.org/ntpfaq/NTP-s-sw-clocks-quality.htm
http://www.ntp.org/ntpfaq/NTP-s-trouble.htm

Ideally I want a time that is no more than 50ms away from the median of the configured servers,if it ever gets further away I want it to step. Is there any config option that I can set that would make ntp do that?

NTP不会那样工作.它从列表中选择一个服务器,在’ntpq -p’输出的第一列中用’*'(星号,a.k.a.参考时间源)标记它,并尝试跟随它.在参考时间源变得无法到达的情况下,它将回退到”(合格候选者)服务器之一.

我建议:

>不在每台服务器上使用iburst
>选择最好的服务器,使用iburst并使用prefer标记,即“server tick.example.com iburst prefer”.
>只手动挑选3台关闭服务器.
>其余部分更多地使用区域池DNS名称(例如[0-3] .us.poo.ntp.org).
>拍摄至少4个参考服务器,但不超过9个.
>切勿配置“服务器127.127.1.0”(a.k.a.本地时钟)或“软糖”行.

默认情况下,“回转”与“步进”选项为128ms.如果时间偏移> 128ms,它将步而不是转.请参阅“ntpd”的“-x”参数(除非您的软件在时钟步进时出现异常情况,否则不应使用该参数).

除了“ntpq -p”之外,您还可以查看“ntpdc -c loopinfo”.

猜你在找的Windows相关文章