发明授权
US07324519B2 Method and apparatus for encoding a plurality of pre-defined codes into a search key and for locating a longest matching pre-defined code
失效
用于将多个预定义代码编码到搜索关键字中并用于定位最长匹配的预定义代码的方法和装置
- 专利标题: Method and apparatus for encoding a plurality of pre-defined codes into a search key and for locating a longest matching pre-defined code
- 专利标题(中): 用于将多个预定义代码编码到搜索关键字中并用于定位最长匹配的预定义代码的方法和装置
-
申请号: US11034839申请日: 2005-01-14
-
公开(公告)号: US07324519B2公开(公告)日: 2008-01-29
- 发明人: Delfin Y. Montuno , James Aweya
- 申请人: Delfin Y. Montuno , James Aweya
- 申请人地址: CA Montreal, Quebec
- 专利权人: Noretl Networks Limited
- 当前专利权人: Noretl Networks Limited
- 当前专利权人地址: CA Montreal, Quebec
- 主分类号: H04L12/56
- IPC分类号: H04L12/56
摘要:
A method and apparatus for locating in a list of pre-defined codes, a longest code matching a given code. The method and apparatus involve producing a search mask encoding at least one portion of said given code and comparing the search mask to a search key having a Prefix Node Bit Array (PNBA) in which a bit is set active in at least one of a plurality of bit positions corresponding to possible bit combinations of bits in a bit string having a length equal to or less than the longest predefined code in the plurality of pre-defined codes and arranged by the lengths of possible bit combinations and by numeric values of the bit combinations, to identify a common active bit position in the search key and the search mask corresponding to one of the pre-defined codes having a length greater than all others of said pre-defined codes which correspond to common active bit positions.
公开/授权文献
信息查询