The impact of delay in software-defined integrated terrestrial-satellite networks