Centralized vs. distributed algorithms for resilient 5G access networks