电子科技 ›› 2023, Vol. 36 ›› Issue (3): 29-35.doi: 10.16180/j.cnki.issn1007-7820.2023.03.005

• • 上一篇    下一篇

基于灰色预测容错时钟同步算法

陆禹,张力,张凤登   

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

Fault-Tolerant Clock Synchronization Algorithm Based on Grey Prediction

LU Yu,ZHANG Li,ZHANG Fengdeng   

  1. School of Optical-Electrical and Computer Engineering,University of Shanghai for Science and Technology,Shanghai 200093, China
  • Received:2021-08-31 Online:2023-03-15 Published:2023-03-16
  • Supported by:
    National Natural Science Foundation of China(71840003);Natural Science Foundation of Shanghai(15ZR1429300)

摘要:

针对分布式实时系统中无主式时钟同步存在时钟拜占庭故障和节点通信链路丢失故障的问题,文中提出一种基于灰色预测容错时钟同步算法。该算法基于广播式通信网络LL模型,使用GM(1,1)的灰色预测方法对前轮次的校正偏差值进行分析,从而预测出该节点在故障伦次中的校正偏差值,再通过计算得到修正值。实验结果表明,文中提出的灰色预测算法能够容忍拜占庭故障,同时可克服节点通信链路丢失故障带来的问题,提升了FTA算法的普适性。通过数据对比分析结果表明,该算法的时钟同步精密度相比于原始算法提高了24.3%;相较于其他算法,文中算法在复杂度上也有一定的优势。

关键词: 分布式实时系统, 无主式, 时钟同步, 拜占庭故障, 通信链路丢失故障, 灰色预测, 容错, 校正偏差值

Abstract:

In view of the problem of clock Byzantine failure and node communication link loss failure in the non-master clock synchronization in the distributed real-time system, a fault-tolerant clock synchronization algorithm based on gray prediction is proposed in this study. The proposed algorithm is based on the LL model of the broadcast communication network, and uses the gray prediction method of GM (1,1) to analyze the correction deviation value of the previous round, so as to predict the correction deviation value of the node in the failure order, and then obtain the correction value through calculation. The experimental results show that the gray prediction algorithm proposed in this study can tolerate Byzantine faults, and at the same time, it can overcome the problems caused by the failure of node communication link loss, and improve the universality of the FTA algorithm. The data comparison analysis results show that the clock synchronization precision of this algorithm is improved by 24.3% when compared with Original algorithm. At the same time, the algorithm complexity has certain advantages when compared with other algorithms.

Key words: distributed real-time system, non-master, clock synchronization, Byzantine failure, communication link loss failure, gray prediction, fault-tolerant, correction deviation

中图分类号: 

  • TN913