TransECA-Net: A Transformer-Based Model for Encrypted Traffic Classification
Top Cited Papers
Open Access
- 10 March 2025
- journal article
- research article
- Published by MDPI AG in Applied Sciences
- Vol. 15 (6) , 2977
Abstract
Encrypted network traffic classification remains a critical component in network security monitoring. However, existing approaches face two fundamental limitations: (1) conventional methods rely on manual feature engineering and are inadequate in handling high-dimensional features; and (2) they lack the capability to capture dynamic temporal patterns. This paper introduces TransECA-Net, a novel hybrid deep learning architecture that addresses these limitations through two key innovations. First, we integrate ECA-Net modules with CNN architecture to enable automated feature extraction and efficient dimension reduction via channel selection. Second, we incorporate a Transformer encoder to model global temporal dependencies through multi-head self-attention, supplemented by residual connections for optimal gradient flow. Extensive experiments on the ISCX VPN-nonVPN dataset demonstrate the superiority of our approach. TransECA-Net achieved an average accuracy of 98.25% in classifying 12 types of encrypted traffic, outperforming classical baseline models such as 1D-CNN, CNN + LSTM, and TFE-GNN by 6.2–14.8%. Additionally, it demonstrated a 37.44–48.84% improvement in convergence speed during the training process. Our proposed framework presents a new paradigm for encrypted traffic feature disentanglement and representation learning. This paradigm enables cybersecurity systems to achieve fine-grained service identification of encrypted traffic (e.g., 98.9% accuracy in VPN traffic detection) and real-time responsiveness (48.8% faster than conventional methods), providing technical support for combating emerging cybercrimes such as monitoring illegal transactions on darknet networks and contributing significantly to adaptive network security monitoring systems.Keywords
Funding Information
- National Natural Science Foundation of China (61572304, 61272096, 61332019, 21YF1415100, 2021J01129)
- Key Program of the National Natural Science Foundation of China (61572304, 61272096, 61332019, 21YF1415100, 2021J01129)
- Shanghai Sailing Plan of “Science and Technology Innovation Action Plan” (61572304, 61272096, 61332019, 21YF1415100, 2021J01129)
- Fujian Provincial Natural Science Foundation project (61572304, 61272096, 61332019, 21YF1415100, 2021J01129)
This publication has 27 references indexed in Scilit:
- Network traffic classification: Techniques, datasets, and challengesDigital Communications and Networks, 2024
- A review of ensemble learning and data augmentation models for class imbalanced problems: Combination, implementation and evaluationExpert Systems with Applications, 2023
- Review of artificial intelligence for enhancing intrusion detection in the internet of thingsEngineering Applications of Artificial Intelligence, 2023
- A Survey of Public IoT Datasets for Network Security ResearchIEEE Communications Surveys & Tutorials, 2023
- Feature mining for encrypted malicious traffic detection with deep learning and other machine learning algorithmsComputers & Security, 2023
- Multi class SVM algorithm with active learning for network traffic classificationExpert Systems with Applications, 2021
- Deep packet: a novel approach for encrypted traffic classification using deep learningSoft Computing, 2019
- HAST-IDS: Learning Hierarchical Spatial-Temporal Features Using Deep Neural Networks to Improve Intrusion DetectionIEEE Access, 2017
- Quality of Service (QoS) in Software Defined Networking (SDN): A surveyJournal of Network and Computer Applications, 2017
- A survey of methods for encrypted traffic classification and analysisInternational Journal of Network Management, 2015