Abstract:Ethernet with its huge network system has problems such as network link delay, drift of node clocks and poor synchronization capability in a complex environment. By studying the origin and working principle of RTEthernet protocol, a communication model conforming to RTEthernet protocol is established considering three factors such as clock Byzantine faults, network transmission delays and drift rates that affect the precision of real-time Ethernet time synchronization. The problem that the FTA clock synchronization algorithm has less improvement in clock synchronization precision loss rate under fault is studied, the sliding window technology is introduced, and the Fault-Tolerant Sliding Window (FTSW) algorithm is proposed. The Fault-Tolerant Sliding Window algorithm can further improve the fault tolerance of the distributed system to the faulty nodes when clock synchronization is performed. Finally, the FTSW algorithm is simulated using the CANoe simulation tool to verify that the FTSW algorithm is more fault-tolerant than the FTA clock synchronization algorithm algorithm, and in the case of two Byzantine faults in the system (seven nodes), the precision loss rate after synchronization is reduced by 7.1%.