DFNet
No description available
Install / Use
/learn @Secbrain/DFNetREADME
Effective DDoS Mitigation via Preference-Driven In-network Traffic Shaping

Introduction
DFNet is the DDoS prevention system in the proposed new paradigm that copes with the existing challenges. We design DFnet with three tightly coupled components named as dLearner, dEncoder, and dEnforcer. This anonymous repository shows part source code including the ML model architecture and dataplane implementation.
Requirements
Hardware:
- 40 GbE NIC: DPDK-supported hardwares
- e.g., Intel XL710-QDA2
Software:
- Ubuntu 16.04.1 LTS
- Python 3.7
- DPDK 20.11
- Pktgen 20.03.0
ML Model
- Input: Extract raw bytes of the PCAP traffic and save them as CSV files.
- Config: Modify the model parameters and dataset path in ./model/config.json.
- Training model: Directly train decision trees, or convert the trained DNN into decision trees.
- Generating rules: Use ./model/tree_to_rule.py to generate byte-rules from the decision tree model.
Dataplane
- Install DPDK 20.11 following Getting Started Guide for Linux.
- Compile DPDK applications.
- Install byte-rules
./dpdk-ip_pipeline -l 0-7 -- -s ./demo_rule.cli - Use pdump to capture packets
./dpdk-pdump -- --pdump 'port=0,queue=*,rx-dev=/tmp/rx.pcap,tx-dev=/tmp/tx.pcap,ring-size=65536' --pdump 'port=1,queue=*,rx-dev=/tmp/rx2.pcap,ring-size=65536' - Use Pktgen to send packets
./pktgen -l 0-4 -n 4 -- -P -m [1].0 -m [2].1 -m [3].2 -m [4].3 -s 0:./demo.pcap -s 1:./demo.pcap -s 2:./demo.pcap -s 3:./demo.pcap
Related Skills
node-connect
347.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
