Journal of Xidian University ›› 2024, Vol. 51 ›› Issue (6): 149-158.doi: 10.19665/j.issn1001-2400.20240913

• Computer Science and Technology & Cyberspace Security • Previous Articles     Next Articles

Research on the packet classification algorithm based on the intelligent rule storage matching model

LI Zhuo1,2,3,4(), WANG Tongtong1,4(), LIU Kaihua4,5()   

  1. 1. School of Microelectronics,Tianjin University,Tianjin 300072,China
    2. Peng Cheng Laboratory,Shenzhen 518000,China
    3. Tianjin Microelectronics Technology Key Laboratory of Imaging and Perception,Tianjin 300072,China
    4. Tianjin Digital Information Technology Research Center,Tianjin 300072,China
    5. Tianjin Ren’ai College,Tianjin 300072,China
  • Received:2024-03-22 Online:2024-12-20 Published:2024-10-09

Abstract:

In the research on packet classification technology,designing an efficient index structure to achieve fast packet matching is the key to effective packet classification.Therefore,in order to improve the memory utilization of packet classification technology based on hash-based methods,a rule storage matching model is proposed to achieve more uniform mapping and reduce hash collisions.This model can support more uniform rule storage mapping within a classification subset.Based on this model,a packet classification algorithm is proposed,which uses the Prefix Length Reduction algorithm to divide the ruleset into multiple subsets,and then the same storage structure is allocated for each subset.This storage structure includes an identification information processing unit,a mapping model unit and a rule query matching unit.In the packet classification stage,the identification information processing unit converts the packet headers into multi-dimensional vectors and then these vectors are input to the mapping model unit.Based on the output of the model,the matching rules can be retrieved from the rule query matching unit.Experimental results show that,compared with the existing algorithms,the proposed algorithm doubles the classification throughput,reduces the storage consumption by about 20% on average and increases the update speed by 3 times on average with the uniformity of the rule mapping also improved.

Key words: packet classification, rule storage matching model, index structure design

CLC Number: 

  • TP393.0