| Opportunistic network is a wireless self-organizing network that can communicate without establishing an "end-to-end" complete path.It uses the "store-carry-forward" method to transmit messages and relies on collaboration between nodes for communication.With the development and popularization of mobile terminal devices,the application scenarios of opportunistic networks are becoming more and more extensive.Due to its tolerance for the interruption of communication link and allowance for longer delays,opportunistic networks can be well applied in scenarios such as wildlife monitoring,vehicular networks,and communication in remote areas.However,the decentralization and self-organization of opportunistic networks make them vulnerable to attacks.When some nodes in the opportunistic network intentionally do not participate in collaboration and engage in malicious behavior such as deleting messages and sending a large number of false messages,it may cause a significant decline in the performance of the opportunistic network,or even network paralysis.Designing routing algorithms that can resist attacks from malicious nodes is of great significance for the development of opportunistic networks.This article first introduces the concept,characteristics,applications,and ONE simulation platform of opportunistic networks.By analyzing the characteristics of black hole attacks,a model of black hole attacks is established on the ONE simulation platform to simulate the impact of black hole nodes on opportunistic networks.Aiming at black hole attack,a node reputation based secure routing(RBSR)is proposed.The algorithm uses the encounter records to collect the behavior information of nodes,and calculates the node reputation value from three aspects: node similarity,node intimacy and group cooperation contribution according to the behavior of nodes.Distinguish between black hole nodes and normal nodes by reputation value,reduce the credibility of black hole nodes,and refuse to send messages to nodes with low credibility.The algorithm is implemented on the simulation platform,and compared with other algorithms.Simulation results show that the algorithm can suppress black hole attacks,reduce the probability of messages being deleted by black hole nodes,and improve the security of opportunistic networks.An analysis of the flooding attacks present in the opportunistic network was carried out,and an improvement plan for RBSR routing was proposed based on the behavioral characteristics of the flooding attack nodes.Use the two lines of defense of node flow control and copy number limitation to analyze node behavior and reduce the impact of flooding attack nodes.In order to further improve the security of message forwarding in opportunistic networks,an optimization scheme for node message cache management is proposed.The forwarding priority of messages generated by nodes is calculated according to the behavior of nodes.Messages with low forwarding priority will be moved out of the cache earlier.Messages with higher forwarding priority will have more forwarding opportunities.Simulation results verify that the algorithm can improve the security of opportunistic networks in the face of flooding attacks.And compared with other algorithms,it performs better in terms of message delivery rate and network overhead. |