Longest prefix match lookup using hash function
Abstract
A method and apparatus are used for finding the longest prefix match in a variable length prefix search when searching a direct table within a routing table structure of a network processor. The search through the routing table structure is expedited by hashing a first segment of an internet protocol address with a virtual private network number followed by concatenating the unhashed bits of the IP address to the result of the hash operation to form an input key. Patterns are compared a bit at a time until an exact match or the best match is found. The search is conducted in a search tree that provides that the matching results will be the best possible match.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 35 · Forward citations: 27.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer readable storage medium containing a plurality of data structures for finding a longest prefix match for a variable length search key, when conducting a search through a Virtual Private Network (VPN) routing table for at least one search tree, comprising: a pattern or key that is to be searched; program instructions for hashing N most significant bits of an Internet Protocol (IP) destination address with a virtual private network number and for concatenating the remaining least significant bits of Internet Protocol destination address to the result of the hash operation to form said
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 27 total)
References Cited — Backward Prior Art (35)
Non-Patent Literature (4)
- "Fast text searching for regular expressions or automation searching on tries"-Journal of the ACM (JACM), vol. 43, issue: 6 (Nov. 1996) (pp. 915-936).
- "Faster IP lookups using controlled prefix expansion"-Srinivasan et al.-ACM Sigmetrics performance evaluation review-1998 (pp. 1-10).
- "Hybrid direct table and LPM searches" Research Disclosure 443117, Mar. 2001, p. 456.
- "Using multiple hash functions to improve IP lookups" by Broder et al, INFOCOM 2001, Twentieth Annual Joint Conference of the IEEE Computer and Communications Societies. Proceedings. IEEE, vol. 3, pp. 1454-1463, Apr. 22-26, 2001.