Evolution of coronal mass ejection/shock system in interplanetary space