Hybrid Approach to Classification of DDoS Attacks on a Computer Network Infrastructure

Enock Quansah Effah *

Department of Computer Science, KNUST, Kumasi, Ghana.

Eric Opoku Osei

Department of Computer Science, KNUST, Kumasi, Ghana.

Maxwell Dorgbefu Jnr.

Information Technology Education Department, AAMUSTED, Kumasi, Ghana.

Abraham Tetteh

Mathematics/ICT Department, Bia Lamplighter College of Education, Debiso, Ghana.

*Author to whom correspondence should be addressed.


The advancement in technology, its ease of use, and the competitive nature of its deployment in business operations have led to the wide spread of networking systems globally, and Ghana is not an exception. Most business operations and even personal activities are now conducted online leading to increased network connectivity, access to networked resources, and the corresponding cyber-attacks on these network systems. Distributed Denial-of-Service (DDoS) is one of the sophisticated attacks in the cyberspace. In DDOs, the attacker floods the network with massive and unsolicited traffic, causing the network infrastructure to exhaust all its resources in responding to the attacker’s request, thereby denying access to legitimate users of such resources. In this study, we designed and implemented a hybrid deep learning model (CRNN-Infusion) for detection and classification of DDoS attacks. Our model utilized the CNN, and RNN models, with the CICDDoS2019 dataset obtained from the Canadian Institute of Cybersecurity (CIC) for its training, with Random Search Hyperparameter Tuning (RSHT) and Feature Selection (FS) techniques for model efficiency and dimensionality reduction. Cybersecurity (CIC) for the model’s training, with Random Search Hyperparameter Tuning (RSHT) and FS techniques for model efficiency and dimensionality reduction. The results showed that, our proposed model is a better classifier for DDoS attacks compared to other deep learning (DL) models trained on the same dataset. With the highest accuracy of 98.92%, hybrid deep learning models are suitable for detecting and classifying DDoS attacks on network infrastructures. The findings point out that, with the appropriate choice of feature selection and hyperparameter tuning techniques, hybrid deep learning models perform optimally, with 98.92% accuracy, 99.02% precision, 98.92% recall, and 98.93% F1 score for our proposed model.

Keywords: Convolutional neural network, recurrent neural network, deep neural network, random search hyperparameter tuning

How to Cite

Effah , E. Q., Osei , E. O., Maxwell Dorgbefu Jnr., & Tetteh , A. (2024). Hybrid Approach to Classification of DDoS Attacks on a Computer Network Infrastructure . Asian Journal of Research in Computer Science, 17(4), 19–43. https://doi.org/10.9734/ajrcos/2024/v17i4428


Download data is not yet available.


Dasari BK, Davarakonda N. Detection of Different DDoS Attacks Using Machine Learning Classification Algorithms,” Ingénierie des Systèmes d’Information. 2021;26(5):461-468,

Shurman M, Khrais R, Yateem A. DoS and DDoS Attack Detection Using Deep Learning and IDS,” The International Arab Journal of Information Technology. 2020;17(4A):655-661,

Tekleselassie H. A Deep Learning Approach for DDoS Attack Detection Using Supervised Learning,” MATEC Web of Conferences. 2021;348:01012-01019.

World Bank. The Key to Creating More Jobs in Ghana: Driving Technological Transformation of Micro-, Small and Medium-sized Enterprises,” 24 November 2021. Available:https://www.worldbank.org/en/news/feature/2021/11/24/the-key-to-creating-more-jobs-in-ghana-driving-technological-transformation-of-micro-small-and-medium-sized-enterprises.

Arshi M, Nasreen M, Madhavi K. A Survey of DDoS Attacks Using Machine Learning Techniques, E3S Web of Conferences. 2020;184:01052-01058.

Perez-Diaz AJ, Valdovinos AI, Choo RKK, Zhu D. A Flexible SDN-Based Architecture for Identifying and Mitigating Low Rate DDoS Attacks Using Machine Learning, IEEE Access. 2020;8:155859-155872.

Le TD, Dao HM, Nguyen TLQ. Comparison of machine learning algorithms for DDoS attack detection in SDN, Informatsionno-upravliaiushchie sistemy [Information and Control Systems]. 2020;3:59-70.

Khempetch T, Wuttidittachotti, DDoS attack detection using deep learning, IAES International Journal of Artificial Intelligence (IJ-AI). 2020;10(2):382-388.

Lopes OI, Zou D, Ruambo AF, Akbar S, Yuan B. Towards Effective Detection of Recent DDoS Attacks: A Deep Learning Approach,” Security and Communication Networks. 2021;5710028-5710041.

Salmi S, Oughdir L. Performance evaluation of deep learning techniques for DoS attacks detection in wireless sensor network, Journal of Big Data. 2023;17-42.

Sumathi S, Rajesh R, Lim S. Recurrent and Deep Learning Neural Network Models for DDoS Attack Detection, Journal of Sensors. 2022;8530312-8530332.

Filho LdSF, Silveira AFF, Brito MdAJ, Vargas-Solar G, Silveira FL. Smart Detection: An Online Approach for DoS/DDoS Attack,” Security and Communication Networks. 2019;15.

Pei J, Chen Y, Ji W. A DDoS Attack Detection Method Based on Machine,” Journal of Physics: Conf. Series. 2019;1237:032040.

Gupta S, Grover D, AlZubi AA, Sachdeva N, Baig WM, Singla J. Machine Learning with Dimensionality Reduction for DDoS Attack Detection,” Computers, Materials & Continua. 2021; 72(2):2665-2682.

Ahmed SS, Shet RS. A Study of Machine Learning Algorithms for DDoS Detection, International Journal for Research in Applied Science & Engineering Technology (IJRASET). 2021;9(6):174-178.

Malliga S, Nandhini SP, Kogilavani VS. A Comprehensive Review of Deep Learning Techniques for the Detection of (Distributed) Denial of Service Attacks, Information Technology and Control. 2022;180-215.

Ismail IM, Mohmand H, Hussain KA, Ayaz U, Ullah M, Zakarya A, Ahmed M, Raza UI. Rahman and M. Haleem, A Machine Learning-Based Classification and Prediction Technique for DDoS Attacks, IEEE Access. 2022;10:21443-21454.

Sanjeetha R, Kanavalli A, Gupta A, Pattanaik A, Agarwal S. Real-time DDoS Detection and Mitigation in Software Defined Networks using Machine Learning Techniques, International Journal of Computing. 2022;21(3):353-359.

Alduailij M, Khan WQ, Tahir M, Muhammad S, Alduailij M, Malik F. Machine-Learning-Based DDoS Attack Detection Using Mutual Information and Random Forest Feature Importance Method, Symmetry. 2022;14:1095-1109.

Almaraz-Rivera GJ, Perez-Diaz AJ, Cantoral-Ceballos AJ. Transport and Application Layer DDoS Attacks Detection to IoT Devices by Using Machine Learning and Deep Learning Models, Sensors. 2022;22:3367-3384.

Ulemale T. Review on Detection of DDOS Attack using Machine Learning,” International Journal for Research in Applied Science & Engineering Technology (IJRASET). 2022;10; (3):764-768.

Sasikumar H. DDoS Attack Detection and Classification using Machine Learning Models with Real-Time Dataset Created, International Journal of Recent Technology and Engineering (IJRTE). 2021;9(5):145-153.

Altamemi JA, Abdulhassan A, Obeis TN. DDoS attack detection in software defined networking controller using machine learning techniques, Bulletin of Electrical Engineering and Informatics. 2022;11(5):2836-2844.

Singh KA. Machine Learning in OpenFlow Network: Comparative Analysis of DDoS Detection Techniques, The International Arab Journal of Information Technology. 18;2.

Ghanbari M, Kinsner W. Detecting DDoS Attacks Using Polyscale Analysis and Deep Learning, International Journal of Cognitive Informatics and Natural Intelligence. 2020;14:1.

Prriyadarshini AM, Devi RS. Detection of DDoS Attacks Using Supervised Learning Technique,” Journal of Physics: Conference Series. 2020;1716:012057-012069.

Azizan HA, Mostafa AS, Mustapha A, Foozy MFC, Wahab AHM, Mohammed and A. B. Khalaf, A Machine Learning Approach for Improving the Performance of Network Intrusion Detection Systems, Annals of Emerging Technologies in Computing (AETiC). 2021;5(5):201-208.

Sahoo SK, Tripathy KB, Naik K, Ramasubbareddy S, Balusamy B, Khari M, Burgos D. An Evolutionary SVM Model for DDOS Attack Detection in Software Defined Networks, IEEE Access. 2020;8:132502-132513.

Prasad DM, Babu PV, Amarnath C. Machine Learning DDoS Detection Using Stochastic Gradient Boosting, International Journal of Computer Sciences and Engineering. 2019;7(4):157-167,

Narote A, Zutshi V, Potdar A, Vichare R. Detection of DDoS Attacks using Concepts of Machine Learning, International Journal for Research in Applied Science & Engineering Technology (IJRASET). 2022;10(VI):390-403.

Hariharan M, Abhishek HK, Prasad GB. DDoS Attack Detection Using C5.0 Machine Learning Algorithm, I.J. Wireless and Microwave Technologies. 2019;1:52-59.

Issa T, Tiemoman K. propose a method for detecting and mitigating Distributed Denial of Service (DDoS) attacks in real-time by using Software Defined Network (SDN) technologies, Bloom filters, and machine learning-based behavioral analysis of network traffic, International Journal of Advanced Computer Science and Applications (IJACSA). 2019;10(9)406-412.

Polat H, Polat O, Cetin A. Detecting DDoS Attacks in Software-Defined Networks Through Feature Selection Methods and Machine Learning Models,” Sustainability. 2020;12:1036-1051.

Dong S, Sarem M. DDoS Attack Detection Method Based on Improved KNN With the Degree of DDoS Attack in Software-Defined Networks,” IEEE Access. 2020;8:5039-5048.

Sindian S, Sindian S. An Enhanced Deep Autoencoder-based Approach for DDoS Attack Detection, WSEAS Transactions on Systems and Control. 2020;15:716-724.

Tennakoon C, Fernando S. Deep learning model for distributed denial of service (DDoS) detection, International Journal of Advanced and Applied Sciences. 2021;9(2):109-118.

Ingle A, Gour A, Kshirsagar K. DDoS Attack Detection Algorithms Based on Pattern Classification and Machine Learning, Journal of University of Shanghai for Science and Technology. 23(2):132.

Shieh CS, Lin WW, Nguyen TT, Chen CH, Horng MF, Miu D. Detection of Unknown DDoS Attacks with Deep Learning and Gaussian Mixture Model,” Applied Sciences. 2021;11:5213-5225.

Xinlong L, Zhibin C. DDoS Attack Detection by Hybrid Deep Learning Methodologies,” Security and Communication Networks. 2022;7866096-7866103.

Ahmed S, Khan AZ, Mohsin MS, Latif S, Aslam HM, Adil M, Najam Z. Effective and Efficient DDoS Attack Detection Using Deep Learning Algorithm, Multi-Layer Perceptron, Future Internet. 2023;15:76-99.

Aktar S, A. Nur Y. Towards DDoS attack detection using deep learning approach,” Computers & Security. 2023;129:103251.

Elsayed SM, Le-Khae NA, Soumyabrata D, Jurcut DA. DDoSNet: A Deep-Learning Model for Detecting Network Attacks,” IEEE; 2020.

Doriguzzi-Corin R. Miller S. Scott-Hayward S. Martinez-del-Rincon J, Siracusa D. LUCID: A Practical Lightweight Deep Learning Solution for DDoS Attack Detection, IEEE Transactions on Network and Service Management. 2020;2971776-2971790.

Najafimehr M, Zarifzadeh S, Mostafavi S. A hybrid machine learning approach for detecting unprecedented DDoS attacks, The Journal of Supercomputing. 2021;78:8106-8136.

Aslam M, Ye D, Tariq A, Asad M, Hanif M, Ndzi D, Chelloug AS, AM. Elaziz AAM. Al-Quaness and F. S. Jilani, “Adaptive Machine Learning Based Distributed Denial-of-Services Attacks Detection and Mitigation System for SDN-Enabled IoT, Sensors. 2022;2697-2724.

Saghezchi BF, Mantas G, Violas AM, OdMA. Duarte and J. Rodriquez, In this paper, the data is collected, and efficient ML is built 4.0 CPPSs,” Electronics. 2022;11:602-615.

Balasubramaniam S, Vijesh Joe C, Sivakumar TA, Prasanth A, Kavitha V, Satheesh Kumar K, Dhanaraj RK. Optimization Enabled Deep Learning-Based DDoS Attack Detection in Cloud Computing, International Journal of Intelligent Systems. 2023;2039217 –2039233:02.

Pandian PA, Smys S. DDOS ATTACK DETECTION IN TELECOMMUNICATION NETWORK, Journal of Ubiquitous Computing and Communication Technologies (UCCT). 2019;1(1):33-44.

Sharafaldin I, Lashkari HA, Hakak S, Ghorbani AA. Developing Realistic Distributed Denial of Service (DDoS) Attack Dataset and Taxonomy, in 2019 International Carnahan Conference on Security Technology, Chennai, India; 2019.

LaMorte WW. Correlation and Linear Regression,” 07 October 2021. Available:https://sphweb.bumc.bu.edu/otlt/mph-modules/bs/bs704_correlation-regression/bs704_correlation-regression2.html.

Alghazzawi D, Bamasag O, Hayat O, Ashgar ZM. Efficient Detection of DDoS Attacks Using a Hybrid Deep Learning Model with Improved Feature Selection,” Applied Sciences. 2021;11634-11656.