# US 2025/0211574 A1 · Including packet processing data for deep packet inspection classification rules in a combined lookup table used for packet classification at a network device

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

- Number: US 2025/0211574 A1
- Document ID: US20250211574A1
- Status: Published application
- Kind: A1
- Application number: 18/394,745
- Filed: 2023-12-22
- Published: 2025-06-26
- Earliest claimed: 2023-12-22
- Assignees: Arista Networks, Inc.
- Applicants: Arista Networks, Inc.
- Inventors: Ashok Meti; Milton Yumin Xu; Ethan Robert Vadai
- Web page: https://patentgrep.com/patent/US20250211574A1

## CPC

- H04L 63/0263: {Rule management}
- H04L 45/74: Address processing for routing
- H04L 63/0236: {Filtering by address, protocol, port number or service, e.g. IP-address or URL}
- 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

Systems and methods for determining whether to perform deep packet inspection (DPI) on packets received at a network device based on shallow packet inspection data are disclosed. Embodiments may include DPI classification data in a combined lookup table that is utilized for shallow packet data based packet classification at a network device. Using the results of lookups in such a combined look table based on received packets, determinations can be made whether to perform DPI on such received packets, and those packets forwarded accordingly.

## Claims

### Claim 1

A network device, comprising:
a processor;
a memory storing a combined lookup table comprising classification data associated with classification rules and deep packet inspection (DPI) based classification rules;
a non-transitory computer readable medium, comprising instructions executable on the processor for:
receiving a packet at the network device;
obtaining shallow packet data associated with the packet;
forming a key from the obtained shallow packet data;
performing a lookup in the combined lookup table based on the formed key to determine classification data associated with the packet;
when the determined classification data includes DPI classification data indicating the packet is associated with DPI based classification rules: performing DPI on the packet and forwarding the packet based on the results of the DPI;
when the determined classification data does not include DPI classification data indicating the packet is associated with DPI based classification rules: forwarding the packet without performing DPI.

### Claim 2 (depends on 1)

The network device of claim 1, wherein forwarding the packet based on the results of the DPI comprises determining if any of the DPI based classification rules apply to the packet based on the results of the DPI performed on the packet, and forwarding the packet based on any DPI based classification rules that apply to the packet.

### Claim 3 (depends on 2)

The network device of claim 2, wherein the DPI based classification rules are Layer 7 (L7) based security rules.

### Claim 4 (depends on 2)

The network device of claim 2, wherein forwarding the packet without performing DPI comprises determining if any of the classification rules apply to the packet based on the classification data and forwarding the packet based on any of the classification rules that apply to the packet.

### Claim 5 (depends on 4)

The network device of claim 4, wherein the classification rules are Layer 4 (L4) classification rules.

### Claim 6 (depends on 2)

The network device of claim 2, wherein the combined lookup table is a longest prefix match (LPM) table comprising a set of prefixes, and the shallow packet data comprises a source address or destination address associated with the packet.

### Claim 7 (depends on 6)

The network device of claim 6, wherein the LPM lookup table comprises a trie.

### Claim 8 (depends on 6)

The network device of claim 6, wherein the classification data comprises a set of labels associated with the packet.

### Claim 9

A method, comprising:
receiving a first packet at a network device;
obtaining first shallow packet data associated with the first packet;
forming a first key from the obtained first shallow packet data;
performing a first lookup in a combined lookup table based on the formed first key to determine first classification data associated with the first packet;
determining the first classification data includes DPI classification data indicating the first packet is associated with DPI based classification rules;
performing DPI on the first packet to determine additional DPI classification data;
determining a DPI based packet classification rule applies to the first packet based on the additional DPI classification data;
forwarding the first packet based on the DPI based packet classification rule;
receiving a second packet at the network device;
obtaining second shallow packet data associated with the second packet;
forming a second key from the obtained second shallow packet data;
performing a second lookup in the combined lookup table based on the formed second key to determine second classification data associated with second packet;
determining the second classification data does not include DPI classification data indicating the second packet is associated with DPI based classification rules;
determining a shallow packet data based classification rule applies to the second packet based on the second classification data; and
forwarding the second packet based on the shallow packet data based classification rule.

### Claim 10 (depends on 9)

The method of claim 9, wherein determining the DPI based packet classification rule comprises performing a lookup in a rules table based on the additional DPI classification data.

### Claim 11 (depends on 10)

The method of claim 10, wherein the DPI based packet classification rule is an Layer 7 (L7) based security rule.

### Claim 12 (depends on 10)

The method of claim 10, wherein determining the shallow packet data based classification rule comprises performing a lookup in the rules table based on the second classification data.

### Claim 13 (depends on 12)

The method of claim 12, wherein the shallow packet data based classification rule is a Layer 4 (L4) classification rule.

### Claim 14 (depends on 9)

The method of claim 9, wherein the combined lookup table is a longest prefix match (LPM) table.

### Claim 15 (depends on 14)

The method of claim 14, wherein the LPM lookup table comprises a trie.

### Claim 16

A non-transitory computer readable medium, comprising instructions for:
maintaining a combined lookup table associated with a plurality of packet classification rules, each entry in the combined lookup table comprising a prefix and an associated set of labels;
providing an interface adapted to allow a specification of a DPI label in association with a first prefix;
associating the DPI label with a first entry in the combined lookup table including the first prefix by adding the DPI label to a first set of labels associated with the first entry;
receiving a packet;
obtaining an IP address associated with the packet;
performing a first lookup in the combined lookup table based on the obtained IP address to determine the first set of labels associated with the first entry;
determining the first set of labels include the DPI label; and
providing the packet to a deep packet inspector to perform DPI on the packet.

### Claim 17 (depends on 16)

The non-transitory computer readable medium of claim 16, wherein the instructions further comprise instructions for:
determining a DPI based packet classification rule applies to the first packet based on the DPI performed on the packet, wherein the packet is forwarded based on the DPI based packet classification rule.

### Claim 18 (depends on 16)

The non-transitory computer readable medium of claim 16, wherein the combined lookup table is a longest prefix match (LPM) table.

### Claim 19 (depends on 18)

The non-transitory computer readable medium of claim 18, wherein the combined lookup table comprises a source IP LPM table and destination IP LPM table.

### Claim 20 (depends on 19)

The non-transitory computer readable medium of claim 19, wherein the source IP LPM table and the destination IP LPM table are tries.
