Abstract
Modern networking requires routers to perform multi-dimensional packet forwarding based on both source and destination addresses for enhanced security and traffic engineering. However, traditional Ternary Content Addressable Memory (TCAM) implementations suffer from exponential hardware overhead. This paper presents FIST (FIB Structure for TwoD-IP), an architecture that decouples prefix matching from rule logic. By utilizing parallel TCAMs for matching and dense SRAM for a two-dimensional lookup table, FIST achieves line-rate performance while reducing TCAM requirements by up to 98%.
Introduction
Traditional Internet routers primarily utilize one-dimensional forwarding, looking up only the destination address to determine the next hop. As network requirements evolve, there is an increasing need for two-dimensional (2D) forwarding—considering both source and destination—to support advanced features like policy-based routing, Quality of Service (QoS), and sophisticated traffic engineering.
The primary obstacle to 2D forwarding is scalability. A naive implementation using standard Access Control List (ACL) structures requires a TCAM entry for every unique combination of source and destination prefixes. Given that TCAM is expensive, power-intensive, and limited in capacity, scaling to core router requirements ($N$ destinations $\times M$ sources) is physically and economically impractical.
The FIST Architecture
To address the capacity wall, the authors propose FIST (FIB Structure for TwoD-IP). The core innovation lies in separating the prefix matching process from the combinatorial logic of the 2D rules.
As shown in Figure 1, FIST employs two smaller, parallel TCAM tables instead of one massive 2D table. One TCAM handles destination prefixes, and the other handles source prefixes. The outputs of these lookups serve as row and column coordinates for a TD-table stored in SRAM. SRAM is significantly cheaper and more dense than TCAM, allowing it to store the large grid of possible rule combinations. The TD-table cell contains an index that points to the final next-hop information in a separate Mapping Table.
Lookup Mechanism
A key advantage of the FIST architecture is that it maintains the high-speed performance of traditional 1D routers. Because the source and destination lookups occur simultaneously in parallel hardware blocks, the overall latency is comparable to a standard single-dimension lookup.
The lookup flow, illustrated in Figure 3, begins when a packet arrives. The source and destination addresses are looked up in their respective tables to produce indices $m$ and $n$. These indices are then used to access the cell at the $n$-th row and $m$-th column of the TD-table. The resulting value $v$ is then mapped to the specific next-hop interface. To handle overlapping rules (conflicts) in 2D space, FIST uses a "TD-Saturation" algorithm to pre-populate the SRAM grid, ensuring the Longest Match First (LMF) principle is always upheld.
Evaluation and Results
The FIST architecture was evaluated using real-world traffic and routing data from CERNET2 (China Education and Research Network 2). The researchers tested the system in scenarios involving complex policy routing and dynamic load balancing based on 1TB of NetFlow data.
- Memory Efficiency: In policy routing benchmarks, FIST reduced TCAM usage from a projected 72Mb (for traditional ACLs) to just 1Mb—a 98% reduction.
- Performance: Implemented on commercial Bit-Engine hardware, the system achieved a steady 4Gbps throughput with zero packet loss, reaching the physical limits of the test environment.
- Update Speed: The system demonstrated high agility, processing 1 million updates in under 20 seconds. In practical load-balancing tests, it handled peak update loads of 1,300 per hour in less than one second.
Conclusion
FIST successfully demonstrates that two-dimensional routing can be implemented at scale without the prohibitive costs of massive TCAM arrays. By offloading the "rule multiplication" to SRAM and optimizing the lookup pipeline, FIST provides a viable path for next-generation routers to support complex traffic policies at line-rate. Future work will focus on further compressing the SRAM TD-table and exploring extensions to higher-dimensional packet classification.
Summary updated