This toy retransmission model is only byte replay plus ACK arithmetic.
highlighted = computed this step
What this toy model checks
This model checks one missing payload, one repeated data segment, one duplicate ACK, and one final ACK.
payload bytes=2
Exact arithmetic
The duplicate ACK stays at 1001; the final ACK is 1001 plus 2.
1001+2=1003
What this does not model
NOTE: toy retransmission and ACK arithmetic example only; not timeout estimation, fast retransmit thresholds, SACK, congestion-window changes, reordering, packet capture timing, checksum or offload behavior, or production TCP behavior.
toy retransmit=1
Summary
TCP retransmission here is exact byte replay plus exact ACK arithmetic, not a full TCP implementation.