电子科技 ›› 2023, Vol. 36 ›› Issue (1): 67-74.doi: 10.16180/j.cnki.issn1007-7820.2023.01.010

• • 上一篇    下一篇

RTEthernet中改进的FTA时钟同步算法研究

张宇辉,张凤登,张海涛   

  1. 上海理工大学 光电信息与计算机工程学院,上海 200093
  • 收稿日期:2021-06-26 出版日期:2023-01-15 发布日期:2023-01-17
  • 作者简介:张宇辉(1996-),男,硕士研究生。研究方向:分布式实时系统、实时以太网、深度学习。|张凤登(1963-),男,博士,教授。研究方向:汽车电子与现场总线。
  • 基金资助:
    国家自然科学基金(71840003);上海市自然科学基金(15ZR1429300)

Research on Improved FTA Clock Synchronization Algorithm in RTEthernet

ZHANG Yuhui,ZHANG Fengdeng,ZHANG Haitao   

  1. School of Optical-Electrical and Computer Engineering,University of Shanghai for Science and Technology, Shanghai 200093,China
  • Received:2021-06-26 Online:2023-01-15 Published:2023-01-17
  • Supported by:
    National Natural Science Foundation of China(71840003);Shanghai Municipal Natural Science Fund(15ZR1429300)

摘要:

针对以太网存在节点时钟漂移、网络链路延迟、同步能力差等问题,文中基于RTEthernet协议的通信原理,构建了时钟同步系统的模型。文中研究了RTEthernet的组成、工作原理,考虑了影响实时以太网时钟同步精密度的三大因素:漂移率、网络传输延迟和时钟拜占庭故障,并基于此分析了原始的FTA时钟同步算法,发现它在拜占庭故障增多的情况下容错性能明显降低,进而引入“容错中值”的思想进行改进并提出了RTE-FTM算法。通过CANoe仿真平台,对系统(7个节点)中存在2个拜占庭故障与不存在拜占庭故障进行对比分析。结果表明系统的精密度损失率降低了3.1%,并由此验证了该算法的收敛性和有效性。

关键词: 以太网, RTEthernet, 漂移率, 网络传输延迟, 时钟拜占庭故障, 容错中值, RTE-FTM, 收敛性

Abstract:

In view of the problems that node clock drift, network link delay and poor synchronization ability in Ethernet, this study constructs a clock synchronization system model based on the communication principle of RTEthernet protocol. By studying the composition and working principle of RTEthernet, three factors affecting the time synchronization precision of real-time Ethernet-drift rate, network transmission delay and clock Byzantine fault are considered. Based on this, the original FTA clock synchronization algorithm is analyzed, and it is found that its fault tolerance performance is obviously reduced when Byzantine faults increase. The idea of " fault-tolerant midpoint " is introduced to improve it and RTE-FTM algorithm is proposed. Through the CANoe simulation platform, two Byzantine faults and no Byzantine faults in the system (seven nodes) are compared and analyzed, and the precision loss rate of the system is reduced by 3.1%, which verifies the convergence and effectiveness of the algorithm.

Key words: Ethernet, RTEthernet, drift rate, network transmission delay, clock for Byzantine failure, fault-tolerant midpoint, RTE-FTM, convergence

中图分类号: 

  • TP393