Supercharge Your Innovation With Domain-Expert AI Agents!

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

Inactive Publication Date: 2021-02-26
RUIJIE NETWORKS CO LTD
View PDF14 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The present invention provides a message sampling method, device, equipment and medium to solve the problem of low flexibility in random sampling of existing messages

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Message sampling method and device, equipment and medium
  • Message sampling method and device, equipment and medium
  • Message sampling method and device, equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a message sampling method and device, equipment and a medium, and the method comprises the steps: determining a target sampling ratio and a target random number mask corresponding to a message according to the obtained feature information of the message and the pre-stored corresponding relationship between the feature information and the sampling ratio and the random numbermask; according to the target sampling ratio and the target random number mask, determining the first sampling random number corresponding to the message and the number of the received messages of thefeature information, and determining whether the message is sampled or not according to the number and the first sampling random number, so that limitation of random sampling is reduced, the randomness of random sampling is higher. Flexibility of sampling is improved.

Description

technical field [0001] The invention relates to the technical field of computer networks, in particular to a message sampling method, device, equipment and medium. Background technique [0002] IP Flow Information Export (IPFIX) is a standard protocol applied to a local area network for flow information measurement in the network, and is mainly used for statistics and analysis of service flow conditions in the network. However, with the increase of the network scale and the sharp increase of IP traffic, it is impossible to analyze all the packets. At this time, it is necessary to sample the received packets and analyze the sampled packets. Sampling in the prior art includes: fixed sampling and random sampling. Fixed sampling is to collect packets with a fixed serial number in each sampling period according to the sampling ratio, while random sampling is to randomly collect packets with any serial number in each sampling period according to the sampling ratio. [0003] Howe...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04L12/26
CPCH04L43/50
Inventor 刘熙
Owner RUIJIE NETWORKS CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More