Cyber Threat Detection in Network Traffic using Random Forest for Enhanced Quality of Service.
Abstract
It is critical to ensure high Quality of Service (QoS) and robust security in modern telecommunications networks that are increasingly targeted by large cyber-attacks. The study employs CIC-IDS2017 dataset with over 3.1 million traffic records, and a Random Forest (RF) ensemble model is employed to categorize various attack types such as DoS, DDoS, and Brute Force. The methodology emphasizes a balance of security and network availability to achieve maximum performance. To validate the proposed model, experimental findings demonstrate that it has a high accuracy of 99.62% and a Detection Rate (Recall) of 99.91%. In particular, its False Alarm Rate (FAR) and Specificity were 0.45% and 99.55%, respectively, ensuring network QoS without causing additional disturbance from false alarms. The system reliability is determined by efficiency score (Qscore) to ensure that network operations and user experience are not unnecessarily disturbed. The integrated Qscore of 221.97 adds to the system's effectiveness in establishing a secure and transparent communications environment. The model can process a large number of network traffic samples per second, with a predicted throughput of 42,256 samples per second. A prediction latency of 0.024ms per sample indicates that traffic samples are identified almost instantaneously. The results show that the RF algorithm is a viable approach for real-time threat identification in high-speed network infrastructures.References
Ahmad, I. A. I., Osasona, F., Dawodu, S. O., Obi, O. C., Anyanwu, a. C., &Onwusinkwue, S. (2024). Emerging 5G technology: A review of its far-reaching implications for communication and security. World Journal of Advanced Research and Reviews, 21(1), 2474–2486. https://doi.org/10.30574/wjarr.2024.21.1.0346
Ahmed, S. F., Alam, Md. S. B., Hassan, M., Rozbu, M. R., Ishtiak, T., Rafa, N., Mofijur, M., Shawkat Ali, A. B. M., &Gandomi, A. H. (2023). Deep learning modelling techniques: Current progress, applications, advantages, and challenges. Artificial Intelligence Review, 56(11), 13521–13617. https://doi.org/10.1007/s10462-023-10466-8
Breiman, L. (2001). Random forests. Machine Learning, 45(1), 5–32. https://doi.org/10.1023/A:1010933404324
Casas, P., Fiadino, P., & D'Alconzo, A. (2016). Machine-Learning Based Approaches for Anomaly Detection and Classification in Cellular Networks. In proceedings of the 8th International Workshop on Traffic Monitoring and Analysis.
Diana, L., Dini, P., &Paolini, D. (2025). Overview on Intrusion Detection Systems for Computers Networking Security. Computers, 14(3), 87. https://doi.org/10.3390/computers14030087
Griffith, M., Almutairi, A., &Jaradat, R. (2018). Smart grid anomaly detection using machine learning approaches. In Smart Grid Research (pp. 235–249). Springer.
Haque, A. K. M. B., Zihad, M. O. M., & Hasan, M. R. (2023). 5G and Internet of Things—Integration Trends, Opportunities, and Future Research Avenues. In 5G and Beyond (pp. 217–245). Springer Nature Singapore. https://doi.org/10.1007/978-981-99-3668-7_11
Hastie, T., Tibshirani, R. and Friedman, J. (2009). The Elements of Statistical Learning: Data Mining, Inference and Prediction (2nd Edition). Springer. https://doi.org/10.1007/978-0-387-84858-7
Liaw, A., & Wiener, M. (2002). Classification and regression by randomForest. R News, 2(3), 18–22.
Luo, Y., Xiao, Y., Cheng, L., Peng, G., & Yao, D. D. (2021). Deep learning-based anomaly detection in cyber-physical systems: Progress and opportunities. ACM Computing Surveys.
Sarah, A., Nencioni, G., & Khan, Md. M. I. (2023). Resource Allocation in Multi-access Edge Computing for 5G and-beyond networks. Computer Networks, 227, 109720. https://doi.org/10.1016/j.comnet.2023.109720
Satish Kumar Nadendla. (2024). AI-powered deep packet inspection for secure and efficient traffic analysis in 6G programmable networks. World Journal of Advanced Research and Reviews, 22(1), 2054–2071. https://doi.org/10.30574/wjarr.2024.22.1.1030
Sharafaldin, I., Ghorbani, A. A., and Lashkari, A. H. (2018). Toward creation of a new intrusion detection dataset and intrusion traffic characterization. In Proceedings of the 4th International Conference on Information Systems Security and Privacy (ICISSP) (pp. 108–116). SciTePress. https://doi.org/10.5220/0006639801080116
Trilles, S., Hammad, S. S., & Iskandaryan, D. (2024). Anomaly detection based on Artificial Intelligence of Things: A Systematic Literature Mapping. Internet of Things, 25, 101063. https://doi.org/10.1016/j.iot.2024.101063
Copyright (c) 2026 Lasisi H. O., Omodeni C. Blessing, Aderinkola B. F., Omodeni H. B., Oladepo O., Olawuyi A. A., Adeagbo F. M., Awolufolaju T. T., Olla M. O.

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
The authors hereby represent and warrant that the paper is original and that they are the authors of the paper, except for material that is clearly identified as to its original source, with permission notices from the copyright owners where required. If in future any violation of any copyright come in notice, then the author will be responsible and not FUOYEJET.
The authors declare that:
- This paper has not been published in the same form elsewhere.
- It will not be submitted anywhere else for publication prior to acceptance/rejection by this Journal.
- A copyright permission is obtained for materials published elsewhere and which require this permission for reproduction.
Furthermore, the copyright after publication belongs to the Author(s) (for articles published in 2020 and beyond) and licensed under the creative commons license CC-BY-NC (http://creativecommons.org/licenses/by-nc/4.0). The copyright covers the right to reproduce and distribute the article, including reprints, translations, photographic reproductions, microform, electronic form (offline, online) or any other reproductions of similar nature.