Abstract:Wireless sensor networks can be deployed in a variety of dangerous environment, although the risk is relatively large, if you can successfully complete the task, it is possible to extend the safety time. In ensuring the safety of the case, there is a new algorithm - the clock algorithm that can improve the effectiveness of the work of wireless sensor . It is mainly to discover and delete timely the malicious, bad information in the network. This method can make the site of malicious information has a certain convergence, and precise time. This algorithm has been gone through a lot of simulation experiments, the conclusion is that this algorithm can be used.