TSN中时间同步技术研究及实现
2023-08-01颜晨孙云华陈翔
颜晨 孙云华 陈翔



摘 要:时间敏感网络(TSN)对在以太网上传输的时间敏感流进行确定性控制,保证了网络传输实时数据的能力。时间同步是TSN技术中的基石,保障了网络数据传输的实时性和确定性。首先对建立时钟同步生成树和选择最佳主时钟的过程进行介绍;然后对路径延迟时间计算的原理进行描述;进而重点论述了各节点中进行时间同步时的计算推导过程。最后探索了一种流量整型技术,通过一个实验展示了时间同步在TSN流量整型中的重要作用。
关键词:时间敏感网络;时间同步;时钟同步生成树;最佳主时钟;流量整型
中图分类号:TP393 文献标识码:A 文章编号:2096-4706(2023)11-0083-06
Research and Implementation of Time Synchronization Technique in TSN
YAN Chen, SUN Yunhua, CHEN Xiang
(China Key System & Integrated Circuit Co., Ltd., Wuxi 214072, China)
Abstract: Time Sensitive Network (TSN) provides deterministic control over time sensitive streams transmitted over Ethernet, and ensures the ability to transmit real-time data of network. As the footing stone of TSN technology, time synchronization ensures the network data transmission is real-time and deterministic. Firstly, the process of establishment of clock synchronization spanning tree and selection of the best master clock are introduced. Then the principle of path delay time calculation is described. Further, the calculation and derivation process of time synchronization in each node is discussed emphatically. Finally, a traffic shaper technology is explored, and the important role of time synchronization in TSN traffic shaper is demonstrated through an experiment.
Keywords: Time-Sensitive Network; time synchronization; clock synchronization spanning tree; best master clock; traffic shaper
0 引 言
在社会日益发展的今天,随着科学研究持续深入和人类社会生活不断丰富,各式各样的信息充斥其中,对信息的传输、处理等要求也越来越高。对于汽车领域,目前不断深入的智能驾驶技术有大量雷达、视频传感器等数据输入和智能计算后的控制信号输出,需要一种网络机制来降低信息传输延迟和抖动,从而提高传输质量保证驾驶安全。在航天领域,空间站内外部通信,月球科考、实验任务的远距离控制和遥感卫星星座或编队在进行跨星链任务时都需要高时敏通信。在工业物联网领域,随着大数据和云计算的连入,Ethernet/IP、EtherCat、等实时工业以太网已没法满足数据传输的高精确和实时性要求[1]。
针对上述网络较高的性能要求,2008年电气和电子工程师协会(Institute of Electrical and Electronics Engineers, IEEE)制定了1588協议用来同步设备之间的时钟,并在2019年更新了此标准,此标准通过规定时间戳的生成位置和延迟测量补偿机制,将时间同步的精度提高到了亚微秒级[2]。……
