Unlock instant, AI-driven research and patent intelligence for your innovation.

Method for improving hardware message classification rule matching efficiency through software

A message classification and rule technology, applied in the direction of electrical components, special data processing applications, instruments, etc., can solve the problems of poor matching efficiency and achieve high matching efficiency

Active Publication Date: 2011-04-13
曙光网络科技有限公司
View PDF3 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, with the increase of the rule capacity, the prior art scheme has the disadvantage of poor matching efficiency, because the packets on the high-speed network need to quickly match the rules, and in this scheme, it takes too long to find a rule Find the entire rule array table, that is, the scale of O(n) complexity, to match the rules

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
  • Method for improving hardware message classification rule matching efficiency through software
  • Method for improving hardware message classification rule matching efficiency through software

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0015] The present invention establishes a regular hash table in the system memory through the feature of quick hash table search, and realizes efficient matching of hardware message classification through the hash table.

[0016] The specific plan is as follows:

[0017] (1) Apply for a memory area in the host memory, wherein in this memory area, a part stores rules and a part stores hash tables.

[0018] (2) Generate a hash number for each rule through the interface library, and add the rule to the host rule table and hardware rule table according to the hash number.

[0019] (3) When a rule needs to be added or deleted, the interface function uses the hash function to find the location of the hash number corresponding to the rule, and finds whether there is a conflict. If there is no conflict, directly put the rule into the rule table and the rule conflict chain ; If there is a conflict, add this rule to the head of the linked list where the conflicting chain is located. ...

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 provides a method for improving hardware message classification rule matching efficiency through software. Through combination of software and hardware and the hash table storage rule, the software maintains the message classification rules, adjusts collision in the hash table and puts the new rules on the head of the collision chain when the rules are added or deleted, thus easily finding the most common rules and improving the rule matching efficiency.

Description

technical field [0001] The invention relates to the field of network data management, in particular to a method for improving the matching efficiency of hardware message classification rules through software. Background technique [0002] In the hardware packet classification system, the most commonly used method for storing packet rules is to store them in the form of sequential arrays. The packet classification rules newly configured in the hardware are placed at the end of the rule table. However, due to the newly added rules Generally, it was the most commonly used at that time. As the rule capacity increases, the matching efficiency of this mechanism will decrease. [0003] In the hardware packet classification system, according to business needs, frequent operations such as adding and deleting packet classification rules are required. In the original system, the rule capacity is not very large, and it is generally stored in a sequential array. For small-capacity rules...

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): H04L12/56H04L29/06G06F17/30H04L12/743
Inventor 贺志强万伟刘兴彬王泼朱春屹连仲维
Owner 曙光网络科技有限公司