نهج هجين للتعلم الآلي لاكتشاف هجمات DDoS في الشبكات المعرفة بالبرمجيات
A hybrid machine learning approach for detecting DDoS attacks in software-defined networks

شارك:
المجلة: Scientific Reports، المجلد: 16، العدد: 1
DOI: https://doi.org/10.1038/s41598-026-35458-w
PMID: https://pubmed.ncbi.nlm.nih.gov/41606086
تاريخ النشر: 2026-01-28
المؤلف: Iftekhar Ahmed Mahar وآخرون
الموضوع الرئيسي: الشبكات المعرفة بالبرمجيات و5G

نظرة عامة

يتناول قسم ورقة البحث الثغرات التي قدمتها الشبكات المعرفة بالبرمجيات (SDN)، وخاصة فيما يتعلق بهجمات حجب الخدمة الموزعة (DDoS). ويؤكد على ضرورة وجود آليات فعالة للكشف المبكر تستفيد من ميزات حركة المرور المعروفة بـ SDN، والتي تعتبر أساسية لفهم السلوكيات الفريدة للبيئات المعتمدة على OpenFlow. يقترح المؤلفون إطار عمل للتعلم الآلي يستخدم مجموعة بيانات مستمدة من مختبر اختبار SDN، باستخدام وحدة تحكم Ryu وOpen vSwitch، لتمييز بين حركة المرور الحميدة والضارة.

لتحسين قدرات الكشف، يقدم البحث نموذج تصنيف هجين يجمع بين مصنفات Random Forest (RF) وXGBoost (XGB). يتفوق نموذج RF-XGB بشكل كبير على المصنفات الفردية، محققًا دقة مثيرة للإعجاب تبلغ 99.36% ويظهر أداءً استثنائيًا في تحليل منطقة تحت منحنى خصائص التشغيل (ROC) ومصفوفة الالتباس. تؤكد النتائج على فعالية دمج هندسة الميزات الخاصة بـ SDN مع تقنيات التعلم الجماعي للكشف المبكر الموثوق عن هجمات DDoS في الشبكات القابلة للبرمجة.

مقدمة

تناقش مقدمة ورقة البحث التأثير التحويلي للشبكات المعرفة بالبرمجيات (SDN) على الشبكات الحديثة من خلال فصل مستوى التحكم عن مستوى البيانات. يسمح هذا الفصل بالإدارة المركزية من خلال وحدات تحكم مثل Floodlight وRyu وPox وOpenDaylight، مما يعزز القابلية للبرمجة، ويقلل من التعقيد، ويخفض التكاليف مع تعزيز الاستقلالية عن البائعين. ومع ذلك، فإن الطبيعة المركزية لـ SDN تقدم ثغرات فريدة، خاصة ضد الهجمات الشبكية المعقدة التي تستغل نقاط الضعف المركزية في وحدات التحكم.

تسلط الورقة الضوء على الطبيعة المزدوجة لقابلية برمجة SDN: بينما تحسن الكفاءة التشغيلية، فإنها تزيد أيضًا من التعرض للتهديدات، خاصة هجمات حجب الخدمة الموزعة (DDoS). تشكل هذه الهجمات، التي تستخدم الشبكات الآلية لإغراق الأهداف، مخاطر كبيرة على بيئات SDN من خلال جعل وحدة التحكم نقطة فشل حاسمة. يتم التأكيد على الحاجة الملحة لآليات دفاع قوية، حيث تشير التقييمات التجريبية إلى أن حملات DDoS يمكن أن تتصاعد بسرعة بسبب الربط المعماري بين معالجة الأحداث وتركيب قواعد التدفق. كما تؤكد المقدمة على إمكانيات الذكاء الاصطناعي في تعزيز الأمن السيبراني من خلال الكشف التكيفي عن التهديدات واتخاذ القرارات الآلية، مع عرض أطر عمل تحسن من الكشف عن التهديدات المستمرة المتقدمة من خلال تحليل سلوك الشبكة بشكل ديناميكي.

الطرق

في هذا القسم، يصف المؤلفون الطرق ومصادر البيانات المستخدمة لتقييم تأثير هجمات حجب الخدمة الموزعة (DDoS) على بنى الشبكات المعرفة بالبرمجيات (SDN). تم تنفيذ ثلاثة سيناريوهات تجريبية: هجمات الفيضانات المعتمدة على البروتوكول (فيضانات TCP SYN/ACK)، وهجمات الفيضانات الحجمية (فيضانات UDP وICMP)، وهجمات الفيضانات المختلطة التي تجمع بين أنواع حركة المرور المختلفة. تم اختيار هذه السيناريوهات بسبب تأثيراتها الكبيرة على أنظمة SDN، خاصة من حيث إغراق المفاتيح ووحدات التحكم من خلال وصول تدفقات مفرط وأحداث حزمة داخلية. لمحاكاة ظروف الشبكة الواقعية، تم توليد حركة مرور حميدة بالتزامن، مما أدخل تنوعًا في عدد التدفقات، واستخدام المنافذ، وتقديرات النطاق الترددي، مما يعزز تنوع مجموعة البيانات ويحسن من تعميم نماذج التعلم الآلي.

شملت منهجية الاختبار توليد حركة المرور بينما كانت وحدة التحكم Ryu تسجل إحصائيات مفصلة على مستوى التدفق والمنافذ. تم تخزين جميع البيانات المجمعة بتنسيق CSV، مع تعيين علامة ثنائية لكل إدخال تدفق لأغراض التصنيف. تم إجراء عدة جولات تجريبية لتضمين التغيرات الزمنية وتقليل خطر الإفراط في التكيف مع أنماط حركة المرور المحددة. أدت هذه المقاربة الشاملة إلى مجموعة بيانات تمثل بدقة سلوك SDN الحقيقي تحت كل من الظروف الطبيعية وظروف DDoS، مما يسهل تقييمًا قويًا لنماذج التعلم الآلي المطورة للكشف عن مثل هذه الهجمات والتخفيف منها.

النتائج

في قسم النتائج، يتم تفصيل أداء النموذج الهجين المقترح الذي يستخدم مجموعة بيانات الشبكات المعرفة بالبرمجيات (SDN). تظهر مجموعة البيانات توزيعًا متوازنًا لحركة المرور الحميدة والضارة، كما هو موضح في الجداول 3 و4، مما يعزز تقييم نماذج التصنيف من خلال تقليل التحيز تجاه أي فئة حركة مرور محددة. تم تقييم نماذج التعلم الآلي باستخدام مقاييس مثل الدقة، والدقة، والاسترجاع، ودرجة F1. أظهرت النماذج الأبسط مثل الانحدار اللوجستي (LR) وNaïve Bayes (NB) دقة أقل بسبب عدم قدرتها على التقاط العلاقات غير الخطية، بينما تفوقت النماذج المعتمدة على الأشجار، وخاصة Random Forest (RF) وXGBoost (XGB)، بشكل كبير من خلال نمذجة التفاعلات المعقدة بين الميزات بشكل فعال.

حقق نموذج RF-XGB الهجين الذي تم ضبطه بدقة أعلى دقة تصنيف تبلغ 99.36%، مع الحفاظ على RF على استرجاع ودقة عالية، وXGB يظهر قوة ضد أخطاء التصنيف الخاطئ. تؤكد هذه النتائج على فعالية المتعلمين المعتمدين على التجميع في الكشف عن هجمات DDoS في بيئات SDN. علاوة على ذلك، تشير تحليل المقارنة مع الأدبيات الحالية، الملخصة في الجدول 6، إلى أن النموذج المقترح يتجاوز أداء التقنيات المبلغ عنها سابقًا، مما يعزز فعاليته في الكشف عن DDoS المعتمد على SDN.

المناقشة

تؤكد قسم المناقشة في ورقة البحث على الحاجة الملحة لاستراتيجيات الكشف المتقدمة في بيئات الشبكات المعرفة بالبرمجيات (SDN) لمكافحة هجمات حجب الخدمة الموزعة (DDoS) المستمرة. تشير النتائج إلى أن دمج التحليل الإحصائي مع التعلم الآلي (ML) يعزز من الكشف عن كل من حركة مرور DDoS عالية المعدل ومنخفضة المعدل. ومع ذلك، تواجه نماذج ML الحالية تحديات مثل قابلية التوسع، ومعدلات إيجابية كاذبة عالية، ومرونة محدودة تجاه متغيرات الهجوم الجديدة، ويرجع ذلك أساسًا إلى الاعتماد على مجموعات بيانات قديمة تفتقر إلى ميزات محددة لـ SDN. تقترح هذه الدراسة إطار عمل هجين للتعلم الآلي يجمع بين مصنفات Random Forest وXGBoost المحسنة، مما يظهر أداءً متفوقًا في الكشف عن هجمات DDoS بدقة تبلغ 99.36%، بينما تعالج أيضًا قيود الأساليب الحالية.

يستخدم الإطار المقترح مجموعة بيانات جديدة محددة لـ SDN مستمدة من إحصائيات OpenFlow في الوقت الفعلي، والتي تتضمن ميزات مصممة خصيصًا لسلوك حركة مرور SDN. لا يحسن النموذج الهجين من دقة الكشف فحسب، بل يظهر أيضًا قابلية أكبر للتوسع ومرونة ضد أنماط الهجوم المتنوعة. تؤكد النتائج التجريبية على فعالية النهج الهجين، مما يظهر قدرته على التمييز بدقة بين حركة المرور الحميدة والضارة، مما يرسخ مكانته كحل قوي لتأمين نشرات SDN الحديثة. تؤكد النتائج على أهمية نماذج الكشف الهجينة في التكيف مع المشهد المتطور لتهديدات DDoS، مما يشير إلى أن مثل هذه الأطر يمكن دمجها في بيئات SDN التشغيلية للتخفيف الفوري من الهجمات.

القيود

تتعدد قيود نموذج التعلم الآلي الهجين المقترح للكشف عن هجمات DDoS في بيئات الشبكات المعرفة بالبرمجيات (SDN). أولاً، كانت التقييمات التجريبية مقيدة بتوبولوجيا مفاتيح واحدة باستخدام Mininet ووحدة تحكم Ryu، مما قد لا يمثل بشكل كافٍ تعقيدات الشبكات الإنتاجية الكبيرة متعددة المفاتيح. وبالتالي، قد تختلف ديناميكيات حركة المرور وأحمال وحدات التحكم الملاحظة في هذا الإعداد المسيطر بشكل كبير عن تلك الموجودة في النشر في العالم الحقيقي. ثانيًا، تم توليد مجموعة البيانات المستخدمة من حركة مرور حميدة وهجمات اصطناعية، مما قد يفتقر إلى تنوع الأنماط الموجودة في حملات DDoS الفعلية، خاصة الهجمات متعددة المتجهات، أو منخفضة المعدل، أو الخفية. يثير هذا مخاوف بشأن قابلية تعميم النموذج على أنماط حركة المرور غير المرئية، مما يستلزم مزيدًا من التحقق باستخدام آثار الشبكة الحقيقية.

بالإضافة إلى ذلك، ركزت الدراسة حصريًا على الكشف عن DDoS دون تقييم استراتيجيات التخفيف، على الرغم من اقتراح إطار للتكامل. لم يتم تقييم عبء الأداء والكمون المرتبطين بالانتقال من الكشف إلى التخفيف، وهي أمور حاسمة لتنفيذ نظام دفاع شامل في الوقت الحقيقي. علاوة على ذلك، كانت التقييمات تفتقر إلى اختبار الدلالة الإحصائية، مثل اختبار McNemar أو اختبارات t المقترنة، والتي ستدعم التحسينات مقارنة بالنماذج الأساسية. قد يحد غياب تقارير التباين وفترات الثقة لمقاييس الأداء من تفسير القوة تحت ظروف تدريب متغيرة. أخيرًا، لا تأخذ مجموعة الميزات الحالية في الاعتبار الاعتماد الزمني أو الاتجاهات السلوكية طويلة الأجل، مما يشير إلى أن نماذج متقدمة مثل الشبكات العصبية ذات الذاكرة الطويلة والقصيرة (LSTM) أو الشبكات العصبية المعتمدة على الرسوم البيانية قد تكون ضرورية لالتقاط هذه الديناميكيات في بيئات SDN المتطورة. تؤكد هذه القيود على الحاجة إلى مزيد من البحث في التقييمات واسعة النطاق، ودمج مجموعات البيانات الواقعية، وتنفيذ استراتيجيات التخفيف، والتحقق الإحصائي القوي، واستكشاف هياكل التعلم العميق المتقدمة المصممة لسياقات SDN.

Journal: Scientific Reports, Volume: 16, Issue: 1
DOI: https://doi.org/10.1038/s41598-026-35458-w
PMID: https://pubmed.ncbi.nlm.nih.gov/41606086
Publication Date: 2026-01-28
Author(s): Iftekhar Ahmed Mahar et al.
Primary Topic: Software-Defined Networks and 5G

Overview

The research paper section discusses the vulnerabilities introduced by Software-Defined Networking (SDN), particularly in relation to Distributed Denial of Service (DDoS) attacks. It emphasizes the necessity for effective early detection mechanisms that leverage SDN-aware traffic features, which are essential for understanding the unique behaviors of OpenFlow-based environments. The authors propose a machine-learning framework that utilizes a dataset derived from an SDN testbed, specifically using a Ryu controller and Open vSwitch, to differentiate between benign and malicious traffic.

To enhance detection capabilities, the study introduces a hybrid classification model that combines Random Forest (RF) and XGBoost (XGB) classifiers. This RF-XGB model significantly outperforms the individual classifiers, achieving an impressive accuracy of 99.36% and demonstrating exceptional performance in Receiver Operating Characteristic (ROC) Area Under the Curve (AUC) and confusion matrix analyses. The findings underscore the effectiveness of integrating SDN-specific feature engineering with ensemble learning techniques for the reliable early detection of DDoS attacks in programmable networks.

Introduction

The introduction of the research paper discusses the transformative impact of Software-Defined Networking (SDN) on modern communication networks by separating the control plane from the data plane. This separation allows for centralized management through controllers like Floodlight, Ryu, Pox, and OpenDaylight, which enhances programmability, reduces complexity, and lowers costs while promoting vendor independence. However, the centralized nature of SDN introduces unique vulnerabilities, particularly to sophisticated network attacks that exploit controller-centric weaknesses.

The paper highlights the dual nature of SDN’s programmability: while it improves operational efficiency, it also increases exposure to threats, especially Distributed Denial of Service (DDoS) attacks. These attacks, which utilize botnets to overwhelm targets, pose significant risks to SDN environments by making the controller a critical point of failure. The urgency for robust defense mechanisms is underscored, as empirical evaluations indicate that DDoS campaigns can escalate quickly due to the architectural coupling of event processing and flow-rule installation. The introduction also emphasizes the potential of artificial intelligence in enhancing cybersecurity through adaptive threat detection and automated decision-making, showcasing frameworks that improve the detection of advanced persistent threats by analyzing network behavior dynamically.

Methods

In this section, the authors describe the methods and data sources used to evaluate the impact of Distributed Denial of Service (DDoS) attacks on Software-Defined Networking (SDN) infrastructures. Three experimental scenarios were implemented: protocol-based flooding attacks (TCP SYN/ACK floods), volumetric flooding attacks (UDP and ICMP floods), and mixed flooding attacks that combined various traffic types. These scenarios were chosen due to their significant effects on SDN systems, particularly in terms of overwhelming switches and controllers through excessive flow arrivals and packet-in events. To simulate realistic network conditions, benign traffic was concurrently generated, which introduced variability in flow counts, port utilization, and bandwidth estimates, thereby enhancing the diversity of the dataset and improving the generalization of the machine learning models.

The testing methodology involved generating traffic while the Ryu controller recorded detailed flow-level and port-level statistics. All collected data were stored in CSV format, with each flow entry assigned a binary label for classification purposes. Multiple experimental runs were conducted to incorporate temporal variations and mitigate the risk of overfitting to specific traffic patterns. This comprehensive approach resulted in a dataset that accurately represents real SDN behavior under both normal and DDoS conditions, facilitating a robust evaluation of the machine learning models developed for detecting and mitigating such attacks.

Results

In the Results section, the performance of the proposed hybrid model utilizing the Software-Defined Networking (SDN) dataset is detailed. The dataset exhibits a balanced distribution of benign and malicious traffic, as shown in Tables 3 and 4, which enhances the evaluation of classification models by minimizing bias towards any specific traffic category. The machine learning models were assessed using metrics such as Accuracy, Precision, Recall, and F1-score. Simpler models like Logistic Regression (LR) and Naïve Bayes (NB) demonstrated lower accuracy due to their inability to capture nonlinear relationships, while tree-based models, specifically Random Forest (RF) and XGBoost (XGB), significantly outperformed them by effectively modeling complex interactions among features.

The hyper-tuned hybrid RF-XGB model achieved the highest classification accuracy of 99.36%, with RF maintaining high recall and precision, and XGB exhibiting robustness against misclassification errors. These results underscore the effectiveness of ensemble-based learners in detecting DDoS attacks in SDN environments. Furthermore, a comparative analysis with existing literature, summarized in Table 6, indicates that the proposed model surpasses the performance of previously reported techniques, reinforcing its efficacy in SDN-based DDoS detection.

Discussion

The discussion section of the research paper emphasizes the critical need for advanced detection strategies in Software-Defined Networking (SDN) environments to combat persistent Distributed Denial-of-Service (DDoS) attacks. The findings indicate that integrating statistical profiling with machine learning (ML) enhances the detection of both high-rate and low-rate DDoS traffic. However, existing ML models face challenges such as scalability, high false positive rates, and limited adaptability to new attack variants, primarily due to reliance on outdated datasets lacking SDN-specific features. This study proposes a hybrid machine learning framework that combines optimized Random Forest and XGBoost classifiers, demonstrating superior performance in detecting DDoS attacks with an accuracy of 99.36%, while also addressing the limitations of existing approaches.

The proposed framework utilizes a newly constructed SDN-specific dataset derived from real-time OpenFlow statistics, which includes engineered features tailored to SDN traffic behavior. The hybrid model not only improves detection accuracy but also exhibits enhanced scalability and resilience against diverse attack patterns. The experimental results validate the effectiveness of the hybrid approach, showcasing its ability to accurately differentiate between benign and malicious traffic, thereby establishing it as a robust solution for securing modern SDN deployments. The findings underscore the importance of hybrid detection models in adapting to the evolving landscape of DDoS threats, suggesting that such frameworks can be integrated into operational SDN environments for real-time mitigation of attacks.

Limitations

The limitations of the proposed hybrid machine learning model for detecting DDoS attacks in Software-Defined Networking (SDN) environments are multifaceted. Firstly, the experimental evaluation was restricted to a single-switch topology using Mininet and a Ryu controller, which may not adequately represent the complexities of large-scale, multi-switch production networks. Consequently, the traffic dynamics and controller workloads observed in this controlled setting could differ significantly from those in real-world deployments. Secondly, the dataset utilized was generated from synthetic benign and attack traffic, potentially lacking the diversity of patterns found in actual DDoS campaigns, particularly multi-vector, low-rate, or stealthy attacks. This raises concerns regarding the model’s generalizability to unseen traffic patterns, necessitating further validation with real network traces.

Additionally, the study focused exclusively on DDoS detection without evaluating mitigation strategies, despite proposing a framework for integration. The performance overhead and latency associated with transitioning from detection to mitigation were not assessed, which are critical for implementing a comprehensive real-time defense system. Furthermore, the evaluation lacked statistical significance testing, such as McNemar’s test or paired t-tests, which would substantiate the improvements over baseline models. The absence of reported variance and confidence intervals for performance metrics may limit the robustness interpretation under varying training conditions. Lastly, the current feature set does not account for temporal dependencies or long-term behavioral trends, suggesting that advanced models like Long Short-Term Memory (LSTM) networks or graph-based neural networks may be necessary to capture these dynamics in evolving SDN environments. These limitations underscore the need for future research in large-scale evaluations, real-world dataset integration, mitigation strategy implementation, robust statistical validation, and the exploration of advanced deep learning architectures tailored for SDN contexts.