Method and apparatus for ternary content addressable memory (TCAM) table management
Abstract
A method and a system for managing a TCAM table are disclosed. A new route is inserted into the TCAM table at an available location using an index. The new route is added into a Patricia tree organized by a mask length associated with the new route. Routes having common prefixes with the new route are searched for in Patricia trees organized by longer mask lengths and in Patricia trees organized by shorter mask lengths to locate a chain for the new route. The chain for the new route groups routes having common prefixes. The routes in the chain are sequenced in an order of longer prefix first such that a route at a top of the chain has a longest prefix. A swap of routes in the chain is performed to accommodate the new route and to maintain the longer prefix first order.</PTEXT>
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 5 · Forward citations: 39.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method, comprising: inserting a new route into a ternary content-addressable memory (TCAM) table at an available location using a first index, the new route having a mask length, the new route grouped in a Patricia tree (P-tree) having one or more routes having the same mask length; finding a route having a common prefix with the new route, the route having the common prefix grouped in a P-tree having a different mask length than the new route, the route having the common prefix placed in a second index in the TCAM table, wherein the route having the common prefix is grouped in a chain of on
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 39 total)
References Cited — Backward Prior Art (5)
Non-Patent Literature (5)
- "Advantages of CAM in ASIC-Based Network Address Processing," Music Semiconductors, Application Brief AB-N11, Rev. 1.2A Draft (Sep. 30, 1998).
- "Using the 128-bit Wide Ternary IPCAM for 64-bit Applications," Netlogic Microsystems, Application Note NCS08, Rev. 1.0 (date prior to Jan. 30, 2001).
- "Using the Ternary NL82721 IPCAM™ for Longest Prefix Match," Netlogic Microsystems, Application Note NCS05, Rev. 1.2 (date prior to Jan. 30, 2001).
- "Using the Ternary NL82721 IPCAM™ for Subnet Masking," Netlogic Microsystems, Inc, Application Note NCS04, Rev. 1.0 (date prior to Jan. 30, 2001).
- “Advantages of CAM in ASIC-Based Network Address Processing," Music Semiconductors, Application Brief AB-N11, Rev. 1.2A Draft (Sep. 30, 1998). </STEXT>