Sliding Window Protocol
Sliding Window Protocol
Sliding Window Protocol
10.
Sliding window protocol
Sliding window protocols apply Pipelining :
Go-Back-N ARQ
Selective Repeat ARQ
Sliding window protocols improve the efficiency
multiple frames should be in transition while waiting for ACK. Let more
than one frame to be outstanding.
Outstanding frames: frames sent but not acknowledged
We can send up to W frames and keep a copy of these frames
(outstanding) until the ACKs arrive.
This procedures requires additional feature to be added :sliding window
Sliding window
Sequence Numbers
Sent frames are numbered sequentially
Sequence number is stored in the header of the frame
If the header of the frame allow m bits for the sequence number, the sequence
numbers range from 0 to (2m -1).
The sequence numbers are modulo 2m, where m is the size of the sequence
number field in bits.
If m = 3, sequence number range from 0 to 7 (8 numbers): 0, 1, 2, 3, 4, 5, 6, 7, 0,
1,.....
Sliding window
used to hold the unacknowledged outstanding frames (frames sent but not
acknowledged)
Go_Back _N ARQ
If m = 3;
sequence
numbers = 8
and window
size =7
Go_Back _N ARQ
In Go-Back-N ARQ we use one timer for the first outstanding frame
The receiver sends a positive ACK if a frame has arrived safe and in
order.
if a frame is damaged or out of order ,the receiver is silent and will
discard all subsequent frames
When the timer of an unacknowledged frame at the sender site is
expired , the sender goes back and resend all frames , beginning with the
one with expired timer.( that is why the protocol is called Go-Back-N
ARQ)
The receiver doesn't have to acknowledge each frame received . It can
send cumulative Ack for several frame
Go-Back-N ARQ
10.
Selective Repeat ARQ
10.
Selective Repeat ARQ
m=2