Message sampling method and device, equipment and medium
A packet sampling and packet technology, applied in the field of computer networks, can solve problems such as low flexibility, and achieve the effects of improving flexibility, reducing restrictions, and high randomness
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0061] figure 1 A schematic diagram of a message sampling process provided by an embodiment of the present invention, the process includes the following steps:
[0062] S101: Determine a target sampling ratio and a target random number mask corresponding to the message according to the acquired feature information of the message and the corresponding relationship between the pre-saved feature information and the sampling ratio and the random number mask.
[0063] In the embodiment of the present invention, the characteristic information of the message is information that can uniquely identify the type of the message, wherein the characteristic information of the message includes: the port receiving the message, the type of the message, the destination IP of the message, and the At least one of the source IPs of the text. For example, the feature information can be the port receiving the message and the type of the message. For example, the A port receiving the message and the...
Embodiment 2
[0075] In order to enhance the randomness of message sampling, on the basis of the above-mentioned embodiments, in the embodiment of the present invention, the first sampling random number corresponding to the message is determined according to the target sampling ratio and the target random number mask. Numbers include:
[0076] Generate an initial random number, wherein the bit width of the initial random number is consistent with the bit width of a preset maximum sampling ratio, and the value of the initial random number can be greater than the maximum sampling ratio;
[0077] Perform an AND operation on the initial random number and the value corresponding to the target random number mask, and use the result of the AND operation as the first sampling random number corresponding to the message.
[0078] The sampling random number is a basis for sampling packets in a sampling period corresponding to a sampling ratio. In the embodiment of the present invention, in order to e...
Embodiment 3
[0099] In order to distinguish the messages, on the basis of the above-mentioned embodiments, in the embodiment of the present invention, according to the obtained feature information of the message and the correspondence between the pre-saved feature information and the sampling ratio and the random number mask relationship, determining the target sampling ratio and target random number mask corresponding to the message includes:
[0100] Determine the target sampling ratio and the target random number mask corresponding to the message according to the obtained feature information of the message and the corresponding relationship between the pre-saved feature information and the sampling ratio, random number mask, and sampling flow identifier. code and target sampling stream identifier;
[0101] The determination of the number of packets of the characteristic information that have been received includes:
[0102] Determine the number of received packets identified by the tar...
PUM

Abstract
Description
Claims
Application Information

- R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com