Skip to main content

A Critical Race

The above protocols leave unresolved the the particulars of starting and stopping a finite transmission. In opening a communication channel, what is the sequence number of the first message sent? What will be the first sequence number of the first message sent? What will be the first sequence number of the first reply received? At the end of transmission, how does one signal the "last message"? The following two rules are introduced:

  1. If the same message has been received K times ( eg. 50 ), then it should be accepted as being "in sequence". The expected sequencing should be adjusted accordingly. K identical reply messages are then sent.

  2. If no reply has been received in J seconds, then the retransmission of the last unreplied message should cease.

With these additional rules a finite transmission is started by repeatedly transmitting the first message until K identical reply messages are received. Sequencing is adjusted accordingly and then subsequent messages can be sent. A conversation is broken by quitting transmission after the reply to the last message you care about has been received. Eventually the other end will stop resending the reply. To avoid ambiguity, the variable J should be less than N times K. Problems will arise if the network crashes for J seconds, for there is a race condition over whether or not the lack of a reply is the result of a channel failure or the end of a conversation.