In order to establish a WSN time synchronization algorithm oriented clustering real-time monitoring application, and build a more precise model of clock offset compensation,based on the analysis of the characteristic of clustering WSN,a cross-layer synchronization topology construction method with the foundation of routing protocol of clustering network was proposed.Then the synchronization mechanism based on Inter-Cluster Bidirectional Multicast Protocol and Cluster Bidirectional Broadcast Protocol was constructed by using of cluster-head information and adjacent relation of non cluster-head,which was set up by Neighborhood Handshake Protocol.Finally,the parameter estimating theory was introduced to structure clock offset compensation based on linear model and maximum likelihood estimation.Theoretical and experimental results showed that the algorithm can guarantee the effectiveness of synchronization topology.The synchronization overhead is reduced by 33% compared to the HRTS algorithm,and 88% compared to the TPSN algorithm.The single-hop average error of the proposed method is different from TPSN algorithm by only 6.36 μs, and improved by 12.87 μs compared with the RBS algorithm.