3,948 views
3 votes
3 votes

You are hired to design a reliable byte stream protocol that uses a sliding window protocol like TCP .The protocol will run over 1Gbps n/w. the RTT is 140 ns and maximum segment lifetime (MSL)is 60sec.

 How many bits would you require in the Advertise window field of TCP header to keep pipe full??

1 Answer

3 votes
3 votes

 

q1) Max. amount of data that can be send by the sender = 140 ns * 1 Gbps = 140 b = 140/8 B

No. of bits needed to represent 140/8 B of data < = No. of bits needed to represent 2^8/2^3 B of data

No. of bits needed to represent 140/8 B of data is at most 5 bits.

Advertised window field needs 5 bit so that it can send 140/8 B of data to keep the pipe full.


 

q2) Data send in MSL = 1Gbps * 60 sec = 60 Gb = 60/8 GB

   Max. no. of bits in sequence no. field of TCP header to prevent wrap around of data = log(base 2) (60 * 10^9/8) = 33 bits

Related questions

0 votes
0 votes
1 answer
1
0 votes
0 votes
0 answers
3
Sahil_Lather asked Jan 27, 2023
418 views
A host sends two packets and receives two acknowledgments. The time is shown as hour:minute:seconds.Segment 1 was sent at 0:0:00.Segment 2 was sent at 0:0:07.ACK for segm...
0 votes
0 votes
1 answer
4
Sahil_Lather asked Jan 27, 2023
511 views
Consider the slow start phase for a congestion control in a TCP connection. Initially, the window size is 4 MSS and the threshold is 36 MSS. After which transmission wind...