| Wireless sensor network with the characteristic of high capability of information collection,high speed to collect information and high accuracy,can be adapt to the environment,specially can detect the area the human can not arrive or extremely difficult to reach.Data security is oneresearch of the wireless sensor network of important content of the wireless sensor network research. Wireless sensor network can distribute a large range, adopt the jump communication mode.Communication signal is uncover inthe network, be vulnerable to eavesdropping, coaxing, injection, replay-attack and so on. This paper put forward a kind of WSN secure transmission mechanism based on nodes authentication and data encryption.The security mechanism putforward in this paper is divided into two parts:network nodes authentication and transmission encryption.Identity tags of nodes and the sink node are stored in nodes and the sink node in advance.In the process of nodes authentication, the nodes and the sink node transfer identity tags, the information such as the tags used generate keys to each other through multiple message communication. Then the nodes and the sink node will compare identity tags with the identity tags stored in the sink node and nodes. Only the nodes which pass the authentication can join in the network,and only the sink node pass the authentication can be accepted by nodes.Then the nodes and the sink node can establish a safe network and transmit data.The process of the identity authentication needs toverify non-repudition and integrity, which makes the network more security.The process of transmission encryption is based on the process of authentication.Transmission encryptionneeds safe environment established by authentication,and also needs to make use of the tags used generate keys transmitted by process of authentication. Transmission encryption uses key-stored mechanism, the initial keys to generate sub-keys are stored in the nodes, the initial keys are also copied in the sink node.The nodes mix the initial keys and tags to generate sub-keys, then using sub-keys to encrypt datato protect the safe of the data.This paper uses NS2to simulate the network security system.This simulation analyses the network security system through the network information flow, the propagation delay and remained energy of network. The result of the experiment shows us that this security strategy can effectively distinguish network node identity,establish a safe networktoprotect the security of data. |