In recent years,with the development of wireless communication,integrated circuit sensor and microcomputer system technology,wireless sensor network develops rapidly.In wireless sensor networks,cluster-head nodes assume more responsibilities than other common nodes.Attackers may use routing information to determine the location of cluster-head nodes and launch attacks at the physical layer and link layer.It poses a great threat to the network.In addition,the data packet information may be maliciously tampered with.It leads to security risks on the network.In order to overcome the above problems,this thesis proposes a malicious node detection model based on CHSA-MNDA algorithm in wireless sensor networks.The specific research content is as follows:Firstly,aiming at the problem that the node data of wireless sensor network is easy to be tampered with by malicious nodes in a complex environment,a malicious node detection model based on node behavior monitoring is proposed.This model monitors whether the content and number of packets are tampered by setting monitoring nodes.It introduces a review mechanism to realize secondary detection.The model can effectively monitor the malicious behavior of nodes,reduce the misjudgment rate,and realize the detection results transparent and immutable.Secondly,in view of the low efficiency of the above detection model due to the large number of nodes in the wireless sensor network,the cluster head selection algorithm(CHSA)based on LEACH protocol was designed.By considering the remaining power of nodes and the distance from the base station and other factors,the optimal cluster head node was selected to improve the detection efficiency and reduce resource consumption.Aiming at the malicious behaviors such as delayed forwarding or partial forwarding of packets by nodes in wireless sensor networks,a malicious node determination algorithm(MNDA)based on reputation scoring mechanism is designed.The reputation score of nodes is calculated by using the transmission delay,forwarding rate,packet loss rate and other indicators of nodes.It improves the detection accuracy.Thirdly,the malicious node detection model based on CHSA-MNDA algorithm is simulated on OPNET Modeler platform.The data information is processed on MATLAB.Experimental results show that the accuracy of the proposed model increases with the increase of the number of malicious nodes.It has better performance than the two mainstream malicious node detection methods. |