Retransmission



Retransmission strategies



Types of Acknowledgements



Stop and Wait protocol



Correctness of retransmission protocols



Correctness of stop-and-wait

cases:
  1. packet and ack received correctly
  2. packet is lost: sender times out, retransmits.
  3. ack is lost: sender times out, retransmits. Retransmission has same sequence number, so receiver discards it.



Alternating Bit protocol



Correctness of ABP

  1. if network is FIFO,
  2. any ack 1-s we receive is for the last packet
  3. any ack s we receive is for the current packet, and
  4. when we receive an ack s, there can be no ack 1-s left in the network.
  5. therefore, any future ack 1-s must be for future packets, and
  6. acks will be matched to packets
Step 4 does not hold with a non-FIFO network