Operation of Stop-and-Wait Protocol