--- 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! |