The invention relates to a distributed cooperative caching method capable of realizing node and message state combined
perception and belongs to the technical field of a distributed cooperative caching technology for opportunistic networks. The method aims to solve the problem of the lower node caching efficiency at present,
dissemination states of messages are perceived, weight values of the messages are dynamically estimated, and the encounter probability of nodes and message target nodes is predicted with an encounter
probability estimation method; then the messages are cached in a classified manner on the basis of differences between message source nodes, different caching priorities are given, and the messages in node caches are replaced in a cooperative manner with a cooperative partition cache replacement mechanism, so that the caching efficiency of the nodes is improved; finally, in order to solve the problem of decrease of the
message delivery rate caused by unchecked deletion of messages in a traditional
cache management mechanism, a distributed cooperative cache
transfer mechanism is adopted, top-k cooperative node sets of the nodes are dynamically selected in advance, and the messages in the node caches are transferred to cooperative nodes in a communication range when the node caches are full, so that the delivery probability of the messages is increased.