# US 2022/0279055 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 2022/0279055 A1
- Document ID: US20220279055A1
- Status: Published application
- Kind: A1
- Application number: 17/570,994
- Filed: 2022-01-07
- Published: 2022-09-01
- Earliest claimed: 2015-08-26
- Assignees: Barefoot Networks, Inc.
- Applicants: Barefoot Networks, Inc.
- Inventors: Patrick BOSSHART
- Web page: https://patentgrep.com/patent/US20220279055A1

## 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 at position 1

1-20. (canceled)

### Claim 21

An apparatus comprising:
a forwarding element comprising:
circuitry to perform one or more match-action operations and
circuitry to provide one or more values that did not trigger performance of the one or more match-action operations or were not modified by one or more match-action operations by the circuitry to perform match-action operations.

### Claim 22 (depends on 21)

The apparatus of claim 21, wherein the one or more values comprise one or more packet header field values.

### Claim 23 (depends on 21)

The apparatus of claim 21, wherein the one or more values comprise one or more of: GENEVE variable length fields, multi-layer tunneling packet header data, or TCP packet header bytes.

### Claim 24 (depends on 21)

The apparatus of claim 21, comprising:
circuitry to generate at least one packet that includes the one or more values and
circuitry to cause transmission of the at least one packet.

### Claim 25 (depends on 21)

The apparatus of claim 21, comprising:
circuitry to provide one or more values that triggered performance of the one or more match-action operations or were modified by one or more match-action operations by the circuitry to perform match-action operations.

### Claim 26 (depends on 23)

The apparatus of claim 23, wherein the one or more values that triggered performance of the one or more match-action operations or were modified by one or more match-action operations by the circuitry to perform match-action operations comprise one or more packet header field values.

### Claim 27 (depends on 21)

The apparatus of claim 21, wherein the circuitry to provide one or more values that did not trigger performance of the one or more match-action operations or were not modified by one or more match-action operations by the circuitry to perform match-action operations is configured using P4 code.

### Claim 28

A non-transitory machine readable medium storing a program which when executed by at least one processing unit configures a packet processing pipeline of a hardware forwarding element, the program comprising sets of instructions to:
configure a packet processing pipeline that performs match-action operations to:
provide one or more values that did not trigger performance of the one or more match-action operations or were not modified by one or more match-action operations by the circuitry to perform match-action operations.

### Claim 29 (depends on 28)

The non-transitory machine readable medium of claim 28, wherein the one or more values comprise one or more packet header field values.

### Claim 30 (depends on 28)

The non-transitory machine readable medium of claim 28, wherein the one or more values comprise one or more of: GENEVE variable length fields, multi-layer tunneling packet header data, or TCP packet header bytes.

### Claim 31 (depends on 28)

The non-transitory machine readable medium of claim 28, storing a program which when executed by at least one processing unit configures the packet processing pipeline of the hardware forwarding element, the program comprising sets of instructions to:
configure the hardware forwarding element to:
generate at least one packet that includes the one or more values and
cause transmission of the at least one packet.

### Claim 32 (depends on 28)

The non-transitory machine readable medium of claim 28, storing a program which when executed by at least one processing unit configures the packet processing pipeline of the hardware forwarding element, the program comprising sets of instructions to:
configure the packet processing pipeline that performs match-action operations to:
provide one or more values that triggered performance of the one or more match-action operations or were modified by one or more match-action operations by the circuitry to perform match-action operations.

### Claim 33 (depends on 32)

The non-transitory machine readable medium of claim 32, wherein the one or more values that triggered performance of the one or more match-action operations or were modified by one or more match-action operations by the circuitry to perform match-action operations comprise one or more packet header field values.

### Claim 34 (depends on 27)

The non-transitory machine readable medium of claim 27, wherein program comprises P4 code.

### Claim 35

A method comprising:
in a packet processing pipeline of a forwarding element:
providing one or more values that did not trigger performance of one or more match-action operations or were not modified by one or more match-action operations.

### Claim 36 (depends on 35)

The method of claim 35, wherein the one or more values comprise one or more of: GENEVE variable length fields, multi-layer tunneling packet header data, or TCP packet header bytes.

### Claim 37 (depends on 35)

The method of claim 35, comprising:
generating at least one packet that includes the one or more values and
causing transmission of the at least one packet.

### Claim 38 (depends on 35)

The method of claim 35, comprising:
providing one or more values that triggered performance of the one or more match-action operations or were modified by one or more match-action operations.

### Claim 39 (depends on 38)

The method of claim 38, wherein the one or more values that triggered performance of the one or more match-action operations or were modified by one or more match-action operations comprise one or more packet header field values.

### Claim 40 (depends on 35)

The method of claim 35, wherein the providing one or more values that did not trigger performance of one or more match-action operations or were not modified by one or more match-action operations is based on a P4 program.
