A Flooding-Based DoS/DDoS Detecting Algorithm Based on Traffic Measurement and Prediction