| 注册
首页|期刊导航|计算机工程|基于PTPd2的精密时钟同步软件实现方法

基于PTPd2的精密时钟同步软件实现方法

陶稳静 陆阳 卫星 贾向利

计算机工程2019,Vol.45Issue(3):47-53,59,8.
计算机工程2019,Vol.45Issue(3):47-53,59,8.DOI:10.19678/j.issn.1000-3428.0050662

基于PTPd2的精密时钟同步软件实现方法

Software Implementation of Precision Clock Synchronization Based on PTPd2

陶稳静 1陆阳 1卫星 2贾向利1

作者信息

  • 1. 合肥工业大学 计算机与信息学院,合肥 230601
  • 2. 安全关键工业测控技术教育部工程研究中心,合肥 230601
  • 折叠

摘要

Abstract

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.

关键词

精确时间协议/时钟同步/软件实现/出边界时间/时钟偏差

Key words

Precision Time Protocol (PTP)/clock synchronization/software implementation/outbound time/clock deviation

分类

信息技术与安全科学

引用本文复制引用

陶稳静,陆阳,卫星,贾向利..基于PTPd2的精密时钟同步软件实现方法[J].计算机工程,2019,45(3):47-53,59,8.

基金项目

国家重点研发计划专项(2016YFC0801405,2016YFC0801804). (2016YFC0801405,2016YFC0801804)

计算机工程

OA北大核心CSCDCSTPCD

1000-3428

访问量0
|
下载量0
段落导航相关论文