











Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
These are a set of Lecture Slides on the subject of Data Communication and Computer Networks at Univeristy of Delhi by Dr. Sonam Zinta. It includes: Algorithm, Sender, ARQ, Size, Window, Selective, Repeat, Frame, Send, Receive
Typology: Slides
1 / 19
This page cannot be seen from the preview
Don't miss anything!












Algorithm 11.7 Go-Back-N sender algorithm
(continued) Docsity.com
Algorithm 11.7 Go-Back-N sender algorithm (continued)
Docsity.com
Note
Docsity.com
Figure 11.18 Send window for Selective Repeat ARQ
Docsity.com
Figure 11.20 Design of Selective Repeat ARQ
Docsity.com
This example is similar to Example 11.3 in which frame 1 is lost. We show how Selective Repeat behaves in this case. Figure 11.23 shows the situation. One main difference is the number of timers. Here, each frame sent or resent needs a timer, which means that the timers need to be numbered (0, 1, 2, and 3). The timer for frame 0 starts at the first request, but stops when the ACK for this frame arrives. The timer for frame 1 starts at the second request, restarts when a NAK arrives, and finally stops when the last ACK arrives. The other two timers start when the corresponding frames are sent and stop at the last arrival event.
Docsity.com
Another important point is that a NAK is sent after the second arrival, but not after the third, although both situations look the same. The reason is that the protocol does not want to crowd the network with unnecessary NAKs and unnecessary resent frames. The second NAK would still be NAK1 to inform the sender to resend frame 1 again; this has already been done. The first NAK sent is remembered (using the nakSent variable) and is not sent again until the frame slides. A NAK is sent once for each window position and defines the first slot in the window.
Docsity.com
The next point is about the ACKs. Notice that only two ACKs are sent here. The first one acknowledges only the first frame; the second one acknowledges three frames. In Selective Repeat, ACKs are sent when data are delivered to the network layer. If the data belonging to n frames are delivered in one shot, only one ACK is sent for all of them.
Docsity.com
Note
Docsity.com
Figure 11.21 Selective Repeat ARQ, window size
Docsity.com
Algorithm 11.9 Sender-site Selective Repeat algorithm (continued)
(continued) Docsity.com
Algorithm 11.9 Sender-site Selective Repeat algorithm (continued)
Docsity.com
Algorithm 11.10 Receiver-site Selective Repeat algorithm
Docsity.com