




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





The time axis was broken into two segments for formatting requirements. When you draw them, you should take advantage of the flexibility of hand-drawing to present them continuously. (c) The timeout would be less than the minimum possible time in which the ACK could possibly come back for a frame. Thus every frame would timeout and be retransmitted at least once. This could cause other undesirable effects if (as in realistic protocols) the behavior of the protocol is different for normal and retransmitting modes.
(b) Curiously enough, in this artificially created scenario, frame 8 never gets through! As can be seen from the diagram above, the second transmission of frame 8 is the 16th^ attempt at transmission by the sender, and therefore fails again. Thus the situation recurs, and the communication completely stalls after 7 frames.
after the frame following the lost frame has been received. The first retransmission succeeds, and the time attributed to frame i is τ + (2τ + Tnak). Finally, when k is 2 or more, ( k – 1) durations of (τ + Tout) are added onto the above time. All the different conditions in the question help you draw the above conclusions. You should consider how the answers would change if one or the other condition were changed; for example, if Tout < Tnak + τ,then the timeout would occur before the NAK could have any effect. (b) The probabilities are that of exactly one transmission, exactly one loss, exactly two losses, etc. The probabilities are as usual, respectively, P[ k = 0] = p , P[ k = 1] = (1- p ) p , P[ k = 2] = (1- p )^2 p , and generally (1- p ) k^ p. (c) Combining the answers to parts (a) and (b), that is summing the times required for exactly k losses weighted by the probabilities over all possible k , it is straightforward to obtain the given expression.
The key observation is that this modification allows the sender to send frames which otherwise could not have been sent, but almost certainly at the wrong times. For example, consider the extreme case when only frame #1 has failed during original transmission, so the sender’s window is [#1, #6, #7, #8, #9]. Now when #1 times out and is retransmitted, if it is received correctly, it immediately slides the receiver’s window out to [#6, #7, #8, #9, #10] and allows the receiver to accept the later packets which the sender is already allowed to transmit (without the modification the sender would not be allowed to transmit those frames until the ACK for #1 reached the sender). But the sender has already transmitted frames #6, #7, #8 and #9, when they originally moved into the sender’s window, and will not now retransmit them until they time out. When those original transmissions had been received by the receiver, it had not accepted them because they were still outside the window. Now assuming that the window size is such that the transmission delay of W frames is roughly equal to twice the propagation delay (remember the approach to problems 5 and 6 of HW4), and that the timeout is a little larger than twice the propagation delay, we find that frame #1 is likely to timeout during the time the sender is transmitting frames #6, #7, #8 and #9, or a little later. If later, then these transmissions are discarded by the receiver as described above. If during, then the sender has two choices; either it finished the original transmissions and then retransmits #1, this case then boils down to the above. Otherwise it should go into retransmission mode, in which case it retransmits #1, but now it should not transmit original frames because it is already retransmitting. Either way, the only extra transmissions the modified algorithm allows the sender to make occur before they can possibly be accepted by the receiver. You can make the argument that after retransmitting #1, the sender should transmit any remaining frames in its window that have not been transmitted before. This is a little irregular, but it can be done without compromising correctness. However, if even one of the new frames was transmitted before the retransmission of frame #1, then the receiver’s window will not be able to move forward, and the situation simply repeats. Efficiency may improve, but not greatly over a long time. Another issue that we have not considered is the sequence number wraparound. Because a wider range of frames can be in the channel, the number of distinct sequence numbers must be increased. If we try this modification with the usual 2W sequence numbers, then it can easily be shown that correctness will not be retained.