Redirected
recategorized
3,933 views
2 votes
2 votes

Station $A$ uses $32$ byte packets t transmit messages to station $B$ using sliding window protocol. The round trip delay between $A$ and $B$ is $40$ milliseconds and the bottleneck bandwidth on the path between $A$ and $B$ is $64$ kbps. The optimal window size of $A$ is

  1. $20$  
  2. $10$  
  3. $30$
  4. $40$
recategorized

10 Answers

7 votes
7 votes

Bottleneck  bandwidth = 64 kbps=64x103 bps

Round trip delay = 40 ms =40x10-3 sec

Total data $40\times 64\times 10^3 \times 10^{-3} bits  = 40\times \dfrac{64}{8}  bytes =320 bytes$

1 packet size = 32 byte

No. of packets 320/32  = 10

Hence (2 ) is the ans

edited by
4 votes
4 votes
transmission delay = Packet Length / Bandwidth = 32 Byte/ (64/8 KByte);

transmission delay = 4 ms;

1 Packet = Transmission delay

?(N) = Transmission delay + RTT( 2 * Propagation delay )

 No of packets (N) = (Transmission delay + RTT) / Transmission delay = 1 + 2a, where a = Propagation delay / transmission delay

N = 1+ ((2 *  20)/4)

Therefore,

1+10 = 11 Packets.

Usually Some author ignore "1" in "1+2a" formulae..

Hence, Answer can be 10 or 11
3 votes
3 votes

B = 64 Kbps

RTT = 40 ms 

No of bits which can be transmitted in 1 sec are

1 sec ---> 64 * 10³ bits 

No of bits which can be transmitted in RTT

40 * 10^(-3) ---> 64 * 40 bits 

Size of packet = 32 B

Size of window = (64*40)/(32*8) = 10 

Hence option 2) is correct

2 votes
2 votes

$\underline{\textbf{Answer:}\Rightarrow}\;\textbf{(B)}\;10$

$\underline{\textbf{Explanation:}\Rightarrow}$

$\underline{\mathbf{Method:\; 1}\Rightarrow}$

Round Trip propogation delay $=40\;\text{ms}$

Frame Size $=32\times 8\;\text{bits}$

Transmission Time $=\mathbf{\dfrac{L}{B}} = \dfrac{32 \times 8}{64} \;\text{ms} = 4\;\text{ms}$

Let $\mathbf n$ be the window size.
$\text{Utilizaton} =\mathbf{\dfrac{n}{1+2a}}$, where $\mathrm {\mathbf a = \dfrac{Propogation\; time}{transmission\; time}} = \dfrac{\mathrm n}{1+\dfrac{40}{4}}$

For maximum Utilization, Efficiency $ = 1$

$\Rightarrow 1 = \dfrac{\mathrm n}{1+\dfrac{40}{4}}\\ \Rightarrow\mathrm n = 11$

Which is close to option $\mathbf B$

Or, we can do it another way as well. Like ignoring $\mathbf 1$ from $\mathbf{1+2a}$ which few authors do as well.

$\therefore\;\mathbf B$ is the correct answer.


$\underline{\textbf{Method:}\; \mathbf 2\Rightarrow}$

 

Round Trip propagation delay $=40\;\text{ms}$

Size of frame $ = 32\times 8$

Bandwidth $=64\;\text{kbps}$

 

Total Data $= 40 \times 64\;\text{bits} = 40 \times \dfrac{64}{8}\;\text{Bytes}= 320 \;\text{Bytes}$

 

Size of single packet $ = 32 \; \text{Bytes}$

 

Number of packets $= \dfrac{\text{Total Data}}{\text{Frame Size}}=\dfrac{320}{32} = 10 \;\text{Packets}$

$\therefore \mathbf{B}$ is the correct option.

 

edited by
Answer:

Related questions

0 votes
0 votes
3 answers
1
2 votes
2 votes
4 answers
4
go_editor asked Feb 1, 2017
2,978 views
Let C be a binary linear code with minimum distance $2t+1$ then it can correct upto ___ bits of error$t+1$$t$$t-2$$t/2$