Professional Documents
Culture Documents
36
Lecture Handout
Computer Networks
Lecture No. 36
Figure 36.1
ADAPTIVE RETRANSMISSION:
Setting a timer sounds so easy but the question is “ what time interval?”
______________________________________________________________________________________
Page 1of 3
© Copyright Virtual University of Pakistan
CS610-Computer Networks Lecture No.36
If the time interval is too large, you are spending time waiting for something that
is just not going to happen. If the time interval is too short, you will resend needlessly.
So keep estimate of round trip time on each connection, and use current estimate
to set transmission timer. This is known as ‘Adaptive Retransmission’. This is a key to
TCP’s success.
The figure shows a comparison of retransmission times. The network having short
intervals has a short timeout and the network having large interval has large timeout.
Figure 36.2
TCP uses window mechanism to control the flow of data. The amount of buffer
space available at any time is called the window and a notification that specifies the size
is called the window advertisement.
In the figure below a sequence of messages that illustrates TCP flow control when
the maximum segment size is 1000 octets. A sender can transmit enough data to fill the
currently advertised window.
______________________________________________________________________________________
Page 2of 3
© Copyright Virtual University of Pakistan
CS610-Computer Networks Lecture No.36
Figure 36.3
Figure 36.4
Part of the 3-way handshake used to create a connection, requires each end to
generate a random 32-bit sequence number. If an application attempts to establish a new
TCP connection after a computer reboots, TCP chooses a new random number.
______________________________________________________________________________________
Page 3of 3
© Copyright Virtual University of Pakistan