Sliding Window Protocol: - Stop & Wait: Inefficient If Is Large. - Data
Sliding Window Protocol: - Stop & Wait: Inefficient If Is Large. - Data
Hema A Murthy
Timeout
S 1 2 3 4 5 3 4 5
E D E
R
Indian Institute of Technology Madras
Computer Networks Prof. Hema A Murthy
Go-Back N
• Discard if correct frame not received
• Use same circuit for both directions
– Intermix data frames from both S Æ R with ack frames
from RÆ S
• Use kind field in header:
– decide whether data or ack
– piggy back ack on outgoing frame for RÆ S
– Ack field in frame
– If frame not available for piggybacking Æ Timeout
Sender
7 0 7 0
6 1 6 1
2 2
5 5
4 3 4 3
Receiver
7 0 7 0
6 1 6 1
2 2
5 5
Sender 4 3 4 3
7 0 7 0
6 1 6 1
2 2
5 5
4 3 4 3
Receiver
7 0 7 0
6 1 6 1
2 2
5 5
4
Indian Institute of Technology Madras 3 4 3
Computer Networks Prof. Hema A Murthy
SWP -- Example
• Larger Sender Window Size
7 0
6 1
2
5
4 3
LAR LFS