Network Device Packet Sampling Rate Compensation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Time-based sampling in network devices often results in oversampling due to not accounting for the actual packet rate, leading to reduced accuracy of network traffic characteristics and unnecessary resource burden.

Innovation Solution

Implementing a method that compensates for time-based sampling by packet elimination, where packets are replicated, and based on a configured sample rate and current sample rate, packets are either queued or dropped to maintain the desired sampling rate, using a credit refresh scheme and identification hash keys to manage sampling across multiple monitoring points.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Device complexity

If time-based sampling is used to simplify implementation, then device complexity is reduced, but measurement precision deteriorates due to oversampling

Engineering Contradiction:
Improvesampling implementation complexityVSAvoidnetwork traffic characteristics estimation accuracy
Core Design Contradiction:
Device complexityVSMeasurement precision

Solution Approach 1:

The patent implements feedback by continuously monitoring the actual packet rate and comparing it with the configured sample rate. Based on this comparison, the system dynamically adjusts the sampling behavior through sample credits, ensuring that the desired sample rate is maintained while simplifying the implementation compared to complex adaptive sampling algorithms.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The system changes the sampling parameter dynamically by using sample credits that are allocated based on the configured sample rate and consumed based on actual packet sampling. This parameter adjustment mechanism allows the system to adapt to varying packet rates while maintaining a simple time-based sampling implementation structure.

Inventive Principle:
Principle #35Parameter changes

2Ease of operation

If time-based sampling is used to achieve simple implementation, then ease of operation is improved, but loss of substance increases due to unnecessary packets being sampled

Engineering Contradiction:
Improvesampling scheme implementation easeVSAvoidnetwork resources consumption
Core Design Contradiction:
Ease of operationVSLoss of substance

Solution Approach 1:

The feedback mechanism monitors the relationship between configured sample rate and actual sampling rate, adjusting packet acceptance through sample credits to prevent unnecessary sampling of packets when the actual rate is below maximum expected rates, thus conserving network resources while maintaining operational simplicity.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The sampling system serves itself by using the information from packet rate monitoring to automatically adjust its own sampling behavior through the sample credit mechanism, eliminating the need for external control while optimizing resource usage and maintaining simple implementation.

Inventive Principle:
Principle #25Self-service

3Productivity

If time-based sampling samples N packets in every predetermined time interval, then productivity is improved by maintaining consistent sampling rate, but measurement precision deteriorates when actual packet rate is less than maximum

Engineering Contradiction:
Improvesampling rate consistencyVSAvoidnetwork traffic characteristics estimation accuracy
Core Design Contradiction:
ProductivityVSMeasurement precision

Solution Approach 1:

The patent introduces dynamics by making the sampling process adaptive through sample credits. While the time-based sampling structure remains static and simple, the actual sampling behavior becomes dynamic as packets are selectively accepted or rejected based on the comparison between configured and actual sample rates, improving precision without sacrificing productivity.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The system changes the effective sampling parameter by using sample credits to adjust the number of packets sampled from the predetermined time interval. This allows the system to maintain consistent time-based sampling operation while dynamically adjusting the actual sampling rate to match network conditions, resolving the precision-productivity contradiction.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS8861374B2Methods and apparatus for compensating for time-based sampling by sample packet elimination during export of sampled packets
Publication Date: 2014.10.14 CISCO TECHNOLOGY INC
  • US8861374B2 patent drawing
  • US8861374B2 patent drawing
  • US8861374B2 patent drawing

AI summary

Methods and apparatus for compensating for time-based sampling using packet elimination are disclosed herein. An example method may be implemented in a network device communicatively connected to a network. The method may include: receiving a packet over the network at a monitoring point; replicating the received packet; determining whether to sample the replicated packet using a time-based sampling scheme; upon determining that the replicated packet should be sampled, queuing the replicated packet to a port of the network device; determining whether to eliminate the queued packet by comparing a configured sample rate with a current sample rate; upon determining that the current sample rate is less than the configured sample rate, exporting the queued packet from the network device; and upon determining that the current sample rate is greater than or equal to the configured sample rate, dropping the queued packet.