1,348 views
2 votes
2 votes
A $3000$ km long trunk operates at $1.536\times 10^6$ bps and is used to transmit $64$ byte frames using sliding window protocol. If the propagation speed is $6$ microseconds/km then the number of bits needed for the sequence number for maximum efficiency is _______

3 Answers

4 votes
4 votes

Formula :  Number of bits in seq number field is ceil[log(1+2a)]  where a is Tp/Tt

 in Stop n wait : ( it is simplest sliding window protocol )

L= 64B = 64*8

B= 1.536 Mbps

Tt =L/ B =333.33 microsec

now propagation delay for 1 km is 6 microsec, 

propagation delay Tp=6∗3000=18000 microsec

hence 1+2a=1+2(Tp / Tt)=109.01

hence no. of bits required for sequence number are ⌈log2(1+2a)⌉=7

 number of bits are 7 

edited by
2 votes
2 votes
For maximum efficiency, the sender should be transmitting for the entire RTT (till ACK comes back).

RTT = Transmission Time for Packet + Propagation Time for Packet + Transmission Time for ACK (taking as 0) + Propagation Time for ACK

Transmission Time for Packet = Packet Size $\div$ bandwidth $=(64 \times 8) \div (1.536 \times 10^6) s = 333.33 \mu s.$

Propagation Time (same for Packet and ACK) $=3000 \; km \times 6 \mu s / km  = 18000 \mu s$

So, RTT $ = 333.33 + 2 \times 18000 = 36333.33 \; \mu s$

So, No. of packets needed for $100\%$ efficiency $ = \lceil \frac{36333.33}{333.33} \rceil= 109.$

No. of bits needed to represent $109 = \log_2 109 = 7.$
0 votes
0 votes

For maximum efficiency, $W_s=1+2a=109$

 

  • For Stop and Wait: $2$ numbers are always enough. So, bits = $1$.
     
  • For Go Back N, we need $110$ numbers. So, bits = $7$.
     
  • For Selective Repeat, we need $218$ numbers. So, bits = $8$.
Answer:

Related questions

1 votes
1 votes
1 answer
1
Bikram asked Nov 26, 2016
530 views
The bandwidth in a CSMA/CD network is $10$ Mbps. The minimum frame size required in the network when RTT is $384$ microsecond _______ in Bytes.
1 votes
1 votes
1 answer
2
Bikram asked Nov 26, 2016
421 views
A selective repeat ARQ uses a window size of $26$ to send the data. The number of bits needed to define the sequence number is _____.
6 votes
6 votes
3 answers
3
Bikram asked Nov 26, 2016
1,913 views
A sliding window protocol uses Selective Repeat. The sender sliding window size is $32$. After receiving the first $100$ frames, the acknowledgement number that is piggyb...
8 votes
8 votes
2 answers
4
Bikram asked Nov 26, 2016
887 views
Consider a sliding window protocol that uses Selective Repeat, the sender sliding window size is $32$. The sequence number of the frame to be sent after sending $200$ fra...