# US 2015/0092778 A1 · Tracking Prefixes of Values Associated with Different Rules to Generate Flows

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

- Number: US 2015/0092778 A1
- Document ID: US20150092778A1
- Status: Published application
- Kind: A1
- Application number: 14/487,059
- Filed: 2014-09-15
- Published: 2015-04-02
- Earliest claimed: 2013-09-15
- Assignees: Nicira, Inc.
- Applicants: Nicira, Inc.
- Inventors: Ethan J. Jackson; Jarno Rajahalme; Nicholas Shelly; Teemu Koponen
- Web page: https://patentgrep.com/patent/US20150092778A1

## CPC

- H04L 49/3009: {Header conversion, routing tables or routing tags}
- H04L 45/38: {Flow based routing}
- H04L 45/54: {Organization of routing tables}
- H04L 45/64: using an overlay routing layer
- H04L 67/568: Storing data temporarily at an intermediate stage, e.g. caching
- H04L 45/48: Routing tree calculation
- H04L 45/742: {Route cache; Operation thereof}
- 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

Some embodiments provide a method for a forwarding element that forwards packets. The method receives a packet. The method consults a tree structure to generate a wildcard mask. The consulting includes traversing the tree structure by tracing a set of bits from the packet header and un-wildcarding the corresponding set of bits from the wildcard mask. The method identifies a matching rule for the packet. The method generates a flow based on the matching rule and the wildcard mask. The flow is used to process each other packet that matches each un-wildcarded bit of the flow.

## Claims

### Claim 1

A non-transitory machine readable medium storing a program that when executed by at least one processing unit forwards packets, the program comprising sets of instructions for:
receiving a packet;
consulting a tree structure to generate a wildcard mask, wherein the consulting includes traversing the tree structure by tracing a set of bits from the packet header and un-wildcarding the corresponding set of bits from the wildcard mask;
identifying a matching rule for the packet; and
generating a flow based on the matching rule and the wildcard mask, wherein the flow is used to process other packets that match each un-wildcarded bit of the flow.

### Claim 2 (depends on 1)

The non-transitory machine readable medium of claim 1, wherein the program further comprises a set of instructions for processing the packet based on the matching rule.

### Claim 3 (depends on 1)

The non-transitory machine readable medium of claim 1, wherein the program further comprises a set of instructions for caching the flow.

### Claim 4 (depends on 1)

The non-transitory machine readable medium of claim 1, wherein the set of bits relate to a set of Layer N header fields.

### Claim 5 (depends on 4)

The non-transitory machine readable medium of claim 4, wherein the set of bits relate to at least two different Layer N header fields.

### Claim 6 (depends on 4)

The non-transitory machine readable medium of claim 4, wherein the set of Layer N header fields is a set of Layer 4 header fields.

### Claim 7 (depends on 1)

The non-transitory machine readable medium of claim 1, wherein the set of instructions for consulting further comprises a set of instructions for selecting a set of next most significant bits from the packet header and determining if a node is available for the set of next most significant bits.

### Claim 8 (depends on 7)

The non-transitory machine readable medium of claim 7, wherein the set of instructions for consulting further comprises a set of instructions for un-wildcarding a set of other bits from the wildcard mask that corresponds to the set of next most significant bits.

### Claim 9 (depends on 1)

The non-transitory machine readable medium of claim 1, wherein the program further comprises sets of instructions for:
receiving a new rule; and
adding the new rule to the tree structure.

### Claim 10 (depends on 1)

The non-transitory machine readable medium of claim 1, wherein the program further comprises a set of instructions for removing a rule from the tree structure.

### Claim 11

A computing device comprising:
at least one processing unit; and
a storage, which stores a program that when executed by the at least one processing unit implements a forwarding element, the program comprising sets of instructions for:
receiving a packet;
performing a search of a subtable to find a matching rule for a set of header bits of the packet;
if a matching rule is found, un-wildcarding a set of corresponding bits from a wildcard mask;
if a matching rule is not found, consulting a tree structure to un-wildcard one or more bits from the wildcard mask and performing a search of at least one other subtable to find a matching rule; and
generating a flow based on the matching rule and the wildcard mask, wherein the flow is used to process other packets that match each un-wildcarded bit of the flow.

### Claim 12 (depends on 11)

The computing device of claim 11, wherein the set of header bits relate to a set of Layer N header fields.

### Claim 13

For a forwarding element that forwards packets, a method comprising:
receiving a packet;
consulting a tree structure to generate a wildcard mask, wherein the consulting includes traversing the tree structure by tracing a set of bits from the packet header and un-wildcarding the corresponding set of bits from the wildcard mask;
identifying a matching rule for the packet; and
generating a flow based on the matching rule and the wildcard mask, wherein the flow is used to process other packets that match each un-wildcarded bit of the flow.

### Claim 14 (depends on 13)

The method of claim 13 further comprising processing the packet based on the matching rule.

### Claim 15 (depends on 13)

The method of claim 13 further comprising caching the flow.

### Claim 16 (depends on 13)

The method of claim 13, wherein the set of bits relate to a set of Layer 4 header fields.

### Claim 17 (depends on 16)

The method of claim 16, wherein the set of bits relate to at least two different Layer 4 header fields.

### Claim 18 (depends on 13)

The method of claim 13, wherein consulting the tree structure further comprises:
selecting a set of next most significant bits from the packet header and determining if a node is available for the set of next most significant bits; and
un-wildcarding a set of other bits from the wildcard mask that corresponds to the set of next most significant bits.

### Claim 19 (depends on 1)

The method of claim 1 further comprising:
receiving a new rule; and
adding the new rule to the tree structure.

### Claim 20 (depends on 13)

The method of claim 13 further comprising removing a rule from the tree structure.
