Skip to main content

Flow Control

If all end-to-end retransmission, duplicate, detection, and sequencing are performed by Hosts, then it is essential that the source and destination Hosts agree upon a maximum number of packets (or bits, octets, etc.) that can be outstanding at one time. Otherwise, the destination Host may experience lockup problems similar to those found now in the destination IMP.

The current Host/Host flow control scheme has several weaknesses.

First, it requires that special control messages be sent on a control connection which is distinct from the connection on which data is transmitted.

Second, it is an incremental scheme in which the destination Host allocates a certain number of bits and messages which may be sent by the source.

Both source and destination Hosts decrement these counts as messages are sent and received. To maintain throughput, the destination must periodically send allocations to the source to replenish its available buffer space. Destinations with small amount of buffer space (e.g., Terminal IMPs or TIPs) must do this fairly frequently and thus generate considerable control traffic. Third, the loss of an allocation or the duplication of one can cause loss of synchrony between source and destination.

In an earlier paper [9], the author and R. Kahn propose a more robust flow control scheme including ideas found in the French CYCLADES network [10]. Essentially, the receiver allocates a window representing the span of sequence numbers that the sender may transmit. Acknowledgments from the receiver to the sender indicate the largest sequence number received so far (implicitly acknowledging all those preceding), and also indicate the .current width of the window. The sender immediately knows which sequence numbers can be sent next. The scheme also allows for duplicate detection and reordering of messages.

Acknowledgment and flow control information' is sent "piggy-back" with data flowing in the reverse direction of a full duplex logical connection so that a separate control connection is not needed for this purpose. For example, a message is sent with sequence number M and length L in octets. The receiver will respond with acknowledgment of sequence number M+L and window size W. The sequence number of each message is the sequence number of the previous message plus its length in octets.

The receiver can vary the size of W without any serious adverse effect, and can survive the receipt of duplicates or the loss of messages due to the retransmission and duplicate detection permitted by the scheme.

The sender is not permitted to transmit a message whose sequence number would exceed the sum of the last sequence number acknowledged plus the current window size, W, modulo the maximum sequence number plus one.