In ultrasonic testing, very short ultrasonic pulse-waves with center frequencies ranging from 0.1-15 MHz and occasionally up to 50 MHz are launched into materials to detect hidden cracks, voids, porosity, and other internal flaws or to characterize materials. The technique is also commonly used to determine the thickness of the test object.
High frequency sound waves reflect from flaws in predictable ways, producing distinctive echo patterns that can be displayed and recorded by portable instruments. Ultrasonic testing is completely nondestructive and safe, and it is a well-established test method in many basic manufacturing, process, and service industries, especially in applications involving welds and structural metals.
It works on pulse-echo method. The sound pulse coming from the transmitter is radiated in a beam through a given medium at a specific speed or velocity, in a predictable direction, and when they encounter a boundary with a different medium they will be reflected.

The speed of a sound wave varies depending on the medium through which it is traveling, affected by the medium's density and elastic properties. In steel the velocity of sound wave is 6*1000000 mm/sec.

λ = v/f
where
λ = wavelength
v = sound velocity
f = frequency
Wavelength is a limiting factor that controls the amount of information that can be derived from the behavior of a wave. In ultrasonic flaw detection, the generally accepted lower limit of detection for a small flaw is one-half wavelength. Anything smaller than that will be invisible. In ultrasonic thickness gauging, the theoretical minimum measurable thickness one wavelength.