2023年6月10日第7卷第11期现代信息科技ModernInformationTechnologyJun.2023Vol.7No.1183832023.062023.06收稿日期:2022-12-12TSN中时间同步技术研究及实现颜晨,孙云华,陈翔(中科芯集成电路有限公司,江苏无锡214072)摘要:时间敏感网络(TSN)对在以太网上传输的时间敏感流进行确定性控制,保证了网络传输实时数据的能力。时间同步是TSN技术中的基石,保障了网络数据传输的实时性和确定性。首先对建立时钟同步生成树和选择最佳主时钟的过程进行介绍;然后对路径延迟时间计算的原理进行描述;进而重点论述了各节点中进行时间同步时的计算推导过程。最后探索了一种流量整型技术,通过一个实验展示了时间同步在TSN流量整型中的重要作用。关键词:时间敏感网络;时间同步;时钟同步生成树;最佳主时钟;流量整型中图分类号:TP393文献标识码:A文章编号:2096-4706(2023)11-0083-06ResearchandImplementationofTimeSynchronizationTechniqueinTSNYANChen,SUNYunhua,CHENXiang(ChinaKeySystem&IntegratedCircuitCo.,Ltd.,Wuxi214072,China)Abstract:TimeSensitiveNetwork(TSN)providesdeterministiccontrolovertimesensitivestreamstransmittedoverEthernet,andensurestheabilitytotransmitreal-timedataofnetwork.AsthefootingstoneofTSNtechnology,timesynchronizationensuresthenetworkdatatransmissionisreal-timeanddeterministic.Firstly,theprocessofestablishmentofclocksynchronizationspanningtreeandselectionofthebestmasterclockareintroduced.Thentheprincipleofpathdelaytimecalculationisdescribed.Further,thecalculationandderivationprocessoftimesynchronizationineachnodeisdiscussedemphatically.Finally,atrafficshapertechnologyisexplored,andtheimportantroleoftimesynchronizationinTSNtrafficshaperisdemonstratedthroughanexperiment.Keywords:Time-SensitiveNetwork;timesynchronization;clocksynchronizationspanningtree;bestmasterclock;trafficshaper0引言在社会日益发展的今天,随着科学研究持续深入和人类社会生活不断丰富,各式各样的信息充斥其中,对信息的传输、处理等要求也越来越高。对于汽车领域,目前不断深入的智能驾驶技术有大量雷达、视频传感器等数据输入和智能计算后的控制信号输出,需要一种网络机制来降低信息传输延迟和抖动,从而提高传输质量保证驾驶安全。在航天领域,空间站内外部通信,...