A study on detecting network anomalies using sampled flow statistics