A Reliable Encrypted Traffic Classification Method Based on Attention Mechanisms

In online encrypted traffic classification, existing machine learning methods face the challenge of manually extracting flow-level statistical features. Deep learning methods encounter complex preprocessing issues, requiring models to balance complexity and accuracy. Therefore, this paper proposes a reliable method for encrypted traffic classification based on attention mechanism. The method designs a neural network model based on the Transformer architecture. The model employs embedding operations to extract byte features and utilizes position encoding to capture spatial features, which enables efficient packet-level classification of encrypted traffic. By using only the first 40 bytes of the packet header as input, the model avoids analyzing the payload, thereby reducing the risk of privacy breaches. Moreover, the simplified input features reduce the time overhead for feature extraction, enhancing training speed and making the model suitable for deployment in high real-time scenarios. This paper validates the proposed method experimentally using two public datasets: ISCX VPN-nonVPN and ISCX Tor-nonTor. The experimental results indicate that the proposed method outperforms existing approaches, achieving an improvement of at least 1.5% in classification accuracy and 1.6% in F1 score. Additionally, with a memory usage of 533 MB, it meets the performance requirements for low-resource scenarios.

Authors

Institutions

Publication Details

Published
2024-12-17
DOI
https://doi.org/10.1109/trustcom63139.2024.00181
Primary Topic
Internet Traffic Analysis and Secure E-voting
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A Reliable Encrypted Traffic Classification Method Based on Attention Mechanisms

Meng Yue, S. L. Niu, Zhijun Wu
Internet Traffic Analysis and Secure E-voting
article

A Reliable Encrypted Traffic Classification Method Based on Attention Mechanisms

Meng Yue, S. L. Niu, Zhijun Wu
article en

Abstract

In online encrypted traffic classification, existing machine learning methods face the challenge of manually extracting flow-level statistical features. Deep learning methods encounter complex preprocessing issues, requiring models to balance complexity and accuracy. Therefore, this paper proposes a reliable method for encrypted traffic classification based on attention mechanism. The method designs a neural network model based on the Transformer architecture. The model employs embedding operations to extract byte features and utilizes position encoding to capture spatial features, which enables efficient packet-level classification of encrypted traffic. By using only the first 40 bytes of the packet header as input, the model avoids analyzing the payload, thereby reducing the risk of privacy breaches. Moreover, the simplified input features reduce the time overhead for feature extraction, enhancing training speed and making the model suitable for deployment in high real-time scenarios. This paper validates the proposed method experimentally using two public datasets: ISCX VPN-nonVPN and ISCX Tor-nonTor. The experimental results indicate that the proposed method outperforms existing approaches, achieving an improvement of at least 1.5% in classification accuracy and 1.6% in F1 score. Additionally, with a memory usage of 533 MB, it meets the performance requirements for low-resource scenarios.

Civil Aviation University of China (CN)
National Natural Science Foundation of China, Fundamental Research Funds for the Central Universities
Openalex Percentile: Top 74%
Internet Traffic Analysis and Secure E-voting
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.