A Lightweight Multi-Classification Model for Identifying Network Application Traffic Using Knowledge Distillation
Abstract
1. Introduction
- A heterogeneous multi-teacher distillation framework is proposed for network traffic classification. Unlike conventional single-teacher or homogeneous multi-teacher settings, the proposed framework combines CNN-BiTCN and CNN-BiLSTM to provide complementary supervision for different temporal dependency patterns in traffic data.
- A lightweight student architecture is designed by retaining only the shared CNN-based spatial extractor of the teacher models and removing explicit temporal modeling modules. This design makes the contribution of teacher knowledge more interpretable while substantially reducing model size and computational overhead.
- Extensive experiments are conducted on the ISCX-VPN2016, USTC-TFC2016, ISCX-Tor2016, and CIC-IoT2022 datasets. The results verify that the proposed framework achieves competitive multi-class classification performance while maintaining strong compression efficiency, demonstrating its practical value for deployment in resource-constrained environments.
2. Related Work
2.1. Network Traffic Classification and Identification
2.2. Knowledge Distillation and Its Application of Traffic Classification
3. Our Model
3.1. Overview
3.2. Traffic Preprocessing
3.3. Distillation Model Structure
3.3.1. Multi-Teacher Model
3.3.2. Student Model
3.4. Knowledge Distillation Algorithm
| Algorithm 1 Knowledge Distillation |
|
4. Performance Evaluation and Experimental Result Analysis
4.1. Experimental Environment Settings
4.2. Performance Evaluation
4.2.1. Performance Evaluation Under Various Parameters
4.2.2. Performance Comparisons with Other Models
4.2.3. Ablation Experiments
5. Conclusions and Future Work
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Shen, M.; Ye, K.; Liu, X.; Zhu, L.; Kang, J.; Yu, S.; Li, Q.; Xu, K. Machine Learning-Powered Encrypted Network Traffic Analysis: A Comprehensive Survey. IEEE Commun. Surv. Tutor. 2023, 25, 791–824. [Google Scholar] [CrossRef] [Scilit]
- Azab, A.; Khasawneh, M.; Alrabaee, S.; Choo, K.K.R.; Sarsour, M. Network traffic classification: Techniques, datasets, and challenges. Digit. Commun. Netw. 2024, 10, 676–692. [Google Scholar] [CrossRef] [Scilit]
- Wang, W.; Zhu, M.; Wang, J.; Zeng, X.; Yang, Z. End-to-end encrypted traffic classification with one-dimensional convolution neural networks. In Proceedings of the 2017 IEEE International Conference on Intelligence and Security Informatics (ISI), Beijing, China, 22–24 July 2017; pp. 43–48. [Google Scholar] [CrossRef] [Scilit]
- Shapira, T.; Shavitt, Y. FlowPic: A Generic Representation for Encrypted Traffic Classification and Applications Identification. IEEE Trans. Netw. Serv. Manag. 2021, 18, 1218–1232. [Google Scholar] [CrossRef] [Scilit]
- Lin, X.; Xiong, G.; Gou, G.; Li, Z.; Shi, J.; Yu, J. ET-BERT: A Contextualized Datagram Representation with Pre-training Transformers for Encrypted Traffic Classification. In Proceedings of the ACM Web Conference 2022, WWW ’22, Virtual, 25–29 April 2022; pp. 633–642. [Google Scholar] [CrossRef] [Scilit]
- Liu, Y.; Wang, X.; Qu, B.; Zhao, F. ATVITSC: A Novel Encrypted Traffic Classification Method Based on Deep Learning. IEEE Trans. Inf. Forensics Secur. 2024, 19, 9374–9389. [Google Scholar] [CrossRef] [Scilit]
- Li, Z.; Zhao, H.; Zhao, J.; Jiang, Y.; Bu, F. SAT-Net: A staggered attention network using graph neural networks for encrypted traffic classification. J. Netw. Comput. Appl. 2025, 233, 104069. [Google Scholar] [CrossRef] [Scilit]
- Hu, F.; Zhang, S.; Lin, X.; Wu, L.; Liao, N.; Song, Y. Network traffic classification model based on attention mechanism and spatiotemporal features. EURASIP J. Inf. Secur. 2023, 2023, 6. [Google Scholar] [CrossRef] [Scilit]
- Wang, R.; Huang, M.; Zhao, J.; Zhang, H.; Zhong, W.; Zhang, Z.; He, L. A lightweight model design approach for few-shot malicious traffic classification. Sci. Rep. 2024, 14, 24710. [Google Scholar] [CrossRef] [Scilit]
- Zhao, R.; Zhan, M.; Deng, X.; Wang, Y.; Wang, Y.; Gui, G.; Xue, Z. Yet another traffic classifier: A masked autoencoder based traffic transformer with multi-level flow representation. In Proceedings of the AAAI Conference on Artificial Intelligence, Washington, DC, USA, 7–14 February 2023; Volume 37, pp. 5420–5427. [Google Scholar]
- Zhan, M.; Yang, J.; Jia, D.; Fu, G. EAPT: An encrypted traffic classification model via adversarial pre-trained transformers. Comput. Netw. 2025, 257, 110973. [Google Scholar] [CrossRef] [Scilit]
- Yu, J.; Choi, Y.; Koo, K.; Moon, D. A novel approach for application classification with encrypted traffic using BERT and packet headers. Comput. Netw. 2024, 254, 110747. [Google Scholar] [CrossRef] [Scilit]
- Gwak, M.; Cha, J.; Yoon, H.; Kang, D.; An, D. Lightweight Transformer Model for Mobile Application Classification. Sensors 2024, 24, 564. [Google Scholar] [CrossRef] [Scilit]
- Li, Z.; Xu, X. L2-BiTCN-CNN: Spatio-temporal features fusion-based multi-classification model for various internet applications identification. Comput. Netw. 2024, 243, 110298. [Google Scholar] [CrossRef] [Scilit]
- Nuñez-Agurto, D.; Fuertes, W.; Marrone, L.; Benavides-Astudillo, E.; Coronel-Guerrero, C.; Perez, F. A Novel Traffic Classification Approach by Employing Deep Learning on Software-Defined Networking. Future Internet 2024, 16, 153. [Google Scholar] [CrossRef] [Scilit]
- Xi, T.; Zheng, Q.; Cheng, C.; Wu, T.; Xie, G.; Qian, X.; Ye, H.; Sun, Z. SwiftSession: A Novel Incremental and Adaptive Approach to Rapid Traffic Classification by Leveraging Local Features. Future Internet 2025, 17, 114. [Google Scholar] [CrossRef] [Scilit]
- Buciluǎ, C.; Caruana, R.; Niculescu-Mizil, A. Model compression. In Proceedings of the 12th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, Philadelphia, PA, USA, 20–23 August 2006; pp. 535–541. [Google Scholar]
- Hinton, G.; Vinyals, O.; Dean, J. Distilling the Knowledge in a Neural Network. arXiv 2015, arXiv:1503.02531. [Google Scholar] [CrossRef] [Scilit]
- Wu, Y.; Zhang, M. Lightweight Network Traffic Classification Model Based on Knowledge Distillation. In Web Information Systems Engineering—WISE 2021; Zhang, W., Zou, L., Maamar, Z., Chen, L., Eds.; Lecture Notes in Computer Science; Springer International Publishing: Cham, Switzerland, 2021; Volume 13081, pp. 107–121. [Google Scholar] [CrossRef] [Scilit]
- Zhu, S.; Xu, X.; Zhao, J.; Xiao, F. LKD-STNN: A Lightweight Malicious Traffic Detection Method for Internet of Things Based on Knowledge Distillation. IEEE Internet Things J. 2024, 11, 6438–6453. [Google Scholar] [CrossRef] [Scilit]
- Lu, M.; Zhou, B.; Bu, Z. Two-Stage Distillation-Aware Compressed Models for Traffic Classification. IEEE Internet Things J. 2023, 10, 14152–14166. [Google Scholar] [CrossRef] [Scilit]
- Zhao, Z.; Lin, Y.; Sun, W.; Liu, C.; Kong, X. KDTC: A Lightweight Traffic Classification Method Based on Knowledge Distillation. In Proceedings of the 2025 7th International Conference on Next Generation Data-Driven Networks (NGDN); IEEE: Piscataway, NJ, USA, 2025; pp. 197–202. [Google Scholar] [CrossRef] [Scilit]
- Zhao, C.; Liao, L.X.; Chen, G.; Chao, H.C. Condensation of Data and Knowledge for Network Traffic Classification: Techniques, Applications, and Open Issues. Sensors 2025, 25, 2368. [Google Scholar] [CrossRef] [Scilit]
- Zhang, Q.; Gao, X.; Wang, H.; Yiu, S.M.; Yin, H. Efficient Traffic Prediction Through Spatio-Temporal Distillation. In Proceedings of the AAAI Conference on Artificial Intelligence, Philadelphia, PA, USA, 25 February–2 March 2025; Volume 39, pp. 1093–1101. [Google Scholar] [CrossRef] [Scilit]
- Tran, H.A.; Hoang, N.T. Towards Efficient and Adaptive Traffic Classification: A Knowledge Distillation-Based Personalized Federated Learning Framework. IEEE Trans. Netw. Serv. Manag. 2026, 23, 594–604. [Google Scholar] [CrossRef] [Scilit]
- Yang, Y.; Fan, C.; Chen, S.; Gao, Z.; Rui, L. Growth-adaptive Distillation Compressed Fusion Model for Network Traffic Identification Based on IoT Cloud–Edge Collaboration. Ad Hoc Netw. 2025, 167, 103676. [Google Scholar] [CrossRef] [Scilit]
- Lin, Y.e.; Yin, S.; Ding, Y.; Liang, X. ATMKD: Adaptive temperature guided multi-teacher knowledge distillation. Multimed. Syst. 2024, 30, 292. [Google Scholar] [CrossRef] [Scilit]
- Ge, H.; Pokhrel, S.R.; Liu, Z.; Wang, J.; Li, G. PFL-DKD: Modeling decoupled knowledge fusion with distillation for improving personalized federated learning. Comput. Netw. 2024, 254, 110758. [Google Scholar] [CrossRef] [Scilit]
- Xu, S.; Han, J.; Wang, J.; Bai, Y. An encrypted traffic classification method based on autoencoders and convolutional neural networks. PLoS ONE 2025, 20, e0333276. [Google Scholar] [CrossRef] [Scilit]
- Yang, J.; Jiang, X.; Liang, G.; Li, S.; Ma, Z. Malicious Traffic Identification with Self-Supervised Contrastive Learning. Sensors 2023, 23, 7215. [Google Scholar] [CrossRef] [Scilit]









| Dataset | Labels | Training Set | Test Set |
|---|---|---|---|
| ISCX-VPN | 12 | 35,501 | 3945 |
| USTC-TFC | 24 | 379,812 | 42,201 |
| ISCX-Tor | 8 | 34,608 | 3844 |
| CIC-IoT | 10 | 24,641 | 2740 |
| Metric | Formula |
|---|---|
| Accuracy | |
| Precision | |
| Recall | |
| -score | |
| Time |
| Parameter | Setting |
|---|---|
| Batch size | 50 |
| Dropout rate | 0.1 |
| Learning rate | 0.003 |
| 4 | |
| 0.4 | |
| 0.4 |
| Models | ISCX-VPN | USTC-TFC | ISCX-Tor | CIC-IoT | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Accuracy | Precision | Recall | -Score | Accuracy | Precision | Recall | -Score | Accuracy | Precision | Recall | -Score | Accuracy | Precision | Recall | -Score | |
| ET-BERT | 96.029 | 96.060 | 96.036 | 96.046 | 98.705 | 98.779 | 98.778 | 98.778 | 94.330 | 95.136 | 93.434 | 94.123 | 95.834 | 96.162 | 95.485 | 95.632 |
| ATVITSC | 96.401 | 96.630 | 96.046 | 96.332 | 99.661 | 99.669 | 99.676 | 99.671 | 95.340 | 95.347 | 95.340 | 95.345 | 96.787 | 96.755 | 96.821 | 96.622 |
| YaTC | 96.107 | 96.046 | 96.180 | 96.079 | 98.839 | 98.859 | 98.820 | 98.839 | 95.731 | 95.721 | 95.740 | 95.731 | 96.584 | 96.543 | 96.620 | 96.576 |
| EAPT | 95.447 | 96.011 | 94.683 | 95.291 | 99.222 | 99.220 | 98.869 | 99.310 | 94.960 | 95.064 | 94.850 | 94.899 | 95.346 | 95.754 | 94.884 | 94.690 |
| Our Model | 96.603 | 97.209 | 96.448 | 96.811 | 99.796 | 99.668 | 99.723 | 99.695 | 95.650 | 95.754 | 95.519 | 95.616 | 97.925 | 97.708 | 97.881 | 97.728 |
| Models | ISCX-VPN | USTC-TFC | ISCX-Tor | CIC-IoT | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Size | Params | FLOPs | Size | Params | FLOPs | Size | Params | FLOPs | Size | Params | FLOPs | |
| ET-BERT | 114.28 MB | 29,930,105 | 116,779,195 | 115.63 MB | 30,282,952 | 116,846,791 | 114.91 MB | 30,094,533 | 116,756,663 | 115.47 MB | 30,241,361 | 116,767,929 |
| ATVITSC | 105.18 MB | 27,551,984 | 107,465,229 | 106.42 MB | 27,876,385 | 108,730,732 | 105.73 MB | 27,695,629 | 108,025,700 | 106.08 MB | 27,787,310 | 108,383,298 |
| YaTC | 41.12 MB | 10,769,865 | 33,429,370 | 41.64 MB | 10,911,249 | 33,867,986 | 40.80 MB | 10,722,737 | 33,282,854 | 41.00 MB | 10,746,301 | 33,355,995 |
| EAPT | 24.21 MB | 6,341,304 | 19,416,064 | 24.47 MB | 6,408,912 | 19,489,792 | 24.01 MB | 6,318,768 | 19,391,488 | 24.10 MB | 6,330,036 | 19,403,776 |
| Our Model | 5.03 MB | 1,314,452 | 3,700,992 | 5.16 MB | 1,348,256 | 3,734,784 | 4.98 MB | 1,303,184 | 3,689,728 | 5.01 MB | 1,308,818 | 3,695,360 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Li, Z.; Feng, Y. A Lightweight Multi-Classification Model for Identifying Network Application Traffic Using Knowledge Distillation. Future Internet 2026, 18, 197. https://doi.org/10.3390/fi18040197
Li Z, Feng Y. A Lightweight Multi-Classification Model for Identifying Network Application Traffic Using Knowledge Distillation. Future Internet. 2026; 18(4):197. https://doi.org/10.3390/fi18040197
Chicago/Turabian StyleLi, Zhiyuan, and Yonghao Feng. 2026. "A Lightweight Multi-Classification Model for Identifying Network Application Traffic Using Knowledge Distillation" Future Internet 18, no. 4: 197. https://doi.org/10.3390/fi18040197
APA StyleLi, Z., & Feng, Y. (2026). A Lightweight Multi-Classification Model for Identifying Network Application Traffic Using Knowledge Distillation. Future Internet, 18(4), 197. https://doi.org/10.3390/fi18040197

