An Encrypted Network Traffic Classification Strategy: Combining Locality-Sensitive Hashing With Transformer Encoder and CNN

Junrui Wu, Wenyong Wang, Yuwei Li, Haoran Luo, Shaogang Hu, Yubo Li · 2024

Encrypted network traffic classification is fundamental for network management and security, including DDoS detection and mitigation. However, unknown category traffic can interfere with the classification of known traffic categories, leading to low recognition rates. To address this issue, we leverage the capability of Locality-Sensitive Hashing (LSH) to efficiently handle high-dimensional traffic data. By mapping similar flows into the same hash buckets with LSH, the unknown category traffic can be filtered out, thereby reducing the interference from unknown category traffic and improving the classification accuracy of known category traffic. Based on this, we propose an LSH-TECNN strategy that combines the LSH with Convolutional Neural Network (CNN) and Transformer Encoder (TE). Firstly, a combination of K-Nearest Neighbors (KNN) and LSH is used to determine whether the traffic belongs to known categories. Then, a Transformer Encoder and 2D-CNN are used to precisely classify the encrypted traffic. Experimental results demonstrate that our method improves classification accuracy by up to$\mathbf{1 2 \%}$and precision by up to$10 \%$compared to existing encrypted traffic classification methods.

Read the paper · More papers on PaperTik