Quarry School

Explain a duplicate request — quick review

In plain words

A reply can be lost on the way, as a request can.

Rule

When a lost acknowledgment leaves a piece on the sender's list as its wait runs out, the sender sends it again; if that copy arrives, the receiver gets a duplicate. In the card protocol the receiver recognizes a duplicate because the slot of its number is already filled, keeps the copy it has, and sends the acknowledgment again.

Step

  1. When a card arrives, check it against the protocol; a card that breaks it is put aside without an acknowledgment.

  2. For a usable card, look at the slot of its number.

  3. If the slot is empty, place the card there and send ACK n.

  4. If the slot is filled, the card is a duplicate: leave the slot as it is and send ACK n again.

  5. On the sender's side, cross the piece off at the first ACK n and ignore any later one.

Trap

Treating a duplicate as a new piece breaks the message. Appending the second -AT- would give MEET-AT-NOON-AT-. Place by number, and a filled slot stays as it is.

Ignoring a duplicate without acknowledging it again can leave the sender waiting: if no acknowledgment reaches it, its time runs out again and it keeps resending. Answer every usable copy.