# US 10,958,770 B2 · Realization of a programmable forwarding pipeline through packet header summaries in a data processing unit

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

- Number: US 10,958,770 B2
- Document ID: US10958770B2
- Status: Granted
- Kind: B2
- Application number: 16/160,609
- Filed: 2018-10-15
- Published: 2020-04-16
- Granted: 2021-03-23
- Earliest claimed: 2018-10-15
- Assignees: Fungible, Inc.
- Applicants: Fungible, Inc.
- Inventors: Hariharan Lakshminarayanan Thantry; Srihari Raju Vegesna; Stimit Kishor Oak; Vikas Minglani; Rohit Sunkam Ramanujam; John David Huber; Deepak Goel
- Web page: https://patentgrep.com/patent/US10958770B2

## CPC

- H04L 69/22: Parsing or analysis of headers
- H04L 45/745: Address table lookup; Address filtering
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

This disclosure describes techniques that include storing, during parsing of a data unit or a network packet, information (i.e., “summary information”) that identifies how the network packet has been process and/or other aspects of the parsing process. In one example, this disclosure describes a method that includes parsing a packet header from a data unit, wherein parsing the packet header includes storing in result vector storage each of a plurality of data items derived from the packet header, the result vector storage having a result vector format defining fields within the result vector storage for storing each of the plurality of data items; storing in template storage, for each of the plurality of data items, summary information about the plurality of data items stored in the result vector storage; and processing, by the packet-processing integrated circuit and based on the summary information and the plurality of data items, the network packet.

## Claims

### Claim 1

A method comprising:
parsing, by a hardware-based packet-processing integrated circuit, a packet header from a data unit, wherein parsing the packet header includes storing in result vector storage each of a plurality of data items derived from the packet header, the result vector storage having bit allocations for the plurality of data items that are specified by a result vector format, the result vector format being one of a plurality of result vector formats, and wherein each of the result vector formats specifies a different bit allocation for the result vector storage so that at least one set of bits within the result vector storage is used for a different field of data in each of the plurality of result vector formats;
storing in a template storage within the packet-processing integrated circuit and for each of the plurality of data items, summary information about the plurality of data items stored in the result vector storage, wherein storing summary information includes storing information about the result vector format that enables the bit allocations for the result vector format to be identified; and
processing, by the packet-processing integrated circuit and based on the summary information and the plurality of data items stored in the result vector storage, the network packet.

### Claim 2 (depends on 1)

The method of claim 1,
wherein parsing the packet header includes traversing, with a packet parser of the packet-processing integrated circuit, a parse graph that includes a plurality of nodes and directed edges between each of the plurality of nodes.

### Claim 3 (depends on 1)

The method of claim 1, wherein processing the network packet includes:
determining, based on the summary information and with a packet parser of the packet-processing integrated circuit, the result vector format.

### Claim 4 (depends on 1)

The method of claim 1, wherein processing the network packet includes:
constructing a key from at least one of the plurality of data items stored within the result vector storage;
performing a lookup in a table, using the key, to identify lookup information; and
storing the lookup information to a metadata bus within the packet-processing integrated circuit.

### Claim 5 (depends on 4)

The method of claim 4, wherein the table includes a plurality of lookup tables that each include different fields.

### Claim 6 (depends on 5)

The method of claim 5, wherein the plurality of lookup tables are logical tables overlaid on one memory device within the packet-processing integrated circuit.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
configuring the packet-processing integrated circuit, based on source code, to parse the packet header and store the summary information.

### Claim 8 (depends on 7)

The method of claim 7, wherein configuring the packet-processing integrated circuit is performed by a compiler, and wherein configuring the packet-processing integrated circuit includes:
choosing, based on the source code, the result vector format.

### Claim 9 (depends on 8)

The method of claim 8, wherein choosing the result vector format includes:
choosing a first result vector format for a first value of the summary information; and
choosing a second result vector format for a second value of the summary information, wherein the first result vector format is different than the second result vector format, and wherein the first result vector format includes allocated space for a data item type not included within the second result vector format.

### Claim 10

An integrated circuit comprising:
a storage device;
processing circuitry having access to the storage device and configured to:
parse a packet header from a data unit, wherein parsing the packet header includes storing in result vector storage each of a plurality of data items derived from the packet header, the result vector storage having bit allocations for the plurality of data items that are specified by a result vector format, the result vector format being one of a plurality of result vector formats, and wherein each of the result vector formats specifies a different bit allocation for the result vector storage so that at least one set of bits within the result vector storage is used for a different field of data in each of the plurality of result vector formats, and
store in template storage, and for each of the plurality of data items, summary information about the plurality of data items stored in the result vector storage, wherein storing summary information includes storing information about the result vector format that enables the result vector format to be identified from among a plurality of different result vector formats; and
a pipeline configured to process the network packet based on the summary information and the plurality of data items stored in the result vector storage.

### Claim 11 (depends on 10)

The integrated circuit of claim 10,
wherein to parse the packet header, the processing circuitry is further configured to traverse a parse graph that includes a plurality of nodes and directed edges between each of the plurality of nodes.

### Claim 12 (depends on 10)

The integrated circuit of claim 10, wherein to process the network packet the pipeline is further configured to:
determine, based on the summary information, the result vector format.

### Claim 13 (depends on 10)

The integrated circuit of claim 10, wherein to process the network packet, the pipeline is further configured to:
construct a key from at least one of the plurality of data items stored within the result vector storage;
perform a lookup in a table, using the key, to identify lookup information; and
store the lookup information to a metadata bus within the integrated circuit.

### Claim 14 (depends on 13)

The integrated circuit of claim 13, wherein the table includes a plurality of lookup tables that each include different fields.

### Claim 15 (depends on 14)

The integrated circuit of claim 14, wherein the plurality of lookup tables are logical tables overlaid on one memory device within the integrated circuit.

### Claim 16 (depends on 15)

The integrated circuit of claim 15, wherein the processing circuitry is further configured to:
configure the integrated circuit, based on source code, to parse the packet header and store the summary information.

### Claim 17 (depends on 16)

The integrated circuit of claim 16, wherein configuring the integrated circuit is performed by a compiler that chooses, based on source code, the result vector format.

### Claim 18 (depends on 17)

The integrated circuit of claim 17, wherein to choose the result vector format, the compiler is further configured to:
choose a first result vector format for a first value of the summary information; and
choose a second result vector format for a second value of the summary information, wherein the first result vector format is different than the second result vector format, and wherein the first result vector format includes allocated space for a data item type not included within the second result vector format.

### Claim 19

A computer-readable storage medium comprising instructions that, when executed, configure processing circuitry to:
parse a packet header from a data unit, wherein parsing the packet header includes storing in result vector storage each of a plurality of data items derived from the packet header, the result vector storage having bit allocations for the plurality of data items that are specified by a result vector format, the result vector format being one of a plurality of result vector formats, and wherein each of the result vector formats specifies a different bit allocation for the result vector storage so that at least one set of bits within the result vector storage is used for a different field of data in each of the plurality of result vector formats;
store, in a template storage and for each of the plurality of data items, summary information about the plurality of data items stored in the result vector storage, wherein storing summary information includes storing information about the result vector format that enables the result vector format to be identified from among a plurality of different result vector formats; and
process, based on the summary information and the plurality of data items stored in the result vector storage, the network packet.

### Claim 20 (depends on 19)

The computer-readable storage medium of claim 19,
wherein to parse the packet header, the instructions further configure the processing circuitry to traverse a parse graph that includes a plurality of nodes and directed edges between each of the plurality of nodes.
