| Wireless sensor networks are self-organized networks formed by a series of nodes with consistent or different functions for sensing information,collecting information and transmitting information.At the same time,the information can be transmitted to the Internet,so that people can more easily interact with real life.In other words,the concept of Internet of things is often mentioned.In the current life,because of the continuous research of wireless sensor network and the extensive use of sensor network in life,all kinds of problems and challenges come along.In addition,with the rise of big data in recent years and the advent of the information explosion era,how to collect and process the data on wireless sensor networks has become increasingly important.Therefore,to ensure the security of information,it is necessary to have a secure,feasible,under the condition of simple and feasible key management method.Key management focus on key generation and distribution.In wireless sensor networks,the key is preloaded into the node before the sensor node is placed in the detection area,which is called pre-installation or pre-distribution of the key.Key pre-distribution has also been concerned by many researchers.A good key pre-distribution mechanism will affect the network connectivity,network life cycle and network stability.This paper makes some improvements to the existing key pre-allocation mechanism and applies it to leach protocol of wireless sensor networks.The main work of this paper is as follows:(1)it introduces the basic concepts and some methods of key management,and then introduces the key management in wireless sensor networks and the pre-distribution of keys.(2)the detailed introduces several of the most common key pre distribution model,and then these models through theoretical derivation,the q-composite random key based on the proposed his own ideas and opinions,to join the regional information and key pool to synchronize,the key is divided into several small key pool,pool that sensor nodes can only save a few key,can achieve higher rate of connectivity.(3)at last,the improved model was combined with leach protocol,and the simulation comparison was carried out in matlab.It was found that the leach protocol with the improved model had better performance in connectivity and network stability than that without the improved model. |