Method and system for random packet interval sampling on network
A random packet and packet interval technology, applied in the network field, can solve the problems of packet processing interval deviation, time-consuming overall structure, and unpredictable sampling, so as to achieve uniform sampling separation, uniform packet interval, and simple effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0065] Embodiment one, see figure 2 , the method for random packet interval sampling on the network provided by the present invention, its specific process is as follows:
[0066] Step 201: the packet receiving module sends the received packet of the corresponding flow to the forwarding memory, and notifies the packet processing module of the arrival information of the packet;
[0067] Wherein, the packet receiving module places the received packet in the dynamic random access memory DRAM of the forwarding memory, and stores the relevant attribute information of the packet in the static random access memory SRAM;
[0068] Step 202: the packet processing module reads the arriving packet from the DRAM in the forwarding memory, and reads the mask N and the first threshold value in the SRAM in the forwarding memory;
[0069] Among them, the mask N is preset by the user and stored in the SRAM, n is the preset average packet interval that needs to be sampled, and the packet proces...
Embodiment 2
[0082] Embodiment 2, due to the uncertainty of the random number, the packet interval may be too large. For this reason, the present invention provides another implementation solution, that is, a packet arrival counter counter is set in the forwarding memory, so that the sampled packet The distribution is relatively even.
[0083] see Figure 4 , the method specifically includes the following steps:
[0084] Step 401: the packet receiving module sends the received packet of the corresponding flow to the forwarding memory, and notifies the packet processing module of the arrival information of the packet;
[0085] Wherein, the packet receiving module places the received packet in the dynamic random access memory DRAM of the forwarding memory, and stores the relevant attribute information of the packet in the static random access memory SRAM;
[0086] Step 402: the packet processing module reads the packet counter counter in the static random access memory SRAM, and writes the...
Embodiment 3
[0102] Embodiment 3, in the above-mentioned second implementation method, a packet counter couner is added in order to make the distribution of the sampled packets more uniform. When the counter is greater than twice the preset average packet interval n that needs to be sampled, it will also The packets of the corresponding flow are sampled, which may lead to too many samples. In view of this, the present invention sets an oversampling counter in the forwarding memory, so that the total number of samples tends to the expected value.
[0103] see Figure 5 , the specific steps of the method are:
[0104] Step 501: the packet receiving module sends the received packet of the corresponding flow to the forwarding memory, and notifies the packet processing module of the arrival information of the packet;
[0105]Wherein, the packet receiving module places the received packet in the dynamic random access memory DRAM of the forwarding memory, and stores the relevant attribute inform...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - 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
