Stop and Wait protocol for course