Research Article Control Mechanism of Virus Propagation in Wireless Sensor Networks Based on Analytic Hierarchy Process Lurong Jiang , 1,2,3 Hangyi Pan , 1 Jiawang He , 1 Renwang Li , 2 Changguo Xu , 3 Qiaoyu Xu , 1 Yanyun Dai , 1 Fang Dong , 4 and Jijun Tong 1 1 School of Information Science and Technology, Zhejiang Sci-Tech University, Hangzhou, China 2 School of Mechanical Engineering and Automation, Zhejiang Sci-Tech University, Hangzhou, China 3 Postdoctoral Workstation, Zhejiang Dafeng Technology Co., Ltd., Hangzhou, China 4 College of Information and Electric Engineering, Zhejiang University City College, Hangzhou 310015, China Correspondence should be addressed to Jijun Tong; jijuntong@zstu.edu.cn Received 15 November 2021; Revised 10 April 2022; Accepted 23 April 2022; Published 17 May 2022 Academic Editor: Zhiyuan Tan Copyright © 2022 Lurong Jiang et al. is is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited. e research on virus propagation process and control method in wireless sensor networks (WSNs) is one of the essential challenges of network security. is paper proposes a virus control mechanism of degree, betweenness centrality, and k-core- based analytical hierarchy process (DBC-AHP) for WSNs. According to the topology of WSNs, the virus control mechanism uses the DBC-AHP to identify the crucial nodes of the network. It uses the way of crucial nodes’ self-disconnection to suppress the spread of the virus, to improve the network security. In this paper, the effectiveness of the virus control mechanism based on the DBC-AHP is verified by comparing and analyzing the effect of four different crucial node recognition algorithms. With the research of virus control mechanisms in various network environments, it is found that the average degree of nodes, the communication radius of nodes, and the probability of virus infection can affect the inhibition effect of the virus control mechanism. Furthermore, the inhibition effect of virus control mechanisms is studied under the condition with/without MAC mechanism. 1. Introduction Wireless sensor networks (WSNs) are wireless communi- cation networks formed by a large number of sensor nodes connected in a self-organizing manner. In general, WSNs is the subclass of computer network, using complex network communication protocols, so the WSNs face the virus threat [1]. e spatial openness [2] and topology heterogeneity [3] of WSNs make it easy for attackers to invade the networks. In addition, the limited energy of nodes makes WSNs vulnerable to resource consumption [4, 5]. In addition, protocols of WSNs at different layers will also suffer from different types of attacks, for example, MAC (media access control) layer DoS attack [6], routing attack [7], and so on. erefore, with the development of the application of WSNs, the network safety problem against virus propagation has increased prominently. e virus propagation model in complex networks can describe the process of the virus spreading in computer networks or wireless networks [8, 9]. In the process of virus propagation, some nodes can accelerate or inhibit the dy- namical spreading process as influential spreaders. We call these nodes crucial nodes. With the identification and strength of crucial nodes, the virus spread speed or the scale of infected nodes can be effectively controlled [10]. Although the research on crucial node identification and virus control methods in complex networks is abundant, there are still few related researches due to the structural characteristics of WSNs. is paper proposes a crucial node identification and virus control method in WSNs. In detail, we use the node degree, betweenness centrality, and k-core as the indicators of the importance of node, then rank the importance of nodes by the analytical hierarchy process (AHP) method in Hindawi Security and Communication Networks Volume 2022, Article ID 5719141, 16 pages https://doi.org/10.1155/2022/5719141