| With the increasingly complex information transmission in industrial,traditional Ethernet incapable meet the requirements of low-latency and deterministic transmission.In recent years,real-time Ethernet has developed rapidly,but the standards introduced by various manufacturers are incompatible.The industry urgently needs a highly compatible real-time communication technology.Time-Sensitive Networking(TSN)provides deterministic transmission and high compatibility through time synchronization,traffic scheduling and network configuration methods.With the development of TSN technology,the scheduling algorithm and application still need further research.According to the TSN switch design sub-project of the "Industrial Ethernet Chip" project of the internship company,the TSN function of the TSN switch is verified,and then the delay simulation of the TSN scheduling algorithm is mainly researched.This research is divided into TSN function verification of TSN switch and TSN scheduling algorithm simulation.Based on the TSN chip LS1028,the TSN switch peripheral scheme design and software kernel configuration were completed,and the TSN functions such as time synchronization,frame preemption(FP),time aware shaper(TAS)and stream reservation were verified.Based on OMNe T++,The delay simulation of TSN scheduling algorithm was researched.Scheduling mechanisms of strict priority(SP),FP and TAS in TSN were analyzed to establish a delay model.Then the TSN simulation platform was built based on OMNe T++,the algorithm module and scheduling model were designed,and network topology was designed to verify the function of platform.Finally,the simulation results of traffic delay under different scheduling mechanisms were analyzed,and the delay characteristics of traffic under each scheduling algorithm were obtained.The test results of switch show that the time synchronization error is less than 30 ns,the scheduling function is consistent with the definition in the corresponding standard,and the basic TSN function is realized.The simulation results of TSN scheduling algorithm show that with the same network,time sensitive traffic is easy to be blocked under SP algorithm,with an average delay of 29.6011μs and obvious fluctuation.Under the FP,delay is 19.6656μs,but the delay is easily affected by the frame length and preemption time,and there is a fluctuation of 0.1μs.Under the TAS,the time sensitive traffic delay is 19.5194μs without jitter,but increases the transmission delay of ordinary traffic.The TSN switch studied in this paper supports high-precision time synchronization and TSN scheduling functions,and the simulation platform supports TSN scheduling algorithm simulation,which has certain practical value and research significance. |