You can use UDP echo packets to measure the transit time for data between the transmitting and receiving ends.