638 views
3 votes
3 votes

On any given Sunday, Sam initiates a connection with his girlfriend Alice in order to plan out what movie they’re going to watch on Tuesdays with Morrie. This Sunday, immediately after Sam initiates the connection, Alice decides to send him a 60 KB picture using TCP. Assuming she sends the picture in 2500 byte segments including a 50-byte header over a 2 Mbps link with a propagation delay of 30 ms, what is the total time difference between when Sam initiates the connection to when Alice receives the last ACK? The TCP implements a slow-start mechanism with an initial congestion window of 1. Neglect queuing and processing delays at both the sender and receiver, and assume there are no losses.

1 Answer

Best answer
5 votes
5 votes
Tprop be one-way propagation delay,

 

Ttrans be transmission time of one 2500 byte packet,

 

Tprop = 30 ms

 

Ttrans = (2500 bytes * 8bits/byte)/(10^6 bits/second) = 10 ms  

 

T3-way handshake = 3 * Tprop = 90ms  

 

Size of application data in a TCP packet = size of TCP segment – size of header = 2450 bytes.

Number of packets needed to transfer a 60 KB file = (60*1000)/2450 = 25

 

Hence, the window size grows as 1, 2, 4, 8, 10

 

Hence, the total time to transfer the packet after the 3-way handshake is:

 

Tdata = 25 packets transmission time + 5 * 2*propagation time

            = 25 * 10 ms  + 300 ms

             = 250 ms + 300 ms

              = 550 ms

Hence, total time to transfer = T3-way-handshake + Tdata = 90 ms + Tdata ms = 640 ms
selected by

Related questions

2 votes
2 votes
2 answers
2
LRU asked Oct 8, 2021
1,014 views
In the TCP connection, the maximum segment size used by the connection is 1000 bytes. What is the congestion window(in bytes) after the 4th transmission and receives acks...
2 votes
2 votes
1 answer
3
2 votes
2 votes
1 answer
4