计算机应用 ›› 2010, Vol. 30 ›› Issue (05): 1183-1187.

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

一种基于数据链路层的局域网时间同步新机制

谌华金1,何佳洲2   

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

New mechanism of realizing time-synchronization in LAN based on data link layer

Hua-jin CHENJia-zhou HE2   

  • Received:2009-11-24 Revised:2010-01-03 Online:2010-05-04 Published:2010-05-01
  • Contact: Hua-jin CHEN

摘要: 常用的网络时间协议在应用层实现时精度较低,而在物理层实现时虽精度高但有一定的硬件要求。借鉴著名的网络抓包软件——WinPcap时间戳管理机制,在数据链路层以纯软件方式实现了一种高精度的局域网(LAN)相对时间同步算法。在Windows XP 环境下的小型局域网内的测试结果表明,该算法可达100μs以内的同步精度。

关键词: 数据链路层, 同步, 时间戳, 局域网, 相对, 驱动

Abstract: The precision of the common network time protocol is low when being realized in the application layer, while high in physical layer yet a definite hardware is in need. With reference to the WinPcap time stamps management method of the famous network packet pawing software, a new high precision relative time synchronization algorithm was implemented with pure software in data link layer. Besides, the software was tested under Windows XP circumstance in an abbreviated LAN. The result indicates that the proposed algorithm can attain synchronization precision within 100μs.

Key words: data link layer, synchronization, time stamp, Local Area Network (LAN), relative, driver