计算机应用 ›› 2012, Vol. 32 ›› Issue (04): 943-945.DOI: 10.3724/SP.J.1087.2012.00943

• 网络与通信 • 上一篇    下一篇

局域网环境的网络时间协议性能测试

陈朝福1,2,王磊2   

  1. 1. 中国工程物理研究院 研究生部, 四川 绵阳 621900
    2. 中国工程物理研究院 应用电子学研究所, 四川 绵阳 621900
  • 收稿日期:2011-09-20 修回日期:2011-11-13 发布日期:2012-04-20 出版日期:2012-04-01
  • 通讯作者: 陈朝福
  • 作者简介:陈朝福(1983-),男,湖南张家界人,研究实习员,硕士研究生,主要研究方向:时间同步;
    王磊(1963-),男,重庆万州人,研究员,主要研究方向:多源信息融合、指挥决策。

Network time protocol performance evaluation in LAN environment

CHEN Chao-fuCHEN1,2,WANG Lei2   

  1. 1. Graduate School, China Academy of Engineering Physics, Mianyang Sichuan 621900, China
    2. Institute of Applied Electronics, China Academy of Engineering Physics, Mianyang Sichuan 621900, China
  • Received:2011-09-20 Revised:2011-11-13 Online:2012-04-20 Published:2012-04-01
  • Contact: CHEN Chao-fuCHEN

摘要: 网络时间协议(NTP)能够实现多节点时间和频率同步,具有简单、经济和高效等特点,但在性能测试方面的相关研究不多,使得在实际系统中是否采用NTP时缺乏参考数据。针对这一问题,开展了局域网环境下的NTP性能测试,分析了系统负载和网络负载对NTP性能的影响。在实际系统中,通过比较IRIG-B时码卡和GetLocalTime Windows API返回的时间,近似获取了计算机基准时钟信号的频率偏差,该误差值与NTP测算的结果基本一致,表明本地一级NTP服务器时间同步和频率同步性能良好。

关键词: 网络时间协议, 时间同步, 频率同步, 性能测试, 线性拟合

Abstract: Network Time Protocol (NTP) is a simple, economic and efficient way to accomplish time and frequency synchronization of multiple nodes, while relevant study on the performance evaluation is hard to find in literature, which makes it a question whether to use NTP in application. Concerning this problem, the local network NTP performance and impact of system / network load were measured and analyzed on Windows platform. By comparing time value obtained from IRIG-B time code reader and GetLocalTime Windows API, frequency skew of computer clock signal was approximated. The skew value was close to the value calculated by NTP.

Key words: Network Time Protocol (NTP), time synchronization, frequency synchronization, performance evaluation, linear fit