Longest Prefix Matching Using Longest-First Search in a Leaf-Pushing Trie

Jinsol Lee, Hyesook Lim

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

This paper introduces a new algorithm for IP address lookup, a pivotal task for routers to determine the appropriate output link for each incoming packet. With the advent of classless inter-domain routing (CIDR) scheme, the IP address lookup problem encounters the challenge of efficiently finding the longest matching prefix (LMP) at wire-speed. While off-chip ternary content addressable memories (TCAMs) are commonly employed for this purpose, they have drawbacks, particularly in power consumption and large cost. To address this, our research explores algorithmic alternatives, focusing specifically on utilizing a Bloom filter (BF) stored in an on-chip memory and a hash table stored in an off-chip memory. We propose to perform the longest-first search for the Bloom filter storing every prefix in a leaf-pushing trie. Since prefixes are exclusively located at the leaves of a trie following the leaf-pushing procedure, querying the BF from the longest level of the trie is highly effective. The on-chip BF serves the role of avoiding unnecessary off-chip hash table accesses by producing negative results for non-existing nodes. We have constructed the proposed algorithm using C++ code and tested against real-world routing data from backbone routers. Our results demonstrate that, given a Bloom filter of sufficient size, the proposed algorithm requires only one off-chip hash table access on average for each IP address lookup.

Original languageEnglish
Title of host publication2024 International Conference on Electronics, Information, and Communication, ICEIC 2024
PublisherInstitute of Electrical and Electronics Engineers Inc.
ISBN (Electronic)9798350371888
DOIs
StatePublished - 2024
Event2024 International Conference on Electronics, Information, and Communication, ICEIC 2024 - Taipei, Taiwan, Province of China
Duration: 28 Jan 202431 Jan 2024

Publication series

Name2024 International Conference on Electronics, Information, and Communication, ICEIC 2024

Conference

Conference2024 International Conference on Electronics, Information, and Communication, ICEIC 2024
Country/TerritoryTaiwan, Province of China
CityTaipei
Period28/01/2431/01/24

Bibliographical note

Publisher Copyright:
© 2024 IEEE.

Keywords

  • binary trie
  • Bloom filter
  • Internet
  • IP address lookup
  • leaf-pushing
  • longest prefix matching
  • router

Fingerprint

Dive into the research topics of 'Longest Prefix Matching Using Longest-First Search in a Leaf-Pushing Trie'. Together they form a unique fingerprint.

Cite this