• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2011, Vol. 33 ›› Issue (2): 42-45.doi: 10.3969/j.issn.1007130X.2011.

• 论文 • 上一篇    下一篇

基于IEEE1588协议的精确时钟同步算法改进

李学桥,陈园,梁爽   

  1. (郑州轻工业学院计算机与通信工程学院,河南 郑州 450002)
  • 收稿日期:2010-03-20 修回日期:2010-06-28 出版日期:2011-02-25 发布日期:2011-02-25
  • 通讯作者: 李学桥 E-mail:lxq@zzuli.edu.cn
  • 作者简介:李学桥(1951),男,湖北武汉人,教授,CCF会员(E200008277S),研究方向为嵌入式系统与智能控制、计算机网络。陈园(1986),男,河南平顶山人,硕士生,CCF会员(E200015442G),研究方向为嵌入式与智能系统。梁爽(1984),女,河南辉县人,硕士生,研究方向为嵌入式与智能系统。

Improvement of the Precise Time Synchronization Algorithm Based on IEEE1588

LI Xueqiao,CHEN Yuan,LIANG Shuang   

  1. (School of Computer and Communication Engineering,Zhengzhou University of Light Industry,
    Zhengzhou 450002,China)
  • Received:2010-03-20 Revised:2010-06-28 Online:2011-02-25 Published:2011-02-25

摘要:

在工业控制领域,时钟同步精度是影响工业以太网实时性的一个重要因素。为了满足工业以太网对时钟同步的高精度要求,本文对IEEE1588精确时间同步协议进行了研究,阐述了该算法实现高精度同步的原理,并针对以太网通讯路径不对称的情况,提出了一种同步改进算法,通过对同步延迟计算进行加权修正,提高了时钟同步精度。最后,在自行设计的测试系统中进行了测试,测试结果表明,改进算法有效提高了路径不对称条件下的时钟同步精度。

关键词: IEEE1588, 时钟同步, 线路延迟, 同步偏差

Abstract:

In the field of industrial control, clock synchronization precision is an important factor that  affects the realtime performance of the industrial Ethernet. In order to satisfy the request for precise clock synchronization in the industrial Ethernet, this paper conducts the research to the IEEE1588 highprecision time synchronization protocol, carries on the elaboration to the principle of highprecision synchronization, proposes the corresponding improvement algorithm for asymmetric communication paths. Finally, the algorithm is tested in a selfdesigned system. The results of test show that the improved algorithm can effectively increase the clock synchronization accuracy under asymmetric communication paths.

Key words: IEEE1588;clock synchronization;oneway delay;synchronization offset