# US 2025/0097325 A1 · Configuring a switch for extracting packet header fields

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

- Number: US 2025/0097325 A1
- Document ID: US20250097325A1
- Status: Published application
- Kind: A1
- Application number: 18/967,234
- Filed: 2024-12-03
- Published: 2025-03-20
- Earliest claimed: 2015-08-26
- Assignees: Barefoot Networks, Inc.
- Applicants: Barefoot Networks, Inc.
- Inventors: Patrick BOSSHART
- Web page: https://patentgrep.com/patent/US20250097325A1

## CPC

- H04L 69/22: Parsing or analysis of headers
- H04L 49/3009: {Header conversion, routing tables or routing tags}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A method for generating configuration data for configuring a hardware switch is described. The method receives a description of functionality for the hardware switch. Based on the description, the method generates sets of match and action entries to configure the hardware switch to process packets. The method then determines, for each packet header field in a parse graph that specifies instructions for a parser of the switch to extract packet header fields from packets, whether the packet header field is used or modified by at least one match or action entry. The method generates for the parser of the hardware switch configuration data that instructs the parser to extract (i) packet header fields used or modified by at least one match or action entry to a first set of registers and (ii) packet header fields not used by any match or action entries to a second set of registers.

## Claims

### Claim 1

Integrated circuit for use in packet switching-related operations in a network, the integrated circuit being configurable to be used in a hardware switch in association with ternary content addressable memory (TCAM), the packet switching-related operations being programmable based upon configuration data to be received by the integrated circuit, the integrated circuit comprising:
at least one configurable pipeline to process packet data received by and/or to be output from the integrated circuit; and
a queuing system to queue, at least in part, the packet data processed by the at least one pipeline;
wherein:
the at least one pipeline is configurable to comprise match-action stages and/or at least one other stage;
at least one of the match-action stages is to perform one or more actions associated with one or more portions of at least one set of packet header field data;
the at least one of the match-action stages is to determine the one or more actions based upon matching, at least in part, of the one or more portions of the at least one set of packet header field data with match action table data;
the match action table data is configurable to comprise both (1) TCAM table data to be stored in the TCAM and (2) exact match table data;
the one or more actions and the match action table data are to be configured based upon the configuration data to be provided to the integrated circuit;
the at least one other stage is to generate output packet data for output from the integrated circuit;
the at least one other stage is to generate the output packet data based upon (1) modified packet header data generated by the at least one of the match-action stages and (2) at least one other set of packet header field data; and
the at least one other set of packet header field data is unavailable for match-action stage modification.

### Claim 2 (depends on 1)

The integrated circuit of claim 1, wherein:
the configuration data is to be generated by a compiler based upon user-written code; and
the compiler is not part of the integrated circuit.

### Claim 3 (depends on 1)

The integrated circuit of claim 1, wherein:
the actions are also configurable to comprise:
address modification; and
packet data drop.

### Claim 4 (depends on 1)

The integrated circuit of claim 1, wherein:
the configuration data is configurable to instruct the at least one configurable pipeline to perform packet data parsing.

### Claim 5

Integrated circuit for use in packet switching-related operations in a network, the integrated circuit being configurable to be used in a hardware switch, the packet switching- related operations being programmable based upon configuration data to be received by the integrated circuit, the integrated circuit comprising:
configurable pipelines to process packet data received by and to be output from the integrated circuit; and
a shared queuing system to queue, at least in part, the packet data processed by the configurable pipelines;
wherein:
the configurable pipelines are configurable to comprise match-action stages and at least one deparser stage;
at least one of the match-action stages is to perform one or more actions associated with one or more portions of at least one set of packet header field data;
the at least one of the match-action stages is to determine the one or more actions based upon matching, at least in part, of the one or more portions of the at least one set of packet header field data with match action table data;
the match action table data is configurable to comprise ternary content addressable memory (TCAM) table data to be stored in TCAM;
the one or more actions and the match action table data are to be configured based upon the configuration data to be provided to the integrated circuit;
the at least one deparser stage is to generate output packet data for output from the integrated circuit;
the at least one deparser stage is to generate the output packet data based upon (1) modified packet header data generated by the at least one of the match-action stages and (2) at least one other set of packet header field data; and
the at least one other set of packet header field data is unavailable for match-action stage processing.

### Claim 6 (depends on 5)

The integrated circuit of claim 5, wherein:
the one or more actions are also configurable to comprise:
address modification; and
packet data drop.

### Claim 7 (depends on 5)

The integrated circuit of claim 5, wherein:
the configuration data is configurable to instruct at least one of the configurable pipelines to perform packet data parsing.

### Claim 8

At least one non-transitory machine-readable storage medium storing instructions for being executed by an integrated circuit, the integrated circuit being for use in packet switching-related operations in a network, the integrated circuit being configurable to be used in a hardware switch in association with ternary content addressable memory (TCAM), the packet switching-related operations being programmable based upon configuration data to be received by the integrated circuit, the instructions when executed by the integrated circuit resulting in the integrated circuit being configured to perform operations comprising:
configuring, based upon the configuration data, at least one configurable pipeline of the integrated circuit to process packet data received by and/or to be output from the integrated circuit; and
configuring, based upon the configuration data, a queuing system of the integrated circuit to queue, at least in part, the packet data processed by the at least one pipeline;
wherein:
the at least one pipeline is configurable to comprise match-action stages and/or at least one other stage;
at least one of the match-action stages is to perform one or more actions associated with one or more portions of at least one set of packet header field data;
the at least one of the match-action stages is to determine the one or more actions based upon matching, at least in part, of the one or more portions of the at least one set of packet header field data with match action table data;
the match action table data is configurable to comprise both (1) TCAM table data to be stored in the TCAM and (2) exact match table data;
the one or more actions and the match action table data are to be configured based upon the configuration data to be provided to the integrated circuit;
the at least one other stage is to generate output packet data for output from the integrated circuit;
the at least one other stage is to generate the output packet data based upon (1) modified packet header data generated by the at least one of the match-action stages and (2) at least one other set of packet header field data; and
the at least one other set of packet header field data is unavailable for match-action stage modification.

### Claim 9 (depends on 8)

The at least one non-transitory machine-readable storage medium of claim 8, wherein:
the configuration data is to be generated by a compiler based upon user-written code; and
the compiler is not part of the integrated circuit.

### Claim 10 (depends on 8)

The at least one non-transitory machine-readable storage medium of claim 8, wherein:
the actions are also configurable to comprise:
address modification; and
packet data drop.

### Claim 11 (depends on 8)

The at least one non-transitory machine-readable storage medium of claim 8, wherein:
the configuration data is configurable to instruct the at least one configurable pipeline to perform packet data parsing.

### Claim 12

At least one non-transitory machine-readable storage medium storing instructions for being executed by an integrated circuit, the integrated circuit being for use in packet switching-related operations in a network, the integrated circuit being configurable to be used in a hardware switch, the packet switching-related operations being programmable based upon configuration data to be received by the integrated circuit, the instructions, when executed by the integrated circuit, resulting in the integrated circuit being configured for performance of operations comprising:
configuring, based upon the configuration data, multiple pipelines of the integrated circuit to process packet data received by and to be output from the integrated circuit; and
configuring, based upon the configuration data, a shared queuing system of the integrated circuit to queue, at least in part, the packet data processed by the multiple pipelines;
wherein:
the multiple pipelines are configurable to comprise match-action stages and at least one deparser stage;
at least one of the match-action stages is to perform one or more actions associated with one or more portions of at least one set of packet header field data;
the at least one of the match-action stages is to determine the one or more actions based upon matching, at least in part, of the one or more portions of the at least one set of packet header field data with match action table data;
the match action table data is configurable to comprise ternary content addressable memory (TCAM) table data to be stored in TCAM;
the one or more actions and the match action table data are to be configured based upon the configuration data to be provided to the integrated circuit;
the at least one deparser stage is to generate output packet data for output from the integrated circuit;
the at least one deparser stage is to generate the output packet data based upon (1) modified packet header data generated by the at least one of the match-action stages and (2) at least one other set of packet header field data; and
the at least one other set of packet header field data is unavailable for match-action stage processing.

### Claim 13 (depends on 12)

The at least one non-transitory machine-readable storage medium of claim 12, wherein:
the one or more actions are also configurable to comprise:
address modification; and
packet data drop.

### Claim 14 (depends on 12)

The at least one non-transitory machine-readable storage medium of claim 12, wherein:
the configuration data is configurable to instruct at least one of the multiple pipelines to perform packet data parsing.

### Claim 15

A network switch configurable to be used in association with ternary content addressable memory (TCAM), the network switch being for use in a network, the network switch comprising:
ingress ports;
egress ports; and
an integrated circuit coupled to both the ingress ports and the egress ports, the integrated circuit being for use in packet switching-related operations in the network, the packet switching-related operations being programmable based upon configuration data to be received by the integrated circuit, the integrated circuit comprising:
at least one configurable pipeline to process packet data received by and/or to be output from the integrated circuit; and
a queuing system to queue, at least in part, the packet data processed by the at least one pipeline;
wherein:
the at least one pipeline is configurable to comprise match-action stages and/or at least one other stage;
at least one of the match-action stages is to perform one or more actions associated with one or more portions of at least one set of packet header field data;
the at least one of the match-action stages is to determine the one or more actions based upon matching, at least in part, of the one or more portions of the at least one set of packet header field data with match action table data;
the match action table data is configurable to comprise both (1) TCAM table data to be stored in the TCAM and (2) exact match table data;
the one or more actions and the match action table data are to be configured based upon the configuration data to be provided to the integrated circuit;
the at least one other stage is to generate output packet data for output from the integrated circuit;
the at least one other stage is to generate the output packet data based upon (1) modified packet header data generated by the at least one of the match-action stages and (2) at least one other set of packet header field data; and
the at least one other set of packet header field data is unavailable for match-action stage modification.

### Claim 16 (depends on 15)

The network switch of claim 15, wherein:
the configuration data is to be generated by a compiler based upon user-written code; and
the compiler is not part of the integrated circuit.

### Claim 17 (depends on 15)

The network switch of claim 15, wherein:
the actions are also configurable to comprise:
address modification; and
packet data drop.

### Claim 18 (depends on 15)

The network switch of claim 15, wherein:
the configuration data is configurable to instruct the at least one configurable pipeline to perform packet data parsing.
