Spaces:
Runtime error
Runtime error
File size: 1,020 Bytes
6343831 7bd4df7 6343831 2e1ebff 6343831 7bd4df7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | ---
title: DDoS Detection System
emoji: 🛡️
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 3.50.2
app_file: app.py
pinned: false
---
# 🛡️ DDoS Detection System
Detect DDoS attacks in real-time using **Packets Per Second (PPS)** calculation.
## How It Works
Enter two values from your network flow data:
- **Flow Duration** — how long the flow lasted (in microseconds)
- **Total Packets** — total number of packets in the flow
The system calculates PPS and classifies the traffic instantly.
## Threat Levels
| PPS Range | Status |
|-----------|--------|
| < 500 | ✅ NORMAL |
| 500 – 2,000 | ⚠️ SUSPICIOUS |
| 2,000 – 10,000 | 🚨 HIGH TRAFFIC |
| > 10,000 | 🔥 DDoS ATTACK! |
## Example Inputs
| Flow Duration (µs) | Total Packets | PPS | Result |
|--------------------|---------------|-----|--------|
| 1,000,000 | 100 | 100 | ✅ NORMAL |
| 100,000 | 100 | 1,000 | ⚠️ SUSPICIOUS |
| 10,000 | 100 | 10,000 | 🚨 HIGH TRAFFIC |
| 98 | 15 | 153,061 | 🔥 DDoS ATTACK! |
|