Try It: End-to-End Delay Calculator
Try Change Number of retries (N_retry) from 1 to 0.
Observe Compare Retry penalty total and Hop propagation total with 1 and 0 retries.
Explain Describe how 1 retry adds the retry timeout penalty to the hop propagation total.
Calculate
Reset
Technical boundaries. The total multiplies the number of hops by one average per-hop delay, then adds the number of retries times one retry timeout penalty.
viewof hops_per_hop = Inputs. range ([1 , 10 ], {value : 5 , step : 1 , label : "Number of hops (h)" })
viewof avg_hop_delay = Inputs. range ([1 , 100 ], {value : 3 , step : 1 , label : "Average per-hop delay (ms)" })
viewof n_retry = Inputs. range ([0 , 10 ], {value : 1 , step : 1 , label : "Number of retries (N_retry)" })
viewof retry_penalty = Inputs. range ([1 , 500 ], {value : 3 , step : 1 , label : "Retry timeout penalty (ms)" })
{
const sumHops = hops_per_hop * avg_hop_delay;
const retryTotal = n_retry * retry_penalty;
const total = sumHops + retryTotal;
const baseTotal = sumHops; // no retries
const pctIncrease = baseTotal > 0 ? ((total - baseTotal) / baseTotal * 100 ). toFixed (1 ) : 0 ;
return html `<div style="background:#f0f7f4; padding:1rem; border-radius:8px; border-left:4px solid #16A085; margin-top:0.5rem; font-family:system-ui,sans-serif;">
<p style="margin:0 0 0.5rem 0; color:#2C3E50;"><strong>Hop propagation total:</strong> ${ hops_per_hop} × ${ avg_hop_delay} ms = <strong style="color:#16A085;"> ${ sumHops} ms</strong></p>
<p style="margin:0 0 0.5rem 0; color:#2C3E50;"><strong>Retry penalty total:</strong> ${ n_retry} × ${ retry_penalty} ms = <strong style="color:#E67E22;"> ${ retryTotal} ms</strong></p>
<p style="margin:0 0 0.5rem 0; color:#2C3E50; font-size:1.1em;"><strong>T<sub>end-to-end</sub> = <span style="color:#3498DB;"> ${ total} ms</span></strong></p>
${ n_retry > 0 ? html `<p style="margin:0; color:#7F8C8D; font-size:0.9em;">Retries add ${ pctIncrease} % latency overhead vs. zero-loss path ( ${ baseTotal} ms).</p>` : html `<p style="margin:0; color:#7F8C8D; font-size:0.9em;">No retries — this is the minimum achievable latency for ${ hops_per_hop} hops.</p>` }
</div>` ;
}
Return to forwarding decisions
Back to the chapter