# US 2016/0254967 A1 · Dynamically determining packet sampling rates

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2016/0254967 A1
- Document ID: US20160254967A1
- Status: Published application
- Kind: A1
- Application number: 15/150,802
- Filed: 2016-05-10
- Published: 2016-09-01
- Earliest claimed: 2013-01-17
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Deanna L. Brown; Gregory P. Wurth
- Web page: https://patentgrep.com/patent/US20160254967A1

## CPC

- H04L 43/024: by adaptive sampling
- H04L 43/062: related to network traffic
- H04L 43/16: Threshold monitoring
- H04L 43/50: Testing arrangements
- H04L 43/02: Capturing of monitoring data
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

For dynamically determining packet sampling rates, a method including setting a packet sampling rate for one or more switch ports, collecting for an interval of time a plurality of statistics for the one or more switch ports, and adjusting the packet sampling rate in response to one or more of the plurality of statistics.

## Claims

### Claim 1

A method comprising:
setting a packet sampling rate for a plurality of switch ports;
collecting for an interval of time a plurality of statistics for the plurality of switch ports; and
adjusting the packet sampling rate in response to one or more of the plurality of statistics, wherein the packet sampling rate is adjusted in response to a sample rate percentage for a first port varying more than a threshold amount from a sample rate percentage for a second port.

### Claim 2 (depends on 1)

The method of claim 1, further comprising tracking the average packet length over time.

### Claim 3 (depends on 1)

The method of claim 1, further comprising adjusting the packet sampling rate in response to a maximum sample per second rate for a first statistic gathering period varying more than a threshold amount from a maximum sample per second rate for a second statistic gathering period.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
measuring a sample wait time; and
adjusting the packet sampling rate in response to the sample wait time.

### Claim 5 (depends on 4)

The method of claim 4, further comprising triggering an early adjustment of the packet sampling rate in response to a sample wait time outside of a range.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
determining a maximum number of samples that can be processed per second; and
setting an initial packet sampling rate for a plurality of switch ports, wherein the initial packet sampling rate is calculated using the maximum number of samples that can be processed per second as a factor.

### Claim 7

An apparatus comprising:
a sampling rate module that sets a packet sampling rate for a plurality of switch ports;
a statistics module that collects for an interval of time a plurality of statistics for the plurality of switch ports; and
an adjustment module that adjusts the packet sampling rate in response to one or more of the plurality of the statistics, wherein the packet sampling rate is adjusted in response to a sample rate percentage for a first port varying more than a threshold amount from a sample rate percentage for a second port.

### Claim 8 (depends on 7)

The apparatus of claim 7, further comprising a tracking module that tracks the average packet length over time.

### Claim 9 (depends on 7)

The apparatus of claim 7, wherein the plurality of statistics includes one or more of average packet length, average port speed, maximum port utilization, port count, and actual samples received per second.

### Claim 10 (depends on 7)

The apparatus of claim 7, further comprising a tracking module that measures a sample wait time, and the adjustment module adjusts the packet sampling rate in response to the sample wait time.

### Claim 11 (depends on 10)

The apparatus of claim 10, wherein the adjustment module triggers an early adjustment of the packet sampling rate in response to a sample wait time outside of a range.

### Claim 12 (depends on 7)

The apparatus of claim 7, wherein the adjustment module adjusts the packet sampling rate in response to the statistics module detecting a maximum sample per second rate for a first statistic gathering period varying more than a threshold amount from a maximum sample per second rate for a second statistic gathering period.

### Claim 13 (depends on 7)

The apparatus of claim 7, wherein the adjustment module determines a maximum number of samples that can be processed per second, and the sampling rate module sets an initial packet sampling rate for a plurality of switch ports, wherein the initial packet sampling rate is calculated using the maximum number of samples that can be processed per second as a factor.

### Claim 14

A computer-program product, the computer program product comprising a computer-readable storage medium having executable code embodied therein, the executable code readable by a processor to:
set a packet sampling rate for a plurality of switch ports;
collect for an interval of time a plurality of statistics for the plurality of switch ports; and
adjust the packet sampling rate in response to one or more of the plurality of statistics, wherein the packet sampling rate is adjusted in response to a sample rate percentage for a first port varying more than a threshold amount from a sample rate percentage for a second port.

### Claim 15 (depends on 14)

The computer-program product of claim 14, further comprising executable code readable by the processor to track the average packet length over time.

### Claim 16 (depends on 14)

The computer-program product of claim 14, wherein the plurality of statistics includes one or more of average packet length, average port speed, maximum port utilization, port count, and actual samples received per second.

### Claim 17 (depends on 14)

The computer-program product of claim 14, further comprising executable code readable by the processor to:
measure a sample wait time; and
adjust the packet sampling rate in response to the sample wait time.

### Claim 18 (depends on 17)

The computer-program product of claim 17, further comprising executable code readable by the processor to trigger an early adjustment of the packet sampling rate in response to a sample wait time outside of a range.

### Claim 19 (depends on 14)

The computer-program product of claim 14, further comprising executable code readable by the processor to adjust the packet sampling rate in response to a maximum sample per second rate for a first statistic gathering period varying more than a threshold amount from a maximum sample per second rate for a second statistic gathering period.

### Claim 20 (depends on 14)

The computer-program product of claim 14, further comprising executable code readable by the processor to:
determine a maximum number of samples that can be processed per second; and
set an initial packet sampling rate for a plurality of switch ports, wherein the initial packet sampling rate is calculated using the maximum number of samples that can be processed per second as a factor.
