Supercharge Your Innovation With Domain-Expert AI Agents!

String matching processing method and apparatus

A string matching and processing method technology, applied in the field of communication, can solve the problem of low utilization rate of external SRAM read bandwidth, achieve the effect of improving logic processing performance, improving sharing, and reducing FPGA resources

Inactive Publication Date: 2009-04-29
HUAWEI TECH CO LTD
View PDF0 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The embodiment of the present invention provides a character string matching processing method and device, which are used to solve the defects of the low utilization rate of the read bandwidth of the external SRAM when the AC algorithm is implemented logically in the prior art, realize full use of the read bandwidth of the external SRAM, and improve the matching performance of the AC algorithm

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
  • String matching processing method and apparatus
  • String matching processing method and apparatus
  • String matching processing method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] The technical solutions of the embodiments of the present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.

[0022] In the string matching technology, the AC (Aho-Corasick) algorithm is often used for string matching. The AC algorithm is implemented using a finite state machine, and there are 3 functions for each state: "Goto function" means jumping to The next state, "Failure function" indicates that it is not possible to jump to the next state, and "Output function" indicates that this is an acceptable state. When the logic implements the AC algorithm, parameters such as the current state of the AC state machine, the current input string, and the next jump state of the state machine are made into entries and placed in the external SRAM. The structure of the entries is shown in Table 1. :

[0023] Table 1

[0024] current status currently entered string next state Other Information ...

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

An embodiment of the invention provides a method for matching and processing character string and a device thereof. The method according to the invention comprises the following steps: filtering the message to be matched through a multi-Hash filtering module to obtain a plurality of suspected data packages comprising suspected character string, respectively storing the plurality of data packages into a plurality of first-in first-out sub-modules of a first-in first-out module; reading the suspected data packages in the plurality of first-in first-out sub-module by an AC engine module in turn, applying a character selecting sub-module, an AC Hash sub-module, an enquiring table item sub-module and a result comparing sub-module which are connected in turn and are independent from each other in the AC engine module, and executing character string matching to the suspected data packages in the plurality of first-in first-out sub-modules with a time division multiplex mode. The method and device according to the invention divide the AC engine module into for independent sub-modules for forming a four stage stream line and therefore have the advantages of increasing the sharing of AC state machine, leading to time sharing multiplexing of four sub-modules by a plurality of state ''fifos'', increasing the usage factor of reading bandwidth by SRAM and increasing a logic processing capability.

Description

technical field [0001] Embodiments of the present invention relate to the field of communication technologies, and in particular, to a string matching processing method and device. Background technique [0002] With the rapid development of IP services, operators have more and more demands on network security and content perception. Deep packet inspection (Deep packet inspection (hereinafter referred to as: DPI) technology can realize refined operation of network operations. String matching, that is, to search for whether there is a target string in the data, is an important technology to realize the DPI scheme. AC (Aho-Corasick) algorithm is a typical multi-mode matching algorithm, which is often used in string matching technology. The AC algorithm is implemented using a finite state machine, and the current state of the AC state machine, the current input string, and the next jump state of the state machine are made into table items and placed in the external random acces...

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
IPC IPC(8): H04L29/06G06F17/30
Inventor 陈乃涛
Owner HUAWEI TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More