Shock waves and type II radiobursts in the interplanetary medium