Computer Networks Mini Project

Stop-and-Wait ARQ Visual Simulator

A complete visual protocol lab showing packet send, timeout, retransmission, duplicate handling, and ACK success.

01

Alternating bit sequence control (0/1)

02

One packet in flight at any instant

03

Reliability on top of loss-prone channel

Protocol Stage

Live sender-channel-receiver interaction

Idle
SENDER
UNRELIABLE LINK
RECEIVER
Timeout Window fills while sender waits
Press Start to begin simulation.

Packet Timeline

Code Mapping

This visual flow mirrors your C code: c_app/sender.c handles timer and retransmit, and c_app/receiver.c handles in-order acceptance, duplicate filtering, and ACK generation.