Hyperparameter Tuning of XGBoost for Flooding Attack Detection in SDN-based Vehicular Ad Hoc Networks (VANETs) under Limited Resources

Chairunisa Rahma Putri, Galura Muhammad Suranegara, Ichwan Nul Ichsan

Submitted : 2025-10-09, Published : 2025-11-29.

Abstract

Software-Defined Network (SDN) based Vehicular Ad Hoc Network (VANET) infrastructure network enables centralized vehicle control. However, due to its centralized nature, SDN-based VANET is vulnerable to flooding attacks such as Distributed-Denial of Services (DDoS) or Denial of Service (DoS) attacks that can disrupt network availability and endanger traffic safety. This study aims to detect flooding attacks using the Extreme Gradient Boosting (XGBoost) algorithm with a focus on hyperparameter tuning in a limited computing environment to find optimal hyperparameter values for the model. This study uses basic Google Colab with 12 GB RAM with a total dataset of 431,371 entries. The results obtained from this study conclude that hyperparameter tuning achieves optimal performance at n_estimators = 150 and max_depth = 15, resulting in 99.97% accuracy, 99.99% precision, 99.97% recall, and 99.98% F1 score, which proves the effectiveness of the model in detecting flooding attacks. The novelty of this study lies in the application and evaluation of hyperparameter tuning on the XGBoost algorithm in a resource-constrained environment to improve attack detection in SDN-VANET.

Keywords

Extreme Gradient Boosting (XGBoost); flooding attack detection; Vehicular Ad Hoc Network (VANET); machine learning; hyperparameter optimization; resource constrained; Software Defined Network (SDN).

References

World Health Organization, Global Status Report on Road Safety 2023, Geneva, Switzerland: WHO, 2023.

M. Priya, S. Pravin Kumar, S. Rajalakshmi, R. Sangeetha, and S. Anuradha, “Vehicle Ad-Hoc Network for Road Traffic and Accident Preventing,” International Journal for Research & Development in Technology, vol. 7, no. 4, Apr. 2017.

A. Dutta, A. Nandi, B. Das, and A. Chakraborty, “A Comprehensive Review of Recent Developments in VANET for Traffic, Safety & Remote Monitoring Applications,” Journal of Network and Systems Management, vol. 32, no. 4, p. 73, Oct. 2024. https://doi.org/10.1007/s10922-024-09853-5.

R. S. Sandesh and K. Santhosh, “Revolutionizing vehicle communication: A comprehensive exploration of technologies for enhanced road safety and autonomous vehicles,” Alexandria Engineering Journal, vol. 129, pp. 976–997, Oct. 2025. https://doi.org/10.1016/j.aej.2025.08.008.

W. B. Jaballah, M. Conti, C. Lal, and D. Djenouri, “A Survey on Software-Defined VANETs: Benefits, Challenges, and Future Directions,” arXiv, May 2019. https://doi.org/10.48550/arXiv.1904.04577.

S. Thangavel, K. C. Sunkara, and S. Srinivasan, “Software-Defined Networking (SDN) in Cloud Data Centers: Optimizing Traffic Management for Hyper-Scale Infrastructure,” International Journal of Emerging Trends in Computer Science and Information Technology, vol. 3, no. 1, pp. 29–42, 2022.

R. Wazirali, R. Ahmad, and S. Alhiyari, “SDN-OpenFlow Topology Discovery: An Overview of Performance Issues,” Applied Sciences, vol. 11, no. 15, p. 6999, Jul. 2021. https://doi.org/10.3390/app11156999.

M. A. Setitra, “Detection of DDoS attacks in SDN-based VANET using optimized TabNet,” Computer Standards & Interfaces, vol. 90, 2024. https://doi.org/10.1016/j.csi.2024.103845.

M. Arif, G. Wang, O. Geman, V. E. Balas, P. Tao, A. Brezulianu, and J. Chen, “SDN-based VANETs, Security Attacks, Applications, and Challenges,” Applied Sciences, vol. 10, no. 9, p. 3217, May 2020. https://doi.org/10.3390/app10093217.

R. Sultana, S. M. M. Rahman, and A. Anwar, “Security of SDN-based vehicular ad hoc networks: State-of-the-art and challenges,” Vehicular Communications, vol. 27, p. 100284, Jan. 2021. https://doi.org/10.1016/j.vehcom.2020.100284.

H. Karthikeyan and G. Usha, “Real-time DDoS flooding attack detection in intelligent transportation systems”, Computer and Electrical Engineering, vol. 101, p. 107995, Jul. 2022. https://doi.org/10.1016/j.compeleceng.2022.107995.

V. Karthik, R. Lakshmi, S. Abraham, and M. Ramkumar, “Residual-based temporal attention convolutional neural network for detection of distributed denial of service attacks in software-defined network integrated vehicular adhoc network,” International Journal of Network Management, vol. 34, no. 3, p. e2256, May 2024. https://doi.org/10.1002/nem.2256.

Z. El-Rewini, K. Sadatsharan, D.F. Selvaraj, S.J. Plathottam, and P. Ranganathan, “Cybersecurity challenges in vehicular communications”, Vehicular Communications, Vol. 23, p. 100214, Jun. 2020. https://doi.org/10.1016/j.vehcom.2019.100214.

D. Rani and M. K. Soni, “Efficient Detection of DDoS Attack Using Threshold Based Technique in VANETs,” SSRN Electronic Journal, 2024. https://doi.org/10.2139/ssrn.4485752.

M. H. Thwaini, “Anomaly Detection in Network Traffic using Machine Learning for Early Threat Detection,” Data and Metadata, vol. 1, p. 72, Dec. 2022. https://doi.org/10.56294/dm202272.

M. Imani, S. Poria, and H. Rezaei, “Comprehensive Analysis of Random Forest and XGBoost Performance with SMOTE, ADASYN, and GNUS Under Varying Imbalance Levels,” Technologies, vol. 13, no. 3, p. 88, Feb. 2025. https://doi.org/10.3390/technologies13030088.

B. Muktar, V. Fono, and A. Nouboukpo, “Machine Learning-Based Detection of DDoS Attacks in VANETs for Emergency Vehicle Communication,” Computers, Materials & Continua, vol. 85, no. 3, pp. 4705–4727, 2025. https://doi.org/10.32604/cmc.2025.067733.

A. El-Dalahmeh, A. Abu-Shareha, and M. Alzoubi, “An Intrusion Detection System Using the XGBoost Algorithm for SDVN,” Advances in Computational Intelligence Systems, vol. 1453, pp. 390–402, Feb. 2024. https://doi.org/10.1007/978-3-031-47508-5_31.

N. F. Rozam and M. Riasetiawan, “XGBoost Classifier for DDoS Attack Detection in Software Defined Network Using sFlow Protocol,” International Journal of Advanced Science, Engineering and Information Technology, vol. 13, no. 2, pp. 718–725, Apr. 2023. https://doi.org/10.18517/ijaseit.13.2.17810.

Z. A. Ali, R. Raj, and M. N. Mohammed, “eXtreme Gradient Boosting Algorithm with Machine Learning: a Review,” Academic Journal of Nawroz University, vol. 12, no. 2, pp. 320–334, May 2023. https://doi.org/10.25007/ajnu.v12n2a1612.

N. Abedzadeh and M. Jacobs, “A Reinforcement Learning Framework with Oversampling and Undersampling Algorithms for Intrusion Detection System,” Applied Sciences, vol. 13, no. 20, p. 11275, Oct. 2023. https://doi.org/10.3390/app132011275.

Article Metrics

Abstract view: 24 times

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.

Refbacks

  • There are currently no refbacks.