| Wireless sensor network(WSN)consists of a set of limited sensor devices,which are geographically distributed in a given indoor or outdoor environment.WSN is actually one of the low-power loss-loss network(LLN),and it is also an important part of the Internet of Things.High loss rate,low data rate,and unstable network are the main features of LLN.On the one hand Specific energy energy is exhausted;on the other hand,due to the instability of LLN,in the process of data transmission,it is easily attacked by internal or external attacks.Therefore,in response to these two aspects,design with energy-saving and safe and stable routing algorithms is extremely important.At present,the most representative of LLN is the low-power loss network routing protocol(RPL).In response to the deficiencies of the existing RPL,this article uses the improvement of the improved plugging algorithm and the improved photon search algorithm to improve and design the RPL,so that the energy consumption of the node can be balanced,and the main research content can be enhanced.The main research content is as follows.In response to the disadvantages of the existing parent node selection algorithm in the RPL,the choice of the best parent node based on the adaptive congestion perception algorithm based on the adaptive congestion perception of the DAO attack is proposed.In previous research,the impact of malicious attacks on network congestion was often ignored,so related improvement indicators were proposed.In the end,a typical network attack in RPL-DAO attack formulating relief measures proposed an adaptive congested perception algorithm(MDCS-RPL)that relieved the DAO attack.Aiming at the problem that the fixed weight factors in MDCS-RPL are optimized when the node is large,the optimization effect is limited,and the photon search algorithm(PSA)is introduced to optimize the selection of weight factors,and then improved the local development capabilities of the PSA.Optimized adaptive photon search algorithm(HHO-APSA).The simulation experiments show that while maintaining the PSA global exploration ability,the HHO-APSA algorithm has improved the local excellence of the algorithm.Aiming at the weight factor of MDCS-RPL,combining MDCS-RPL and HHO-APSA proposed the MDCS-RPL(HPMDCS-RPL)that improved the optimization of photon search algorithms to optimize the fixed weight factors from the improved photon search algorithm to dynamic weight factor.Dynamically adjust the weight according to the various routes of the node.The simulation results show that HPMDCS-RPL can increase the success rate of data transmission and the remaining energy of the node to the large node size network,reduce the average end-to-end delay,and maintain lower power consumption when attacked.Improve the performance of MDCS-RPL and achieve the goal of energy conservation,security and stability. |