Interaction of shock waves with small perturbations