Compression (or p-) waves are vibrations of earth materials in which the direction of oscillation is in the same direction as the movement of the wave front. An example would be the movement of a spring.