PreFix: Switch Failure Prediction in Datacenter Networks