The shock wave travels upward and toward the interface and applies a pressure gradient across the density gradient.