Data Link Control Part 2-Data Communication and Computer Networks-Lecture Slides, Slides of Data Communication Systems and Computer Networks

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

2011/2012

Uploaded on 07/05/2012

raoo
raoo 🇵🇰

4.3

(22)

45 documents

1 / 19

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
11.61
Algorithm 11.7 Go-Back-N sender algorithm
(continued)
Docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13

Partial preview of the text

Download Data Link Control Part 2-Data Communication and Computer Networks-Lecture Slides and more Slides Data Communication Systems and Computer Networks in PDF only on Docsity!

Algorithm 11.7 Go-Back-N sender algorithm

(continued) Docsity.com

Algorithm 11.7 Go-Back-N sender algorithm (continued)

Docsity.com

Stop-and-Wait ARQ is a special case of

Go-Back-N ARQ in which the size of the

send window is 1.

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.

Example 11.

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.

Example 11.8 (continued)

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.

Example 11.8 (continued)

Docsity.com

In Selective Repeat ARQ, the size of the

sender and receiver window

must be at most one-half of 2m.

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