5,221 views
9 votes
9 votes

25. Suppose you are designing a sliding window protocol for a 1-Mbps point-to-point link to the stationary satellite revolving around the Earth at an altitude of 3 × 104 km. Assuming that each frame carries 1 KB of data, what is the minimum number of bits you need for the sequence number in the following cases? Assume the speed of light is 3 × 108 m/s. (a) RWS=1 (b) RWS=SWS

2 Answers

7 votes
7 votes

Official Solution =>

25. One-way latency of the link is 100 ms. (Bandwidth)× (roundtrip
delay) is about 125 pps × 0.2 sec, or 25 packets. SWS should be
this large.
(a) If RWS= 1 , the necessary sequence number space is 26.
Therefore, 5 bits are needed.
(b) If RWS= SWS, the sequence number space must cover twice
the SWS, or up to 50. Therefore, 6 bits are needed.

 

1 votes
1 votes
tp=3*10^7/3*10^8=0.1 s

RTT=0.2 s

bandwidth delay product=10^6*0.2 s

sender window size=10^6*0.2/8*10^3=25

If rws=1 then total sequence no=25+1=26 so 5 bits

if sws=rws

total sequence no=50

so no of bits=6

Related questions