# US 2025/0158908 A1 · Flow Telemetry Triggered by Dropped Packets

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

- Number: US 2025/0158908 A1
- Document ID: US20250158908A1
- Status: Published application
- Kind: A1
- Application number: 18/509,185
- Filed: 2023-11-14
- Published: 2025-05-15
- Earliest claimed: 2023-11-14
- Assignees: Arista Networks, Inc.
- Applicants: Arista Networks, Inc.
- Inventors: Sahil MIDHA; Padmanabh RATNAKAR
- Web page: https://patentgrep.com/patent/US20250158908A1

## CPC

- H04L 43/0829: Packet loss
- H04L 41/0894: Policy-based network configuration management
- H04L 43/022: by sampling
- H04L 43/026: using flow identification
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A flow that experiences packet drops is targeted for explicit sampling based on a dropped packet. A sample policy is created that matches on the dropped packet; for example, the match criteria can be based on the 5-tuple of the dropped packet. The sample policy is programmed in the network device that dropped the packet. The sample policy is distributed to and programmed in network devices that are upstream and downstream of the dropping device. Packets in the flow can then be explicitly sampled to capture the flow as it passes through the network. The sample policy can be updated to remove rules directed to flows that had exhibited drops but have not experienced subsequent drops after a user-configurable period of time.

## Claims

### Claim 1

A method in a network device for sampling traffic flows, the method comprising:
receiving ingress data traffic, wherein the ingress data traffic comprises a plurality of flows;
dropping a data packet in the ingress data traffic;
in response to dropping the data packet in the ingress data traffic, generating one or more sampling rules whose match criteria match packets of a flow (“targeted flow”) that contains the dropped data packet;
programming the one or more sampling rules in a memory of the network device;
sampling ingress data traffic received subsequent to the programming using the one or more sampling rules to obtain samples of data packets contained in the targeted flow; and
reporting the samples of data packets to at least one collector.

### Claim 2 (depends on 1)

The method of claim 1, wherein prior to the network device dropping the dropped data packet, data packets in the targeted flow were at most randomly sampled.

### Claim 3 (depends on 1)

The method of claim 1, further comprising deleting the one or more sampling rules at a time when the targeted flow is deemed to be no longer experiencing dropped packets.

### Claim 4 (depends on 3)

The method of claim 3, wherein the targeted flow is deemed to be no longer experiencing dropped packets when the targeted flow has not exhibited a packet drop for a predetermined period of time.

### Claim 5 (depends on 3)

The method of claim 3, further comprising, before deleting the one or more sampling rules, delaying for a period of time after a point in time that the targeted flow is deemed to be no longer experiencing dropped packets.

### Claim 6 (depends on 1)

The method of claim 1, further comprising distributing the one or more sampling rules to other network devices in the network, wherein the other network devices sample their respective ingress data traffic using the one or more sampling rules to identify data packets in the targeted flow and report on their respective identified data packets to the collector.

### Claim 7 (depends on 6)

The method of claim 6, wherein distributing the one or more sampling rules includes sending the one or more sampling rules to a network management system, wherein the network management system distributes the one or more sampling rules to the other network devices.

### Claim 8 (depends on 6)

The method of claim 6, wherein distributing the one or more sampling rules includes the network device sending the one or more sampling rules to the other network devices in the network.

### Claim 9 (depends on 6)

The method of claim 6, wherein the one or more sampling rules are distributed to network devices on a path of the targeted flow.

### Claim 10 (depends on 1)

The method of claim 1, wherein reporting the samples of data packets includes generating Postcard Telemetry packets that comprise the samples of data packets.

### Claim 11

A network device comprising:
one or more computer processors;
a memory; and
a computer-readable storage device comprising instructions for controlling the one or more computer processors to:
receive ingress data traffic, wherein the ingress data traffic comprises a plurality of flows;
drop a data packet in the ingress data traffic;
subsequent to the dropped data packet, trigger sampling a flow (“targeted flow”) that contains the dropped data packet, wherein all data packets of the targeted flow are sampled; and
transmit the sampled data packets of the targeted flow to at least one collector.

### Claim 12 (depends on 11)

The network device of claim 11, wherein the computer-readable storage device further comprises instructions for controlling the one or more computer processors to:
generate one or more sampling rules that match on data packets of the targeted flow in response to the dropped data packet; and
program the one or more sampling rules in the memory of the network device to sample the data packets of the targeted flow.

### Claim 13 (depends on 12)

The network device of claim 12, wherein the computer-readable storage device further comprises instructions for controlling the one or more computer processors to distribute the one or more sampling rules to other network devices in a data network, wherein network devices on a path of the targeted flow sample the data packets of the targeted flow and transmit the sampled data packets to the at least one collector.

### Claim 14 (depends on 12)

The network device of claim 12, wherein the computer-readable storage device further comprises instructions for controlling the one or more computer processors to send the one or more sampling rules to a network management system, wherein the network management system distributes the one or more sampling rules to the other network devices in a data network.

### Claim 15 (depends on 12)

The network device of claim 12, wherein the computer-readable storage device further comprises instructions for controlling the one or more computer processors to send the one or more sampling rules to the other network devices in a data network.

### Claim 16 (depends on 11)

The network device of claim 11, wherein the computer-readable storage device further comprises instructions for controlling the one or more computer processors to terminate sampling the targeted flow when the targeted flow no longer experiences packet drops for a predetermined period of time.

### Claim 17 (depends on 11)

The network device of claim 11, wherein the computer-readable storage device further comprises instructions for controlling the one or more computer processors to report the samples of data packets by generating Postcard Telemetry packets that comprise the samples of data packets.

### Claim 18

A non-transitory computer-readable storage device in a network device, the non-transitory computer-readable storage device having stored thereon computer executable instructions, which when executed, cause the network device to:
receive ingress data traffic, wherein the ingress data traffic comprises a plurality of flows;
drop a data packet in the ingress data traffic;
subsequent to the dropped data packet, trigger sampling a flow (“targeted flow”) that contains the dropped data packet, wherein all data packets of the targeted flow are sampled; and
transmit the sampled data packets of the targeted flow to at least one collector.

### Claim 19 (depends on 18)

The non-transitory computer-readable storage device of claim 18, wherein the computer executable instructions, which when executed, further cause the network device to:
generate one or more sampling rules that match on data packets of the targeted flow in response to the dropped data packet; and
program the one or more sampling rules in a memory of the network device to sample the data packets of the targeted flow.

### Claim 20 (depends on 18)

The non-transitory computer-readable storage device of claim 18, wherein the computer executable instructions, which when executed, further cause the network device to distribute the one or more sampling rules to other network devices in a data network, wherein network devices on a path of the targeted flow sample the data packets of the targeted flow and transmit the sampled data packets to the collector.
