A context-aware traffic engineering model for software-defined networks