SUMMARYClock synchronization is critical for a variety of applications in communication networks. In this paper, we design a clock servo named VI_PID-K, which consists of a variable integral PID controller and a Kalman filter. It is a pre-correction mechanism for the skew based on feedback principle to compensate for the poor stability of local clocks in IEEE 1588 networks. Our contribution is establishing discrete differential equation models, bringing in a variable integral PID controller to adjust the skew error and a Kalman filter to act as a skew estimator to predict the skew during one synchronization interval. Simulation results demonstrate that VI_PID-K provides a more stable disciplined clock, improves the speed of skew convergence, and reduces Allan variance in a large time scale when compared to PI method or Fixed_Integral method.VI_PID-K can improve the stability of slave clock and reduce the frequency that master clock sends Sync messages, so the network overhead for clock synchronization can be reduced.