NetCheck: Network Diagnoses from Blackbox Traces