Skip to main content

Observed Results

All of our algorithms oscillate, some worse than others.

If we put in just the right amount of introduced delay we seem to get the best throughput. But finding the right amount is not easy.

Throughput is adversely affected, heavily, by a single lost datagram at least for the short time. Examine what happens when a window is 35 datagrams wide with an average round trip delay of 2500 msec using 512 byte datagrams when a single datagram is lost at the beginning. Thirty five datagrams are given by TCP to IP and a timer is started on the first datagram. Since the first datagram is missing, the receiving TCP will not sent an acknowledgment but will buffer all 34 of the out-of-sequence datagrams. After 1.5 X 2500 msec, or 3750 msec, have elapsed the datagram times out and is resent. It arrives and is acked, along with the other 34, 2500 msec later. Before the lost datagram we might have been sending at the average rate a 56 kb/s line could accept, about one every 75 msec. After loss of the datagram we send at the rate of one in 6250 msec over 83 times slower.

If the lost datagram in the above example is other than the first datagram the situation becomes the same when all of the datagrams before the lost datagram are acknowledged. The example holds true then for any single lost datagram in the window.

When SQ doesn't always cause datagram loss the sender continues to send too fast (queue size oscillates a lot). It is important for the SQ to cause feed-back into the sending system as soon as possible, therefore when the source host IP receives an SQ it must make adjustments to the send rate for the datagrams still on the send queue not just datagrams IP is requested to send after the SQ.

Through network delay goes up as the network queue lengths go up.

Window size affect the chance of getting SQed. Look at our model above using a queue level of 15 for node 2 before SQs are generated and a window size of 20 datagrams. We assumed that we could send data over the LAN at a sustained average rate of 1 Mb/s or about 18 times as fast as over the WAN. When TCP sends a burst of 20 datagrams to node 1 they make it to node 2 in 81 msec. The transition time from node 2 to node 3 is 73 msec, therefore, in 81 msec, only one datagram is forwarded to node 3. Thus the 17th, 18th, 19th, and 20th datagram are lost every time we send a whole window. More are lost when the queue is not empty. If a sequence of acks come back in response to the sent data, the acks tend to return at the rate at which data can traverse the net thus pacing new send data by opening the window at the rate which the network can accept it. However as soon as one datagram is lost all of the subsequent acks are deferred and batched until receipt of the missing data block which acks all of the datagrams and opens the window to 20 again. This causes the max queue size to be exceeded again.

If we assume a window smaller than the max queue size in the bottleneck node, any time we send a window's worth of data, it is done independently of the current size of the queue. The larger the send window, the larger a percentage of the stressed queue we send. If we send 50% of the stressed queue size any time that queue is more than 50% we threaten to overflow the queue. Evenly spaced single datagram bursts have the least chance of overflowing the queue since they represent the minimum percentage of the max queue one may send.

When a big window opens up (that is, a missing datagram at the head of a 40 datagram send queue gets retransmitted and acked), the perceived round trip time for datagrams subsequently sent hits a minimum value then goes up linearly. The SRTT goes down then back up in a nice smooth curve. This is caused by the fact IP will not add delay if the queue is empty and IP has not sent any datagrams to the destination for our introduced delay time. But as many datagrams are added to the IP pre-staged send queue in bursts all have the same send time as far as TCP is concerned. IP will delay each datagram on the head of the queue by the introduced delay amount. The first may be undelayed as just described but all of the others are delayed by their ordinal number on the queue times the introduced delay amount.

It seems as though in a race between a TCP session which delays sending to IP and one who does not, the delayer will get better throughput because less datagrams are lost. The send window may also be increased to keep the pipeline full. If however the non delayer uses windowing to reduce the chance of SQ datagram loss his throughput may possibly be better because no fair queuing algorithm is in place.

If gateways send SQs early and don't toss data until its critical and keep sending SQs until a low water mark is hit, effective throughput seems to go up.

At the startup of our tests throughput was very high, then dropped off quickly as the last of the window got clobbered. Our model should have used a slow start up algorithm to minimize the startup shock. However the learning curve to estimate the proper value for D was probably quicker.

A large part of the perceived RTT is due to the delay getting off the TCP2IP (TCP transitional) queue when we used large windows. If IP would invoke some back-pressure to TCP in a real implementation this can be significantly reduced. Reducing the window would do this for us at the expense of throughput.

After an SQ burst which tosses datagrams the sender gets in a mode where TCP may only send one or two datagrams per RTT until the queued but not acked segments fall into sequence and are acked. This assumes only the head of the retransmission queue is retransmitted on a timeout. We can send one datagram upon timeout. When the ack for the retransmission is received the window opens allowing sending a second. We then wait for the next lost datagram to time out.

If we stop sending data for a while but allow D to be decreased, our algorithm causes the introduced delay to dwindle away. We would thus go through a new startup learning curve and network oscillation sequence.

One thing not observed often was TCP timing out a segment before the source IP even sent the datagram the first time. As discussed above the first datagram on the queue of a large burst is delayed minimally and succeeding datagrams have linearly increasing delays. The smoothed round trip delay algorithm has a chance to adapt to the perceived increasing round trip times.