期刊文献+

基于PTPd2的精密时钟同步软件实现方法 被引量:8

Software Implementation of Precision Clock Synchronization Based on PTPd2
下载PDF
导出
摘要 针对软件实现方式在协议栈网络驱动层获取时间戳,易受协议栈延时和抖动影响导致同步精度较低的问题,提出一种精密时钟同步软件实现方法。基于开源代码PTPd2采用纯软件方式实现IEEE 1588协议,通过Linux系统的内核函数在网络驱动层获取报文时间戳,相比网络时间协议在应用层获取时间戳可有效避免协议栈的干扰,同时利用Wireshark抓包软件捕获报文经过介质访问控制(MAC)层的时间,在PTPd2中补偿报文从网络驱动层传输到MAC层产生的延时和抖动,提高了时钟同步精度。实验结果表明,当主-从时钟设备直接相连时,合理设置P、I值和同步周期并补偿出边界时间,时钟同步精度可达19μs,可满足大部分分布式控制系统的要求。 Aiming at the problem that the software implementation obtains the timestamp in the network driver layer of the protocol stack,which is susceptible to the delay of the protocol stack and the jitter,the synchronization accuracy is low.A precise clock synchronization software implementation method is proposed.Based on open source code PTPd2,this paper uses pure software method to implement the IEEE 1588 protocol,and uses the kernel function of Linux system to get the message timestamp in the network driver layer,it can effectively avoid the interference of protocol stack compared with Network Time Protocol(NTP)that get timestamp in application layer,at the same time,Wireshark packet capture software is used to capture the time when the message passes the Media Access Control(MAC)layer and compensate the delay and jitter generated by the message transmitted from the network driver layer to the MAC layer in PTPd2,thereby it improves the clock synchronization accuracy.Experimental results show that when the master-slave clock device is directly connected,the P、I value and the synchronization period are reasonably set and the boundary time is compensated,and the clock synchronization accuracy can reach 19 μs.This method can meet the requirements of most distributed control systems.
作者 陶稳静 陆阳 卫星 贾向利 TAO Wenjing;LU Yang;WEI Xing(School of Computer Science and Information Engineering,Hefei University of Technology,Hefei 230601,China;Engineering Research Center of Safety Critical Industry Measure and Control Technology,Ministry of Education,Hefei 230601,China)
出处 《计算机工程》 CAS CSCD 北大核心 2019年第3期47-53,59,共8页 Computer Engineering
基金 国家重点研发计划专项(2016YFC0801405 2016YFC0801804)
关键词 精确时间协议 时钟同步 软件实现 出边界时间 时钟偏差 Precision Time Protocol(PTP) clock synchronization software implementation outbound time clock deviation
  • 引文网络
  • 相关文献

参考文献11

二级参考文献84

  • 1时玉娟,赵建,方海燕,李博.IEEE1588同步时钟的分析与应用[J].仪表技术,2007(9):12-14. 被引量:7
  • 2赵英,徐金平,韩少廷.网络时钟同步系统的设计[J].计算机应用,2004,24(B12):12-14. 被引量:8
  • 3戴宝峰,崔少辉,王岩.基于IEEE1588协议的时间戳的生成与分析[J].仪表技术,2007(7):15-17. 被引量:27
  • 4王军宁,等译.TIDSP/BIOS用户手册与驱动开发[M].北京:清华大学出版社,2007.
  • 5RIDOUX Julien,VEITCH Darry.The cost of variability[C] //2008 ISPCS.Ann Arbor,MI:[s.n.] ,2008:29-36.
  • 6BROOMHEAD Timothy,RIDOUX Julien,VEITCH Darry.Counter availability and characteristics for feed-forward based synchronization[C] //2009 ISPCS.Brescia:[s.n.] ,2009:1-6.
  • 7CORRELL Kendall,BARENDT Nick.Design considerations for software only implementations of the IEEE 1588 prescision time protocol[C] //Conference on IEEE 1588 Standard for PCSPNMCS.[S.l.] :VXI Technology Inc.,2006:11-15.
  • 8MACHIZAWA Akihiko,IWAWMA Tsukasa,TORIYAMA Hiroshi.software-only implementations of slave clocks with sub-microsecond accuracy[C] //2008 ISPCS.Ann Arbor,MI:[s.n.] ,2008:17-22.
  • 9IEEE.Std 1588-2008 IEEE standard for a prescision clock synchronization protocol for networked measurement and control systems[S].USA:IEEE Instrumentation and Measurement Society,2008.
  • 10GIORGI G,NARDUZZI C.Modeling and simulation analysis of PTP clock servo[C] //2007 ISPCS.Vienna:IEEE,2007:155-161.

共引文献74

同被引文献46

引证文献8

二级引证文献25

;
使用帮助 返回顶部