Lec 19 Data Lin Layer Flow Control Protocol
Lec 19 Data Lin Layer Flow Control Protocol
Fixed-Size Framing
Variable-Size Framing
11.3
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004
Figure 11.2 Byte stuffing and unstuffing
11.4
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004
Figure 11.3 A frame in a bit-oriented protocol
11.6
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004
Figure 11.4 Bit stuffing and unstuffing
11.7
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004
11-2 FLOW AND ERROR CONTROL
11.8
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004
Figure 11.5 Taxonomy of protocols discussed in this chapter
11.9
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004
11-4 NOISELESS CHANNELS
Simplest Protocol
Stop-and-Wait Protocol
11.10
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004
Our first protocol, which we call the Simplest Protocol for
lack of any other name, is one that has no flow or error
control.
11.21
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004
Stop-and-Wait ARQ
Based on stop and wait flow control technique
11.22
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004
Figure 11.11 Flow diagram for Example 11.3
11.23
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004
Stop and wait ARQ
To take care of lost and damaged frame
the stations are :
Equipped with a timer, if no
recognizable ACK is received when the
timer expires at the end of the time out
interval, then same frame is sent again.
11.24
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004
Sliding Window Protocol Go
Back -N
Sliding Window protocol
Basic Concept:
11.29
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004
Figure 11.13 Receive window for Go-Back-N ARQ
11.30
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004
Selective Repeat ARQ
In this case only those frames are
retransmitted for which negative
acknowledgement has been received, in this
case called SREJ, or time out has occurred
It is more efficient than go back N
Receiver requires storage buffers to contain
out of order frames until the frame in error is
correctly received.
Transmitter is also more complex because it must be
capable of sending frames out of sequence
11.31
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004
Figure 11.18 Send window for Selective Repeat ARQ
11.32
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004
Figure 11.19 Receive window for Selective Repeat ARQ
11.33
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004
Figure 11.21 Selective Repeat ARQ, window size
11.34
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004
Figure 11.22 Delivery of data in Selective Repeat ARQ
11.35
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004
Review Questions
11.36
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004
Multiple Choice Questions
In a Go-Back-N ARQ, if the window size is 63, what is the
range of sequence numbers?
a. 0 to 63
b. 0 to 64
c. 1 to 63
d. 1 to 64