Quarry School

Use acknowledgments in a paper protocol — quick review

In plain words

A teacher who gets no answer says a name again.

Rule

In the card protocol, which carries one message at a time, the receiver sends ACK n for each usable piece n, and the sender keeps a list of pieces not yet acknowledged, removes a piece when its acknowledgment arrives, and sends a piece again when its time runs out. The sender knows every piece has arrived when every piece has been sent and its list is empty; the receiver may hold them all sooner.

Step

  1. Write each piece on the sender's list of pieces sent and not yet acknowledged, then send it and start its wait.

  2. On the receiver's side, check each card against the protocol, place it in its slot as in the last lesson (a slot already filled keeps its first card, as the next lesson shows), and send ACK n for each usable card.

  3. For each acknowledgment that reaches the sender, cross its piece off the list.

  4. When a piece's wait runs out and the piece is still on the list, send it again and start its wait again.

  5. Stop when every piece has been sent and the sender's list is empty.

Trap

Waiting forever for an answer stalls the whole message. Without a timeout, a lost piece is never sent again.

Acknowledging a card before checking it defeats the purpose. An acknowledgment says the piece arrived and is usable; a card that fails the format checks is not acknowledged. The checks cannot catch every change: NOON turned into SOON on the way still passes them.