Network recovery based on system crash early warning in a cascading failure model