Question: Q 2 : Suppose that we use Selective Repeat protocol for reliable data transfer in transport layer. Consider that host A wants to send a

Q2: Suppose that we use Selective Repeat protocol for reliable data transfer in transport layer. Consider that host A wants to send a file to host B. The file is decomposed into 7 parts, so we have pkt0, pkt1, pkt2,...., pkt6 to be sent. Assume that the sequence numbers start from 0 and we have infinite sequence number space (0,1,2,3,...), so we dont reuse sequence numbers. Also, assume window of size 4. Suppose that the second packet (i.e., pkt1) is lost and the ack for the third packets is lost as well (i.e, ack2). All other packets and acks are sent and received correctly and without any delay. Because of these two losses, the sender doesnt receive the acknowledgement for pkt1 and pkt2 and their timers expire one after the other just after the ack3 arrives in the sender and before arrival of ack4. We assume no loss and delay for any retransmission and its ack. Draw the timing diagram for the file transmission. Mention clearly sequence numbers of data and ack packets, as well as the window at sender side. You dont need to show the window at receiver side. You MUST specify the window status (at sender) whenever a packet is sent or an ack is received in the diagram). Also, mention the actions that happen in sender and receiver upon receiving a packet or ack or timeout. The example actions for packets or acks with sequence number x are send pck x,receive pck x,send ack x,receive ack x,deliver,record ack x arrived,buffer. Please see lecture slides related to Selective Repeat topic for an example of the timing diagram that is expected for this question.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!