542 views
0 votes
0 votes

Assume that SWP is designed for a 1mbps point to point link to the moon which has 1 way latency(delay) of 1.25sec Assuming that each frame carry 1KB of data, find

1. number of sequence number required 

2. number of bits required to represent sequence number.

for 1st question i got ans 306.17, is it accepted or we have to round it as 307

plz clarify 

2 Answers

1 votes
1 votes
no of seq no = no of window size = n

n = tx+2tp / tx

tx = 8 * 10^-3 / 10^-6 = 8 ms

tp = 1250 ms

so, n = (2500+8) / 8 = 313.5 so,314 0r 313

no of bits = ceil(log 313) = 9 .
1 votes
1 votes

Optimal window size=((1.25*2)*10^6)/10^3 = 312.5

10 bits for selective repeat protocol  since window size here is

2^n-1 .[ 2^(n-1)=312.5   n=log2[2*312.5] = 10 bits]

9 bits for Go back n protocol.

[2^n - 1 = 312.5   ,2^n  = 313.5   ,n =ceil(log2313.5)]

Related questions

0 votes
0 votes
1 answer
2
Neyoa asked May 19, 2022
1,122 views
1. For a 1Gbps link, 10 ms prop. delay, 1000-bit packet, compute the utilization for: a. Stop and wait protocolb. Sliding window (window size=10)
1 votes
1 votes
1 answer
3
Shankar Kakde asked Jan 23, 2019
290 views