edited by
839 views
8 votes
8 votes
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$ frames ___________
edited by

2 Answers

6 votes
6 votes

When a host initiates a TCP session, its initial sequence number is effectively random; it may be any value between 0 and 4,294,967,295 ( 2^32 - 1 ), inclusive .

The ISN (Initial Sequence Number) of a packet is not zero and assigned random value for the purpose SECURITY, preventing SPOOFING or HACKING or CONFLICTING with other data bytes transmitted over the data communication(TCP)!

BUT By default, the We take  these starting sequence numbers as zero, regardless of what these values really are. The purpose of this is to make sequence and acknowledgement number analysis simpler. These values will be referred to as relative sequence numbers to the connection.

For sender side

It has a send window and the receiver side has a corresponding recieve window

Now as we are using Selective Repeat , this send window size= recieve window size Which is 32

Now minimum number of sequence number(frame numbers) required to communicate without any ambiguity is 64

So my sequence number space range from 0-63
200%32 = 8 (make set of 32,  0 to 31 )
192 will get 31
193 =0
194=1
195 = 2

196=3

197=4

198=5

199=6

200 = 7
 The sequence number of the frame to be sent after sending 200 frames is  8

Reference :

http://www.lovemytool.com/blog/2010/08/practical-tcp-series-sequence-and-acknowledgement-numbers-by-chris-greer.html

2 votes
2 votes

The sequence number of the frame to be sent after sending 200 frames

=> 201th frame is to be sent.

For 201th frame, frame number = 200 because the first frame number = 0.

 

Now, 200 mod 32 = 8.

Answer:

Related questions

1 votes
1 votes
1 answer
1
Bikram asked Nov 26, 2016
498 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
401 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,816 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...
2 votes
2 votes
3 answers
4