Have you heard of the
Interplanetary Internet? It's how NASA is solving that exact problem, with a lot of backing from Google as well. It's based around
delay-tolerant networking protocols, and is being designed by Vint Cerf (amongst others), one of the original co-designers of TCP/IP.