发明名称 Method for longest prefix matching in a content addressable memory
摘要 A ternary content addressable memory is employed to perform a longest prefix match search. Each CAM cell within the ternary CAM has an associated mask cell so that the CAM cells may be individually masked so as to effectively store either a logic 0, a logic 1, or a don't care for compare operations. For example, Classless Inter-Domain Routing (CIDR) addresses are pre-sorted and loaded into the ternary CAM such that the CAM entry having the longest prefix is located at the lowest numerical address or index of the ternary CAM, and the CAM entry with the shortest prefix is located at the highest numerical address or index. The prefix portions of the CIDR addresses are used to set the mask cells associated with each CAM entry such that during compare operations, only the unmasked prefix portion of each CAM entry is compared to an incoming destination address stored as the CAM search key. Since each CAM entry is masked according to an associated prefix value, the ternary CAM requires only one search operation to locate the CAM entry having the longest matching prefix.
申请公布号 US6237061(B1) 申请公布日期 2001.05.22
申请号 US19990225918 申请日期 1999.01.05
申请人 NETLOGIC MICROSYSTEMS, INC. 发明人 SRINIVASAN VARADARAJAN;NATARAJ BINDIGANAVALE S.;KHANNA SANDEEP
分类号 G06F17/30;G11C15/00;(IPC1-7):G06F12/04 主分类号 G06F17/30
代理机构 代理人
主权项
地址