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. The authors 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.