摘要:Wireless sensor network is a new application network and with broad application prospects, which is considered as the leader of the top-ten technologies in changing world in future. Recent years, the wireless sensor network receives much attention and application, its security becomes even more prominent. SPINS only considers the simple main key sharing way in the safe guidance aspect. It always encountered Dos attack. SPINS lacks key update mechanism, does not support the network expansion .We propose a design scheme of secure communication protocol for wireless sensor network based on the hierarchical topology referring to SPINS, which is widely accepted at present. Our scheme has utilized the LEACH algorithm and has made up it in the security insufficiency. During the topology establishment, we add the authentications of the cluster-heads through base station to ensure the validity of the cluster-heads; in addition, we add a one-way hash function and a shared key in the key management, making the encryption key and authentication key change dynamically to enhance the security of network communications. The improved scheme takes into account its own characteristics and limitations of wireless sensor networks, and seeks to meet the security needs of network communications, that is confidentiality, integrity, data freshness, key update, and authentication. Although the improved protocol consumed slightly more energy compared to SPINS, safety performance has improved a lot.