A Parallel Acceleration Method of Network Intrusion Detection Based on KNN Algorithm

A technology of network intrusion detection and KNN algorithm, which is applied in computing, computer components, instruments, etc., to achieve a good speed-up ratio, improve overall efficiency, and improve computing speed

Active Publication Date: 2020-08-21
ZHEJIANG UNIV OF TECH
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] The present invention first aims at the complex distance calculation problem in the KNN classification algorithm, extracts the common part of the calculation, and uses the general matrix multiplication function provided by CUDA to realize the distance calculation between the network intrusion detection data point and the network intrusion detection training data set , which improves the operation speed

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
  • A Parallel Acceleration Method of Network Intrusion Detection Based on KNN Algorithm
  • A Parallel Acceleration Method of Network Intrusion Detection Based on KNN Algorithm
  • A Parallel Acceleration Method of Network Intrusion Detection Based on KNN Algorithm

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] The technical scheme of the present invention will be further explained below in conjunction with the drawings.

[0030] The parallelization acceleration method of network intrusion detection based on KNN algorithm of the present invention, the specific implementation steps are as follows:

[0031] (1) The algorithm is initialized on the CPU side and GPU side. Initialize m network intrusion detection data points to be detected on the CPU side, n network intrusion detection training data points with classification labels, the dimension of each data point is d, and the number of nearest neighbors is k (k≤n) . The memory space of the network intrusion detection data point set and training data point set to be detected is allocated on the GPU side, and the data is copied from the CPU side to the GPU side.

[0032] (2) Calculate the distance from m intrusion detection data points to n training data points in parallel, and obtain a distance matrix with dimension m*n. On the GPU s...

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

A parallel acceleration method based on the KNN algorithm -based network invasion detection.Methods using CUDA parallel computing models. Firstly, parallel analysis was performed for network intrusion detection based on the KNN algorithm. When the distance from the calculation network invasion detection data point to the training data set, the general matrix multiplication function provided by CUDA was used to accelerate.Improving the operation speed; then, during the distance sorting stage, two types of parallelized sorting strategies have been provided. According to the sorting results of a small amount, the sorting algorithm with less sorting time can be selected for distance sorting;The classification stage of the point is based on the CUDA -based atom and plus operation.The experimental results show that the acceleration method proposed by the present invention is effective. Under the condition of ensuring the detection rate, it effectively improves the parallelization acceleration performance of network invasion detection.

Description

[0001] (1) Technical field [0002] The invention relates to a network intrusion detection technology in the field of information security, and is a parallelized acceleration method for network intrusion detection based on a KNN algorithm. [0003] (2) Background technology [0004] The purpose of network intrusion detection is to analyze the data traffic transmitted on the network, and find and detect abnormal traffic from it. At present, there are many classification algorithms used in network intrusion detection systems, among which network intrusion detection based on KNN (K-Nearest Neighbor) classification algorithm is the most commonly used. The most classic solution method of the KNN algorithm is the brute force search method. This method first calculates the distance of each network intrusion detection data point to the network intrusion detection training data set in turn, and then quickly sorts the distance of each intrusion detection data point in turn, thereby Get the k ...

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 Patents(China)
IPC IPC(8): H04L29/06G06K9/62
CPCH04L63/1408H04L63/1425G06F18/2413
Inventor 刘端阳郑江帆沈国江刘志朱李楠杨曦阮中远
Owner ZHEJIANG UNIV OF TECH
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