Concept Flow - Flow control (stop-and-wait, sliding window)
Sender sends 1 frame
→Wait for ACK
ACK received?
No→Timeout: resend frame
Yes
Send next frame
Sender sends multiple frames up to window size
Receiver sends ACKs for received frames
Sender slides window forward on ACK
Continue sending frames within window
Timeout: resend unacknowledged frames
The sender sends frames and waits for acknowledgments (ACKs). In stop-and-wait, it sends one frame at a time and waits. In sliding window, it sends multiple frames before waiting, sliding the window forward as ACKs arrive.