A simple implementation of Alternating Bit, Go-Back-N and Selective-Repeat Protocols