Designing the internetworking of terrestrial and satellite IP-based networks