Dynamic VNF Placement, Resource Allocation and Traffic Routing in 5G