Router Packet Classification Using Segmented TCAM and Value Masks

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current packet classification and IP lookup systems in routers face challenges with high performance demands, including high power consumption, large memory occupancy, and inefficiencies in handling changing packet classification rules, particularly in traditional TCAMs, which affect throughput and efficiency.

Innovation Solution

The system partitions memory elements into segments with value masks (VM) lists, using buddy memory allocation and hashing techniques to optimize packet classification and IP lookup, reducing power consumption and memory usage while maintaining deterministic search rates and latency.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Speed

If traditional TCAM is used for packet classification and IP lookup, then deterministic search rates and latency are achieved, but power consumption and memory occupancy become excessively high

Engineering Contradiction:
Improvesearch rateVSAvoidpower consumption
Core Design Contradiction:
SpeedVSUse of energy by moving object

Solution Approach 1:

The patent divides the TCAM into multiple segments, each handling a specific portion of the packet classification rules. This segmentation allows parallel processing of different rule sets, maintaining deterministic search rates while reducing the memory occupancy and power consumption of any single TCAM segment.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces a new dimension to the lookup process by implementing a hierarchical structure with multiple lookup stages. The first stage performs a coarse lookup to identify relevant rule segments, and the second stage performs detailed matching. This dimensional approach maintains search speed while reducing overall memory requirements.

Inventive Principle:
Principle #17Another dimension (Dimensionality change)

2Speed

If traditional TCAM is used for packet classification, then fast lookup is achieved, but the system becomes inefficient when handling changing packet classification rules

Engineering Contradiction:
Improvelookup speedVSAvoidhandling changing rules
Core Design Contradiction:
SpeedVSAdaptability or versatility

Solution Approach 1:

The patent implements dynamic rule management by allowing packet classification rules to be added, removed, or modified without requiring a complete system reset. The segmented TCAM structure enables individual segments to be updated independently, maintaining lookup speed while improving adaptability to changing network conditions and security policies.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The patent pre-organizes packet classification rules into segments with predefined structures and indices. When new rules need to be added or existing rules modified, the system can efficiently locate and update only the relevant segments without reorganizing the entire rule set, thus maintaining fast lookup performance while adapting to rule changes.

Inventive Principle:
Principle #10Preliminary action

3Reliability

If memory is allocated for storing large VM lists, then complete packet classification coverage is achieved, but memory occupancy increases

Engineering Contradiction:
Improveclassification coverageVSAvoidmemory occupancy
Core Design Contradiction:
ReliabilityVSQuantity of substance

Solution Approach 1:

The patent segments the value-mask (VM) lists into multiple distributed sections across different TCAM segments. Each segment stores a subset of the complete VM list, and the lookup process queries multiple segments in parallel. This approach maintains complete classification coverage while distributing memory occupancy across multiple smaller, more efficient storage units.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent combines results from multiple TCAM segment lookups to achieve complete packet classification. By merging the classification results from segmented memory structures, the system achieves comprehensive rule coverage equivalent to a single large TCAM while using less total memory through efficient parallel processing and result consolidation.

Inventive Principle:
Principle #5Merging (Combining)

Data Source

PatentUS9245626B2System and method for packet classification and internet protocol lookup in a network environment
Publication Date: 2016.01.26 CISCO TECHNOLOGY INC
  • US9245626B2 patent drawing
  • US9245626B2 patent drawing
  • US9245626B2 patent drawing

AI summary

An example method includes partitioning a memory element of a router into a plurality of segments having one or more rows, where at least a portion of the one or more rows is encoded with a value mask (VM) list having a plurality of values and masks. The VM list is identified by a label, and the label is mapped to a base row number and a specific number of bits corresponding to the portion encoding the VM list. Another example method includes partitioning a prefix into a plurality of blocks, indexing to a hash table using a value of a specific block, where a bucket of the hash table corresponds to a segment of a ternary content addressable memory of a router, and storing the prefix in a row of the segment.