SDN controller for context-aware data delivery in dynamic service chaining