# US 2022/0294711 A1 · Network telemetry

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

- Number: US 2022/0294711 A1
- Document ID: US20220294711A1
- Status: Published application
- Kind: A1
- Application number: 17/469,264
- Filed: 2021-09-08
- Published: 2022-09-15
- Earliest claimed: 2021-03-09
- Assignees: Arista Networks, Inc.
- Applicants: Arista Networks, Inc.
- Inventors: Vijay Rangarajan; Hugh Holbrook
- Web page: https://patentgrep.com/patent/US20220294711A1

## CPC

- H04L 43/02: Capturing of monitoring data
- H04L 43/026: using flow identification
- H04L 43/12: Network monitoring probes
- H04L 45/745: Address table lookup; Address filtering
- H04L 45/748: using longest matching prefix
- H04L 47/11: Identifying congestion
- H04L 47/2441: relying on flow classification, e.g. using integrated services [IntServ]
- H04L 47/32: by discarding or delaying data units, e.g. packets or frames
- H04L 47/34: ensuring sequence integrity, e.g. using sequence numbers
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A networking system may include one or more network nodes such as one or more network switches. The network switches include respective matching engines. The matching engines across the network switches may be configured to match on a consistent set of matching criteria based on low and high entropy data fields to sample a same subset of packets for each network flow of interest. The sampled packets may include annotations and may be sent to collector circuitry for analysis. Controller circuitry may enforce consistent sampling policies across the network switches.

## Claims

### Claim 1

A method of operating first and second network devices respectively having first and second matching engines, the method comprising:
configuring each of the first and second matching engines to match at least on a low entropy data field associated with a network flow and at least on a high entropy data field, the high entropy data field configured to have a plurality of values across network packets in the network flow; and
using the first and second matching engines to identify a same network packet at least partly based on a subset of the values for the high entropy data field, wherein the network packet has a value at the high entropy data field that is within the subset of values.

### Claim 2 (depends on 1)

The method defined in claim 1, wherein the subset of the values for the high entropy data field is determined at least by a bit value at a corresponding bit location for the high entropy data field, and configuring each of the first and second matching engines to match at least on the low entropy data field and at least on the high entropy data field comprises configuring each of the first and second matching engines to match at least on the low entropy data field and at least on the corresponding bit location for the high entropy data field.

### Claim 3 (depends on 2)

The method defined in claim 2, wherein the high entropy data field comprises a data field selected from the group consisting of: a layer 4 (L4) checksum field, an Internet Protocol (IP) packet identification field, a Transmission Control Protocol (TCP) sequence number field, a Real-time Transport Protocol (RTP) timestamp field, and an RTP sequence number field.

### Claim 4 (depends on 3)

The method defined in claim 3, wherein the low entropy data field comprises a data field selected from the group consisting of: a source IP address field, a destination IP address field, an IP protocol type field, a source L4 port field, and a destination L4 port field.

### Claim 5 (depends on 1)

The method defined in claim 1, further comprising:
using first control circuitry in the first network device to send a first annotated version of the identified network packet to collector circuitry and using second control circuitry in the second network device to send a second annotated version of the identified network packet to the collector circuitry, wherein the first and second network devices respectively include first and second clocks synchronized with each other, the first annotated version of the network packet includes a first timestamp generated based on the first clock, and the second annotated version of the network packet includes a second timestamp generated based on the second clock.

### Claim 6 (depends on 5)

The method defined in claim 5, wherein the first annotated version of the network packet comprises information consisting of: an ingress interface of the network packet at the first network device, an egress interface of the network packet at the first network device, an ingress time at the first network device, an egress time at the first network device, an identifier for the first network device, and an identifier for a sampling policy based on which the first network packet is matched.

### Claim 7 (depends on 1)

The method defined in claim 1 further comprising:
using the first device to send capability information associated with the first matching engine to controller circuitry; and
after using the first device to send the capability information, providing the first matching engine with a matching criterion associated with a sampling policy, based on the low entropy data field and the high entropy data field, and based on which the network packet is identified using the first matching engine.

### Claim 8 (depends on 7)

The method defined in claim 7, wherein using the first device to send the capability information comprises using the first device to send the capability information in response to a query for the capability information from the controller circuitry.

### Claim 9 (depends on 7)

The method defined in claim 7 further comprising:
providing the second matching engine with the matching criterion associated with the sampling policy, based on the low entropy data field and the high entropy data field, and based on which the network packet is identified using the second matching engine.

### Claim 10 (depends on 7)

The method defined in claim 7, wherein the sampling policy is associated with a first sampling rate of the network packets in the network flow, the method further comprising:
providing the first matching engine with an updated matching criterion associated with an updated sampling policy and based on the low entropy data field and the high entropy data field, wherein the updated sampling policy is associated with a second sampling rate of the network packets in the network flow.

### Claim 11 (depends on 1)

The method defined in claim 1, wherein the first and second matching engines each comprise ternary content addressable memory circuitry.

### Claim 12

A non-transitory computer-readable storage medium comprising instructions for:
identifying a sampling policy for a network flow based at least on a first data field having a fixed value across network packets in the network flow and based at least on a second data field having variable values across the network packets in the network flow; and
configuring a network switch based on the sampling policy to match incoming network packets at the network switch on the first data field and on a portion of the second data field, wherein the network switch is configured to forward and sample a first subset of the network packets in the network flow based on the sampling policy and is configured to forward without sampling a second subset of the network packets in the network flow based on the sampling policy.

### Claim 13 (depends on 12)

The non-transitory computer-readable storage medium defined in claim 12 further comprising instructions for:
configuring an additional network switch based on the sampling policy, wherein the additional network switch is configured to forward and sample the first subset of the network packets in the network flow.

### Claim 14 (depends on 13)

The non-transitory computer-readable storage medium defined in claim 13 further comprising instructions for:
collecting a first set of sampled network packets associated with the first subset of the network packets from the network switch;
collecting a second set of sampled network packets associated with the first subset of the network packets from the additional network switch; and
identifying a forwarding path for each network packet in the first subset of network packets based on the first and second sets of sampled network packets.

### Claim 15 (depends on 14)

The non-transitory computer-readable storage medium defined in claim 14, wherein the network switch and the additional network switch include respective clocks synchronized with each other, each of the sampled network packets in the first set includes temporal information generated based on the clock at the network switch, and each of the sampled network packets in the second set includes temporal information generated based on the clock at the additional network switch.

### Claim 16 (depends on 12)

The non-transitory computer-readable storage medium defined in claim 12 further comprising instructions for:
identifying capability information associated with the network switch before configuring the network switch based on the sampling policy.

### Claim 17

A method of sampling network traffic in a network, the method comprising:
receiving a network packet in a network flow at a network node, the network packet having a first value at a first data field and having a second value at a second data field, wherein the first value is fixed across corresponding first data fields in respective network packets in the network flow, and the second value is variable across corresponding second data fields in the respective network packets in the network flow;
comparing one or more bits allocated to the second data field in the network packet to corresponding one or more bits in a matching criterion for a sampling policy; and
in response to a match between the one or more of bits in the network packet and the corresponding one or more bits in the matching criterion, generating a sample of the network packet at least in part by annotating a copy of the network packet.

### Claim 18 (depends on 17)

The method defined in claim 17, wherein the annotated copy of the network packet includes locally meaningful annotations, and generating the sample of the network packet comprises generating the sample of the network packet at least in part by translating the locally meaningful annotations into globally meaningful annotations.

### Claim 19 (depends on 18)

The method defined in claim 18 further comprising:
providing the sample of the network packet having globally meaningful annotations to collector circuitry using a tunneling protocol.

### Claim 20 (depends on 17)

The method defined in claim 17 further comprising:
generating a plurality of samples of the network packet at corresponding network nodes across the network.
