edited by
26,395 views
72 72 votes
Consider a network connecting two systems located $8000$ $\text{Km}$ apart. The bandwidth of the network is $500 \times 10^6$ $\text{bits}$ per second. The propagation speed of the media is $4 \times 10^6$ $\text{meters}$ per second. It needs to design a Go-Back-$N$ sliding window protocol for this network. The average packet size is $10^7$ $\text{bits}$. The network is to be used to its full capacity. Assume that processing delays at nodes are negligible. Then, the minimum size in bits of the sequence number field has to be ______.

12 Answers

Best answer
79 79 votes

Answer = 8 bits.

In order to achieve full utilization, sender has to keep on sending frames till
the acknowledgement arrives for the first frame.

Time taken for acknowledgement to arrive is $2$ times propagation delay $+$ transmission time for a frame.

One way propagation delay $=\dfrac{8000\times 10^3}{(4\times 10^6)}= 2s$

Time taken to transmit one frame $=\dfrac{10^7}{(500\times 10^6)}=0.02s$

 So, RTT $=2\times 2 + 0.02 = 4.02s$

No. of frames that can be transmitted in $4.02$ secs $=\dfrac{4.02}{0.02}=201$

Being Go-Back-N protocol this means $W_S = 201$ and $W_R=1.$ So, total number of sequence numbers required $ = 201+1=202.$

Hence, minimum number of bits required for sequence numbers till $202$ is $\lceil \log_2 202 \rceil = 8.$ 

edited by
43 43 votes

Isn't the minimum sequence number $\geq$ SWS+RWS.
So we are getting $201$ for the sender window and since we are using $\text{GBN}$
we should add $1$ as the RWS.

So total sequence number $\geq 201+1 =202.$

Answer will still remain 8 though

edited by
27 27 votes
Given $T_{processing}=0,Transmission_{ack}=0$

My total RTT here is $T_{data}+T_{prop}+T_{prop}=T_t+2*T_p$

My useful time will only be $N*T_{data}$ where $T_{data}$ will be transmission time for one frame.

so my efficiency

$\frac{N*T_{data}}{RTT}=\frac{T_{data}*N}{T_{data}+2*T_{prop}}=\frac{N}{1+2*\frac{T_p}{T_t}}=\frac{N}{1+2a}$

so, my efficiency would be 100% only if I send 1+2a packets into network in RTT time.

This 1+2a comes to be 201.

Now, this is the sender's window size. Receiver window size would be 1. So, the total you would need 202 distinct sequence numbers for frames and this requires $\lceil log_2202 \rceil = 8$ bits
11 11 votes

to know  the minimum size in bits of the sequence number field when the The network is to be used to its full capacity we need to send until RTT time.


propagation speed is given by which we can find propagation time ...
to travel 4x10^6 meters its take 1 second
so for 8x10^6 meters it will take 2 second which is our propagation time

now our RTT will be  2*PT=2*2=4 second 

now we can find that in 4 second how much data we can transfer using Bandwidth. 
in 1 second we transferring 500x10^6 bits
so in 4 second  we will transfer 500x10^6 bits*4=200x10^7 bits 
now we can find the total no packets to be transfer (window size) =200x10^7 bits/10^7=200 packets
to represent 200 we need 8 bits which is our answer

 

5 5 votes
Can we not use the formula for Utilization here it is fully utilized so 1=N/1+2a that way N=201 no of bits required in go back n for window size is 2^k-1=201..k-8 bits
4 4 votes
Given, L =  10^7 bits , B = 500 * 10^ 6  SO , Tt = L / B = 0.02 sec

d = 8000 km ,V = 4*10^6 m/sec SO, Tp = d / v = 2 sec

a = Tp / Tt = 2 / 0.02 = 100

The network is to be used to its full capacity so η = 100 %

Go-back-N protocol, So η = w/(1+2a) where w = 2^n-1
w = 1+2*a

⇒ 2^n - 1 = 201
⇒ 2^n = 202 ⇒ n = 8
Answer:
Position:
Show:

Related questions

73 73 votes
6 answers 6 answers
27.4k
27.4k views
go_editor asked Feb 15, 2015
27,424 views
In the network $200.10.11.144/27$, the $\text{fourth}$ octet (in decimal) of the last $\text{IP}$ address of the network which can be assigned to a host is _______.
153 153 votes
14 answers 14 answers
58.1k
58.1k views
go_editor asked Feb 15, 2015
58,067 views
Two hosts are connected via a packet switch with $10^7$ bits per second links. Each link has a propagation delay of $20$ microseconds. The switch begins forwarding a pack...
47 47 votes
11 answers 11 answers
22.7k
22.7k views
go_editor asked Feb 14, 2015
22,730 views
Consider a CSMA/CD network that transmits data at a rate of $100\;\textsf{Mbps}\; (10^8\;\text{bits}$ per second) over a $1\;\textsf{km}$ (kilometre) cable with no repeat...
67 67 votes
5 answers 5 answers
20.5k
20.5k views
go_editor asked Feb 16, 2015
20,463 views
Consider the following C program:#include<stdio.h int f1(void); int f2(void); int f3(void); int x=10; int main() { int x=1; x += f1() + f2 () + f3() + f2(); printf("%d", ...