TCN Lec-6
TCN Lec-6
By
Dr. Rizwan Aslam Butt
Assistant Professor
Department of Electronic Engineering
NED University of Engineering and
Technology
TCN TC-316 NED University of Engineering and Technology
Figure 11.18 Send window for Selective Repeat ARQ
11.2
Figure 11.19 Receive window for Selective Repeat ARQ
11.3
Figure 11.21 Selective Repeat ARQ, window size
11.4
Figure 11.20 Design of Selective Repeat ARQ
11.5
In Selective Repeat ARQ, the size of the
sender and receiver window
must be at most one-half of 2m.
11.6
Algorithm 11.9 Sender-site Selective Repeat algorithm
(continued)
11.7
Algorithm 11.9 Sender-site Selective Repeat algorithm (continued)
11.8 (continued)
Algorithm 11.9 Sender-site Selective Repeat algorithm (continued)
11.9
Algorithm 11.10 Receiver-site Selective Repeat algorithm
11.10
Algorithm 11.10 Receiver-site Selective Repeat algorithm
11.11
Figure 11.22 Delivery of data in Selective Repeat ARQ
11.12
Example 11.8
11.15
Example 11.8 (continued)
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.
11.16
Figure 11.23 Flow diagram for Example 11.8
11.17
Data Link Protocols
Asynchronous Synchronous
Protocols Protocols
• Xmodem
• Ymodem
• Zmodem
• BLAST
• Kermit
Character-oriented Bit-oriented
Asynchronous Transmission
Generally refers to the transmission of
characters with each character carrying
information about timing
Asynchronous Communication
Refers to overall communication between two
points
An example in this case would be ATM
Asynchronous Transmission
Applied to Characters
Character Frame
A
B
Start of Header Packet Number (Packet Number) Packet Data 16-bit CRC
Kermit (Columbia U) :
Character-oriented protocol
Based on one byte (8-bit)
Use ASCII for control character
Not efficient seldom used
Bit-oriented protocol
Based on individual bits
One or multiple bits for control
More efficient
Binary Synchronous Communication
(BISYNC)OR (BSC)
Character-oriented protocol
Half-duplex, stop-and-wait ARQ
2 frame types
Data frame
(data transmission)
Control frame
Header Fields:
• address (sender/receiver)
• #frame identifier (0/1 for stop-and-wait ARQ)
A multiblock frame
- Preceding any DLE character within the transparent region (extra DLE)