edited by
26,894 views
55 votes
55 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$
edited by

12 Answers

0 votes
0 votes
Basically, Acknowledgement will be received by A will be 80 millisecond. Now,

A can send 128kb in 1 sec  (bandwidth),

In 1 sec ----→ 128kb

    1 sec ---→ (128kb/(32*8 bits))   packets  ( As each packet of size 32*8 bits)

    solving above, A can send 500 packet per second  

So, In 80ms  ---→ 500* 80*10^-3  = 40 packets

So, A can send 40 packets before it receives an acknowledgement.

So, Optimal window size for will be 40
0 votes
0 votes
we can send as frames as possible in sliding window protocol in a round trip time

T $_{t}$ =   $_{\tfrac{size of frame}{bandwidth}}$

T$_{t}$ =$_{\tfrac{32*8 bits}{128*10$^{3}$ bps}}$ = 2msec

no.of frames=$_{\tfrac{RTT}{T_{t} }}$= $_{\tfrac{80 msec}{20 msec}}$= 40 frames
0 votes
0 votes

Round trip time = 2*Tp =  80 * 10-3 s

Length of packet (L) = 32 * 8 bits

Bandwidth = 128 * 103 bits/s

Transmission time(Tt) = L / bandwidth

                                   = ( 32 * 8 ) / ( 128 * 103)

                                   = 2 * 10-3 s

Optimal window size = 1 + 2 * (Tp / Tt )

                                  = 41

There for the answer will be 40.

–3 votes
–3 votes
I m trying to tell all of u with some example lets forget 40 or 41 here probelm is not prpblem os what should be logic , so if calculate max window size we try to calculate max pkt we can send in time of 1st pkt reach at destination so according to this rtt includes both transmisson time as well as propogation time . Here rtt is given so we have not to think extra propagation time all r included in it so if u calculate u will find ans
Answer:

Related questions

21 votes
21 votes
1 answer
10