Skip to main content

Recovering Lost Messages

The simplest technique I know of for recovering lost can be defined by the following rules:

  1. All undiscarded messages have reply messages.
  2. Messages with coding errors that can not be corrected are discarded.
  3. The receiver can determine if a message is in sequence.
  4. Messages received that are out of sequence are discarded.
  5. If no reply message is received in N time units since the last transmission, the last message sent is retransmitted ( space need not be isochronic ).
  6. A new message is not sent until the reply for the last one has been received.

The above protocol, if run, is highly effective for continuous communication. Since by rule 6) only one message can be in transit at a time, the necessary sequencing information can be contained in a single bit. Unmodified, it is not suitable for finite communication, since rules 1) and 5) guarantee that there will be no 'last message'. The protocol also does not make very effective use of a pipelined channel, since there is only one message being sent at a time.

Channel throughput can be increased by several techniques, the first of which would be to disassemble the data stream into several ( eg. four or eight ) streams, transmit each using the above protocol, and then reassemble the streams at the far end. Another technique is to modify rules 5) and 6).

5a) If no reply has been received to message M in N time units since the last transmission, then messages M, M+1,... are retransmitted.

6a) There must be no more than L outstanding unreplied messages.

With L equal to one, this protocol degenerates into the first protocol. Increasing L increases throughput until the gain is outweighed by the time spent in error recovery. The larger L, the costlier error recovery. The value of N should be adjusted so that the reply time for a message is usually less than N plus the time to send L-1 messages. Increasing N too much will have the effect of lowering the response time to errors. Decreasing N increases the probability initiating unnecessary retransmissions.