[1]吕青松,吴 宁.基于IEEE1588协议的高精度网络时钟 同步软件设计[J].南京师范大学学报(工程技术版),2013,13(04):064.
 L Qingsong,Wu Ning.Design of High Precision Network Clock Synchronization Software Based on IEEE1588 Protocol[J].Journal of Nanjing Normal University(Engineering and Technology),2013,13(04):064.
点击复制

基于IEEE1588协议的高精度网络时钟 同步软件设计
分享到:

南京师范大学学报(工程技术版)[ISSN:1006-6977/CN:61-1281/TN]

卷:
13卷
期数:
2013年04期
页码:
064
栏目:
出版日期:
2013-12-31

文章信息/Info

Title:
Design of High Precision Network Clock Synchronization Software Based on IEEE1588 Protocol
作者:
吕青松吴 宁
南京航空航天大学电子信息工程学院,江苏 南京 210016
Author(s):
Lü QingsongWu Ning
College of Electronic Information Engineering,Nanjing University of Aeronautics and Astronautics,Nanjing 210016,China
关键词:
网络时钟同步IEEE 1588SharpPcap时间戳亚ms级
Keywords:
network clock synchronizationIEEE 1588SharpPcaptimestampsub-millisecond
分类号:
TP391.41
文献标志码:
A
摘要:
在分析IEEE 1588原理以及影响同步精度因素的基础上,设计了基于Windows平台的时间同步方法,为分布式网络系统的时钟精确同步提供了一种有效可行的解决办法.目前,Windows平台下直接在应用层获取的时间戳精度在10 ms级左右,系统的同步精度为ms级.针对Windows平台下获取更高精度1588时间戳的困难,设计了基于SharpPcap的时间戳处理模块,得到高精度的数据链路层时间戳,从而提高了应用层的时间戳精度.实验结果表明,采用该方法系统主从时钟的同步精度达到亚ms级,满足电力系统中同步精度在ms级以内的时钟同步需求.
Abstract:
Based on the analysis of principle IEEE 1588 protocol and the factors affecting the synchronization accuracy,a time synchronization approach on Windows platform is proposed in this paper,and the approach provides a feasible and effective solution for distributed network system clock accuracy synchronization.At present,the timestamp accuracy is at about 10 ms level obtained directly from the application layer on windows platform,while the system synchronization is at millisecond level.For the difficulties to obtain higher precision 1588 timestamp on windows platform,a timestamp processing module based on SharpPcap is designed.The proposed approach reaches a higher accuracy in the data link layer timestamp,thus improves the timestamp precision of the application layer.The experimental results show that the synchronization accuracy of the system master-slave clock achieves sub-millisecond level in this approach,which can meet the requirements of clock synchronization accuracy within millisecond in the power system.

参考文献/References:

[1] 何一航.基于DP83640高精度时钟的研制[J].计算机工程与数字工程,2011,39(7):158-160.
He Yihang.Research on high precision clock based on DP83640[J].Computer and Digital Engineering,2011,39(7):158-160.(in Chinese)
[2]冯世宁,马杰,赵雪飞.若干种实时以太网标准的比较[J].南京师范大学学报:工程技术版,2010,10(2):88-89.
Feng Shining,Ma Jie,Zhao Xuefei.Comparison of several real-time ethernet[J].Journal of Nanjing Normal University:Engineering and Technology Edition,2010,10(2):88-89.(in Chinese)
[3]夏常勤.IEEE1588时间同步协议分析与实现[D].南京:南京大学电子科学与工程学院,2011.
Xia Changqin.Analysis and Implementation of Time Synchronization Based on IEEE1588 Protocol[D].Nanjing:Nanjing University,School of Electronic Science and Engineering,2011.(in Chinese)
[4]徐海龙,罗双喜.基于高精度时间的时间同步方法研究[J].计算机工程与设计,2012,33(7):2591-2594.
Xu Hailong,Luo Shuangxi.Time synchronization based on high-resolution timestamp[J].Computer Engineering and Design,2012,33(7):2592.(in Chinese)
[5]叶卫东,陈飞.基于LAN的嵌入式系统精密时钟同步的纯软件实现[J].测控技术,2007,26(8):52-54.
Ye Weidong,Chen Fei.Software realization of precise clock synchronization based on embedded system in LAN[J].Measurement and Control Technology,2007,26(8):52-54.(in Chinese)
[6]徐立,赵平.基于IEEE1588精确时钟同步软件实现[J].现代电子技术,2010(24):47-50.
Xu Li,Zhao Ping.Implementation of precise clock synchronization software based on IEEE1588 protocol[J].Modern Electronics Technique,2010(24):47-50.(in Chinese)
[7]于鹏飞,喻强,邓辉,等.IEEE 1588 精确时间同步协议的应用方案[J].电力系统自动化,2009,33(13):99-103.
Yu Pengfei,Yu Qiang,Deng Hui,et al.The research of precision time protocol IEEE 1588[J].Automation of Electric Power Systems,2009,33(13):99-103.(in Chinese)
[8]Kendall Correll,Nick Barendt,Michael Branicky.Design considerations for software only implementations of the IEEE 1588 precision time protocol[C].Conference on IEEE 1588 Standard for a Precision Clock Synchronization Protocol for Networked Measurement and Control Systems.Zurich:IEEE,2005:158-160.

备注/Memo

备注/Memo:
收稿日期:2013-09-25.
基金项目:国家自然科学基金(61376025)、江苏省产学研前瞻性联合研究项目(BY2013003-11).
通讯联系人:吴宁,教授,博士生导师,研究方向:数字系统设计与计算机应用.E-mail:wunee@nuaa.edu.cn
更新日期/Last Update: 2013-12-30