https://selectiverepeatarq.vercel.app/
Selective Repeat ARQ is a reliable data transfer protocol used in computer networks.
It enhances efficiency by retransmitting only the specific lost or corrupted packets, instead of resending the entire window (as in Go-Back-N).
This simulator visually demonstrates:
- Sender & receiver sliding windows
- Packet transmission
- ACK-based acknowledgement
- Packet loss & ACK loss
- Timer expiration
- Selective retransmissions
- Out-of-order packet buffering
[ 0 ][ 1 ][ 2 ][ 3 ] <-- Sliding Window (example: size 4)
β β β
| | |
Sent ACKed Timer Running
[ 0 ][ 1 ][ 2 ][ 3 ]
β
Expected Packet
Sender ---> Packet(i) ---> Receiver
Receiver ---> ACK(i) ---> Sender
Packet(2) Lost
Timer for Packet(2) Expires
Sender Retransmits Packet(2)
Receiver Buffers Out-of-Order Packets
This diagram helps learners visualize the internal logic of Selective Repeat ARQ.
- Real-time sliding window animations
- Simulated packet & ACK loss
- Timer-driven retransmissions
- Out-of-order packet handling
- Receiver-side packet buffering
- Clean UI for education & demonstrations
- Highly interactive visualization
Ideal for students studying computer networks and reliability mechanisms.
Teachers can visually explain ARQ techniques.
Helps learners experiment with real-time packet behavior.
Excellent project to demonstrate understanding of:
- Reliability protocols
- Sliding window mechanisms
- Network error handling
Can be extended to compare:
- Selective Repeat ARQ
- Go-Back-N ARQ
- Stop-and-Wait ARQ
βββ index.html # Main UI layout
βββ style.css # Styling and animations
βββ main.js # Core logic and simulation handling
βββ README.md # Documentation
Pull requests and suggestions are welcome.
Feel free to open an issue for discussions.
This project is open-source under the MIT License.