Skip to main content

Retransmission-Timeout Algorithm

One of the basic features of TCP which allow it to be used on paths spanning many nets of widely varying delay and packet-loss characteristics is the retranansmission-timeout algorithm, sometimes known as the "RSRE Algorithm" for the original designers. The algorithm operates by recording the time and initial sequence number when a segment is transmitted, then computing the elapsed time for that sequence number to be acknowledged. There are various degrees of sophistication in the implementation of the algorithm, ranging from allowing only one such computation to be in progress at a time to allowing one for each segment outstanding at a time on the connection.

The retransmission-timeout algorithm is basically an estimation process. It maintains an extimate of the current roundtrip delay time and updates it as new delay samples are computed. The algorithm smooths these samples and then establishes a timeout, which if exceeded causes a retransmission. The selection of the parameters of this algorithm are vitally important in order to provide effective data transmission and avoid abuse of the Internet system by excessive retransmissions. I have long been suspicious of the parameters suggested in the specification and used in some implementations, especially in cases involving long-delay paths involving lossy nets. The experiment was designed to simulate the operation of the algorithm using data collected from real paths involving some pretty leaky Internet plumbing.

3.1. Experiment Design​

The experiment data base was constructed of well over a hundred runs using ICMP Echo/Reply messages bounced off hosts scattered all over the world. Most runs, including all those summarized here, consisted of 512 echo/reply cycles lasting from several seconds to twenty minutes or so. Other runs designed to detect network glitches lasted several hours. Some runs used packets of constant length, while others used different lengths distributed from 40 to 256 octets. The maximum length was chosen to avoid complications fragmented or reassembled by the gateways.

The object of the experiment was to simulate the packet delay distribution seen by TCP over the paths measured. Only the network delay is of interest here, not the queueing delays within the hosts themselves, which can be considerable. Also, only a single packet was allowed in flight, so that stress on the network itself was minimal. Some tests were conducted during busy periods of network activity, while others were conducted during quiet hours.

The 512 data points collected during each run were processed by a program which plotted on a color bit-map display each data point (x,y), where x represents the time since initiation of the experiment the and y the measured delay, normalized to the one-way delay. Then, the simulated retransmission-timeout algorithm was run on these data and its computed timeout plotted in the same way. The display immediately reveals how the algorithm behaves in the face of varying traffic loads, network glitches, lost packets and superfluous retransmissions.

Each experiment run also produced summary statistics, which are summarized in the table below. Each line includes the Host ID, which identifies the run. The suffix -1 indicates 40-octet packets, -2 indicates 256-octet packets and no suffix indicates uniformly distributed lengths between 40 and 256. The Lost Packets columns refer to instances when no ICMP Reply message was received for thirty seconds after transmission of the ICMP Echo message, indicating probable loss of one or both messages. The RTX Packets columns refer to instances when the computed timeout is less than the measured delay, which would result in a superfluous retransmission. For each of these two types of packets the column indicates the number of instances and the Time column indicates the total accumulated time required for the recovery action.

For reference purposes, the Mean column indicates the computed mean delay of the echo/reply cycles, excluding those cycles involving packet loss, while the CoV column indicates the coefficient of variation. Finally, the Eff column indicates the efficiency, computed as the ratio of the total time accumulated while sending good data to this time plus the lost-packet and rtx-packet time.

Complete sets of runs were made for each of the hosts in the table below for each of several selections of algorithm parameters. The table itself reflects values, selected as described later, believed to be a good compromise for use on existing paths in the Internet system.

Host    Total   Lost Packets    RTX Packets     Mean    CoV     Eff
ID      Time            Time            Time
-------------------------------------------------------------------
DCN1 to nearby local-net hosts (calibration)
DCN5    5       0       0       0       0       11      .15     1
DCN8    8       0       0       0       0       16      .13     1
IMP17   19      0       0       0       0       38      .33     1
FORD1   86      0       0       1       .2      167     .33     .99
UMD1    135     0       0       2       .5      263     .45     .99
DCN6    177     0       0       0       0       347     .34     1
FACC    368     196     222.1   6       9.2     267     1.1     .37
FOE     670     3       7.5     21      73.3    1150    .69     .87
FOE-1   374     0       0       26      61.9    610     .75     .83
FOE-2   1016    3       16.7    10      47.2    1859    .41     .93

DCN1 to ARPANET hosts and local nets
MILARP  59      0       0       2       .5      115     .39     .99
ISID    163     0       0       1       1.8     316     .47     .98
ISID-1  84      0       0       2       1       163     .18     .98
ISID-2  281     0       0       3       17      516     .91     .93
ISID *  329     0       0       5       12.9    619     .81     .96
SCORE   208     0       0       1       .8      405     .46     .99
RVAX    256     1       1.3     0       0       499     .42     .99
AJAX    365     0       0       0       0       713     .44     1
WASH    494     0       0       2       2.8     960     .39     .99
WASH-1  271     0       0       5       8       514     .34     .97
WASH-2  749     1       9.8     2       17.5    1411    .4      .96
BERK    528     20      50.1    4       35      865     1.13    .83

DCN1 to MILNET/MINET hosts and local nets
ISIA    436     4       7.4     2       15.7    807     .68     .94
ISIA-1  197     0       0       0       0       385     .27     1
ISIA-2  615     0       0       2       15      1172    .36     .97
ISIA *  595     18      54.1    6       33.3    992     .77     .85
BRL     644     1       3       1       1.9     1249    .43     .99
BRL-1   318     0       0       4       13.6    596     .68     .95
BRL-2   962     2       8.4     0       0       1864    .12     .99
LON     677     0       0       3       11.7    1300    .51     .98
LON-1   302     0       0       0       0       589     .06     1
LON-2   1047    0       0       0       0       2044    .03     1
HAWAII  709     4       12.9    3       18.5    1325    .55     .95
OFFICE3 856     3       12.9    3       10.3    1627    .54     .97
OFF3-1  432     2       4.2     2       6.9     823     .31     .97
OFF3-2  1277    7       39      3       41.5    2336    .44     .93
KOREA   1048    3       14.5    2       18.7    1982    .48     .96
KOREA-1 506     4       8.6     1       2.2     967     .18     .97
KOREA-2 1493    6       35.5    2       19.3    2810    .19     .96

DCN1 to TELENET hosts via ARPANET
RICE    677     2       6.8     3       12.1    1286    .41     .97
RICE-1  368     1       .1      3       2.3     715     .11     .99
RICE-2  1002    1       4.4     1       9.5     1930    .19     .98

DCN1 to SATNET hosts and local nets via ARPANET
UCL     689     9       26.8    0       0       1294    .21     .96
UCL-1   623     39      92.8    2       5.3     1025    .32     .84
UCL-2   818     4       13.5    0       0       1571    .15     .98
NTA     779     12      38.7    1       3.7     1438    .24     .94
NTA-1   616     24      56.6    2       5.3     1083    .25     .89
NTA-2   971     19      71.1    0       0       1757    .2      .92

NTA to SATNET hosts and local nets
TANUM   110     3       1.6     0       0       213     .41     .98
GOONY   587     19      44.2    1       2.9     1056    .23     .91
ETAM    608     32      76.3    1       3.1     1032    .29     .86
UCL     612     5       12.6    2       8.5     1154    .24     .96

Note: * indicates randomly distributed packets during periods of high ARPANET activity. The same entry without the * indicates randomly distributed packets during periods of low ARPANET activity.