ACK/NACK Timing Visualizer

ACK/NACK Timing Visualizer

Visualize acknowledgments, negative acknowledgments, timeout margins, and retransmission timing

animation
networking
timing
ack
nack
retransmission
reliability
intermediate

ACK/NACK Timing Visualizer

Animation Reliability Timing

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.

ACK before timeout current timing result
420 ms observed feedback time
380 ms timeout margin
0 retries extra transmissions

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.

Controls

Timing Model

Scenario Presets

Timing and Retransmission Workbench

A confirmable IoT message receives feedback before timeout, so the sender cancels the timer and avoids retransmission.

ACK before timeout
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 + jitter

This page uses a simple teachable model for one message exchange.

Timeout margin

margin = timeout - feedback

Positive margin means feedback arrives before timeout. Negative margin means timeout fires first.

Safe starting point

safe_timeout = RTT + ACK_delay + 2*jitter

This is a planning rule of thumb, not a TCP replacement.

TCP RTO idea

RTO uses smoothed RTT and variance

TCP adapts over time. Many IoT protocols use simpler timers or application-level policies.

ACK

positive acknowledgment

The receiver confirms that the packet or message was accepted.

NACK

negative acknowledgment

The receiver explicitly reports a missing or corrupted item when the protocol supports it.

Retry cost

extra_tx = retransmissions

Every retry spends airtime, energy, and channel capacity.

Duplicate risk

timeout < feedback

A 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.