DDoSDN
Applying Machine Learning model (SVM) into DDoS attack detection in SDN.
Install / Use
/learn @icesonata/DDoSDNREADME
DDoSDN
This is a repository about applying Machine Learning model into DDoS attack detection in Software-defined network.
Demo video: https://youtu.be/QMnSjwCPHMM
Prerequisite
Install required packages via: pip3 install -r requirements.txt
Note that the program is written and tested with Python version 3.x, so does pip.
Manual
Create a virtual environment via Python: python3 -m venv venv.
After that, install all requirements as described in Prerequisite.
Next run each one below in different shell respectively.
Start the Ryu controller by running: ryu-manager customCtrl.py
Start the SDN topology by running: python3 topo.py
Start the collecting and inspecting program by running: source collect.sh
Description
.result: represents the classification result from the model, true or false that the system is under DDoS attack.
gentraffic.sh: generates normal traffic.
warn.py: ignore the warning due to deprecation.
topo.py: mininet topology.
realtime.csv: csv file that contains 5 characteristic values. (read more at Referece)
inspector: make a call to the model so as to classify the given characteristic values.
customCtrl.py: custom Ryu controller.
computeTuples.py: compute 5 characteristic from raw data.
collect.sh: collect records in flow tables from openflow switches to process and extract raw data. \
Dataset
The dataset used in this project is from DDoS-Detection-SDN.
Note
Note that mitigation method is not available in this project. The mitigate.sh file demonstrates the idea of setting fixed routing for openflow switches.
Reference
[1] DDoS-Detection-SDN by William Isaac, Suraj Iyer, Nishank Thakra
[2] Ye, J., Cheng, X., Zhu, J., Feng, L. and Song, L., 2018. A DDoS attack detection method based on SVM in software defined network. Security and Communication Networks, 2018.
Related Skills
claude-opus-4-5-migration
109.9kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
model-usage
350.1kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
mcp-for-beginners
15.8kThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable, and secure AI workflows from session setup to service orchestration.
TrendRadar
51.0k⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的 AI 舆情监控助手与热点筛选工具!聚合多平台热点 + RSS 订阅,支持关键词精准筛选。AI 智能筛选新闻 + AI 翻译 + AI 分析简报直推手机,也支持接入 MCP 架构,赋能 AI 自然语言对话分析、情感洞察与趋势预测等。支持 Docker ,数据本地/云端自持。集成微信/飞书/钉钉/Telegram/邮件/ntfy/bark/slack 等渠道智能推送。
