2 2 votes Computer Networks computer-networks sliding-window + – amitqy 2.6k views answer comment Share Follow Print See all 17 Comments 17 17 Comments reply raahul commented Nov 21, 2018 reply Follow flag is answer around 5? 1 1 replyShare amitqy commented Nov 21, 2018 reply Follow flag 10. 1 1 replyShare raahul commented Nov 21, 2018 reply Follow flag Oh . answer will be 10.. 1 1 replyShare Shubhgupta commented Dec 23, 2018 reply Follow flag getting 10? 0 0 replyShare Shobhit Joshi commented Dec 23, 2018 reply Follow flag 10 ? 0 0 replyShare jatin khachane 1 commented Dec 23, 2018 reply Follow flag Yes ..but i did like this for 100% efficiency Ws = 1 + 2a ==> Ws = 9.43..so it should be 9 right ? in Tt + 2Tp we should send max ...hence [Tt + 2Tp] = Ws*L what is wrong please correct 0 0 replyShare Shobhit Joshi commented Dec 23, 2018 reply Follow flag @jatin khachane 1 no it should be 10, because below 9.43 the efficiency cannot be 100 %, but above 9.43 whichever integer size you take efficiency will be 100% 0 0 replyShare jatin khachane 1 commented Dec 23, 2018 reply Follow flag @Shubhgupta @Shobhit Joshi @Utkarsh Joshi Efficiency(E) = [Ws*L] / [RTT*BW] efficiency always Less than or equal to 1 [Ws*L] / [RTT*BW] <=1 ==> Ws <= [RTT*BW] / L ===>Ws <= 9.43 now how can it be 10 ..then it means efficency is greater than 1 ??? Here m taking RTT = Tt+2Tp 0 0 replyShare Shobhit Joshi commented Dec 23, 2018 reply Follow flag @jatin khachane 1 if you make size <= 9 efficiency will always be less than 100 when you make the size >= 10 the efficiency will be 100, it's like the it is transmitting data until one RTT i.e N*Tt > Tt+2*Tp 0 0 replyShare jatin khachane 1 commented Dec 23, 2018 reply Follow flag Both seems right to me ... :( But if we take Ws = 10..efficency will be > 1 0 0 replyShare Shubhgupta commented Dec 23, 2018 reply Follow flag @jatin khachane 1, To get 100% utilization, the sender will keep on sending frames till he gets the first ack i.e. in the time span of 1RTT+ 1st frame transmission time= 604 ms Now, by simple division with frame transmission time, we obtain the number of frames as 9.43 which only implies, that the ninth frame has been partially sent and the sending is in progress. Thus 10 frames is the sender's window. 1 1 replyShare jatin khachane 1 commented Dec 24, 2018 reply Follow flag @Shubhgupta So when we get such case ..we should take ceil then ? everytime @Shaik Masthan Can you please check this 0 0 replyShare Magma commented Dec 24, 2018 reply Follow flag it's 10 and Shubhgupta explanation is absolutely right by simple division with frame transmission time, we obtain the number of frames as 9.43 which only implies, that the ninth frame has been partially sent and the sending is in progress. Thus 10 frames is the sender's window. 0 0 replyShare jatin khachane 1 commented Dec 24, 2018 reply Follow flag thanks for correcting @Shubhgupta @Magma only doubt is by simple division with frame transmission time, we obtain the number of frames as 9.43 which only implies, that the ninth frame has been partially sent and the sending is in progress. Thus 10 frames is the sender's window. should it be like ..9 frames completely send and 10th frame transmitting in progress when ack comes ?? 0 0 replyShare Shobhit Joshi commented Dec 24, 2018 reply Follow flag @jatin khachane 1 yes 0 0 replyShare Shubhgupta commented Dec 24, 2018 reply Follow flag ya sorry it was 10th frame only. 0 0 replyShare askeshavas commented Jun 13, 2020 reply Follow flag It should be 9...if it's 10 then according to your formula efficiency will be more than 1 0 0 replyShare Please log in or register to add a comment.
2 2 votes Given, Bandwidth(B)=64 kbps=64 x $10^3$ bps $Tp = 270msec$ Length of packet (L)=$512 Byte= 512 \ast 8 bits $ $\therefore Tt= L/B=512 \ast 8/64 \ast 10^3 = 64 msec$ For maximum utilization window size should be, $Ws= 1+2a$ $= 1+ 2 Tp/Tt$ $= 1+ 2 * 270/64$ $ = 1+ 8.44 $ $=9.44 \cong 10$ xdilwar answered Nov 30, 2018 xdilwar comment Share Follow 0 reply Please log in or register to add a comment.