US 12,149,446 B2
Message matching table lookup method, system, storage medium, and terminal
Lifeng Rong, Shenzhen (CN)
Assigned to SANECHIPS TECHNOLOGY CO., LTD., Shenzhen (CN)
Appl. No. 17/613,793
Filed by SANECHIPS TECHNOLOGY CO., LTD., Shenzhen (CN)
PCT Filed Apr. 13, 2020, PCT No. PCT/CN2020/084405
§ 371(c)(1), (2) Date Nov. 23, 2021,
PCT Pub. No. WO2020/248690, PCT Pub. Date Dec. 17, 2020.
Claims priority of application No. 201910517975.4 (CN), filed on Jun. 14, 2019.
Prior Publication US 2022/0231945 A1, Jul. 21, 2022
Int. Cl. H04L 45/745 (2022.01)
CPC H04L 45/745 (2013.01) 5 Claims
OG exemplary drawing
 
1. A method for message match table lookup, comprising:
performing on-demand data bit width compression on information of a specified part of an input message;
extracting N groups of data from compressed data, performing intra-group data comparison on each of the N groups of data to obtain N groups of comparison results, and performing true value splicing on the N groups of comparison results, wherein N is an integer greater than 1;
performing match searching of a Ternary Content Addressable Memory, TCAM, by using a true value splicing result as a keyword; and
searching for an Action Random Access Memory, Action RAM, according to a match hit result of the TCAM, and outputting a table lookup request by the Action RAM;
wherein, extracting N groups of data from compressed data, performing intra-group data comparison on each of the N groups of data to obtain N groups of comparison results, and performing true value splicing on the N groups of comparison results, comprises:
extracting the N groups of data from the compressed data, each of the N groups of data comprising 2 to 3 data;
performing pairwise comparison on the data in each of the N groups of data, or comparing each data in each of the N groups of data with immediate data to obtain the N groups of comparison results; and
performing the true value splicing on the N groups of comparison results to form an N-bit true value bitmap combination;
wherein, performing match searching of a TCAM by using a true value splicing result as a keyword, comprises:
performing the match searching of the TCAM by taking the N-bit true value bitmap combination as a keyword, wherein the TCAM has a depth of N*2 or N*3, and a width of N.