What this shows
This tool walks through the TCP Retransmission Timeout (RTO) calculation. The RTO determines how long TCP waits for an acknowledgment before assuming a segment is dropped and retransmitting it. The RTO is calculated from the measured Round Trip Time (RTT) between two TCP speakers.
The graph plots three values for each round trip: RTT, Smoothed RTT (SRTT) and RTO. The green shaded band between SRTT and RTO is the safety margin added to account for variation in RTT. It widens when recent RTTs are less consistent and narrows as they become more consistent.
The math is a direct implementation of RFC 6298 (the Jacobson/Karels algorithm).
How to use it
- Enter a round-trip time (RTT) in milliseconds and click Add RTT (or press Enter).
- To add several RTTs at once, separate them with commas:
100,200,300.
- Add Random adds an RTT 5% to 20% above or below the previous RTT (or 200 ms if there isn't one yet).
- The graph updates with every round trip. Tap or hover over a point to see its values.
- Click a legend entry to highlight that line or the shaded band. Click it again, or click inside the graph, to clear it.
- Each round trip's full calculation is listed below the glossary.
- The most recent RTT can be deleted using the trash icon, or all of them with Clear All.
- Per RFC 6298, the initial RTO is 1000 ms.
- This tool supports up to 99 RTT entries and a maximum RTT of 9999 ms.
- Glossary and Definitions explains each variable and the color coding.
Sharing a sequence
Click Copy Link to share your exact RTT sequence and graph.
You can also build a custom link yourself by adding these arguments to the end of the page's address:
The address bar updates to list every RTT, so sharing a randomly generated sequence keeps the same values.
A note on RFC 6298
RFC 6298 sets a minimum RTO of 1 second, and allows a maximum of 60 seconds or more. Many operating systems use their own minimum and maximum values. To keep the arithmetic clear, this tool does not set any artificial minimum or maximum and instead shows you the direct result of the TCP Retransmission Timeout algorithm.
Each calculation is worked out exactly, then rounded to a whole millisecond. Those whole-millisecond values are what carry into the next round trip. RFC 6298 doesn't call for rounding; this tool rounds only to keep the numbers readable.
Feedback?
Feedback? Bug reports? Questions? Mention it on my Discord server: pracnet.net/discord.