Performance Modeling for Network Anomaly Detection and Sensor Networks