Intelligent Traffic Distribution for SDN and NFV