CNN-Based Data Packet Classification for Fast Rule Updates

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing data packet classification methods struggle to achieve high-speed matching and forwarding while supporting quick online updates of rules, leading to inefficiencies in systems like software-defined networking, network function virtualization, and cloud computing.

Innovation Solution

A data packet classification method based on a convolutional neural network (CNN) that merges rules by prefix combination distribution, converts rule sets into images for training, and constructs hash tables to enable efficient classification and quick rule updates.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If decision tree methods are used for data packet classification, then classification speed is improved, but rule update speed deteriorates

Engineering Contradiction:
Improveclassification speedVSAvoidrule update time
Core Design Contradiction:
ProductivityVSLoss of time

Solution Approach 1:

The patent segments the rule set into multiple sub-rule sets based on prefix combination distribution, with each sub-rule set mapped to a dedicated hash table. This segmentation allows independent updates of individual hash tables without affecting the entire classification system, thus improving rule update speed while maintaining high classification speed through parallel hash table queries.

Inventive Principle:
Principle #1Segmentation

2Loss of time

If hash-based methods are used for data packet classification, then rule update speed is improved, but classification speed deteriorates

Engineering Contradiction:
Improverule update timeVSAvoidclassification speed
Core Design Contradiction:
Loss of timeVSProductivity

Solution Approach 1:

The patent introduces a new dimension by converting prefix combination distributions into image representations and using convolutional neural networks to learn optimal hash table mapping relationships. This dimensional transformation enables the system to quickly adapt hash table structures to different rule set characteristics, achieving both fast classification and fast updates by leveraging the CNN's ability to generalize from trained patterns.

Inventive Principle:
Principle #17Another dimension (Dimensionality change)

3Loss of time

If T-CAM hardware is used for data packet classification, then search time is reduced, but storage space is limited and power consumption increases

Engineering Contradiction:
Improvesearch timeVSAvoidstorage space
Core Design Contradiction:
Loss of timeVSQuantity of substance

Solution Approach 1:

The patent replaces the T-CAM hardware mechanism with a software-based convolutional neural network approach that runs on general-purpose processors. This substitution eliminates the storage capacity limitations and high power consumption of T-CAM while maintaining fast search performance through the CNN's learned hash table mapping, which can dynamically adapt to any rule set size without hardware constraints.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

4Device complexity

If dimensionality reduction methods are used for data packet classification, then rule complexity is reduced, but rule update speed deteriorates due to multiple rule table updates

Engineering Contradiction:
Improverule complexityVSAvoidrule update time
Core Design Contradiction:
Device complexityVSLoss of time

Solution Approach 1:

The patent extracts the prefix combination distribution characteristics from the rule set and uses them as the sole basis for generating hash table mappings, eliminating the need to update multiple dimension-specific rule tables. By taking out and focusing on this key characteristic, the system reduces rule complexity while enabling fast updates through single-hash-table modifications.

Inventive Principle:
Principle #2Taking out (Extraction)

Data Source

PatentUS12430572B2Data packet classification method and system based on convolutional neural network
Publication Date: 2025.09.30 INST OF COMPUTING TECH CHINESE ACAD OF SCI
  • US12430572B2 patent drawing
  • US12430572B2 patent drawing
  • US12430572B2 patent drawing

AI summary

The disclosure provides a data packet classification method and system based on a convolutional neural network including merging each rule set in a training rule set to form a plurality of merging schemes, and determining an optimal merging scheme for each rule set in the training rule set on the basis of performance evaluation; converting a prefix combination distribution of each rule set in the training rule set and a target rule set into an image, and training a convolutional neural network model by taking the image and the corresponding optimal merging scheme as features; and classifying the target rule set on the basis of image similarity, and constructing a corresponding hash table for data packet classification.