Periodic forcing of a single ion channel: dynamic aspects of the open-closed switching