Abstract:Due to the open and decentralized characteristics of mobile ad hoc networks, the traditional optimized link state routing (OLSR) trust model cannot clearly quantify the trust indexes of nodes and ignores the network environments of nodes. To solve the above problems, this study proposes a two-layer fuzzy logic trust model based on environment-adaptive decision-making and constructs an EFT-OLSR protocol with the OLSR protocol. The model is divided into a parameter extraction module, a two-layer fuzzy reasoning module, and a decision-making module. To start with, the node residual energy (P) is selected to prevent implicit selfish attacks; then, the complexity of the trust indexes of the computing nodes is limited by using the improved two-layer fuzzy logic structure; finally, the trust threshold in the routing protocol is dynamically adjusted according to the network environment. Experiments show that the EFT-OLSR protocol is superior to the existing FT-OLSR trust model in packet delivery rate (PDR), average end-to-end delay, and packet loss rate.