计算机应用 ›› 2009, Vol. 29 ›› Issue (11): 2920-2924.

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

利用CPU时间戳实现局域网时间同步的新机制

谌华金1,罗双喜2,何佳洲2   

  1. 1. 中国船舶重工集团公司江苏自动化研究所
    2. 江苏自动化研究所
  • 收稿日期:2009-05-02 修回日期:2009-06-25 发布日期:2009-11-26 出版日期:2009-11-01
  • 通讯作者: 谌华金

New mechanism of realizing time-synchronization in LAN by using CPU time stamp

Hua-jin CHENShuang-xi LUO2,Jia-zhou HE2   

  • Received:2009-05-02 Revised:2009-06-25 Online:2009-11-26 Published:2009-11-01
  • Contact: Hua-jin CHEN

摘要: 当前在网络应用中,经常需要多台计算机协同工作,因而要有一个统一时钟。提出一种利用CPU内部高精度时间戳实现局域网时钟同步的新机制,并用VC++语言编写了服务端与客户端软件,且在Windows XP 和Windows 2000环境的小型局域网进行测试。结果表明,该算法同步精度较高,且系统运行稳定。

关键词: 内部时间戳, 局域网, 相对同步, 精确延时, 服务器

Abstract: Currently, many computers are required to cooperate frequently in the network application. Therefore, a uniform clock is in need. A new mechanism to realize clock synchronization in LAN by using CPU internal high-precision time stamp was presented; besides, the server and client software was also developed in VC++, and tested under Windows XP and Windows 2000 circumstance in an abbreviated LAN. The result indicates that the algorithm can attain much high synchronization precision, and the system runs steadily.

Key words: internal time stamp, Local Area Network (KAB), relative synchronization, exactitude delay, server