Controller performs on-demand request when routing IP packets