| Wireless Sensor Network(WSN)is one of the research hotspots in today’s information field.Because of the low cost of sensor nodes and simple deployment,WSN has been widely used in real life.At present,node location technology plays an important role in the application of WSN system,but the existing WSN node location technology still has some problems,such as the DV-HOP algorithm which is widely used has low positioning accuracy,poor security and other problems.Therefore,this paper proposes a DV-HOP algorithm based on differential quantum particle swarm to solve the problem of low positioning accuracy of DV-HOP algorithm,and improves the positioning accuracy of unknown nodes in WSN by solving the optimal value of estimated coordinates.Aiming at the problem of poor positioning security of DV-HOP algorithm in the selective forward attack scenario,this paper builds a positioning model of DVHOP algorithm in the selective forward attack scenario,and proposes a DV-HOP algorithm based on clustering WSN to resist the selective forward attack.This algorithm can effectively detect malicious nodes and reduce the influence of selective forwarding attack on location technology.The main research contents of this paper are as follows:(1)Aiming at the low accuracy of DV-HOP algorithm,this paper proposes a DQPSO-DVHOP algorithm.Firstly,the anchor node set generated in the deployment phase which would lead to large error is eliminated,and a correction factor is introduced to correct the average jump distance,so as to better reflect the actual situation of the network.In node location stage,DE algorithm and QPSO algorithm are combined to optimize the objective function.QPSO algorithm has fast computing speed and convergence ability,but the particles in this algorithm are prone to lack of diversity.The mutation crossover operation in DE algorithm can improve the diversity of the population and avoid the particles falling into premature maturity.The new algorithm(DQPSO algorithm),which combines DE algorithm and QPSO algorithm,is used to solve the optimal value of the estimated coordinates,which can effectively reduce the error and provide more accurate data for the energy consumption monitoring system.(2)Aiming at the problem of poor positioning security of DV-HOP algorithm,this paper builds a positioning model of DV-HOP algorithm under the scenario of selective forward attack,analyzes the interference caused by selective forward attack on DV-HOP algorithm in detail,and proposes a DV-HOP algorithm based on clustering WSN to resist selective forward attack,namely FDV security positioning algorithm.Firstly,LEACH algorithm is used to cluster the nodes in the monitoring area,and a monitoring node is set in each cluster to detect the forwarding rate of all nodes in the cluster.Secondly,the forwarding rate of each node is taken as the clustering object,and H-DBSCAN algorithm is used for clustering,and the noise obtained is taken as the suspect node.H-DBSCAN algorithm is based on the proportional relationship between EPS value and kernel probability density estimate value,and dynamically calculates the appropriate neighborhood search radius for each data point,which can obtain better clustering effect.Moreover,in order to eliminate the problem of low node forwarding rate caused by poor channel quality,this paper conducts secondary clustering of the node forwarding rate of the cluster in which the suspect node is located,and confirms the final clustering noise points as malicious nodes.Then,make the malicious nodes sleep and restart the positioning,so as to reduce the impact of the malicious nodes on the DV-HOP positioning technology.The FDV secure location algorithm proposed in this paper can effectively detect the malicious nodes that carry out selective forwarding attack,and enhance the location security of DV-HOP algorithm. |