Relaxation of the shock wave-reflected ion beam, and generation