SONAR or Sound navigation and ranging uses sound propagation to detect objects underneath ocean for example. It creates a pulse of sound, often called a "ping", and then listens for reflections (echo) of the pulse. This pulse of sound is generally created electronically using a sonar projector. To measure the distance to an object, the time from transmission of a
pulse to reception is measured and converted into a range by knowing the
speed of sound.
Modern naval warfare makes extensive use of sonar from water-borne vessels, aircraft and fixed installations to detect foreign weapons underneath.