Filter based longest prefix match algorithm
Abstract
Methods directed to longest prefix matching and systems directed to IP address lookups are presented. The methods and systems relate in particular to IPv6 and comprise finding the longest prefix match (LPM) for an IP address. The method of the invention results in the use of filters to perform LPM. In embodiments of the invention, partial address filtering is used to further reduce filtering requirements. Reducing the number of filtering operations has the advantage of making the LPM algorithm faster and less costly to implement than prior art approaches. Also described is an “ideal offset filter” that extracts a fixed sized sliding window of bits from the IP address being processed.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 15 · Forward citations: 19.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A method of performing a longest prefix match comprising the steps of: a) filtering a key into a plurality of filter fields, each of which is associated with a respective filter table; b) performing a longest prefix match (LPM) operation on each of the filter fields in their respective filter tables, wherein each LPM operation yields a result indicating lengths of prefixes potentially matching the key; c) intersecting the results to obtain a set of potential prefix lengths; and d) performing a series of hash lookups, based on the previously indicated potential prefix lengths, beginning with th
- Claim 2Depends on #1
The method as defined in claim 1 wherein each filter may use a different method for filter
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 19 total)
References Cited — Backward Prior Art (15)
Non-Patent Literature (2)
- Dharmapurikar, Sarang, et al., Longest Prefix Matching Using Bloom Filters, Washington University in St. Louis, St. Louis, MO, 2003.
- Gupta, et al., Algotrithms for Packet Classification, Stanford University, 2001.