PlanB: Efficient Software IPv6 Lookup with Linearized B+-Tree
Zhihao Zhang, Lanzheng Liu, Chen Chen, Huiba Li, Jiwu Shu, Windsor Hsu, Yiming Zhang
Abstract
IP lookup via Longest Prefix Match (LPM) is critical for packet forwarding. Unfortunately, conventional lookup algorithms are inefficient for IPv6 Forwarding Information Bases (FIBs), which are characterized by a set of long prefixes with diverse lengths. We observe that LPM inherently represents a two-dimensional (2D) search problem over both prefix values and prefix lengths, but existing algorithms mostly treat LPM as two separate levels of one-dimensional (1D) searches, causing poor lookup performance and high memory overhead. This paper presents PlanB, a novel scheme for high-speed IPv6 lookup. We transform the 2D LPM into an equivalent 1D search problem over elementary intervals, thereby unifying the search across prefix value and lengths. We then adapt a flat-array-based B-tree structure to the needs of LPM to propose the linearized -tree, based on which we introduce an efficient search algorithm tailored to the properties of the transformed space. To maximize performance, we integrate PlanB with vectorization, batching, branch-free logic, and loop unrolling to fully exploit CPU parallelism. Extensive evaluation shows that PlanB achieves single-core performance of 390 Million Lookups Per Sec (MLPS) with real-world IPv6 FIBs on AMD processor, and scales to full-12-core performance of 3.4 Billion Lookups Per Sec (BLPS). This is 1.6\times$$\sim14 higher than state-of-the-art software-based schemes (PopTrie, CP-Trie, Neurotrie and HBS).
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Builds on12
- Sherman: A Write-Optimized Distributed B+Tree Index on Disaggregated MemoryQing Wang, Youyou Lu, Jiwu ShuSIGMOD 2022 · 99 citations
- Orion: Google's Software-Defined Networking Control PlaneAndrew D. Ferguson, Steve D. Gribble, Chi-Yao Hong, Charles Killian et al.NSDI 2021 · 95 citations
- AddrMiner: A Comprehensive Global Active IPv6 Address Discovery SystemGuanglei Song, Jiahai Yang, Lin He, Zhiliang Wang et al.USENIX ATC 2022 · 55 citations
- IPv6 Hitlists at Scale: Be Careful What You Wish ForErik C. Rye, Dave LevinSIGCOMM 2023 · 38 citations
- Accessing Cloud with Disaggregated Software-Defined RouterHua Shao, Xiaoliang Wang, Yuanwei Lu, Yanbo Yu et al.NSDI 2021 · 22 citations
Related papers
- SkipTrie: Fast IPv6 Lookup with Sub-Trie SkippingDonghong Jiang, Yanbiao Li, Shi Meng, Yuxuan Chen et al.INFOCOM 2026
- Trie-Structure-Guided Compression, Allocation, and Mapping for Storage-Efficient IPv6 Lookup PipelinesDonghong Jiang, Zhenhao Yuan, Yanbiao Li, Shi Meng et al.SIGCOMM 2026
- PtCAM: Scalable High-Speed Name Prefix Lookup using TCAMTian Song, Tianlong Li, Yating YangSIGCOMM 2025 · 3 citations
- FB+-tree: A Memory-Optimized B+-tree with Latch-Free UpdateYuan Chen, Ao Li, Wenhai Li, Lingfeng DengVLDB 2025 · 2 citations
- Boosting FIB Caching Performance with AggregationGaregin Grigoryan, Yaoqing Liu, Minseok KwonHPDC 2020 · 3 citations
