Network Traffic Classification Using Machine Learning Algorithms Based on Quality of Service Parameters
Abstract
The growth of multimedia services requires network operators to identify traffic types quickly so that Quality of Service (QoS) policies can be applied precisely, while port-based classification and payload inspection are becoming unreliable because of encryption and dynamic port usage. This study analyzes 20,000 labeled flow records from four application classes, namely File Transfer, Video Streaming, VoIP, and Web Browsing, under three network load levels. Seven machine learning algorithms, namely Naive Bayes, Logistic Regression, K-Nearest Neighbor, Decision Tree, RBF-kernel Support Vector Machine (SVM), Random Forest, and XGBoost, were tested on two feature scenarios. Scenario A uses four QoS parameters (throughput, delay, jitter, and packet loss), while scenario B adds ten flow statistics. Port and protocol attributes were removed to prevent label leakage. Evaluation used a stratified 80:20 split, accuracy, precision, recall, F1-score, Cohen’s Kappa, and 5-fold cross validation. All four QoS parameters differ significantly across classes (Kruskal-Wallis test, p < 0.001). SVM-RBF achieved the highest performance in both scenarios, with 74.3% accuracy (F1 74.9%; Kappa 0.656) in scenario A and 98.0% accuracy (F1 98.0%; Kappa 0.974) in scenario B, while Random Forest and XGBoost followed within 0.2 points in scenario B. Throughput (33.0%) and jitter (30.5%) were the most informative QoS parameters, and VoIP was the easiest class to recognize. QoS parameters alone are sufficient to separate interactive traffic such as VoIP but not to distinguish Video Streaming from Web Browsing and File Transfer. Combining QoS parameters with flow statistics raises accuracy by about 24 percentage points and provides a basis for adaptive traffic classification in QoS management.
Downloads
References
A. Azab, M. Khasawneh, S. Alrabaee, K.-K. R. Choo, and M. Sarsour, “Network traffic classification: Techniques, datasets, and challenges,” Digital Communications and Networks, vol. 10, no. 3, pp. 676–692, 2024. https://doi.org/10.1016/j.dcan.2022.09.009
D. Nuñez-Agurto, W. Fuertes, L. Marrone, and M. Macas, “Machine learning-based traffic classification in software-defined networking: A systematic literature review, challenges, and future research directions,” IAENG International Journal of Computer Science, vol. 49, no. 4, 2022.
Y.-F. Huang, C.-B. Lin, C.-M. Chung, and C.-M. Chen, “Research on QoS classification of network encrypted traffic behavior based on machine learning,” Electronics, vol. 10, no. 12, Art. no. 1376, 2021. https://doi.org/10.3390/electronics10121376
H. Hermansyah, A. Khaidar, N. Nurdin, and S. Kurnia, “Implementation of static routing and quality of service for optimization of network traffic management on Cisco routers,” Journal of Artificial Intelligence and Software Engineering, vol. 5, no. 3, pp. 1222–1230, 2025.
Hermansyah, Al-Khaidar, and Husni, “Quality of service-based analysis of internet network performance and the reliability of digital learning services in higher education,” Journal of International Multidisciplinary Research, vol. 4, no. 10, pp. 10–25, 2026.
I. S. N. Nisa, R. M. Saputro, T. F. Nugroho, and A. R. Lahitani, “Analisis quality of service (QoS) menggunakan standar parameter TIPHON pada jaringan internet berbasis Wi-Fi Kampus 1 Unjaya,” Teknomatika: Jurnal Informatika dan Komputer, vol. 17, no. 1, pp. 1–9, 2024. https://doi.org/10.30989/teknomatika.v17i1.1307
A. Khaidar, “Design and implementation of internet failover with automated email notification for network continuity,” Journal of Artificial Intelligence and Engineering Applications (JAIEA), vol. 5, no. 1, 2025.
W. Dong, J. Yu, X. Lin, G. Gou, and G. Xiong, “Deep learning and pre-training technology for encrypted traffic classification: A comprehensive review,” Neurocomputing, vol. 617, Art. no. 128444, 2025. https://doi.org/10.1016/j.neucom.2024.128444
I. Akbari, M. A. Salahuddin, L. Ven, N. Limam, R. Boutaba, B. Mathieu, S. Moteau, and S. Tuffin, “A look behind the curtain: Traffic classification in an increasingly encrypted web,” Proceedings of the ACM on Measurement and Analysis of Computing Systems, vol. 5, no. 1, Art. no. 4, 2021. https://doi.org/10.1145/3447382
I. A. Alwhbi, C. C. Zou, and R. N. Alharbi, “Encrypted network traffic analysis and classification utilizing machine learning,” Sensors, vol. 24, no. 11, Art. no. 3509, 2024. https://doi.org/10.3390/s24113509
A. Antari, Y. Abo-Aisheh, J. Shamasneh, and H. I. Ashqar, “Network traffic classification using machine learning, transformer, and large language models,” arXiv preprint arXiv:2503.02141, 2025.
M. Shen, K. Ye, X. Liu, L. Zhu, J. Kang, S. Yu, Q. Li, and K. Xu, “Machine learning-powered encrypted network traffic analysis: A comprehensive survey,” IEEE Communications Surveys & Tutorials, vol. 25, no. 1, pp. 791–824, 2023. https://doi.org/10.1109/COMST.2022.3208196
J. Zhao, X. Jing, Z. Yan, and W. Pedrycz, “Network traffic classification for data fusion: A survey,” Information Fusion, vol. 72, pp. 22–47, 2021. https://doi.org/10.1016/j.inffus.2021.02.009
X. Lin, G. Xiong, G. Gou, Z. Li, J. Shi, and J. Yu, “ET-BERT: A contextualized datagram representation with pre-training transformers for encrypted traffic classification,” in Proceedings of the ACM Web Conference 2022 (WWW ’22), 2022, pp. 633–642. https://doi.org/10.1145/3485447.3512217
R. Zhao, M. Zhan, X. Deng, Y. Wang, Y. Wang, G. Gui, and Z. Xue, “Yet another traffic classifier: A masked autoencoder based traffic transformer with multi-level flow representation,” in Proceedings of the AAAI Conference on Artificial Intelligence, vol. 37, no. 4, 2023, pp. 5420–5427. https://doi.org/10.1609/aaai.v37i4.25674
J. H. Kalwar and S. Bhatti, “Deep learning approaches for network traffic classification in the Internet of Things (IoT): A survey,” arXiv preprint arXiv:2402.00920, 2024.
T. Shapira and Y. Shavitt, “FlowPic: A generic representation for encrypted traffic classification and applications identification,” IEEE Transactions on Network and Service Management, vol. 18, no. 2, pp. 1218–1232, 2021. https://doi.org/10.1109/TNSM.2021.3071441
G. Aceto, D. Ciuonzo, A. Montieri, and A. Pescapé, “DISTILLER: Encrypted traffic classification via multimodal multitask deep learning,” Journal of Network and Computer Applications, vol. 183–184, Art. no. 102985, 2021. https://doi.org/10.1016/j.jnca.2021.102985
L. Yang, A. Finamore, F. Jun, and D. Rossi, “Deep learning and zero-day traffic classification: Lessons learned from a commercial-grade dataset,” IEEE Transactions on Network and Service Management, vol. 18, no. 4, pp. 4103–4118, 2021. https://doi.org/10.1109/TNSM.2021.3122940
R. H. Serag, M. S. Abdalzaher, H. A. E. A. Elsayed, M. Sobh, M. Krichen, and M. M. Salim, “Machine-learning-based traffic classification in software-defined networks,” Electronics, vol. 13, no. 6, Art. no. 1108, 2024. https://doi.org/10.3390/electronics13061108
A. M. Eldhai, M. Hamdan, A. Abdelaziz, I. A. T. Hashem, S. F. Babiker, M. N. Marsono, M. Hamzah, and N. Z. Jhanjhi, “Improved feature selection and stream traffic classification based on machine learning in software-defined networks,” IEEE Access, vol. 12, pp. 34141–34159, 2024.
R. Dangi and P. Lalwani, “Feature selection based machine learning models for 5G network slicing approximation,” Computer Networks, vol. 237, Art. no. 110093, 2023. https://doi.org/10.1016/j.comnet.2023.110093
N. A. Mohammedali, T. Kanakis, A. Al-Sherbaz, and M. O. Agyeman, “Traffic classification using deep learning approach for end-to-end slice management in 5G/B5G,” in 13th International Conference on Information and Communication Technology Convergence (ICTC), Jeju Island, Korea, 2022. https://doi.org/10.1109/ICTC55196.2022.9952446
K. B. Ajeyprasaath and P. Vetrivelan, “Machine learning based classifiers for QoE prediction framework in video streaming over 5G wireless networks,” Computers, Materials & Continua, vol. 75, no. 1, pp. 1919–1939, 2023. https://doi.org/10.32604/cmc.2023.036013
L. Wang, M. Yang, B. Li, and Z. Yan, “A method of combining traffic classification and traffic prediction based on machine learning in wireless networks,” arXiv preprint arXiv:2304.01590, 2023.
A. Shahraki, M. Abbasi, A. Taherkordi, and A. D. Jurcut, “A comparative study on online machine learning techniques for network traffic streams analysis,” Computer Networks, vol. 207, Art. no. 108836, 2022. https://doi.org/10.1016/j.comnet.2022.108836
P. Adytia, Wahyuni, K. Sussolaikah, and Y. Satria, “Klasifikasi penggunaan data trafik internet menggunakan algoritma support vector machine,” J-ICON: Jurnal Komputer dan Informatika, vol. 11, no. 1, pp. 96–102, 2023. https://doi.org/10.35508/jicon.v11i1.10039
A. Nurdiyansah, D. Robiul R, Sururi, and N. Sujana, “Analisis SelectKBest pada klasifikasi trafik VPN menggunakan random forest dan SVM,” Terapan Informatika Nusantara (TIN), vol. 6, no. 8, pp. 1533–1541, 2026. https://doi.org/10.47065/tin.v6i8.9136
Y. B. Gudare, Y. P. Bria, and F. Tedy, “Penerapan algoritma random forest untuk analisis dan deteksi dini serangan siber pada lalu lintas jaringan,” Prosiding Seminar Nasional KONSTELASI, vol. 3, no. 1, pp. 100–113, 2026.
A. H. Nurmakhlufi and E. Zuliarso, “Penerapan machine learning dalam analisis pola penggunaan bandwidth pada provider internet,” Jurnal Inovtek Polbeng – Seri Informatika, vol. 10, no. 3, pp. 1331–1341, 2025.
N. F. Hasani, “Network traffic classification using machine learning techniques: An applied flow-based study,” Academia Open, vol. 12, no. 1, 2027 (published online 2026). https://doi.org/10.21070/acopen.12.2027.15227
L. Grinsztajn, E. Oyallon, and G. Varoquaux, “Why do tree-based models still outperform deep learning on typical tabular data?,” in Advances in Neural Information Processing Systems 35 (NeurIPS 2022), Datasets and Benchmarks Track, 2022, pp. 507–520.
R. Shwartz-Ziv and A. Armon, “Tabular data: Deep learning is not all you need,” Information Fusion, vol. 81, pp. 84–90, 2022. https://doi.org/10.1016/j.inffus.2021.11.011
A. Khaidar, N. Nurdin, F. Fajriana, T. Taufiq, and D. Hamdhana, “Classification analysis of single tuition fees using the random forest method with k-fold cross validation,” Journal of Applied Informatics and Computing, vol. 10, no. 1, pp. 125–133, 2026.
N. C. Ramadani, I. Tahyudin, and A. S. Barkah, “Perbandingan algoritma support vector machine, decision tree, dan logistic regression pada analisis sentimen ulasan aplikasi Netflix,” Jurnal Nasional Teknologi dan Sistem Informasi (TEKNOSI), vol. 10, no. 2, pp. 110–117, 2024. https://doi.org/10.25077/TEKNOSI.v10i2.2024.110-117
R. Oktafiani and R. Rianto, “Perbandingan algoritma support vector machine (SVM) dan decision tree untuk sistem rekomendasi tempat wisata,” Jurnal Nasional Teknologi dan Sistem Informasi (TEKNOSI), vol. 9, no. 2, pp. 113–121, 2023. https://doi.org/10.25077/TEKNOSI.v9i2.2023.113-121
S. Kapoor and A. Narayanan, “Leakage and the reproducibility crisis in machine-learning-based science,” Patterns, vol. 4, no. 9, Art. no. 100804, 2023. https://doi.org/10.1016/j.patter.2023.100804
G. James, D. Witten, T. Hastie, R. Tibshirani, and J. Taylor, An Introduction to Statistical Learning: With Applications in Python. Cham, Switzerland: Springer, 2023. https://doi.org/10.1007/978-3-031-38747-0
F. Pedregosa et al., “Scikit-learn: Machine learning in Python,” Journal of Machine Learning Research, vol. 12, pp. 2825–2830, 2011.
T. Chen and C. Guestrin, “XGBoost: A scalable tree boosting system,” in Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 2016, pp. 785–794. https://doi.org/10.1145/2939672.2939785
Al-Khaidar, Explainable Artificial Intelligence (XAI): Teori, Metode, dan Implementasi. CV. Madza Media, 2026.
S. M. Lundberg and S.-I. Lee, “A unified approach to interpreting model predictions,” in Advances in Neural Information Processing Systems 30 (NIPS 2017), 2017, pp. 4765–4774.
M. M. S. Ghaleb, M. Hamdan, A. Y. Barnawi, M. Gambo, A. Danasabe, S. Bello, and A. Habib, “Explainable AI for lightweight network traffic classification using depthwise separable convolutions,” IEEE Open Journal of the Computer Society, vol. 6, pp. 908–920, 2025. https://doi.org/10.1109/OJCS.2025.3576495
Bila bermanfaat silahkan share artikel ini
Berikan Komentar Anda terhadap artikel Network Traffic Classification Using Machine Learning Algorithms Based on Quality of Service Parameters
Pages: 170-179
Copyright (c) 2026 Hermansyah Hermansyah, Al-Khaidar Al-Khaidar, Lisa Mulia Al Ikhlas, Husni Husni

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under Creative Commons Attribution 4.0 International License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (Refer to The Effect of Open Access).






















