Mid2 2024 Spring Solution
Mid2 2024 Spring Solution
Page 1 of 2
Q2: [5+5 = 10 Marks]
a) Let’s suppose a window size of 4 and sequence number range from 0 to 8. Assume that 2nd
packet in the window is lost. Apply TCP fast retransmission. Also, Generate Acknowledgements
and complete the process until the lost packet is properly received by the receiver.
b) Let's suppose a window size of 4 and sequence number range from 0 to 8. Apply Go-Back-N
(GBN) for sender and receiver events and actions. Assume that 3rd packet in the window is lost.
Show the GBN operations using the diagram in the presence of the lost packet
Solution: (b) (c)
Q3: [2 + 4 + 4 = 10 Marks]
(a) Justify your answer.
i. Does TCP guarantees, meeting the delay requirement(s)? If yes, then discuss in brief, how such delay
guarantee is provided by TCP?No
ii. Is TCP segment of size 128KB is possible? If no, then what could be the maximum segment size
(MSS) possible?No. 64K
(b) Using a simple telnet scenario, illustrate with the help of a timing sequence diagram, how the TCP
handles sequence numbers and ACKs. The telnet client is Host A, and the server that is accessed
remotely, is Host B. The initial sequence number 42 and 78 are selected by Host A and Host B
respectively.
Solution:
(c) What action on the following events, will be taken by the TCP Receiver, for the ACK generation:
i. arrival of in-order segment with expected seq #. All data up to expected seq # already ACKed
ii. arrival of segment that partially or completely fills gap
Solution:
i. delayed ACK. Wait up to 500ms for next segment. If no next segment, send ACK
ii. immediate send ACK, provided that segment starts at lower end of gap
Page 2 of 2