Cache management method based on message quality state
By evaluating the retention quality of messages and designing a cache scheduling mechanism, messages with the lowest retention quality are discarded first and messages with the highest retention quality are forwarded first. This solves the problem of insufficient cache space in delay-tolerant networks and improves message delivery efficiency and network performance.
Patent Information
- Application Number
- CN202410645536.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-23
- Publication Date
- 2024-09-06
AI Technical Summary
In a delay-tolerant network, insufficient cache space and uneven capabilities of nodes lead to low message delivery efficiency. Existing technologies are difficult to effectively manage the cache, resulting in network congestion and message loss.
By evaluating the retention quality of messages, we design a cache scheduling mechanism that gives priority to discarding messages with the lowest retention quality and forwarding messages with the highest retention quality first. We use message tolerance, average forwarding probability and discard value to determine message priority and design reasonable messages. Scheduling mechanism.
It improves the message delivery rate, reduces network load, reduces network congestion, and improves routing performance.
Smart Images

Figure CN118612149A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of delay-tolerant network cache management, and in particular to a cache management method based on message quality status. Background Art
[0002] The concept of delay-tolerant networks originally came from interstellar networks, and is mainly used to deal with intermittent communication between nodes and frequent interruptions in connections between nodes. As a network with unstable connection status, nodes in the network use a mode of first storing data packets, then moving with data packets, and finally forwarding data packets to meet communication needs. In addition, delay-tolerant networks are also suitable for extreme communication environments with unstable link status, large data transmission delays, high data transmission loss rates, and constantly changing network topology structures, such as wildlife tracking, satellite communication networks, earthquake emergency communication networks, and vehicle-mounted self-organizing networks. Application scenarios. In intermittent environments, delay-tolerant networks do not require full connectivity of the network and are more suitable for actual self-organizing network needs.
[0003] Under the node "store-carry-forward" communication strategy, messages will stay in the node cache for a long time before waiting to be forwarded, which may cause insufficient remaining cache space in the node and reduce the successful delivery rate of the message. In addition, due to unclear division of labor among nodes in the delay-tolerant network, some nodes with weaker capabilities frequently bear the heavy responsibility of forwarding, further increasing the burden on the node cache. Therefore, formulating a reasonable cache management strategy is the key to improving routing performance. By analyzing the comprehensive status of the message and further evaluating the importance of the message to decide whether to discard or forward it, the congestion of the node will be effectively alleviated. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a cache management method based on message quality status in view of the defects in the prior art.
[0005] The technical solution adopted by the present invention to solve its technical problem is:
[0006] The present invention provides a cache management method based on message quality status. In the process of message forwarding between nodes, a cache scheduling mechanism is designed by evaluating the retention quality of the message. In terms of discarding strategy, messages with the lowest retention quality are discarded first; in terms of forwarding strategy, messages with the highest retention quality are forwarded first. The method comprises the following steps:
[0007] S1. Define message tolerance. Calculate the message tolerance based on the remaining cache space of the node and the size of the new message. When the message tolerance is negative, it means that the remaining cache space of the node is insufficient.
[0008] S2. According to the characteristics of information exchange between nodes, the node remaining cache rate is introduced to define the average message forwarding probability. The message with the smallest average forwarding probability is discarded first.
[0009] S3. Define the message discard value based on the message hop count and the remaining lifetime. The message with the largest discard value will be discarded first.
[0010] S4. Design a message scheduling mechanism to obtain the first message in the buffer that is larger than the threshold. The number of hops of the message is the message threshold. If the number of hops of the new message is less than the threshold, sort it in descending order according to the message discard value. Otherwise, sort it in ascending order according to the average forwarding probability of the message.
[0011] S5. Define the message retention quality by combining the average message forwarding probability and the message discard value. Messages with high retention quality are placed at the head of the scheduling queue. In the discard strategy, messages with the lowest retention quality in the scheduling mechanism are discarded first; in the forwarding strategy, messages with the highest retention quality are forwarded first.
[0012] Furthermore, the calculation method of the message tolerance in step S1 of the present invention is:
[0013] Message tolerance represents the difference between the remaining cache space of a node and the size of a new message, denoted as MT n , and its calculation formula is:
[0014]
[0015] Among them, B n For node v n The remaining cache space size, The size of the new message. n When ≥0, it means that the node can just accept the new message; otherwise, it means that the remaining space of the node is insufficient and other messages need to be deleted to accommodate the new message.
[0016] Furthermore, the method for calculating the average message forwarding probability in step S2 of the present invention is:
[0017] The average forwarding probability of a message is represented by the source node v m Carry the message and deliver it to the encounter node v n The forwarding probability is denoted as AFP mn ; AFP mn The calculation of includes three stages: update, decay and transitivity;
[0018] Update: When node v m and v n When they come into contact with each other, first update node v m The average forwarding probability of the message is calculated as:
[0019]
[0020] Among them, AFP init Indicates the initial value, BA n For node v n The remaining cache rate; R represents the remaining cache rate ratio parameter of the node, its value is changing dynamically, and its calculation formula is:
[0021]
[0022] Among them, R init =1, when BA n =1, R is a constant equal to 1, and the formula becomes the average forwarding probability formula; the value of the remaining cache ratio parameter is inversely proportional to the value of the node's remaining cache ratio. As the node's remaining cache ratio increases, the value of R gradually decreases;
[0023] Decay: If there is an intermittent interruption between nodes, the chance of transmitting messages between nodes will decrease, so the forwarding probability will decay over time. The calculation formula is:
[0024]
[0025] Among them, q represents the decay factor, t represents the number of time blocks between nodes from the last contact to this encounter, and x n =1-BA n , node v n The higher the percentage of consumed cache, the higher the node v n The slower the aging decline;
[0026] Transitivity: If node v m Often with node v n meet, and node v n Often with node v i contact, then for the destination node v m For the message, node v i is a next-hop node worth considering, and its calculation formula is:
[0027]
[0028] Among them, β∈[0,1] represents the weight parameter of the transitivity affecting the average forwarding probability.
[0029] Furthermore, the message discard value calculation formula in step S3 of the present invention is:
[0030] MDV i =1* i +2*(1-TTL i )
[0031] Among them, H i Indicates message m i Number of hops, TTL i Indicates message m i The remaining survival time, d1 and d2 represent the proportion of the two respectively.
[0032] Furthermore, the message threshold value calculation method in step S4 of the present invention is:
[0033] The message threshold is an important indicator for measuring the scope of message diffusion. According to the definition of the MaxProp algorithm, find the first message in the message queue that is greater than the threshold p and obtain the hop count of the message, which is the message threshold H. threshold , where x is the average number of bytes per transmission, b is the size of the message in the buffer, and the threshold p is calculated as:
[0034]
[0035] When x is much smaller than b, the threshold p is x; as x increases, the threshold p will gradually decrease from x to bx; when x is greater than b, the threshold p is 0.
[0036] Furthermore, the method for calculating the message retention quality in step S5 of the present invention is:
[0037] Message i The retention quality indicates the importance of discarding and forwarding messages in the buffer; when the message tolerance is negative, the message retention quality is determined by combining the average forwarding probability of the message, the message discard value, and the message threshold value, which is recorded as RQ i , and its calculation formula is:
[0038]
[0039] Among them, MDV i Indicates message m i The discard value, H i Indicates message m i The number of hops, H threshold Indicates the message threshold, AFP mn Indicates message m i The average forwarding probability.
[0040] Furthermore, the overall steps of the method of the present invention are:
[0041] Get node encounter information; ACK confirmation deletion mechanism;
[0042] Determine message tolerance MT nIs it less than 0? If not, exit; if yes, get the message threshold value H threshold and message m i The number of hops H i ;
[0043] Judge H thresgold Is it greater than H i ; If so, follow the message m i The discard value MDV i Sort and discard the largest MDV i If not, follow the message m i Average forwarding probability AFP mn Sort and discard the smallest AFP mn Message;
[0044] Update H threshold and MT n ; Determine MT n Is it greater than or equal to 0? If not, return to judge the message tolerance MT n Is the step less than 0? If so, exit.
[0045] The present invention provides a cache management system based on message quality status. In the process of message forwarding between nodes, a cache scheduling mechanism is designed by evaluating the retention quality of the message. In terms of discarding strategy, messages with the lowest retention quality are discarded first; in terms of forwarding strategy, messages with the highest retention quality are forwarded first. The system includes the following units:
[0046] The message tolerance unit is used to calculate the message tolerance according to the remaining cache space of the node and the size of the new message. When the message tolerance is a negative number, it means that the remaining cache space of the node is insufficient.
[0047] The message average forwarding probability unit is used to define the message average forwarding probability based on the characteristics of information exchange between nodes and the node remaining cache rate. The message with the smallest average forwarding probability is discarded first.
[0048] The message discard value unit is used to calculate the message discard value by combining the message hop count and the remaining lifetime. The message with the largest discard value is discarded first.
[0049] The message scheduling mechanism unit is used to obtain the first message in the buffer that is greater than the threshold. The number of hops required to obtain the message is the message threshold. If the number of hops of the new message is less than the threshold, the message is sorted in descending order according to the message discard value. Otherwise, the message is sorted in ascending order according to the average forwarding probability.
[0050] The message forwarding and discarding unit is used to calculate the message retention quality by combining the average message forwarding probability and the message discarding value. Messages with high retention quality are placed at the head of the scheduling queue. In the discarding strategy, messages with the lowest retention quality in the scheduling mechanism are discarded first; in the forwarding strategy, messages with the highest retention quality are forwarded first.
[0051] The beneficial effects produced by the present invention are:
[0052] The cache management method based on message quality status of the present invention designs a message scheduling mechanism by evaluating and defining the message retention quality. Messages with high retention quality are preferentially placed at the head of the scheduling queue, and messages in the network are reasonably discarded and forwarded, that is, when nodes communicate with each other, messages with the highest retention quality are preferentially forwarded; when the remaining cache space of the node is insufficient to receive new messages, messages with the lowest retention quality in the scheduling queue are preferentially discarded. Designing a reasonable message scheduling strategy can not only appropriately improve the message delivery rate, but also reduce network load and reduce network congestion. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] The present invention will be further described below with reference to the accompanying drawings and embodiments, in which:
[0054] Figure 1 It is a message scheduling queue diagram of a cache management method based on message quality status according to an embodiment of the present invention;
[0055] Figure 2 It is an algorithm process diagram of a message forwarding strategy of a cache management method based on message quality status according to an embodiment of the present invention;
[0056] Figure 3 It is an algorithm process diagram of a message discarding strategy of a cache management method based on message quality status according to an embodiment of the present invention;
[0057] Figure 4 It is a discard strategy flow chart of the cache management method based on message quality status in an embodiment of the present invention. DETAILED DESCRIPTION
[0058] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0059] like Figure 1-Figure 4As shown, the cache management method based on the message quality status of the embodiment of the present invention evaluates and defines the message retention quality according to the comprehensive attribute status of the message, designs the message scheduling mechanism by analyzing the message retention quality status, and the messages with high retention quality status are preferentially placed at the head of the scheduling queue. In addition, the order of messages in the scheduling queue is also related to the message threshold value. In the forwarding strategy, the messages with the highest retention quality are forwarded first; when the node cache space is insufficient, the messages with the lowest retention quality are discarded first. The method includes the following steps:
[0060] S1. Define message tolerance and calculate it based on the remaining cache space of the node and the size of the new message;
[0061] S2. According to the characteristics of information exchange between nodes, the node remaining cache rate is introduced to define the average message forwarding probability. When the node cache space is insufficient, the message with the smallest average forwarding probability will be discarded first;
[0062] S3. Define the message discard value, which is calculated based on the number of message hops and the remaining lifetime. When the node cache space is insufficient, the message with the largest discard value will be discarded first.
[0063] S4. Design a reasonable message scheduling mechanism to obtain the first message in the buffer that is larger than the threshold. The number of hops of the message is the message threshold. If the number of hops of the new message is less than the threshold, sort it in descending order according to the message discard value. Otherwise, sort it in ascending order according to the average forwarding probability of the message.
[0064] S5. By defining the scheduling mechanism design of messages associated with message retention quality, messages with high retention quality are placed at the head of the scheduling queue. When the number of new message hops is less than the threshold value, the larger the message discard value, the lower the message retention quality; conversely, the smaller the average message forwarding probability, the lower the message retention quality. Use the discard strategy to discard the message with the lowest retention quality first, and use the forwarding strategy to forward the message with the highest retention quality first.
[0065] The message tolerance MT in step S1 n The calculation method is:
[0066] The message tolerance is related to the remaining cache space of the node and the size of the new message, and its calculation formula is:
[0067]
[0068] Among them, B n For node v n The remaining cache space size, The size of the new message. nWhen ≥0, it means that the node can just accept the new message; otherwise, it means that the remaining space of the node is insufficient and other messages need to be deleted to accommodate the new message.
[0069] The method for calculating the average message forwarding probability in step S2 is:
[0070] The average forwarding probability of a message is represented by the source node v m Carry the message and deliver it to the encounter node v n The forwarding probability is denoted as AFP mn .AFP mn The calculation of includes three stages: update, decay and transitivity.
[0071] Update: When node v m and v n When they come into contact with each other, first update node v m The average forwarding probability of the message is calculated as:
[0072]
[0073] Among them, AFP init Indicates the initial value, BA n For node v n The remaining cache ratio. R represents the remaining cache ratio parameter of the node, and its value is changing dynamically. The calculation formula is:
[0074]
[0075] Where R init =1, when BA n =1, R is a constant equal to 1, and the formula becomes the original average forwarding probability formula. The value of the remaining cache ratio parameter is inversely proportional to the value of the node's remaining cache ratio. As the node's remaining cache ratio increases, the value of R gradually decreases.
[0076] Decay: If there is an intermittent interruption between nodes, the chance of transmitting messages between nodes will decrease, so the forwarding probability will decay over time. The calculation formula is:
[0077]
[0078] Among them, q represents the decay factor, t represents the number of time blocks between nodes from the last contact to this encounter, and x n =1-BA n , node v n The higher the percentage of consumed cache, the higher the node v n The slower the aging decline.
[0079] Transitivity: If node v mOften with node v n meet, and node v n Often with node v i contact, then for the destination node v m For the message, node v i is a next-hop node worth considering, and its calculation formula is:
[0080]
[0081] Among them, β∈[0,1] represents the weight parameter of the transitivity affecting the average forwarding probability.
[0082] Message discard value MDV in step S3 i The calculation method is:
[0083] MDV i =1* i +2*(1-TTL i )
[0084] Among them, H i Indicates message m i Number of hops, TTL i Indicates message m i The remaining survival time of a message is d1, and d2 represents the proportion of the two. The more hops a message passes, the more opportunities it has to be delivered, and it is discarded first. Similarly, the shorter the remaining survival time of a message, the longer the message stays, the more opportunities it has to be delivered, and it is discarded first.
[0085] The design method of the message scheduling mechanism in step S4 is:
[0086] The message scheduling mechanism realizes the reasonable sorting of messages in the cache. When a new message is received, it first determines whether its hop count is greater than or equal to the threshold value. If it is greater than or equal to the threshold value, the messages in the buffer are sorted in ascending order according to the average message forwarding probability, otherwise they are sorted in descending order according to the message discard value. When the message tolerance is less than 0, it means that the node has insufficient cache space at this time. If a new message is to be received, the deletion order of the messages in the buffer must be considered. The scheduling queue method of {average message forwarding probability; message discard value} is used, which fully considers the impact of the message size, the number of message hops, the remaining survival space of the message, and the average message forwarding probability on the message sorting.
[0087] According to the MaxProp algorithm definition, find the first message in the message queue that is greater than the threshold p, and obtain the hop count of the message, which is the message threshold value H. threshold , where x is the average number of bytes per transmission, b is the size of the message in the buffer, and the threshold p is calculated as:
[0088]
[0089] It can be seen from the above formula that when x is much smaller than b, the threshold p is x; as x increases, the threshold p will shrink to the difference between the two values. When x is greater than b, the threshold p is 0, and it can be completely ignored at this time.
[0090] Message retention quality RQ in step S5 i The calculation method is:
[0091] Message i The retention quality indicates the importance of discarding and forwarding messages in the buffer. When the message tolerance is a negative number, the message retention quality is determined by combining the average forwarding probability of the message, the message discard value, and the message threshold value. The calculation formula is:
[0092]
[0093] Among them MDV i Indicates message m i The discard value, H i Indicates message m i The number of hops, H threshold Indicates the message threshold, AFP mn Indicates message m i The average forwarding probability. i <H threshold When H is , the message discard value becomes an important consideration for the message retention degree. If the message discard value is the largest, the message retention quality is the lowest and the possibility of being discarded is greater. i ≥H threshold When , the average forwarding probability of the message becomes the basis for the message retention degree. If the average forwarding probability is the smallest, the message retention quality is the lowest and the possibility of being discarded is greater. Messages with high average forwarding probability have more transmission opportunities, thereby improving the efficiency of message delivery.
[0094] In summary, the present invention discloses a cache management method based on message quality status. The cache management method first defines the message retention quality according to the average message forwarding probability, the message discard value, and the message threshold. The message retention quality reflects the importance of storing and forwarding messages in the cache. A high average message forwarding probability or a small message discard value indicates a high retention quality. Then, a message scheduling mechanism is designed according to the message retention quality to reasonably arrange the order of message forwarding and discarding, wherein messages with high message retention quality are placed at the head of the scheduling queue. In the subsequent message forwarding strategy, messages with the highest retention quality are forwarded first, and in the message discard strategy, messages with the lowest retention quality are discarded first. Compared with the OANBM, NBAPR, NWBBMP cache strategies and the classic algorithm Prophet, this method significantly improves the message delivery rate and also has a good improvement effect in terms of network overhead.
[0095] In the experimental scenario where the number of nodes in the network is 126, the node cache is set at 5MB, the message lifetime is fixed within 300min, and the experimental simulation time varies within the range of 4h to 24h, in terms of message delivery rate, the method proposed by the present invention is improved by an average of 11.43% compared with the OANBM strategy, an average of 59.65% compared with the NBAPR strategy, an average of 80.79% compared with the NWBBMP strategy, and an average of 77.29% compared with the original Prophet strategy. In terms of network overhead, the method proposed by the present invention is improved by an average of 60.19%, 64.21%, 73.44%, and 72.84% compared with the OANBM strategy, NBAPR strategy, NWBBMP strategy, and Prophet strategy.
[0096] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0097] It should be understood that those skilled in the art can make improvements or changes based on the above description, and all these improvements and changes should fall within the scope of protection of the appended claims of the present invention.
Claims
1. A cache management method based on message quality status, It is characterized in that During the process of message forwarding between nodes, the cache scheduling mechanism is designed by evaluating the retention quality of the message. In terms of discarding strategy, the message with the lowest retention quality is discarded first; in terms of forwarding strategy, the message with the highest retention quality is forwarded first. The method includes the following steps: S1. Define message tolerance. Calculate the message tolerance based on the remaining cache space of the node and the size of the new message. When the message tolerance is negative, it means that the remaining cache space of the node is insufficient. S2. According to the characteristics of information exchange between nodes, the node remaining cache rate is introduced to define the average message forwarding probability. The message with the smallest average forwarding probability is discarded first. S3. Define the message discard value based on the message hop count and the remaining lifetime. The message with the largest discard value will be discarded first. S4. Design a message scheduling mechanism to obtain the first message in the buffer that is larger than the threshold. The number of hops of the message is the message threshold. If the number of hops of the new message is less than the threshold, sort it in descending order according to the message discard value. Otherwise, sort it in ascending order according to the average forwarding probability of the message. S5. Define the message retention quality by combining the average message forwarding probability and the message discard value. Messages with high retention quality are placed at the head of the scheduling queue. In the discard strategy, messages with the lowest retention quality in the scheduling mechanism are discarded first; in the forwarding strategy, messages with the highest retention quality are forwarded first.
2. The cache management method based on message quality status according to claim 1, It is characterized in that The calculation method of the message tolerance in step S1 is: Message tolerance represents the difference between the remaining cache space of a node and the size of a new message, denoted as MT n , and its calculation formula is: Among them, B n For node v n The remaining cache space size, The size of the new message. n When ≥0, it means that the node can just accept the new message; otherwise, it means that the remaining space of the node is insufficient and other messages need to be deleted to accommodate the new message.
3. The cache management method based on message quality status according to claim 1, It is characterized in that The method for calculating the average message forwarding probability in step S2 is: The average forwarding probability of a message is represented by the source node v m Carry the message and deliver it to the encounter node v n The forwarding probability is denoted as AFP mn ; AFP mn The calculation of includes three stages: update, decay and transitivity; Update: When node v m and v n When they come into contact with each other, first update node v m The average forwarding probability of the message is calculated as: Among them, AFP init Indicates the initial value, BA n For node v n The remaining cache rate; R represents the remaining cache rate ratio parameter of the node, its value is changing dynamically, and its calculation formula is: Among them, R init =1, when BA n =1, R is a constant equal to 1, and the formula becomes the average forwarding probability formula; the value of the remaining cache ratio parameter is inversely proportional to the value of the node's remaining cache ratio. As the node's remaining cache ratio increases, the value of R gradually decreases; Decay: If there is an intermittent interruption between nodes, the chance of transmitting messages between nodes will decrease, so the forwarding probability will decay over time. The calculation formula is: Among them, q represents the decay factor, t represents the number of time blocks between nodes from the last contact to this encounter, and x n =1-BA n , node v n The higher the percentage of consumed cache, the higher the node v n The slower the aging decline; Transitivity: If node v m Often with node v n meet, and node v n Often with node v i contact, then for the destination node v m For the message, node v i is a next-hop node worth considering, and its calculation formula is: Among them, β∈[0,1] represents the weight parameter of the transitivity affecting the average forwarding probability.
4. The cache management method based on message quality status according to claim 1, It is characterized in that The message discard value calculation formula in step S3 is: MDV i =d 1 *H i +d 2 *(1-TTL i ) Among them, H i Indicates message m i Number of hops, TTL i Indicates message m i The remaining survival time, d 1 and d 2 Represents the proportion of the two respectively.
5. The cache management method based on message quality status according to claim 1, It is characterized in that The message threshold value calculation method in step S4 is: The message threshold is an important indicator for measuring the scope of message diffusion. According to the definition of the MaxProp algorithm, find the first message in the message queue that is greater than the threshold p and obtain the hop count of the message, which is the message threshold H. threshold , where x is the average number of bytes per transmission, b is the size of the message in the buffer, and the threshold p is calculated as: When x is much smaller than b, the threshold p is x; as x increases, the threshold p will gradually decrease from x to bx; when x is greater than b, the threshold p is 0.
6. The cache management method based on message quality status according to claim 1, It is characterized in that The calculation method of the message retention quality in step S5 is: Message i The retention quality indicates the importance of discarding and forwarding messages in the buffer; when the message tolerance is negative, the message retention quality is determined by combining the average forwarding probability of the message, the message discard value, and the message threshold value, which is recorded as RQ i , and its calculation formula is: Among them, MDV i Indicates message m i The discard value, H i Indicates message m i The number of hops, H threshold Indicates the message threshold, AFP mn Indicates message m i The average forwarding probability.
7. The cache management method based on message quality status according to claim 1, It is characterized in that The overall steps of this method are: Get node encounter information; ACK confirmation deletion mechanism; Determine message tolerance MT n Is it less than 0? If not, exit; if yes, get the message threshold value H threshold and message m i The number of hops H i ; Judge H threshold Is it greater than H i ; If so, follow the message m i The discard value MDV i Sort and discard the largest MDV i If not, follow the message m i Average forwarding probability AFP mn Sort and discard the smallest AFP mn Message; Update H threshold and MT n ; Determine MT n Is it greater than or equal to 0? If not, return to judge the message tolerance MT n Is the step less than 0? If yes, exit.
8. A cache management system based on message quality status, It is characterized in that During the message forwarding process between nodes, the cache scheduling mechanism is designed by evaluating the retention quality of the message. In terms of discarding strategy, the message with the lowest retention quality is discarded first; in terms of forwarding strategy, the message with the highest retention quality is forwarded first. The system includes the following units: The message tolerance unit is used to calculate the message tolerance according to the remaining cache space of the node and the size of the new message. When the message tolerance is a negative number, it means that the remaining cache space of the node is insufficient. The message average forwarding probability unit is used to define the message average forwarding probability based on the characteristics of information exchange between nodes and the node remaining cache rate. The message with the smallest average forwarding probability is discarded first. The message discard value unit is used to calculate the message discard value by combining the message hop count and the remaining lifetime. The message with the largest discard value is discarded first. The message scheduling mechanism unit is used to obtain the first message in the buffer that is greater than the threshold. The number of hops required to obtain the message is the message threshold. If the number of hops of the new message is less than the threshold, the message is sorted in descending order according to the message discard value. Otherwise, the message is sorted in ascending order according to the average forwarding probability. The message forwarding and discarding unit is used to calculate the message retention quality by combining the average message forwarding probability and the message discarding value. Messages with high retention quality are placed at the head of the scheduling queue. In the discarding strategy, messages with the lowest retention quality in the scheduling mechanism are discarded first; in the forwarding strategy, messages with the highest retention quality are forwarded first.
