Non-parametric distributed algorithms for network-based anomaly detection