| Wireless sensor network is a new technique to obtain and process information, it combines the logical information world with the physical information world together. As a new technology in the "ubiquitous computing" times, it has shown a broad application prospects in a growing number of areas. Wireless sensor network is commonly deployed in harsh, unattended or even hostile environment, together with the intrinsic limitation of wireless sensor network. So people pay attention to the security of the network. And it also put forward a great deal of challenging subjects to the researchers and engineers.Cloud model integrates fuzziness and randomness of the qualitative concepts in the natural language. It is a quantities and qualities exchange model, based on traditional fuzzy mathematics and probability and statistics. The proposed of cloud theory brings new areas for network security research. The present of cloud similar algorithm makes cloud model having some theory values and real meanings. However, the characteristic of cloud makes the algorithm with low precision and high consumption of calculation, which has some restrictions on its application. Based on these, interval-based cloud similar comparability algorithm is brought forward in this paper. The experimental results show that this algorithm optimizes the precision and consumption of calculation, which made cloud theory can be applied in resource-constrained wireless sensor networks.Cloud-based trust model for WSN is built in this paper, based on interval-based cloud similar comparability algorithm. In this model, trust is expressed by a quantitative value. And design a new update function to make the process of getting trust more reasonable. Simulation results show that the trust model is robust, and can identify the malicious nodes quickly and accurately, prevent the destruction of the network. After that, group headers based on cloud theory to manage trust value and calculate group trust value. Then, present cloud-based group trust ant routing algorithm, which group trust and nodes'residual energy are added to the transition probability calculations expression of group-level and node-level in ant routing algorithm. It is ensured that the determination of nodes'trust in group has high accuracy and high-efficient contract rate in ant routing by the algorithm. The distribution of energy consumption in the algorithm mainly in some group head nodes, which leads to few number of death nodes and extend the network to maintain a longer life cycle. |