# US 2022/0045950 A1 · Single lookup entry for symmetric flows

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

- Number: US 2022/0045950 A1
- Document ID: US20220045950A1
- Status: Published application
- Kind: A1
- Application number: 17/510,251
- Filed: 2021-10-25
- Published: 2022-02-10
- Earliest claimed: 2017-03-31
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: Eliel Louzoun; Ben-Zion Friedman; Eli SORIN; Nir Haber
- Web page: https://patentgrep.com/patent/US20220045950A1

## CPC

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

## Abstract

Disclosed is a mechanism for maintaining a single lookup table entry for symmetric/bidirectional flows. Multiple recipes are stored for each flow. A recipe is employed to select address information from an incoming packet header based on the packet's direction. The address information and an index are employed to generate a lookup key to find the single lookup table entry with the pertinent switching information. The recipe further indicates action pointers in the lookup table entry that are specific to direction. The action pointers point to an address in an action table that contains instructions for actions that are applied to the packet during switching based on the packet's direction.

## Claims

### Claim 1

An apparatus comprising:
circuitry to:
process a packet header from a packet in a bi-directional flow, wherein the bi-directional flow comprises communications traversing a same network path in opposite directions,
access an entry based on address information and a direction of the packet within the bi-directional flow, wherein the entry is to specify an action for the packet to indicate handling instructions, and
cause performance of the specified action.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein the circuitry is to access the entry based on a recipe.

### Claim 3 (depends on 2)

The apparatus of claim 2, wherein the recipe includes an offset indicating a starting location of the address information in the packet header based on a direction of the packet.

### Claim 4 (depends on 2)

The apparatus of claim 2, wherein the recipe includes a bit mask indicating a bit location of the address information in the packet header based on a direction of the packet.

### Claim 5 (depends on 2)

The apparatus of claim 2, wherein the recipe includes instructions for packet header reorganization based on a direction of the packet, and the field chooser selects address information by reorganizing the packet header based on the instructions of the selected recipe.

### Claim 6 (depends on 2)

The apparatus of claim 2, wherein the recipe includes an indication of an action pointer in the switching information that addresses a location of the one or more actions in the action table based on a direction of the packet.

### Claim 7 (depends on 6)

The apparatus of claim 6, wherein the indication of the action pointer is a bitmap that indicates a plurality of action pointers that address locations of a plurality of actions in the action table for application to the packet.

### Claim 8 (depends on 2)

The apparatus of claim 2, further comprising circuitry to select the selected recipe based on metadata information in the packet header.

### Claim 9 (depends on 2)

The apparatus of claim 2, wherein the selected includes an index corresponding to the bidirectional flow, and the lookup key includes the selected recipe index to prevent false positive matches in the lookup table.

### Claim 10 (depends on 1)

The apparatus of claim 1, wherein the action for the packet comprises one or more of: security processing to the packet, routing the packet, writing the packet contents to memory for use by a local virtual entity.

### Claim 11

A method comprising:
receiving, at a port, a packet as part of a bidirectional flow between communication entities, the packet including a packet header;
generating, by a field chooser, a lookup key based on the address information and the selected recipe;
employing the lookup key to obtain switching information for the packet from a lookup table, the lookup table storing a single entry of switching information for the bidirectional flow;
obtaining one or more actions for the packet from an action table based on the selected recipe; and
switching the packet by executing the actions obtained from the action table.

### Claim 12 (depends on 11)

The method of claim 11, comprising:
selecting a recipe for network switching for application to the packet based on a direction of the packet within the bi-directional flow, wherein the recipe is selected from a plurality of recipes stored in recipe memory, the plurality of recipes including direction specific recipes corresponding to the bidirectional flow.

### Claim 13 (depends on 12)

The method of claim 12, wherein the recipe includes an offset indicating a starting location of the address information in the packet header based on a direction of the packet.

### Claim 14 (depends on 12)

The method of claim 12, wherein the recipe includes a bit mask indicating a bit location of the address information in the packet header based on a direction of the packet.

### Claim 15 (depends on 12)

The method of claim 12, wherein the recipe includes instructions for packet header reorganization based on a direction of the packet, and the field chooser selects address information by reorganizing the packet header based on the instructions of the selected recipe.

### Claim 16 (depends on 12)

The method of claim 12, wherein the recipe includes an indication of an action pointer in the switching information that addresses a location of the one or more actions in the action table based on a direction of the packet.

### Claim 17 (depends on 16)

The method of claim 16, wherein the indication of the action pointer is a bitmap that indicates a plurality of action pointers that address locations of a plurality of actions in the action table for application to the packet.

### Claim 18 (depends on 12)

The method of claim 12, wherein the selected recipe includes an index corresponding to the bidirectional flow, and the lookup key includes the recipe index to prevent false positive matches in the lookup table.

### Claim 19

A network interface card comprising:
a port to communicate a bi-directional flow between a local communication entity and a remote communication entity via a communication link by receiving a packet including a packet header and
circuitry to:
process a packet header from a packet in a bi-directional flow, wherein the bi-directional flow comprises communications traversing a same network path in opposite directions,
access an entry based on address information and a direction of the packet within the bi-directional flow, wherein the entry is to specify an action for the packet to indicate handling instructions, and
second circuitry coupled to the communication pipeline to switch the packet by executing the actions obtained from the action table.

### Claim 20 (depends on 19)

The network interface card of claim 19, wherein the second circuitry comprises a communications queue.
