39,686 views
78 78 votes
Consider a $128 \times 10^3$ bits/second satellite communication link with one way propagation delay of $150$ milliseconds. Selective retransmission (repeat) protocol is used on this link to send data with a frame size of $1$ kilobyte. Neglect the transmission time of acknowledgement. The minimum number of bits required for the sequence number field to achieve $100 \%$ utilization is ________.

9 Answers

Best answer
114 114 votes

Answer is 4 bits.

As  we want $100 \%$ efficiency$(\mu),\ \large {w_s}\geq 1+2a$

 $a = \dfrac{\text{propagation time}}{\text{transmission time}}$

$\quad=\dfrac{150  }{1024 \times \dfrac{8}{128}} = \dfrac{150}{64} =  2.34,$

 $\Rightarrow \large {w_s} \geq 1+2a = \lceil  5.6875 \rceil =  6$

Available $\text{seq numbers} \geq \large w_s+w_r$

In Selective Repeat,

$\large w_s=w_r$ (let it be n)

$2\times n=2\times 6=12$

avail $\text{seq numbers}\geq 12$

So, minimum $\text{seq numbers}$ are $12$.

Number of bits for that is $\lceil \log_2 {12} \rceil =4.$

• edited by
26 26 votes
Transmission time of a frame = (10^3 * 8 * 10^3)/ (128 * 10^3) = 62.5 ms.

RTT = 150* 2 ms = 300 ms

(One frame transmission time + RTT) is the maximum time that sender can transmit without waitng for acknowledgement.

Here utilization is 100% i.e. efficiency is 1

So in (62.5 +300) ms sender can send atmost 362.5/ 62.5 frame = 5.8 i.e approx 6 frames.

In selective repet, sender window size = receiver window size. So window size = 6 * 2 = 12.

So, 4 bits to represent window.
10 10 votes

For selective repeat: size of window( W )  = 2k-1

(Utilization or Efficiency)selective repeat = $W \div ( 1 + RTT / TD)$

Since utilization is given 100%,

TD = 8 * 103 / 128 * 103 

      = 8 / 128 sec

     = 0.0625 sec

RTT = 2 * PD 

        = 2 * 150 ms = 300 * 10-3 = 0.3 sec

1 = W / (1 + 0.3 / 0.0625)

W = 5.8 or,

2k-1 = 5.8

k = 4 only this value satisfies.

Thus the min no. of sequence bits required for 100% utilization is 4.

8 8 votes
for 100% utilization sender can keep sending data till it receives an +ve or -ve acknowldegement.

So it can send for 150*2 ms

so total data that can be transmitted = 300*128 = 38400/8 = 4800bytes

4800/1024 = 4.6875 =  5 frames = 3 bits

This is because receiver can demand retransmission of first frame itself.
1 1 vote
Bandwidth (B) = 128 × 10^3 bits/ second , Tp =  150 milliseconds , L = 1 KB = 1 * 8 * 2^10 bits

Tt = L / B ⇒  64 msec

So, a = 150 msec / 64 msec = 2.343

η = N  /  1 + 2 *a  ( N = window size )

 for 100% η   ,   N = 1 + 2*a = 1 + 2 * Tp / Tt  = 5.686

In SR , Available sequence number = Ws + Wr (where Ws = Wr ) = 5.686 + 5.686 = 11.375

  Sequence bits =  [ log2 (11.375) ] = 4
• edited by
1 1 vote

Let the window size be N, so from the equation Wsender + Wreceiver <= Available Sequence No.

Available Sequence No. = 2N

Given, Utilization=1 

or Efficiency = 1

=> N/(1+2a) = 1

=> N = 1+2a

a = Tp / Tt

Tp = 150 / 1000 = 0.15 sec

Tt = L / B = 1024*8 / 128 * 10^3 = 0.064 sec 

So, a = 0.15 / 0.064 = 2.34375

Thus, N = 1+2a = 5.6875

Therefore, Bits required for Sequence No. = log2(N + N) = log2(11.375) = 4 bits

 

Answer:
Position:
Show:

Related questions

50 50 votes
8 answers 8 answers
17.3k
17.3k views
Akash Kanase asked Feb 12, 2016
17,296 views
A network has a data transmission bandwidth of $20 \times 10^{6}$ bits per second. It uses CSMA/CD in the MAC layer. The maximum signal propagation time from one node to ...
39 39 votes
4 answers 4 answers
23.3k
23.3k views
Akash Kanase asked Feb 12, 2016
23,331 views
For the $\text{IEEE 802.11 MAC}$ protocol for wireless communication, which of the following statements is/are TRUE?At least three non-overlapping channels are available ...
56 56 votes
7 answers 7 answers
18.5k
18.5k views
Akash Kanase asked Feb 12, 2016
18,463 views
Identify the correct sequence in which the following packets are transmitted on the network by a host when a browser requests a webpage from a remote server, assuming tha...
55 55 votes
10 answers 10 answers
18.4k
18.4k views
Akash Kanase asked Feb 12, 2016
18,375 views
In an Ethernet local area network, which one of the following statements is TRUE?A station stops to sense the channel once it starts transmitting a frame.The purpose of t...