# US 2019/0356593 A1 · Data plane with heavy hitter detector

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

- Number: US 2019/0356593 A1
- Document ID: US20190356593A1
- Status: Published application
- Kind: A1
- Application number: 16/051,417
- Filed: 2018-07-31
- Published: 2019-11-21
- Earliest claimed: 2018-05-21
- Assignees: Barefoot Networks, Inc.
- Applicants: Barefoot Networks, Inc.
- Inventors: Georgios Nikolaidis; Jeongkeun Lee; Changhoon Kim
- Web page: https://patentgrep.com/patent/US20190356593A1

## CPC

- H04L 41/142: using statistical or mathematical methods
- H04L 43/026: using flow identification
- H04L 43/16: Threshold monitoring
- H04L 45/16: Multipoint routing
- H04L 45/38: {Flow based routing}
- H04L 45/64: using an overlay routing layer
- H04L 45/7453: using hashing
- H04L 47/11: Identifying congestion
- H04L 47/2441: relying on flow classification, e.g. using integrated services [IntServ]
- H04L 47/2483: involving identification of individual flows
- H04L 47/32: by discarding or delaying data units, e.g. packets or frames
- H04L 49/3009: {Header conversion, routing tables or routing tags}
- H04L 49/90: Buffering arrangements
- H04L 45/74: Address processing for routing
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Some embodiments of the invention provide a data-plane forwarding circuit (data plane) that can be configured to identify large data message flows that it processes for forwarding in a network. In this document, large data message flows are referred to as heavy hitter flows. To perform its forwarding operations, the data plane includes several data message processing stages that are configured to process the data tuples associated with the data messages received by the data plane. In some embodiments, parts of the data plane message-processing stages are also configured to implement a heavy hitter detection (HHD) circuit. The operations of the data plane's message processing stages are configured by a control plane of the data plane's forwarding element in some embodiments.

## Claims

### Claim 1

A method of identifying large data message flows processed by a network forwarding element, the method comprising
in a data-plane circuit of the network forwarding element
performing data message forwarding operations to process received data messages for forwarding within a network, and
generating probabilistic statistical values regarding the processed data message flows,
based on the generated probabilistic statistical values, identifying a subset of the processed data messages to be part of large data message flows, and
associating with a large-flow tag each data message in the subset of data message in order to designate the data message as being part of a large flow.

### Claim 2 (depends on 1)

The method of claim 1 further comprising:
configuring a first set of programmable stages of the data-plane circuit to perform the data message forwarding operations; and
configuring a second set of programmable stages to implement a detection circuit that (i) generates probabilistic statistical values, identifies the subset of the processed data messages to be part of large data message flows, and associates each data message in the subset of data message with the large-flow tag.

### Claim 3 (depends on 1)

The method of claim 1 further comprising:
for a particular data message that is associated with the large-flow tag, performing a forwarding operation based on the large-flow tag.

### Claim 4 (depends on 3)

The method of claim 3, wherein the forwarding operation comprises selecting, from a plurality of paths to a destination, a path for the particular data message and adjusting at least one header value of the particular data message to ensure that the particular data message traverses the selected path.

### Claim 5 (depends on 3)

The method of claim 3, wherein
the particular data message is addressed to a first destination address in the network,
the forwarding operation comprises sending a copy of the particular data message to a computer at a second destination address in the network, said computer to further analyze data messages associated with large flows.

### Claim 6 (depends on 3)

The method of claim 3, wherein the forwarding operation is performed by another network forwarding element.

### Claim 7 (depends on 1)

The method of claim 1 further comprising:
based on the large flow tags, performing a queue management operation in a traffic manager of the data-plane circuit in order to ensure that large flows do not adversely affect processing of smaller flows.

### Claim 8 (depends on 1)

The method of claim 1, wherein the data-plane circuit comprises a set of stateful storages, the method further comprising storing in the set of stateful storages the generated probabilistic statistical values for the data message flows.

### Claim 9 (depends on 1)

The method of claim 1 further comprising
for a received data message, generating a hash value based on a set of identifiers associated with the data message,
using the generated address value to identify a location in a set of stateful storages, and
based on a set of attributes of the received data message, incrementing a probabilistic statistical value stored at the identified storage location.

### Claim 10 (depends on 9)

The method of claim 9 further comprising periodically resetting the values stored in the set of storage locations.

### Claim 11

A non-transitory machine readable medium storing a program for identifying large data message flows processed by a network forwarding element, the program for execution by at least one hardware processing unit, the program comprising sets of instructions for:
configuring a first set of programmable stages of a data-plane circuit of the network forwarding element to perform data message forwarding operations to process received data messages for forwarding within a network, and
configuring a second set of programmable stages to implement a detection circuit that (i) generates probabilistic statistical values regarding the processed data message flows, (ii) based on the generated probabilistic statistical values, identifies a subset of the processed data messages to be part of large data message flows, and (3) associating with a large-flow tag each data message in the subset of data message in order to designate the data message as being part of a large flow.

### Claim 12 (depends on 11)

The non-transitory machine readable medium of claim 11, wherein the hardware processing unit is a hardware processing unit of a control-plane circuit of the network forwarding element.

### Claim 13 (depends on 11)

The non-transitory machine readable medium of claim 11, wherein the program further comprises a set of instructions for performing, for a particular data message that is associated with the large-flow tag, a forwarding operation based on the large-flow tag.

### Claim 14 (depends on 13)

The non-transitory machine readable medium of claim 13, wherein the forwarding operation comprises selecting, from a plurality of paths to a destination, a path for the particular data message and adjusting at least one header value of the particular data message to ensure that the particular data message traverses the selected path.

### Claim 15 (depends on 13)

The non-transitory machine readable medium of claim 13, wherein
the particular data message is addressed to a first destination address in the network,
the forwarding operation comprises sending a copy of the particular data message to a computer at a second destination address in the network, said computer to further analyze data messages associated with large flows.

### Claim 16 (depends on 13)

The non-transitory machine readable medium of claim 13, wherein the forwarding operation is performed by another network forwarding element.

### Claim 17 (depends on 11)

The non-transitory machine readable medium of claim 11, wherein the program further comprises a set of instructions for performing, based on the large flow tags, a queue management operation in a traffic manager of the data-plane circuit in order to ensure that large flows do not adversely affect processing of smaller flows.

### Claim 18 (depends on 11)

The non-transitory machine readable medium of claim 11, wherein the data-plane circuit comprises a set of stateful storages, the program further comprising a set of instructions for storing in the set of stateful storages the generated probabilistic statistical values for the data message flows.

### Claim 19 (depends on 11)

The non-transitory machine readable medium of claim 11, wherein the program further comprises sets of instructions for
generating, for a received data message, a hash value based on a set of identifiers associated with the data message,
using the generated address value to identify a location in a set of stateful storages, and
based on a set of attributes of the received data message, incrementing a probabilistic statistical value stored at the identified storage location.

### Claim 20 (depends on 19)

The non-transitory machine readable medium of claim 19, wherein the program further comprises a set of instructions for periodically resetting the values stored in the set of storage locations.

### Claim 21

A method of identifying large data message flows processed by a network forwarding element, the method comprising
for a data message received by the forwarding element, generating two sets of a plurality of storage address values;
to account for the received data message, incrementing statistical values stored in two sets of a plurality of storage locations identified by the two sets of generated address values;
based on a set of interleaving criteria that identifies one of the two sets of storage locations that stores the statistical values that have to be analyzed for the message, analyzing the statistical values stored by the identified set of storage locations to determine whether the message is part of a large flow;
designating the data message as a message that is part of a large flow based on a determination that the data message is part of a large flow.
