Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

TCAM (Ternary Content Addressable Memory) multi-mode character string matching method and device

A string matching and string technology, applied in the field of string matching, can solve the problem of long delay in reading DDR memory data, and achieve the effect of improving scale and speed

Active Publication Date: 2011-11-23
北京恒光信息技术股份有限公司
View PDF3 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, software based on computer execution is limited by the shortcoming of long delay in reading DDR memory data; while software algorithms based on AC or state machine matching need to obtain the value of the next state according to the current state before continuing to match
Therefore, the existing software algorithms have a performance limit, which is related to the frequency of DDR and the delay of reading data.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • TCAM (Ternary Content Addressable Memory) multi-mode character string matching method and device
  • TCAM (Ternary Content Addressable Memory) multi-mode character string matching method and device
  • TCAM (Ternary Content Addressable Memory) multi-mode character string matching method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention more clear, the embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings. Here, the exemplary embodiments and descriptions of the present invention are used to explain the present invention, but not to limit the present invention.

[0034] Content Addressable Memory (CAM) is different from ordinary memory such as SRAM and DDR. Ordinary memory obtains data by inputting an address; while CAM obtains the address of the data by inputting data. TCAM (Ternary CAM) is a three-state CAM, which can not only match binary numbers "0" and "1", but also match any value through a mask, also known as "matchable "X". The data width of CAM is usually configurable, such as 9 bytes, 18 bytes, 36 bytes or 72 bytes, etc.

[0035] When performing multi-pattern string matching, there are usually two types of strings: ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a TCAM (Ternary Content Addressable Memory) multi-mode character string matching method and device. The method comprises the steps of: receiving a multi-mode character string and character string configuration information input by a user, and selecting a TCAM with qualified TCAM list item width, TCAM capacity and TCAM working frequency according to the multi-mode character string and the character string configuration information; storing the multi-mode character string in the TCAM according to the fact that the value of a position domain and a front mask domain are used for characterizing character string offset and a character ring domain contains mode character ring contents; receiving a to-be-matched character string input by the user, and dividing the to-be-matched character string into a plurality of character fields according to the byte number repeatedly sent each time the matching is performed and the TCAM list item width; sending the character fieldsand the corresponding matching sequence values to the TCAM for matching; and obtaining and outputting matched results of the character string from the TCAM. According to the method and device disclosed by the invention, the scale of multi-mode character string matching is equivalent to the TCAM capacity, and the matching speed is equivalent to the TCAM matching bandwidth, therefore the scale and the speed of the multi-mode character string matching are increased.

Description

technical field [0001] The present invention relates to character string matching technology, in particular to multi-mode character string matching technology, and specifically to a TCAM multi-mode character string matching method and device. Background technique [0002] With the rapid development of science and technology, the information that people need to process has increased dramatically. How to quickly extract the information they need from these massive amounts of information has become a very important topic. [0003] String matching technology, as a key technology in various applications such as text processing, keyword retrieval, and sensitive word filtering, plays a vital role in information retrieval. In particular, the multi-pattern string matching technology has become the core technology of various multi-string and super-large-capacity information retrieval. The performance of an information retrieval tool depends on the performance of the multi-pattern str...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30
Inventor 周志雄汪锐王增丽梁丽华赵彦博叶军
Owner 北京恒光信息技术股份有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products