AWEsome-Cache: Dependency-Free Rule-Caching for Arbitrary Wildcard Patterns in TCAM

Zeyu Luan,Qing Li,Zutao Zhang,Yong Jiang,Meng Chen,Yu Wang,Kejun Li
DOI: https://doi.org/10.1109/icnp59255.2023.10355586
2023-01-01
Abstract:Ternary Content Addressable Memory (TCAM) is a specialized high-speed memory that enables fast parallel lookups for both exact-match rules and wildcard-match rules. TCAM has become a standard hardware component in Software-Defined Networking (SDN) switches to implement flow tables for packet classification. However, limited TCAM storage capacity poses a significant scalability challenge for SDN to enforce fine-grained policy-based forwarding. To this end, TCAM-based rule-caching systems are proposed by combining TCAM with Random Access Memory (RAM). Specifically, TCAM caches heavy-hitting rules to capture packets from hot flows, while RAM accommodates the complete ruleset for other cache-miss packets. However, previous rule-caching systems either failed to eliminate cross-rule dependencies or restricted their applications to prefix rules only. In this work, we propose AWEsome-Cache, a unifying framework to fundamentally eliminate cross-rule dependencies for wildcard rules with arbitrary matching patterns. The rationale behind AWEsome-Cache is to concretize a minimum number of wildcard bits in the best-match rule, thereby pruning its overlapping match fields with all direct dependent rules. AWEsome-Cache also develops replacement algorithms during TCAM updates to adapt to dynamic traffic locality. Experiments with prefix and non-prefix rules show that AWEsome-Cache outperforms baselines in achieving a comparable cache-hit rate but requiring 75.9% less TCAM occupancy.
What problem does this paper attempt to address?