Detecting and Mitigating DDoS Attacks