Lecture 5
Lecture 5
A B
Message
OK
Message
OK
Drawback:
Very low utilization of the medium.
Sender refrains from sending until it gets the ACK.
(See next diagram)
1
3.2 Sliding Window Mechanism
2
3
Each ACK or RR (Receive Ready) acknowledges reception of
frames and gives permission (to Sender) to send more.
4
4. Error Control
Error Control deals with
• Detection of errors
• Lost frames and Damaged frames
• Automatic repeat request (ARQ)
o Positive acknowledgment
o Retransmission after timeout
o Negative acknowledgment and retransmission
1. Stop-and-Wait
2. Go-back N
3. Selective Repeat (or reject)
5
4.1 Stop-and-Wait ARQ
For Stop-and-Wait, N = 1
The sender windows size is 1
The receiver window size is 1
6
Drawback
Again, channel utilization is very low.
The sender is idle most of the time waiting for ACKs.
7
The Go-back-N technique can be described as follows:
8
Let us consider the example below with k = 3 and N = 7.
9
More examples developed in class ….
Let’s try N = 8 …
10