moved by
41,955 views
75 75 votes

Station $A$ uses $32\; \text{byte}$ packets to transmit messages to Station $B$ using a sliding window protocol. The round trip delay between A and $B$ is $80\; \text{milliseconds}$ and the bottleneck bandwidth on the path between $A$ and $B$ is $128\; \text{kbps}$ . What is the optimal window size that $A$ should use?

  1. $20$
  2. $40$
  3. $160$
  4. $320$

18 Answers

Best answer
86 86 votes
Round trip delay $= 80\ ms$.

Quoting from Wikipedia

the round-trip delay time (RTD) or round-trip time (RTT) is the length of time
it takes for a signal to be sent plus the length of time it takes for an acknowledgment
of that signal to be received.

Now, in many books including standard ones, they have used $\text{RTT}$ to mean just the $2\text{-way}$ propagation delay by considering the signal/packet as of the smallest possible quantity so that its transmission time is negligible. The given question is following the first definition as given by Wikipedia which is clear from the choices.

During this time the first $\text{ACK}$ arrives and so sender can continue sending frames.
So, for maximum utilization sender should have used the full bandwidth during this time.
i.e., it should have sent $128\text{ kbps}\times 80\ ms$ amount of data and a packet being of size $32\text{ bytes},$ we get

no. of packets $=\dfrac{128 \times 80}{32 \times 8} = 40.$
Correct Answer: $B$
edited by
120 120 votes

Answer: B

Round Trip Time $= 80ms$
Frame size $=32\times 8\text{ bits}$
Bandwidth $=128\text{ kbps}$
Transmission Time $=\dfrac{32\times 8}{128}\ ms = 2\ ms$
Let $n$ be the window size.

Utilization $=\dfrac{n}{1+2a}$

where $\large a = \dfrac{\text{Propagation Time}}{\text{Transmission Time}}$

$ =\dfrac{n}{1+\dfrac{2 \times 40}{2}}$

For maximum utilization: $n = 41$ which is close to option (B).

edited by
16 16 votes
RTT is 80 ms , irrespective of what T(p) & T(t) values are .

The acknowledgment is reaching at 80th ms and not 82nd ms (If calcualated T(t) values and added to twice of T(p) = 40 )

Here T(t) + 2 T(p) = 80 ms

 

So 128 kb  == 1 sec
      128 bits == 1 ms
       1ms == 128 bits
        80 ms == 80 * 128 bits

So no of frame required = ( 80 * 128 ) / 256
                                   = 40 frames (Window Size)
12 12 votes

Here, we can use the concept of bandwidth delay product.

What is bandwidth delay product?

"It's the amount of data that left the sender before the first acknowledgement was received by the sender. That is, bandwidth * round trip time = the desired window size under perfect conditions. If the round trip time is measured from the last packet and the sender's outbound bandwidth is perfectly stable and fully used, then the measured window size exactly calculates the number of packets (data and ACKs together) in transit. If you want only one direction, divide the quantity by two."

Further reading: http://www.kehlet.cx/articles/99.htmlhttps://learningnetwork.cisco.com/thread/125627

The bandwidth delay product is given by:  $BW \times RTT$, which in this case is $128 \,\text{kbps} \times 80 \times 10^{-3} \text{s}$, which comes as $10240$ bits.

Therefore, number of packets can be given by $\frac{10240}{32 \times 8} = 40$ packets, which does not have any off by one error.

edited by
3 3 votes
It is already mentioned in the question that bottleneck bandwidth is used and initial bandwidth is not given ie. no use to calculate TT.

So, no. of packets = (128×80)/(32×8) = 40.      Ans.
2 2 votes
ans b)
Answer:
Position:
Show:

Related questions

83 83 votes
12 answers 12 answers
68.0k
68.0k views
Rucha Shelke asked Sep 26, 2014
68,028 views
Station $A$ needs to send a message consisting of $9$ packets to Station $B$ using a sliding window (window size $3$) and go-back-$n$ error control strategy. All packets ...
27 27 votes
3 answers 3 answers
11.2k
11.2k views
go_editor asked Nov 7, 2016
11,199 views
Consider the diagram shown below where a number of LANs are connected by (transparent) bridges. In order to avoid packets looping through circuits in the graph, the bridg...
88 88 votes
6 answers 6 answers
35.8k
35.8k views
Rucha Shelke asked Sep 26, 2014
35,782 views
Consider the diagram shown below where a number of LANs are connected by (transparent) bridges. In order to avoid packets looping through circuits in the graph, the bridg...
66 66 votes
9 answers 9 answers
24.1k
24.1k views
Rucha Shelke asked Sep 26, 2014
24,097 views
Two computers $C1$ and $C2$ are configured as follows. $C1$ has IP address $203.197.2.53$ and netmask $255.255.128.0$. $C2$ has IP address $203.197.75.201$ and netmask $2...