Send a short voltage pulse down a long cable. It travels at a fixed speed, and wherever the cable is damaged part of it reflects back. Timing the echo locates the fault: the distance is half the round-trip time times the wave speed.