PUBLICATION 1

ABSTRACT

Distributed Denial-of-Service (DDoS) attacks remain one of the most persistent threats to the availability, reliability, and performance of modern computer networks. Unlike conventional denial-of-service attacks, DDoS attacks employ multiple compromised devices or distributed sources to generate overwhelming volumes of malicious traffic against a target. The increasing adoption of cloud computing, Internet of Things (IoT), software-defined networking (SDN), edge computing, and highly distributed digital services has expanded the attack surface and made conventional rule-based detection mechanisms increasingly inadequate. Machine learning (ML) provides an alternative approach by learning patterns associated with normal and malicious network behaviour and using these patterns to identify anomalous traffic.This paper examines the application of machine learning to the detection and prevention of DDoS attacks in modern computer networks. It critically discusses supervised, unsupervised, semi-supervised, ensemble, and deep-learning approaches, together with commonly used datasets such as CIC-DDoS2019, UNSW-NB15, and N-BaIoT. The study proposes an intelligent DDoS defence architecture that combines traffic monitoring, feature engineering, machine-learning classification, anomaly detection, explainability, and automated mitigation. Particular attention is given to challenges involving imbalanced datasets, concept drift, zero-day attacks, false positives, computational overhead, adversarial manipulation, and real-time deployment. The paper argues that effective DDoS defence should move beyond accuracy-focused classification toward adaptive, explainable, lightweight, and automated systems capable of detecting emerging attack behaviours while minimizing disruption to legitimate users. The proposed framework provides a foundation for future empirical research and doctoral-level investigation into resilient machine-learning-based network security.

Keywords

Distributed Denial-of-Service, DDoS, machine learning, cybersecurity, intrusion detection, deep learning, network security, anomaly detection, SDN, IoT.

INTRODUCTION

The Internet has become an essential component of contemporary economic, social, educational, governmental, and industrial activities. Organizations increasingly depend on networked infrastructures to deliver cloud applications, financial services, e-commerce platforms, communication systems, healthcare applications, online education, and critical infrastructure services. This dependence has consequently increased the consequences of network disruption. Among the attacks capable of producing widespread disruption, Distributed Denial-of-Service (DDoS) attacks represent a particularly significant challenge.A DDoS attack occurs when an attacker coordinates traffic or service requests from multiple sources to exhaust the computational, memory, bandwidth, or application resources of a target. The objective is generally not to steal information directly but to prevent legitimate users from accessing a service. Modern DDoS campaigns can operate at different layers of the network stack, ranging from volumetric attacks that saturate bandwidth to protocol and application-layer attacks that exploit weaknesses in network services. Application-layer attacks are particularly difficult because malicious requests can resemble legitimate traffic, making simple threshold-based detection less effective. Recent research similarly identifies the diversity of DDoS attacks, heterogeneous network environments, and evolving communication protocols as major challenges for conventional defence mechanisms. (Wiley Online Library 1)Traditional DDoS detection mechanisms commonly rely on predefined signatures, traffic thresholds, access-control rules, rate limiting, and manually engineered indicators. Although these techniques remain useful, they can struggle against attacks that change their characteristics over time. A detector designed around a fixed traffic threshold, for example, may incorrectly classify legitimate traffic surges as attacks or fail to recognize a low-rate application-layer attack.Machine learning offers a fundamentally different approach. Rather than depending entirely on manually defined rules, an ML system can learn relationships among network-flow characteristics and identify patterns associated with malicious behaviour. Depending on the learning paradigm, the system may be trained using labelled attack data, discover previously unknown anomalies, or combine both approaches.Existing research has demonstrated the potential of machine learning for DDoS detection. Surveys have reported the use of supervised, unsupervised, hybrid, and deep-learning approaches across different network environments. (Wiley Online Library2) However, a major research problem remains: very high classification accuracy on a benchmark dataset does not necessarily translate into reliable real-world protection.This distinction is important for doctoral research. A useful DDoS defence system must not only identify malicious traffic but also operate within realistic time constraints, maintain low false-positive rates, generalize across network environments, cope with previously unseen attacks, and support appropriate mitigation decisions.Accordingly, this paper examines how machine learning can be integrated into a broader DDoS detection and prevention architecture. The emphasis is placed on both detection and prevention, because identifying an attack without an effective response mechanism does not fully solve the availability problem.

CONCEPTUAL BACKGROUND

Distributed Denial-of-Service Attacks

DDoS attacks can be broadly classified according to the resources they attempt to exhaust. Volumetric attacks consume network bandwidth through large quantities of traffic. Protocol attacks exploit weaknesses in network or transport protocols and may exhaust resources on routers, firewalls, load balancers, or servers. Application-layer attacks target specific services and attempt to consume server-side processing capacity.Common examples include UDP floods, SYN floods, DNS amplification, NTP amplification, SSDP attacks, HTTP floods, and other forms of coordinated traffic generation. The CIC-DDoS2019 dataset, for example, contains multiple DDoS families, including NTP, DNS, LDAP, MSSQL, NetBIOS, SNMP, SSDP, UDP, UDP-Lag, WebDDoS, SYN, and TFTP attacks. The distributed nature of DDoS attacks creates an important detection problem. A single malicious source may not generate enough traffic to appear suspicious. However, thousands of sources acting together can create a coordinated pattern. Therefore, effective detection should examine not only individual packets but also flow-level and aggregate behavioural characteristics.

Limitations of Conventional DDoS Detection

Traditional intrusion detection systems generally employ signatures, rules, statistical thresholds, or manually defined heuristics. These approaches offer several advantages, including simplicity, interpretability, and relatively low computational requirements.However, they have important limitations.First, signature-based systems are dependent on knowledge of previously observed attack patterns. A novel attack may therefore escape detection until a corresponding signature is developed.Second, static thresholds may be inappropriate in dynamic environments. A traffic level considered abnormal during ordinary operations may be completely legitimate during an online sale, major event, software release, or other traffic surge.Third, modern application-layer attacks can imitate legitimate requests. Consequently, characteristics such as packet volume alone may be insufficient.These limitations have motivated researchers to explore adaptive approaches based on machine learning and artificial intelligence.

Machine Learning for DDoS Detection

Machine-learning approaches to DDoS detection can broadly be categorized into supervised, unsupervised, semi-supervised, ensemble, and deep-learning methods.

Supervised Learning

Supervised learning requires labelled observations representing legitimate and malicious traffic. Algorithms such as Logistic Regression, Decision Trees, Random Forest, Support Vector Machines (SVM), k-Nearest Neighbours, Naïve Bayes, and gradient-boosting models can be trained to distinguish between traffic classes.Random Forest is particularly attractive for network-security applications because it can model nonlinear relationships, accommodate different feature types, and provide estimates of feature importance. Decision trees are similarly useful because their classification logic can be relatively easy to interpret.

The general classification problem can be expressed as: f(X)=Y

where (X) represents network traffic features and (Y) represents the predicted traffic class, such as benign or DDoS.

For binary classification: Y \in \{0,1\}

where 0 represents legitimate traffic and 1 represents malicious traffic.

The principal weakness of supervised learning is its dependence on the quality and representativeness of training data. A model trained on one network environment may perform poorly when deployed in another environment with different traffic characteristics.

Unsupervised Learning

Unsupervised learning attempts to identify patterns without requiring every observation to have a predefined label. Algorithms such as K-Means, DBSCAN, Isolation Forest, and autoencoders can be used to identify unusual traffic behaviour.This approach is particularly valuable for detecting previously unknown attacks. Instead of asking whether traffic matches a known DDoS signature, the model asks whether the observed behaviour deviates significantly from established normal patterns.However, anomaly detection introduces a fundamental challenge: not every anomaly is malicious. Legitimate but unusual traffic can produce false alarms.

Deep Learning

Deep-learning approaches use multilayer neural architectures to learn complex representations from traffic data. Convolutional Neural Networks (CNNs), Recurrent Neural Networks (RNNs), Long Short-Term Memory (LSTM) networks, autoencoders, and transformer-based models have increasingly attracted attention in network-security research.LSTM models are particularly suitable when temporal relationships between network observations are important. For example, a DDoS attack may initially produce subtle changes in connection frequency that become obvious only when traffic behaviour is examined over a sequence of time intervals.

Deep learning can therefore be represented conceptually as: X_t, X_{t-1},...,X_{t-n} \rightarrow F_{\theta}(X) \rightarrow Y

where \(X_t\) represents network observations over time, \(F_{\theta}\) represents the learned model, and \(Y\) represents the predicted class.

The disadvantage is computational complexity. Deep models may require considerable training resources and may be difficult to deploy on resource-constrained network devices.

RELATED EMPIRICAL RESEARCH AND RESEARCH GAP

The literature demonstrates considerable interest in machine-learning-based DDoS detection. Najafimehr et al. reviewed machine-learning approaches and categorized existing methods into supervised, unsupervised, and hybrid approaches while highlighting challenges associated with datasets, generalization, and emerging attack methods. (Wiley Online Library 1)Recent studies continue to investigate ML and deep-learning techniques for DDoS detection. A 2024 review, for example, emphasizes the growing use of machine learning, deep learning, and anomaly-detection techniques in DDoS research. (UHD Academic Journals 3) More recent systematic research on SDN environments similarly identifies adaptive learning, lightweight deployment, and integration with programmable networking infrastructures as important future directions. (MDPI 4)The availability of realistic datasets has also improved empirical research. CIC-DDoS2019 was developed specifically to address weaknesses in previous DDoS datasets and contains both benign and multiple contemporary DDoS traffic categories. Its flow representation includes more than 80 extracted traffic features. UNSW-NB15 is another widely used intrusion-detection dataset. It contains approximately 2.54 million records, 49 generated features, and several categories of attack behaviour, including DoS. (UNSW Sites 5)For IoT environments, N-BaIoT provides another valuable research resource. The dataset was constructed from network traffic generated by IoT devices and contains 115 features derived from different temporal windows. (MDPI 6)Despite these advances, five major research gaps remain.First, benchmark dependence. Many studies report excellent results using a single dataset. This can create an optimistic assessment of real-world performance.Second, class imbalance. DDoS datasets may contain significantly more attack observations than certain categories of legitimate traffic, or vice versa. Accuracy can therefore become misleading.Third, zero-day generalization. A model may accurately identify attacks represented during training but fail against new attack behaviours.Fourth, detection-prevention integration. Considerable research focuses on classification accuracy without sufficiently addressing what happens after an attack is detected.Fifth, operational efficiency. A highly accurate model that takes too long to classify traffic may be unsuitable for real-time network protection.These gaps establish the need for a more comprehensive framework that considers accuracy, latency, generalization, explainability, and automated response simultaneously.

PROPOSED MACHINE LEARNING-BASED DDoS DECTATION AND PREVENTION FRAMEWORK

This study proposes an intelligent architecture consisting of six major layers: 1. Traffic acquisition. 2. Pre-processing and feature engineering. 3. Machine-learning detection. 4. Anomaly and uncertainty analysis. 5. Explainable decision-making. 6. Automated mitigation

Traffic Acquisition Layer

Network traffic is collected from routers, switches, firewalls, SDN controllers, cloud gateways, or network-monitoring interfaces. Rather than analysing every raw packet independently, flow-level monitoring can be used to reduce computational requirements. Relevant features may include: packet count; byte count; flow duration; packet rate; byte rate; source and destination ports; protocol; SYN/ACK ratios; connection frequency; inter-arrival time; packet-size statistics; source-IP diversity; destination-IP concentration; and temporal traffic variation.

This allows the detection system to construct a behavioural representation of network activity.

Data Pre-processing

Raw traffic commonly contains missing values, duplicated observations, irrelevant attributes, categorical variables, and highly correlated features.Pre-processing should therefore include: removal of duplicates; missing-value handling; categorical encoding; normalization or standardization; feature selection; dimensionality reduction where appropriate; and temporal aggregation.

A critical methodological principle is that preprocessing must be performed without allowing information from the testing set to leak into the training process.

Feature Selection

Feature selection is important because unnecessary features increase computational overhead and may introduce noise.A hybrid feature-selection process could combine statistical methods with model-based importance scores.For example: F^* = \arg\max_{F \subseteq X} \left(Performance(F)-\lambda |F|\right)

where \(F^*\) represents the selected feature subset, \(Performance(F)\) represents predictive performance, and \(\lambda\) penalizes excessive feature complexity.

The objective is therefore not simply to maximize accuracy but to identify a compact set of highly informative traffic characteristics.

Hybrid Detection Model

The proposed architecture combines supervised classification with anomaly detection.A supervised classifier identifies known DDoS patterns: P(Y=DDoS|X)

At the same time, an anomaly detector calculates the degree to which traffic deviates from normal behaviour: A(X)=AnomalyScore(X)

The final decision can combine both values: S(X)=\alpha P(Y=DDoS|X)+(1-\alpha)A(X)

where \(0\leq\alpha\leq1\).

This hybrid approach is intended to reduce dependence on known attack signatures. Known attacks can be classified through supervised learning, while unusual traffic can be flagged through anomaly detection.

Prevention and Automated Mitigation

Detection alone does not constitute an effective DDoS defence. Once malicious traffic is identified, the system must determine an appropriate response.A proposed response mechanism can classify detected events into three levels:

Level 1: Monitoring

Traffic is considered low risk. The system continues monitoring without intervention.

Level 2: Controlled Mitigation

When the probability of an attack exceeds a defined threshold, the system can apply measures such as: rate limiting; traffic filtering; connection throttling; suspicious-source isolation; firewall-rule modification; or traffic redirection.

Level 3: Emergency Mitigation

For high-confidence attacks, automated controls can be activated rapidly to protect critical resources.In SDN environments, the controller may dynamically modify flow rules to redirect or block malicious traffic. This makes SDN particularly relevant to machine-learning-based DDoS prevention because detection and response can be integrated into a programmable control architecture. Recent literature identifies the combination of machine learning with SDN programmability as an important direction for scalable DDoS defence. ([MDPI][4])

However, automated mitigation must be designed cautiously. An incorrect decision could block legitimate users. Therefore, the framework should incorporate confidence thresholds and, where necessary, human approval for ambiguous events.

Proposed Research Methodology

A doctoral investigation based on the proposed framework could adopt an experimental quantitative design.

Research Objectives

The study would pursue the following objectives:

1. To identify network-flow characteristics that effectively distinguish DDoS traffic from legitimate traffic.2. To develop and compare machine-learning models for DDoS detection.3. To evaluate the ability of hybrid ML models to identify previously unseen attack behaviour.4. To develop an automated mitigation mechanism for detected attacks.5. To evaluate the proposed system in terms of accuracy, precision, recall, F1-score, false-positive rate, detection latency, and computational cost.6. To examine the generalizability of the proposed approach across different network datasets.

Research Questions

The investigation may be guided by the following questions:

RQ1: Which network-flow features provide the strongest predictive information for DDoS detection?RQ2: Which machine-learning algorithm provides the best balance between detection performance and computational efficiency?RQ3: Can a hybrid supervised–unsupervised model improve detection of previously unseen DDoS behaviours?RQ4: How effectively can machine-learning predictions support automated DDoS mitigation?RQ5:How well does the proposed model generalize across different datasets and network environments?

Dataset Strategy

A stronger doctoral methodology would avoid reliance on a single dataset.

The proposed evaluation should include at least: CIC-DDoS2019;UNSW-NB15; andN-BaIoT for IoT-oriented experiments.

CIC-DDoS2019 is especially suitable because it includes a broad range of DDoS attack categories and flow-level features. UNSW-NB15 provides a broader intrusion-detection environment containing contemporary normal and malicious network behaviours. ([UNSW Sites][5]) N-BaIoT can extend the investigation toward IoT environments where compromised devices can become distributed sources of malicious traffic. ([MDPI][6])

Experimental Models

The following algorithms could be experimentally compared:

Category

Classical ML

Ensemble ML

Unsupervised

Deep Learning

Hybrid

Algorithms

Logistic Regression, Decision Tree, SVM

Random Forest, Gradient Boosting

Isolation Forest, K-Means, Autoencoder

CNN, LSTM

Supervised classifier + anomaly detector

Performance should not be assessed solely through accuracy.

The confusion matrix should be used to obtain: Precision=\frac{TP}{TP+FP}, Recall=\frac{TP}{TP+FN}, F1=2\frac{Precision\times Recall}{Precision+Recall}

where TP represents true positives, FP false positives, and FN false negatives.

The false-positive rate should also be explicitly examined because incorrectly blocking legitimate traffic can itself create a denial-of-service condition.

Cross-Dataset Validation

One of the strongest elements of the proposed methodology is cross-dataset testing.

Instead of training and testing exclusively on the same dataset, experiments can examine: training on Dataset A and testing on Dataset A; training on Dataset A and testing on Dataset B; training on combined datasets and testing on an unseen dataset.

This provides a stronger measure of generalization.

For example: Model(CIC-DDoS2019) \rightarrow UNSW-NB15

would provide evidence regarding how well a model trained in one environment transfers to another.

Expected Contribution, Challenges and Conclusion

Expected Contributions

The proposed study is expected to contribute to the cybersecurity literature in several ways.First, it would provide a systematic comparison of different machine-learning approaches to DDoS detection.Second, it would investigate the relationship between feature reduction and detection performance, thereby addressing the computational requirements of real-time detection.Third, the hybrid detection mechanism would combine supervised classification with anomaly detection, potentially improving resilience against previously unseen traffic patterns.Fourth, the research would connect detection with automated mitigation rather than treating classification as the final objective.Fifth, cross-dataset validation would provide a stronger assessment of generalization than conventional single-dataset experiments.Finally, the inclusion of explainability could help network administrators understand why a particular traffic flow was classified as malicious.

Major Challenges

Despite its potential, machine-learning-based DDoS defence presents several challenges. Data quality: Models are highly dependent on their training data. Artificial or outdated datasets may not accurately represent current network conditions. Concept drift: Network behaviour changes over time. A model trained under one traffic distribution may become less effective as applications, users, devices, and attack strategies evolve. Adversarial attacks: Attackers may deliberately manipulate traffic characteristics to deceive ML classifiers. Therefore, cybersecurity models themselves become targets. False positives: A detector that incorrectly classifies legitimate traffic as malicious may disrupt users and services.Computational overhead: Complex deep-learning models may require considerable processing resources, which can limit deployment on edge devices or high-speed network infrastructure.

Explainability:

Security personnel may be reluctant to trust an automated defence mechanism when its decisions cannot be understood or investigated.These challenges indicate that the ultimate objective should not be simply to build a model with the highest benchmark accuracy. Instead, the goal should be to develop a trustworthy, adaptive, efficient, explainable, and operationally deployable DDoS defence system.

Conclusion

DDoS attacks continue to pose a significant threat to the availability and reliability of modern computer networks. The increasing complexity of cloud platforms, IoT environments, SDN infrastructures, and distributed digital services makes conventional static detection approaches increasingly insufficient. Machine learning provides an important opportunity to develop adaptive systems capable of identifying malicious traffic based on learned behavioural patterns.The literature demonstrates that supervised, unsupervised, ensemble, and deep-learning approaches can provide valuable capabilities for DDoS detection. However, important weaknesses remain, particularly concerning dataset dependence, false positives, zero-day attacks, concept drift, computational requirements, and the limited integration between detection and automated mitigation. ([Wiley Online Library][1])This paper therefore proposes a hybrid architecture that integrates network-flow monitoring, feature engineering, supervised classification, anomaly detection, explainability, and automated mitigation. The proposed methodology emphasizes cross-dataset evaluation using established resources such as CIC-DDoS2019, UNSW-NB15, and N-BaIoT. Such an approach would allow future empirical research to evaluate not only predictive accuracy but also generalization, latency, computational efficiency, and practical defensive value.Ultimately, the future of DDoS defence is unlikely to depend on a single machine-learning algorithm. Rather, effective protection will require intelligent systems capable of continuously learning from changing network behaviour, distinguishing legitimate traffic anomalies from attacks, explaining their decisions, and responding rapidly without unnecessarily disrupting legitimate services. The proposed framework provides a foundation for such research and can be developed into a full doctoral empirical study through implementation, experimentation, statistical testing, and real-world or controlled network validation.

References

Ali, O. M. A., Hamaamin, R. A., Youns, B. J., & Kareem, S. W. (2024). Innovative machine learning strategies for DDoS detection: A review. UHD Journal of Science and Technology, 8(2), 38–49. ([UHD Academic Journals][3])

Arrak, S. Z., & Al-Janabi, R. J. S. (2024). Detecting DDoS attacks using machine learning: Survey. Journal of Al-Qadisiyah for Computer Science and Mathematics, 16. ([Al-Qadisiyah J. Comp. Sci. Math.][7])

Isiekwene, C. C., Azeez, N. A., Akinboro, S. A., & Sennaike, O. (2026). Machine learning models for DDoS attack detection: A systematic literature review. Vokasi UNESA Bulletin of Engineering, Technology and Applied Science, 3(2). ([Journal of Universitas Negeri Surabaya][8])

Kumar, S., Dwivedi, M., Kumar, M., & Gill, S. S. (2024). A comprehensive review of vulnerabilities and AI-enabled defense against DDoS attacks for securing cloud services. Computer Science Review, 53, 100661. ([ScienceDirect][9])

Moustafa, N., & Slay, J. (2015). UNSW-NB15: A comprehensive data set for network intrusion detection systems. Military Communications and Information Systems Conference (MilCIS). ([UNSW Sites][5])

Najafimehr, M., Zarifzadeh, S., & Mostafavi, S. A. (2023). DDoS attacks and machine-learning-based detection methods: A survey and taxonomy. Engineering Reports. ([Wiley Online Library][1])

Otiko, A. O., Edim, E. A., Iyang, G. A., & Oyo-Ita, E. (2024). A survey of AI methods for detection of DDoS attacks on networks. Advances in Research, 25(5), 256–271. ([SSRN][10])

Sharafaldin, I., Lashkari, A. H., Hakak, S., & Ghorbani, A. A. (2019). Developing realistic distributed denial of service (DDoS) attack dataset and taxonomy. IEEE 53rd International Carnahan Conference on Security Technology.

UNB Canadian Institute for Cybersecurity. (2019). DDoS evaluation dataset (CIC-DDoS2019).

Zhang, et al. (2020). Intelligent detection of IoT botnets using machine learning and deep learning. Applied Sciences, 10(19), 7009. ([MDPI][6])

Scroll to Top