TCAM Cache Engine for Network Packet Lookup Optimization

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Ternary content addressable memory (TCAM) devices are expensive and have high power demands, making them inefficient for search operations despite their fast searching capabilities, especially in network devices where packets with different attributes may match the same entry, leading to unnecessary resource usage.

Innovation Solution

A network device architecture that incorporates a TCAM cache engine to cache frequently searched entries based on hit statistics, using a combination of TCAM and less costly memory types like SRAM or DRAM, where the TCAM cache engine handles high-speed lookup operations and the SRAM or DRAM handles less frequent ones, with a maintenance controller managing entry replacement and aging to optimize performance.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Speed

If TCAM is used to store all switching rules for fast packet processing, then lookup speed is improved, but power consumption and device cost increase

Engineering Contradiction:
Improvelookup speedVSAvoidpower consumption
Core Design Contradiction:
SpeedVSUse of energy by moving object

Solution Approach 1:

The patent segments the switching rules into two parts: frequently accessed rules are stored in TCAM for fast lookup, while less frequently accessed rules are stored in SRAM. This segmentation allows the system to maintain fast lookup performance for critical rules while reducing overall power consumption by avoiding continuous operation of TCAM for all rules.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent applies local quality by differentiating the storage medium based on access frequency. High-frequency rules get the quality attribute of TCAM (fast access), while low-frequency rules use SRAM (cost-effective). This localized application of different storage qualities optimizes both performance and power consumption.

Inventive Principle:
Principle #3Local quality

2Speed

If TCAM is used to store all switching rules for fast packet processing, then lookup speed is improved, but device cost increases

Engineering Contradiction:
Improvelookup speedVSAvoiddevice cost
Core Design Contradiction:
SpeedVSEase of manufacture

Solution Approach 1:

The patent segments the switching rules into two parts: frequently accessed rules are stored in TCAM for fast lookup, while less frequently accessed rules are stored in SRAM. This segmentation allows the system to maintain fast lookup performance for critical rules while reducing overall power consumption by avoiding continuous operation of TCAM for all rules.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent uses SRAM as a copy or alternative storage for less frequently accessed rules, avoiding the need to replicate expensive TCAM resources for all rules. This copying approach maintains functionality while reducing cost.

Inventive Principle:
Principle #26Copying

3Productivity

If TCAM stores frequently accessed rules, then lookup efficiency is improved, but device complexity increases due to hit statistics tracking and entry replacement management

Engineering Contradiction:
Improvelookup efficiencyVSAvoidmanagement complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent implements self-service mechanisms where the system automatically tracks hit statistics and performs entry replacement based on predefined policies without external intervention. The aging table and replacement algorithms operate autonomously to maintain optimal TCAM content.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The patent uses feedback from hit statistics to dynamically adjust which rules are stored in TCAM. The aging table provides feedback about rule access patterns, which then influences future storage decisions, creating a closed-loop system that adapts to changing network conditions.

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS10901897B2Method and apparatus for search engine cache
Publication Date: 2021.01.26 MARVELL ISRAEL (M L S L) LTD
  • US10901897B2 patent drawing
  • US10901897B2 patent drawing
  • US10901897B2 patent drawing

AI summary

Aspects of the disclosure provide a network device. The network device includes a search engine, a ternary content addressable memory (TCAM) cache engine, a search key generation unit and an output controller. The search engine stores a lookup table of entries for rules of packet processing, and searches the lookup table in response to packets received from a network interface of the network device. The TCAM cache engine caches a subset of the entries in the lookup table based on hit statistics of the entries. The search key generation unit generates a search key based on a received packet and provides the search key to the search engine and to the TCAM cache engine. The output controller outputs a search result from the TCAM cache engine when the TCAM cache engine has a matching entry to the search key.