Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Arbitrary sampling method and apparatus

A random sampling and sampling value technology, applied in the field of network communication, can solve problems such as uneven sampling intervals and poor randomness of random sources, and achieve uniform sampling and simple effects

Inactive Publication Date: 2008-04-09
NEW H3C TECH CO LTD
View PDF0 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The problem to be solved by the embodiments of the present invention is to provide a random sampling method and device to solve the technical defects of the prior art that the randomness of the random source is not good and the sampling interval is uneven

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
  • Arbitrary sampling method and apparatus
  • Arbitrary sampling method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] Below in conjunction with accompanying drawing and embodiment, the specific embodiment of the present invention is described in further detail:

[0022] As shown in Figure 2, it is a flow chart of the random sampling method of Embodiment 1 of the present invention, including the following steps:

[0023] In step S201, the network device receives the data packet and reads the sampling counter. The sampling device is preferably a read-up counter, which automatically adds 1 during the reading process (this process is called read-up), and this process will not be interrupted by other engines and tasks. Generally, NP (Network Processor) or other multi-core CPU or ASIC (Application Specific Integrated Circuits, Application Specific Integrated Circuits) hardware for high-speed processing of data packets has the function of automatically reading and counting counters. In the embodiment of the present invention, by using the function of reading and counting up the counter, it i...

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 discloses a random sampling method, which comprises the following steps: network equipment receives data packet and reads from a sampling counter; the network equipment calculates the value of the sampling counter and the quotient N of the sampling period; the network equipment makes decision whether or not to sample the received packet data. The embodiment in the invention provides an efficient and reliable sampling technique. The quotient N changes in every sampling periods, so that the sampled data packets determined by the quotient N in each sampling period are different. The invention can easily perform uniform sampling to data stream.

Description

technical field [0001] The invention relates to the technical field of network communication, in particular to a random sampling method and device. Background technique [0002] With the rapid development of the Internet and the continuous expansion of the network scale, not only the applications on the Internet are becoming more and more complex, but also there are more and more attacks on the network (such as viruses, worms, etc.), so network devices need to have monitoring A function of network traffic distribution. At present, the network equipment in the prior art can provide the statistical function of data packets, but this statistical function can only understand the approximate traffic passing through the network equipment, and cannot understand the distribution of network traffic in detail, such as in the traffic passing through the network equipment From which source IP address is the most traffic, yet this is exactly what is needed to determine the source of a n...

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