ACK/NACK Timing Visualizer
ACK/NACK Timing Visualizer
Visualize acknowledgments, negative acknowledgments, timeout margins, and retransmission timing
ACK/NACK Timing Visualizer
ACK/NACK Timing Visualizer
Reliable protocols are timing decisions. This workbench shows a sender waiting for feedback, a receiver returning ACK or NACK, and the timeout boundary that decides whether the sender waits, retries, or creates duplicate traffic.
Try
Set Timeout to 800 ms, keep Round-trip time at 300 ms and ACK delay at 60 ms, then select Step.
Observe
Compare observed feedback with the timeout marker: the ACK arrives with positive margin, so the retry count stays at 0.
Explain
Feedback time is round-trip time plus ACK delay and jitter. The sender retries when that sum exceeds Timeout, which can turn a merely late ACK into duplicate traffic.
Technical boundaries
This single-exchange timing model excludes adaptive retransmission-timeout estimation, duty-cycle scheduling, link-layer retries, queueing distributions, duplicate suppression, and congestion control.
Timing and Retransmission Workbench
A confirmable IoT message receives feedback before timeout, so the sender cancels the timer and avoids retransmission.
Learning Support
ACK means stop waiting
Once an ACK arrives, the sender cancels the retransmission timer for that packet or message.
NACK is faster than silence
A NACK tells the sender that the receiver detected a problem. The sender can retry without waiting for timeout.
Timeout handles uncertainty
If no feedback returns, the sender cannot tell whether data, ACK, or radio access failed. Timeout is the fallback.
Late ACKs create duplicates
If timeout fires before a valid ACK returns, the sender may retransmit data the receiver already accepted.
Quick Reference
Observed feedback
feedback = RTT + ACK_delay + jitterThis page uses a simple teachable model for one message exchange.
Timeout margin
margin = timeout - feedbackPositive margin means feedback arrives before timeout. Negative margin means timeout fires first.
Safe starting point
safe_timeout = RTT + ACK_delay + 2*jitterThis is a planning rule of thumb, not a TCP replacement.
TCP RTO idea
RTO uses smoothed RTT and varianceTCP adapts over time. Many IoT protocols use simpler timers or application-level policies.
ACK
positive acknowledgmentThe receiver confirms that the packet or message was accepted.
NACK
negative acknowledgmentThe receiver explicitly reports a missing or corrupted item when the protocol supports it.
Retry cost
extra_tx = retransmissionsEvery retry spends airtime, energy, and channel capacity.
Duplicate risk
timeout < feedbackA late ACK can arrive after a retry was already sent, so duplicate detection matters.
Guided Practice
Make timeout too short
Use Short timeout. The timer fires before ACK, producing a spurious retransmission.
Repair with NACK
Use NACK repair. Notice that explicit negative feedback starts recovery before timeout.
Add duty-cycle delay
Use Duty-cycle delay. The ACK is valid, but the receiver waits before it can transmit it.
Find the margin
Increase jitter until timeout margin becomes small. This is where rare radio delays can cause retries.