Enhancing network robustness using software-defined networking