Skip to main content
QUICK REVIEW

[Paper Review] Compressing IP Forwarding Tables: Towards Entropy Bounds and Beyond

Gábor Rétvári, János Tapolcai|arXiv (Cornell University)|Feb 5, 2014
Network Packet Processing and OptimizationComputer Science56 references71 citations
TL;DR

This paper proposes a novel entropy-compressed data structure for IP forwarding tables (FIBs) using advanced compressed data structures and trie-folding techniques, achieving information-theoretic compression bounds with minimal performance cost. It reduces FIB size to 100–400 KB for over 440K prefixes while improving lookup throughput by 3x and enabling efficient updates without sacrificing speed.

ABSTRACT

Lately, there has been an upsurge of interest in compressed data structures, aiming to pack ever larger quantities of information into constrained memory without sacrificing the efficiency of standard operations, like random access, search, or update. The main goal of this paper is to demonstrate how data compression can benefit the networking community, by showing how to squeeze the IP Forwarding Information Base (FIB), the giant table consulted by IP routers to make forwarding decisions, into information-theoretical entropy bounds, with essentially zero cost on longest prefix match and FIB update. First, we adopt the state-of-the-art in compressed data structures, yielding a static entropy-compressed FIB representation with asymptotically optimal lookup. Then, we re-design the venerable prefix tree, used commonly for IP lookup for at least 20 years in IP routers, to also admit entropy bounds and support lookup in optimal time and update in nearly optimal time. Evaluations on a Linux kernel prototype indicate that our compressors encode a FIB comprising more than 440K prefixes to just about 100--400 KBytes of memory, with a threefold increase in lookup throughput and no penalty on FIB updates. This technical report contains a number of important corrections and revisions to the original manuscript.

Motivation & Objective

  • Address the growing memory footprint of IP forwarding tables (FIBs) in routers due to the explosion of IPv4 prefixes.
  • Demonstrate that compressed data structures can achieve information-theoretic entropy bounds for FIBs without degrading lookup or update performance.
  • Introduce a new compressed FIB representation that supports optimal lookup and nearly optimal update times.
  • Popularize the use of compressed data structures in networking, particularly for large-scale, memory-constrained systems like routers.
  • Provide a foundation for applying entropy-bound compression to other networking data structures such as BGP RIBs, MAC tables, and label forwarding tables.

Proposed method

  • Adopt state-of-the-art compressed data structures to represent the FIB in entropy-optimal space, enabling fast random access and lookup.
  • Redesign the traditional prefix tree (trie) to support entropy bounds by folding common labeled sub-trees into a directed acyclic graph (DAG).
  • Use a bitmap-based, compressed representation (XBW-b) inspired by succinct data structures to compactly encode the FIB while preserving query efficiency.
  • Incorporate label-aware merging of sub-trees to maintain correctness of longest prefix match semantics during compression.
  • Leverage the structure of IP prefixes to fold the prefix tree into a DAG, reducing redundancy and storage while preserving O(W) lookup time.
  • Implement and evaluate the approach in a Linux kernel prototype to validate real-world performance and memory savings.

Experimental results

Research questions

  • RQ1Can IP forwarding tables be compressed to within information-theoretic entropy bounds while maintaining fast lookup and update performance?
  • RQ2To what extent can the structure of IP prefixes be exploited to reduce FIB storage through intelligent data structure design?
  • RQ3How does the proposed trie-folding technique compare to traditional FIB compression schemes in terms of space, speed, and update efficiency?
  • RQ4Can compressed data structures be effectively applied to real-world networking workloads like IP routing with minimal performance penalty?
  • RQ5What is the theoretical and practical potential of entropy-bound data structures for other networking data structures beyond FIBs?

Key findings

  • The proposed XBW-b compressor reduces FIB size to just 100–400 KB for over 440,000 prefixes, significantly below prior bounds of 780 KB to 1.2 MB.
  • Lookup throughput increased by a factor of three in the Linux kernel prototype, despite reduced memory footprint.
  • FIB updates incur no performance penalty, with update times remaining nearly optimal due to the efficient DAG-based structure.
  • The method achieves asymptotically optimal lookup time and space, approaching the theoretical information-theoretic entropy limit of the FIB data.
  • The approach is extensible to other networking data structures such as BGP RIBs, OpenFlow tables, and MAC learning tables.
  • The work demonstrates that space reduction via compression does not entail performance loss—on the contrary, it enhances cache efficiency and speed.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.