Tracking a spacecraft as it travels through space is fundamentally a problem of measuring time, we cant just pull out a ruler and measure how far away our spacecraft is. So instead, we measure how long it takes for the spacecraft to echo back a radio signal that is sent from Earth.