The Gateway to Computer Science Excellence
0 votes
53 views
Consider a TCP connection between two machines (A and B) in an environment with 0% packet loss. Assume the round trip time (RTT) between the two machines is 4 [seconds], and the segment size is 3 [Kbytes]. The bandwidth of the connection is 500 [kbps]. What is the minimum possible TCP window size for which there will be no stalling?(We say a TCP connection experiences no stalling if the acknowledgments arrive back to the sender before the sliding window over the send buffer close to zero. I.e., TCP packets are continuously, back-to-back, sent out of the sender before the first ack arrives back.)
in Computer Networks by Loyal (7.3k points) | 53 views

1 Answer

0 votes
There will be no stalling if
time-to-send-entire-window ≤ time-for-first-ack-to-arrive-back
That is:
W*S / B ≤ RTT + S / B
Hence: W ≤ RTT * B / S + 1
In this particular case: W ≤ 4 sec * 500 kbps / 24 kbits + 1 = 83.3 + 1 = 84.3

(3Kbytes = 24 Kbits)
That is: W ≤ 84

So the smallest TCP window size is 84.
by (47 points)

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,645 questions
56,615 answers
195,895 comments
102,338 users