# US 2019/0356563 A1 · Forwarding element data plane with flow size detector

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

- Number: US 2019/0356563 A1
- Document ID: US20190356563A1
- Status: Published application
- Kind: A1
- Application number: 16/051,399
- 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; Masoud Moshref Javadi
- Web page: https://patentgrep.com/patent/US20190356563A1

## 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 has a flow-size detection circuit that generates flow-size density distribution for all or some of the data message flows that it processes for forwarding in a network. The flow-size (FS) detection circuit in some embodiments generates statistical values regarding the processed data message flows, and based on these statistical values, it generates a FS density distribution that expresses a number of flows in different flow-size sub-ranges in a range of flow sizes. In some embodiments, the density distribution is a probabilistic density distribution that is based on probabilistic statistical values that the flow-size detection circuit generates for the data message flows that are processed for forwarding within the network. The FS detection circuit in some embodiments generates probabilistic statistical values for the data message flows by generating hash values from header values of the data message flows and accumulating flow-size values at memory locations identified by the generated hash values. In some embodiments, the generated hashes for different data message flows can collide, which results in the accumulated flow-size values being probabilistic values that might have a certain level of inaccuracy.

## Claims

### Claim 1

For a network forwarding element, a data-plane circuit for forwarding data messages within a network, the data-plane forwarding circuit comprising:
a plurality of programmable stages to perform data message forwarding operations on data tuples associated with data message flow received by the data-plane circuit in order to forward the data message flows within the network; and
a flow-size detection circuit to generate a flow-size density distribution that expresses a number of flows in different flow-size sub-ranges in a range of flow sizes.

### Claim 2 (depends on 1)

The data-plane circuit of claim 1, wherein the density distribution is a probabilistic density distribution that is based on probabilistic statistical values that the flow-size detection circuit generates for the data message flows that are processed for forwarding within the network.

### Claim 3 (depends on 2)

The data-plane circuit of claim 2, wherein the flow-size detection circuit generates probabilistic statistical values for the data message flows by generating hash values from header values of the data message flows and accumulating flow-size values at memory locations identified by the generated hash values.

### Claim 4 (depends on 1)

The data-plane circuit of claim 1, wherein the programmable stages comprise:
a first set of programmable stages programmed to perform the data message forwarding operations on the received data message flows, and
a second set of programmable stages programmed to implement the flow-size detection circuit.

### Claim 5 (depends on 1)

The data-plane circuit of claim 1, wherein the density distribution is a density distribution that is defined over a programmable period of time.

### Claim 6 (depends on 1)

The data-plane circuit of claim 1, wherein the density distribution is a first density distribution that is defined over a first time period, and the flow-size detection circuit generates a second flow-size density distribution that expresses a number of flows in different flow-size sub-ranges in the range of flow sizes during a second time period.

### Claim 7 (depends on 1)

The data-plane circuit of claim 1 further comprising a publishing circuit to send a set of data messages storing the flow-size density distribution to a machine separate from the network forwarding element through the network.

### Claim 8 (depends on 1)

The data-plane circuit of claim 1, wherein
the network forwarding element comprises a control plane circuit to program the programmable stages of the data plane circuit, and
the data-plane circuit further comprising a publishing circuit to send a set of data messages storing the flow-size density distribution to the control plane circuit.

### Claim 9 (depends on 1)

The data-plane circuit of claim 1, wherein
the network forwarding element comprises a control plane circuit to program the programmable stages of the data plane circuit, and
the data-plane circuit further comprising a control plane interface through which the control plane retrieves the flow-size density distribution.

### Claim 10 (depends on 2)

The data-plane circuit of claim 2, wherein the flow-size (FS) density distribution is a first FS density distribution that the FS detection circuit maintains for a particular time period, and the FS detection circuit comprises:
a current message FS distribution tracker to update, for a received message that is part of a particular message flow, a second FS density distribution (FSDD) stored in a first FSDD register based on a first flow size that the FS detection circuit maintains for the particular message flow in the particular time period, the first flow size including the payload size of the received message; and
a previous message FS distribution tracker to update a third FSDD stored in a second FSDD register based on a second flow size that the FS detection circuit maintained for the particular message flow before the processing of the received message,
wherein the first FSDD is computed by subtracting the third FSDD from the second FSDD, and
wherein the update to the third FSDD based on the received message is intended to remove from the first FSDD any previous contribution of any prior message of the particular data message flow to the second FSDD.

### Claim 11

A network forwarding element comprising:
a data-plane circuit to forwarding data messages within a network; and
a control-plane circuit to program the data-plane circuit;
the data-plane forwarding circuit comprising:
a plurality of programmable stages to perform data message forwarding operations on data tuples associated with data message flow received by the data-plane circuit in order to forward the data message flows within the network; and
a flow-size detection circuit to generate a flow-size density distribution that expresses a number of flows in different flow-size sub-ranges in a range of flow sizes.

### Claim 12 (depends on 11)

The network forwarding element of claim 11, wherein the density distribution is a probabilistic density distribution that is based on probabilistic statistical values that the flow-size detection circuit generates for the data message flows that are processed for forwarding within the network.

### Claim 13 (depends on 12)

The network forwarding element of claim 12, wherein the flow-size detection circuit generates probabilistic statistical values for the data message flows by generating hash values from header values of the data message flows and accumulating flow-size values at memory locations identified by the generated hash values.

### Claim 14 (depends on 11)

The network forwarding element of claim 11, wherein the programmable stages comprise:
a first set of programmable stages programmed to perform the data message forwarding operations on the received data message flows, and
a second set of programmable stages programmed to implement the flow-size detection circuit.

### Claim 15 (depends on 11)

The network forwarding element of claim 11, wherein the density distribution is a density distribution that is defined over a programmable period of time.

### Claim 16 (depends on 11)

The network forwarding element of claim 11, wherein the density distribution is a first density distribution that is defined over a first time period, and the flow-size detection circuit generates a second flow-size density distribution that expresses a number of flows in different flow-size sub-ranges in the range of flow sizes during a second time period.

### Claim 17 (depends on 11)

The network forwarding element of claim 11, wherein the data-plane circuit further comprises a publishing circuit to send a set of data messages storing the flow-size density distribution to a machine separate from the network forwarding element through the network.

### Claim 18 (depends on 11)

The network forwarding element of claim 11, wherein the data-plane circuit further comprises a publishing circuit to send a set of data messages storing the flow-size density distribution to the control plane circuit.

### Claim 19 (depends on 11)

The network forwarding element of claim 11, wherein the data-plane circuit further comprises a control plane interface through which the control plane retrieves the flow-size density distribution.

### Claim 20 (depends on 12)

The network forwarding element of claim 12, wherein the flow-size (FS) density distribution is a first FS density distribution that the FS detection circuit maintains for a particular time period, and the FS detection circuit comprises:
a current message FS distribution tracker to update, for a received message that is part of a particular message flow, a second FS density distribution (FSDD) stored in a first FSDD register based on a first flow size that the FS detection circuit maintains for the particular message flow in the particular time period, the first flow size including the payload size of the received message; and
a previous message FS distribution tracker to update a third FSDD stored in a second FSDD register based on a second flow size that the FS detection circuit maintained for the particular message flow before the processing of the received message,
wherein the first FSDD is computed by subtracting the third FSDD from the second FSDD, and
wherein the update to the third FSDD based on the received message is intended to remove from the first FSDD any previous contribution of any prior message of the particular data message flow to the second FSDD.
