The clock synchronization of distributed systems has gone through the process of logical clock synchronization to physical clock synchronization. Whether it is logical clock synchronization or physical clock synchronization, extra accurate time is not particularly important, if each node has the same time, then different events in the distributed system can be executed step by step. The purpose of this paper is to study the clock synchronization algorithm for distributed systems based on adaptive technology. The distributed clock synchronization prototype system is sorted out, different functional modules are proposed according to the requirements, and experiments are carried out on specific equipment and switches. Analyze and model the request-response mechanism of PTP synchronization in detail. Correction is made by introducing interference sources that affect the clock synchronization accuracy under actual working conditions. An adaptive local clock synchronization algorithm based on AR model and SFTRLS algorithm is designed. The clock synchronization accuracy and stability of the improved and pre-and post-synchronization algorithms are compared through computer simulation. The colored noise error with a variance of 3×10-5s2 is relatively reduced by 76.93 %. It is verified that the algorithm can effectively improve the clock synchronization performance.