Method for classifying data packets

A classification method and data packet technology, applied in data exchange networks, digital transmission systems, electrical components, etc., can solve the problems of not supporting dynamic update of rule sets, not suitable for large-scale rule sets, etc., and achieve scalable data packet classification Effect

Active Publication Date: 2016-08-24
HUNAN UNIV
View PDF4 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But this method is not suitable for large-scale rule sets and does not support dynamic update of rule sets

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 classifying data packets

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] The method of the present invention is mainly composed of two parts: (1) CPU preprocessing rule set; (2) GPU executing data packet classification. Taking the common 5-tuple packet classification (data packets are classified according to source IP address, destination IP address, source port number, destination port number, and protocol type) as an example, the overall process of this method is introduced.

[0032] 1. CPU preprocessing rule set

[0033] Overview: The algorithm preprocesses different domains in the rule set separately. Its purpose is to establish an index table for each domain separately, so that for all domains, given any legal input I, a bit string (a string consisting of 0 or 1) of the size of the rule set can be queried in constant time. ). The position number of 0 in the bit string corresponds to the rule number that the legal input I does not match, and the position number of 1 corresponds to the rule number that the legal input I matches.

[003...

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 discloses a method for classifying data packets. The method comprises preprocessing a rule set by a CPU and classifying data packets by a GPU. The preprocessing is executed before the data packet classification, preprocesses the rule set in order that subsequent packet classification can be operated, and is completed in the CPU. The data packet classification is the core of the method, classifies the data packets, and outputs rule numbers with the highest priority and matching the data packets, and is completed in the GPU. The method fully utilizes the hardware features and advantages of the GPU and is superior to a conventional data packet classifying algorithm in performance.

Description

technical field [0001] The invention relates to a method for classifying data packets. Background technique [0002] In modern routers, switches and firewalls, in order to achieve priority routing or data packet filtering, data packets transmitted on the network need to be classified according to certain rules according to the header information, and different operations are performed. Such a problem is known as a packet classification problem. [0003] In the network layered model, the data to be transmitted is encapsulated sequentially by the packet headers of each layer protocol, and the data packet header of each layer contains several fields, which respectively represent the characteristic data of the layer protocol. A rule set contains N rules, and each rule consists of three parts: (1) An expression related to the domain, the expression is generally a d-tuple (f 1 ,f 2 ,..., f d ), where f i It may be a prefix (the IP address in the data packet needs to be matche...

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): H04L12/741H04L29/06H04L45/74
CPCH04L45/74H04L63/0227
Inventor 张大方郑锦涛李彦彪李果何大成
Owner HUNAN UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products