Throughput maximization and resource optimization in NFV-enabled networks