DDoS detection and mitigation using machine learning