Switching circuit implementing variable string matching
Abstract
A content matching engine (CME) uses a content addressable memory (CAM) array that stores a plurality of strings in separate entries. The strings define one or more rules to be matched. The strings of each rule are linked, thereby providing a required order. The strings of each rule can be linked by per-entry counters associated with each string, or by a state machine. The strings in the CAM array are compared with a packet, which is shifted one symbol at a time (because the strings can start on any boundary). When the CAM detects a match, the CAM skips over the string that resulted in the match, thereby preventing erroneous matches. The CAM allows parallel matching to be performed for multiple rules. If the contents of a packet match all of the strings of a rule, in order, then the CME asserts a match/index signal that identifies the matched rule.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 50 · Forward citations: 13.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method of processing a data packet comprising: comparing the data packet with a list of regular expressions or rules stored in a content addressable memory (CAM) array to determine if the data packet matches any of the regular expressions or rules; wherein comparing the data packet comprises: (a) comparing the data packet with the regular expressions and rules stored in the CAM array; (b) shifting the data packet by one symbol, thereby providing a shifted pattern; (c) comparing the shifted pattern with the regular expressions and rules stored in the CAM array; and (d) repeating steps (b) and
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (13 of 13 total)
References Cited — Backward Prior Art (50)
Non-Patent Literature (5)
- "Fast Routing Table Lookup Using CAMs", Anthony J. McAuley and Paul Francis, 1993, pp. 1382-1391, IEEE.
- "Memory Organization Scheme for the Implementation of Routing Tables in High Performance IP Routers", document dated Nov. 21, 2003, 6 pages.
- A Search Algorithm for Table Entries with Non-Contiguous Wildcarding, Paul F. Tsuchiya, Bellcore, 1991, pp. 1-10.
- A Tree-Based Packet Routing Table for Berkeley Unix, Keith Sklower, Berkeley Technical Report, UC Berkeley, CA, USA, 1991, pp. 1-14.
- Bu et al., "A Keyword Match Processor Architecture using Content Addressable Memory," GLSVLSI '04, Apr. 26-28, 2004, 5 pages.