How to model, measure and manage a resilient network.