# US 2023/0275835 A1 · Apparatus and method of generating lookups and making decisions for packet modifying and forwarding in a software-defined network engine

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

- Number: US 2023/0275835 A1
- Document ID: US20230275835A1
- Status: Published application
- Kind: A1
- Application number: 18/141,768
- Filed: 2023-05-01
- Published: 2023-08-31
- Earliest claimed: 2013-12-30
- Assignees: Marvell Asia Pte Ltd
- Applicants: Marvell Asia Pte., Ltd.
- Inventors: Anh T. Tran; Gerald Schmidt; Tsahi Daniel; Harish Krishnamoorthy
- Web page: https://patentgrep.com/patent/US20230275835A1

## CPC

- H04L 45/74: Address processing for routing
- G06F 16/00: Information retrieval; Database structures therefor; File system structures therefor
- G06F 16/2228: {Indexing structures}
- G06F 16/2282: {Tablespace storage structures; Management thereof}
- G06F 16/9535: Search customisation based on user profiles and personalisation
- H04L 45/655: Interaction between route computation entities and forwarding entities, e.g. for route determination or for flow table update
- H04L 45/7452: Multiple parallel or consecutive lookup operations (lookup operation involving Bloom filters H04L45/7459)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments of the present invention relate to a Lookup and Decision Engine (LDE) for generating lookup keys for input tokens and modifying the input tokens based on contents of lookup results. The input tokens are parsed from network packet headers by a Parser, and the tokens are then modified by the LDE. The modified tokens guide how corresponding network packets will be modified or forwarded by other components in a software-defined networking (SDN) system. The design of the LDE is highly flexible and protocol independent. Conditions and rules for generating lookup keys and for modifying tokens are fully programmable such that the LDE can perform a wide variety of reconfigurable network features and protocols in the SDN system.

## Claims

### Claim at position 1

1-43. (canceled)

### Claim 44

A software-defined network (SDN) system comprising:
a Parser configured to receive incoming network packets, parse headers of the incoming network packets and to output tokens; and
a Key Generator including a Control Path for generating instructions and a Data Path for executing instructions produced by the Control Path.

### Claim 45 (depends on 44)

The software-defined network (SDN) system of claim 44, wherein the Control Path includes:
a Control Bits Extractor for extracting control bits from the input token and metadata bits from a corresponding template information;
a MUX/CMP Cone for comparing multi-bit words in the input token and corresponding template metadata;
a MUX/LUT Logic Cone for checking whether the control bits and outputs of MUX/CMP cone satisfy conditions and rules of specific network features and protocols configured for the LDE; and
a plurality of Instruction Tables for generating the instructions based on outputs of the MUX/LUT Logic Cone.

### Claim 46 (depends on 45)

The software-defined network (SDN) system of claim 45, wherein the Control Bits Extractor is reconfigurable by software to allow users to select which bits among the control bits and the metadata bits to be extracted.

### Claim 47 (depends on 45)

The software-defined network (SDN) system of claim 45, wherein the MUX/LUT Logic Cone includes a plurality of stages, wherein each of the stages includes a plurality of MUX/LUT Cells in parallel.

### Claim 48 (depends on 45)

The software-defined network (SDN) system of claim 45, wherein a number of instructions returned by the Control Path is able to generate the lookup key.

### Claim 49 (depends on 48)

The software-defined network (SDN) system of claim 48, wherein two kinds of instructions are supported: Copy instructions and ALU instructions.

### Claim 50 (depends on 49)

The software-defined network (SDN) system of claim 49, wherein the Copy instruction is configured to copy data from a source or to copy a constant value to a position in an output key, wherein the source is one of the input token and the corresponding template metadata.

### Claim 51 (depends on 49)

The software-defined network (SDN) system of claim 49, wherein an ALU operation for the ALU instruction is one of addition (+), subtraction (−), bitwise AND (&), bitwise OR (|), bitwise XOR ({circumflex over ( )}), bitwise shift left (<<), and bitwise shift right (>>).

### Claim 52 (depends on 44)

The software-defined network (SDN) system of claim 44, wherein said Data Path includes:
a Delay Matching Queue for buffering the input token while waiting for the Control Path to generate the instructions; and
an Instructions Execution block to execute, in parallel, all of the instructions produced by the Control Path for generating the lookup key.

### Claim 53 (depends on 52)

The software-defined network (SDN) system of claim 52, wherein the lookup key is initialized by all zeros before all instructions are executed.

### Claim 54 (depends on 44)

The software-defined network (SDN) system of claim 44, further comprising an Output Generator having input data and output data that are different from those of the Key Generator.

### Claim 55 (depends on 54)

The software-defined network (SDN) system of claim 54, wherein the input data of the Output Generator includes the input token, metadata bits from a corresponding template information and the lookup result.

### Claim 56 (depends on 54)

The software-defined network (SDN) system of claim 54, wherein the output data of the Output Generator is a modified version of the input token.

### Claim 57 (depends on 54)

The software-defined network (SDN) system of claim 54, wherein the output token is initialized to have the same content as the input token before all instructions are executed.

### Claim 58

A method of generating lookups and making decisions for packet modifying and forwarding in a software-defined network (SDN) engine, the method comprising:
with a parser, receiving incoming network packets, parsing headers of the incoming network packets and outputting tokens; and
generating instructions with a Control Path of a Key Generator, and
executing instructions produced by the Control Path with a Data Path of the Key Generator.

### Claim 59 (depends on 58)

The method of claim 58, further comprising:
extracting control bits from the input token and metadata bits from a corresponding template information with a Control Bits Extractor of the Control Path;
comparing multi-bit words in the input token and corresponding template metadata with a MUX/CMP Cone of the Control Path;
checking whether the control bits and outputs of MUX/CMP cone satisfy conditions and rules of specific network features and protocols configured for the LDE with a MUX/LUT Logic Cone of the Control Path; and
generating the instructions based on outputs of the MUX/LUT Logic Cone based on a plurality of Instruction Tables of the Control Path.

### Claim 60 (depends on 59)

The method of claim 59, wherein the Control Bits Extractor is reconfigurable by software to allow users to select which bits among the control bits and the metadata bits to be extracted.

### Claim 61 (depends on 59)

The method of claim 59, wherein the MUX/LUT Logic Cone includes a plurality of stages, wherein each of the stages includes a plurality of MUX/LUT Cells in parallel.

### Claim 62 (depends on 59)

The method of claim 59, wherein the lookup key is generated by a number of the instructions returned by the Control Path.

### Claim 63 (depends on 62)

The method of claim 62, wherein each of the instructions are one of a group consisting of: a Copy instruction and an ALU instruction.

### Claim 64 (depends on 63)

The method of claim 63, wherein the Copy instruction copies data from a source or copies a constant value to a position in an output key, wherein the source is one of the input token and the corresponding template metadata.

### Claim 65 (depends on 63)

The method of claim 63, wherein an ALU operation for the ALU instruction is one of addition (+), subtraction (−), bitwise AND (&), bitwise OR (|), bitwise XOR ({circumflex over ( )}), bitwise shift left (<<), and bitwise shift right (>>).

### Claim 66 (depends on 58)

The method of claim 58, further comprising:
buffering the input token while waiting for the Control Path to generate the instructions with a Delay Matching Queue of the Data Path; and
executing, in parallel, all of the instructions produced by the Control Path for generating the lookup key with an Instructions Execution block of the Data Path.

### Claim 67 (depends on 66)

The method of claim 66, further comprising initializing the lookup key by all zeros before all instructions are executed.

### Claim 68 (depends on 58)

The method of claim 58, wherein the SDN engine includes an Output Generator having input data and output data that are different from those of the Key Generator.

### Claim 69 (depends on 68)

The method of claim 68, further comprising inputting with the Output Generator the input token, metadata bits from a corresponding template information and the lookup result.

### Claim 70 (depends on 68)

The method of claim 68, further comprising outputting the output data with the Output Generator, wherein the output data is a modified version of the input token.

### Claim 71 (depends on 68)

The method of claim 68, wherein the output token is initialized to have the same content as the input token before all instructions are executed.
