Multi-Dataset Evaluation of ML-Based Intrusion Detection Models for Binary Classification in Software-Defined Networks

Authors

DOI:

https://doi.org/10.22153/kej.2026.06.006

Keywords:

Software-defined networks; intrusion detection system; distributed denial of service; machine learning; random forest; gradient boosting; AdaBoost; naïve bayes; NSL-KDD; CICDDoS2019; InSDN.

Abstract

Network-based intrusion detection systems (IDSs) are essential components of cybersecurity architectures. Their ability to generalize across diverse network environments is critical to reliable and effective intrusion detection. However, as networks grow in scale and complexity, conventional IDSs struggle to cope with emerging threats, particularly in programmable, dynamic environments such as software-defined networks (SDN). These limitations have driven the adoption of machine learning (ML) approaches to improve detection accuracy and adaptability to evolving attack patterns. In this work, an ML-based IDS was used to enhance SDN security by classifying network traffic as benign or malicious. Three widely adopted benchmark datasets, NSL-KDD, CICDDoS2019, and InSDN, were employed to ensure robust multi-dataset evaluation and diverse traffic representation. Four supervised classifiers (Naïve Bayes, gradient boosting, AdaBoost, and random forest) were used. To evaluate the IDS models, a consistent preprocessing pipeline was applied to ensure fairness, prevent data leakage, and enable a realistic comparison of classifiers. Stratified fivefold cross-validation was applied to all the datasets. Among all tested models, random forest achieved the best performance, with accuracy exceeding 99% across all three datasets, demonstrating the effectiveness of ensemble-based learning for binary intrusion detection in SDN environments. This work contributes to existing literature by providing a unified multi-dataset evaluation framework for intrusion detection in SDN environments. However, the evaluation is limited to intra-dataset scenarios and does not consider real-world SDN deployments.

Downloads

Download data is not yet available.

References

[1] J. A. P. Fernández, L. J. G. Villalba, and T. H. Kim, “Software defined networks in wireless sensor architectures,” Apr. 01, 2018, MDPI AG. https://doi.org/10.3390/e20040225

[2] M. S. Farooq, S. Riaz, and A. Alvi, “Security and Privacy Issues in Software-Defined Networking (SDN): A Systematic Literature Review,” Jul. 01, 2023, Multidisciplinary Digital Publishing Institute (MDPI). https://doi.org/10.3390/electronics12143077

[3] L. S. Mezher, N. Sabah, and D. J. Kadhim, “Load Balancing Based Intelligent Software Defined Networking (SDN) Controller,” 2024. [Online]. Available: https://www.jisem-journal.com/

[4] M. B. Jimenez, D. Fernandez, J. E. Rivadeneira, L. Bellido, and A. Cardenas, “A Survey of the Main Security Issues and Solutions for the SDN Architecture,” 2021, Institute of Electrical and Electronics Engineers Inc. https://doi.org/10.1109/ACCESS.2021.3109564

[5] S. S. Jawad, D. J. Kadhim, and Y. Y. B. Jusoh, “Insight Thoughts for Intelligent Traffic Management-Based SDN,” Journal of Engineering, vol. 31, no. 7, pp. 1–34, Jul. 2025, https://doi.org/10.31026/j.eng.2025.07.01

[6] Y. Shen, C. Wu, D. Kong, and Q. Cheng, “Flow Table Saturation Attack against Dynamic Timeout Mechanisms in SDN,” Applied Sciences (Switzerland), vol. 13, no. 12, Jun. 2023, https://doi.org/10.3390/app13127210

[7] S. Batool, M. Aslam, E. Akpokodje, and S. F. Jilani, “A Comprehensive Review of DDoS Detection and Mitigation in SDN Environments: Machine Learning, Deep Learning, and Federated Learning Perspectives,” Nov. 01, 2025, Multidisciplinary Digital Publishing Institute (MDPI). https://doi.org/10.3390/electronics14214222

[8] Z. Latif, Q. Umer, C. Lee, K. Sharif, F. Li, and S. Biswas, “A Machine Learning-Based Anomaly Prediction Service for Software-Defined Networks,” Sensors, vol. 22, no. 21, Nov. 2022, https://doi.org/10.3390/s22218434

[9] B. R. Kikissagbe and M. Adda, “Machine Learning-Based Intrusion Detection Methods in IoT Systems: A Comprehensive Review,” Sep. 01, 2024, Multidisciplinary Digital Publishing Institute (MDPI). https://doi.org/10.3390/electronics13183601

[10] J. C. Mondragon, P. Branco, G. V. Jourdan, A. E. Gutierrez-Rodriguez, and R. R. Biswal, “Advanced IDS: a comparative study of datasets and machine learning algorithms for network flow-based intrusion detection systems,” Applied Intelligence, vol. 55, no. 7, May 2025, https://doi.org/10.1007/s10489-025-06422-4

[11] A. O. Alzahrani and M. J. F. Alenazi, “future internet Designing a Network Intrusion Detection System Based on Machine Learning for Software Defined Networks,” 2021, https://doi.org/10.3390/fi13050111

[12] S. Oyucu, O. Polat, M. Türkoğlu, H. Polat, A. Aksöz, and M. T. Ağdaş, “Ensemble Learning Framework for DDoS Detection in SDN-Based SCADA Systems,” Sensors, vol. 24, no. 1, Jan. 2024, https://doi.org/10.3390/s24010155

[13] T. Ferrão, F. Manene, and A. A. Ajibesin, “Multi-Attack Intrusion Detection System for Software-Defined Internet of Things Network,” Computers, Materials and Continua, vol. 75, no. 3, pp. 4985–5007, 2023, https://doi.org/10.32604/cmc.2023.038276

[14] Z. Liu, Y. Wang, F. Feng, Y. Liu, Z. Li, and Y. Shan, “A DDoS Detection Method Based on Feature Engineering and Machine Learning in Software-Defined Networks,” Sensors, vol. 23, no. 13, Jul. 2023, https://doi.org/10.3390/s23136176

[15] U. Ashraf, H. Sharif, S. Usman, and M. Hasnain, “A Machine Learning Based Approach for the Detection of DDoS Attacks on Internet of Things Using CICDDoS2019 Dataset - PortMap,” Lahore Garrison University Research Journal of Computer Science and Information Technology, vol. 8, no. 2, Jul. 2024, https://doi.org/10.54692/lgurjcsit.2024.082569

[16] O. Polat et al., “Multi-Stage Learning Framework Using Convolutional Neural Network and Decision Tree-Based Classification for Detection of DDoS Pandemic Attacks in SDN-Based SCADA Systems,” Sensors, vol. 24, no. 3, Feb. 2024, https://doi.org/10.3390/s24031040

[17] A. Golduzian, “Continuing the Journey: Unraveling More About Data Mining for DDoS Attack Detection Using CICDDoS2019 Dataset”, https://doi.org/10.13140/RG.2.2.31523.67360

[18] M. S. Raza, M. N. A. Sheikh, I. S. Hwang, and M. S. Ab-Rahman, “Feature-Selection-Based DDoS Attack Detection Using AI Algorithms,” Telecom, vol. 5, no. 2, pp. 333–346, Jun. 2024, https://doi.org/10.3390/telecom5020017

[19] A. Hirsi, L. Audah, A. Salh, M. A. Alhartomi, and S. Ahmed, “Detecting DDoS Threats using Supervised Machine Learning for Traffic Classification in Software Defined Networking,” IEEE Access, 2024, https://doi.org/10.1109/ACCESS.2024.3486034

[20] K. Saluja, S. Bagchi, V. Solanki, M. N. A. Khan, E. Dhamija, and S. K. Debnath, “Exploring Robust DDoS Detection: A Machine Learning Analysis with the CICDDoS2019 Dataset,” in INDISCON 2024 - 5th IEEE India Council International Subsections Conference: Science, Technology and Society, Institute of Electrical and Electronics Engineers Inc., 2024. https://doi.org/10.1109/INDISCON62179.2024.10744272

[21] R. K. A, N. S. G, and N. D, “Detection of Distributed Denial of Service Attack on Controller in Software Defined Network,” in 2024 IEEE International Conference on Smart Power Control and Renewable Energy (ICSPCRE), IEEE, Jul. 2024, pp. 1–6. https://doi.org/10.1109/ICSPCRE62303.2024.10675161

[22] S. Mehmood, R. Amin, J. Mustafa, M. Hussain, F. S. Alsubaei, and M. D. Zakaria, “Distributed Denial of Services (DDoS) attack detection in SDN using Optimizer-equipped CNN-MLP,” PLoS One, vol. 20, no. 1 January, Jan. 2025, https://doi.org/10.1371/journal.pone.0312425

[23] E. P. Estupiñán Cuesta, J. C. Martínez Quintero, and J. D. Avilés Palma, “DDoS Attacks Detection in SDN Through Network Traffic Feature Selection and Machine Learning Models,” Telecom, vol. 6, no. 3, Sep. 2025, https://doi.org/10.3390/telecom6030069

[24] M. M. Obaid and M. H. Saleh, “Efficient Intrusion Detection Through the Fusion of AI Algorithms and Feature Selection Methods,” Journal of Engineering, vol. 30, no. 07, pp. 184–201, Jul. 2024, https://doi.org/10.31026/j.eng.2024.07.11

[25] M. Ring, S. Wunderlich, D. Scheuring, D. Landes, and A. Hotho, “A survey of network-based intrusion detection data sets,” Sep. 01, 2019, Elsevier Ltd. https://doi.org/10.1016/j.cose.2019.06.005

[26] “NSL-KDD | Datasets | Research | Canadian Institute for Cybersecurity | UNB.” Accessed: May 18, 2025. [Online]. Available: https://www.unb.ca/cic/datasets/nsl.html

[27] Y. Ding and Y. Zhai, “Intrusion detection system for NSL-KDD dataset using convolutional neural networks,” in ACM International Conference Proceeding Series, Association for Computing Machinery, Dec. 2018, pp. 81–85. https://doi.org/10.1145/3297156.3297230

[28] J. Jang, Y. An, D. Kim, and D. Choi, “Feature Importance-Based Backdoor Attack in NSL-KDD,” Electronics (Switzerland), vol. 12, no. 24, Dec. 2023, https://doi.org/10.3390/electronics12244953

[29] “DDoS 2019 | Datasets | Research | Canadian Institute for Cybersecurity | UNB.” Accessed: Aug. 04, 2025. [Online]. Available:

https://www.unb.ca/cic/datasets/ddos-2019.html

[30] M. A. Talukder and M. A. Uddin, “CIC-DDoS2019 Dataset,” vol. 1, 2023, doi: 10.17632/SSNC74XM6R.1.

[31] “CIC-DDoS2019 Dataset - Mendeley Data.” Accessed: May 13, 2025. [Online]. Available: https://data.mendeley.com/datasets/ssnc74xm6r/1

[32] M. S. Elsayed, N. A. Le-Khac, and A. D. Jurcut, “InSDN: A novel SDN intrusion dataset,” IEEE Access, vol. 8, pp. 165263–165284, 2020, https://doi.org/10.1109/ACCESS.2020.3022633

[33] H. Y. I. Khalid and N. B. I. Aldabagh, “A Survey on the Latest Intrusion Detection Datasets for Software Defined Networking Environments,” Engineering, Technology and Applied Science Research, vol. 14, no. 2, pp. 13190–13200, 2024, https://doi.org/10.48084/etasr.6756

[34] Md. A. Uddin, S. Aryal, M. R. Bouadjenek, M. Al-Hawawreh, and Md. A. Talukder, “Hierarchical Classification for Intrusion Detection System: Effective Design and Empirical Analysis,” Mar. 2024, https://doi.org/10.1016/j.adhoc.2025.103982

[35] R. K. Hapsari, A. H. Salim, B. D. Meilani, T. Indriyani, and A. Rachman, “Comparison of the Normalization Method of Data in Classifying Brain Tumors with the k-NN Algorithm,” 2023, pp. 21–29. https://doi.org/10.2991/978-94-6463-174-6_3

[36] S. Arlot and A. Celisse, “A survey of cross-validation procedures for model selection,” Stat. Surv., vol. 4, pp. 40–79, 2010, https://doi.org/10.1214/09-SS054

[37] Antonio. Gulli and Sujit. Pal, Deep Learning with Keras : Implement various deep-learning algorithms in Keras and see how deep-learning can be used in games. Packt Publishing, 2017. https://www.packtpub.com/enus/product/deep-learning-with-keras-9781787128422

[38] G. W. Cha et al., “Development of a prediction model for demolition waste generation using a random forest algorithm based on small datasets,” Int. J. Environ. Res. Public Health, vol. 17, no. 19, pp. 1–15, Oct. 2020, https://doi.org/10.3390/ijerph17196997

[39] S. Kadhim, J. K. S. Paw, Y. C. Tak, S. Ameen, and A. Alkhayyat, “An Optimized Machine Learning Models by Metaheuristic Corona Virus Optimization Algorithm for Precise Iris Recognition,” Advances in Artificial Intelligence and Machine Learning, vol. 5, no. 1, pp. 3389–3408, 2025, https://doi.org/10.54364/AAIML.2025.51194

[40] M. Azeez Joodi, M. Hadi Saleh, and D. Jasim Kadhim, “A New Proposed Hybrid Learning Approach with Features for Extraction of Image Classification,” Journal of Robotics, vol. 2023, 2023, https://doi.org/10.1155/2023/9961421

[41] Z. He, D. Lin, T. Lau, and M. Wu, “Gradient Boosting Machine: A Survey,” Aug. 2019, [Online]. Available: http://arxiv.org/abs/1908.06951

[42] N. Nguyen and D. Ngo, “Comparative analysis of boosting algorithms for predicting personal default,” Cogent Economics and Finance, vol. 13, no. 1, 2025, https://doi.org/10.1080/23322039.2025.2465971

[43] M. M. Høgsgaard, K. G. Larsen, and M. Ritzert, “AdaBoost is not an Optimal Weak to Strong Learner,” Aug. 2025, [Online]. Available: http://arxiv.org/abs/2301.11571

[44] S. M. Kadhim et al., “Multi-scale convolutional and temporal modeling for robust face recognition: Introducing ScaleSyncNet,” Results in Engineering, vol. 29, Mar. 2026, https://doi.org/10.1016/j.rineng.2026.109838

[45] M. Sasi, O. R. Adegboye, and A. Alzubi, “Explainable and Optimized Random Forest for Anomaly Detection in IoT Networks Using the RIME Metaheuristic,” Electronics (Switzerland), vol. 14, no. 22, Nov. 2025, https://doi.org/10.3390/electronics14224465

[46] H. Dhirar and A. H. Hamad, “Internet of Things Software-Defined Network Intrusion Detection Dataset: Inter-and Intra-Domain,” Al-Khwarizmi Engineering Journal, vol. 21, no. 3, pp. 35–47, Sep. 2025, https://doi.org/10.22153/kej.2025.08.001

[47] S. Qadir Mohammed and M. A. Hussein, “Performance Analysis of different Machine Learning Models for Intrusion Detection Systems,” Journal of Engineering, vol. 28, no. 5, pp. 61–91, May 2022, https://doi.org/10.31026/j.eng.2022.05.05

Downloads

Published

01-12-2026

How to Cite

[1]
Tayseer Rasheed Abbas and Dheyaa Jasim Kadhim, “Multi-Dataset Evaluation of ML-Based Intrusion Detection Models for Binary Classification in Software-Defined Networks”, alkej, vol. 22, no. 4, pp. 97–114, Dec. 2026, doi: 10.22153/kej.2026.06.006.