Data packet sampling statistic method and apparatus

A data packet and data packet receiving technology, applied in digital transmission systems, data exchange networks, electrical digital data processing, etc., can solve the problems of submerged small streams, sampling distortion, and difficulty in extracting data packets, preventing network attacks, increasing Sampling distortion, the effect of reducing sampling distortion

Inactive Publication Date: 2008-02-06
NEW H3C TECH CO LTD
View PDF0 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] For the statistics of traffic distribution, the main focus is on the distribution of data streams, but the above-mentioned sampling and statistical methods are only based on interfaces, which cannot distinguish the traffic distribution of various data packets very well.
For example, usually the concurrent data flow on an interface is very large, hundreds of thousands of data flows exist at the same time, and there are many millions or more at the same time, so it is easy for large flows to overwhelm small flows, resulting in a small amount of data It is difficult to select the data packets, which will lead to a large deviation between the statistics of small flow data packets and the actual data, which cannot well reflect the actual data flow distribution, resulting in sampling distortion

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
  • Data packet sampling statistic method and apparatus
  • Data packet sampling statistic method and apparatus
  • Data packet sampling statistic method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] The present invention is different from the simple interface-based sampling statistics of data packets in the prior art, and classifies the data packets to ensure that all types of data packets are sampled and counted, so as to prevent small flow data packets from being submerged in large flow data packets, thereby Reduce sampling distortion. The method of sampling by class in the present invention can be applied to sampling by package and sampling by time.

[0025] First, the method of packet sampling is introduced.

[0026] In a nutshell, the packet sampling provided by the present invention includes the following steps:

[0027] [1] Preset various data packet counters;

[0028] [2] Extract the keyword of the received data packet, so as to know the type of the data packet;

[0029] [3] Adding 1 to the counter value corresponding to the type of the data packet, and performing a modulo operation on the latest counter value according to the preset sampling interval; ...

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 present invention discloses a data package sampling statistics method, wherein, the method comprises the following steps: distill the key words of the received data package to obtain the type of the data package; plus the aforesaid type data package counter value with one and delivery the latest counter value according to the preplaced sample alternation; sampling stat the data package if the counter value delivered result is the system preplaced sample value. The present invention samples the data package by classification, samples each type by bags or by time to make sure that each type of the data package can be chosen, which deoxidizes the true flux distributing circus as far as possible and decreases the sampling distortion degree. The present invention, corresponding to the aforesaid method, also provides a data package sampling statistics device.

Description

technical field [0001] The invention relates to the technical field of communication system flow statistics, in particular to a method and device for sampling and statistics of data packets. Background technique [0002] With the rapid development of the Internet, the scale of the network is unprecedentedly large, and there are more and more various network attacks. Therefore, it is necessary to monitor the distribution of network traffic on network devices, which provides the necessary information for preventing network attacks in a targeted manner. refer to. [0003] In order to count data packets, many technologies based on flow statistics have emerged. For example, these technologies can count the data packets and the number of bytes in a period of time, but these technologies are based on individual statistics for each data packet , will consume a large amount of CPU resources. In addition, due to the limitation of bandwidth resources used for statistics, the data pack...

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/26H04L12/56G06F17/30H04L45/74
Inventor 卢胜文
Owner NEW H3C TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products