Description
Check the strict relation t1 < t2 < leaseSeconds.
Protocol timers compare elapsed time with advertised deadlines. Inclusive expiry tests, renewal thresholds, and signed timer gaps answer different questions and should not be conflated.
Check the strict relation t1 < t2 < leaseSeconds.
When to use this tool
Use DHCP Lease T1 T2 Order Gap when you need an explicit lease or advertisement timer calculation.
How to use the tool and how it works
- Enter leaseSeconds, t1, t2. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read ordered, renewalGap, rebindGap. Inspect ordered before interpreting the associated values.
Check the strict relation t1 < t2 < leaseSeconds. Return the signed differences t2 - t1 and leaseSeconds - t2.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| leaseSeconds | Lease Seconds | Required. Safe integer; minimum 1. |
| t1 | T1 | Required. Safe integer; minimum 0. |
| t2 | T2 | Required. Safe integer; minimum 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| ordered | Ordered | Required. Boolean. |
| renewalGap | Renewal Gap | Required. Safe integer. |
| rebindGap | Rebind Gap | Required. Safe integer. |
{
"input": {
"leaseSeconds": 3600,
"t1": 1800,
"t2": 3150
},
"output": {
"ordered": true,
"renewalGap": 1350,
"rebindGap": 450
}
} Limitations and assumptions
- Negative gaps and a false ordered flag are valid diagnostic output; timers are not repaired automatically.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
- Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.
Alternative or Complementary methods
Track the actual protocol state and monotonic clock, then apply the protocol's transition rules.
References
Similar or alternative tools
- Dhcpv4 Lease Renewal Age Gap
Compare ageSeconds against renewalSeconds and leaseSeconds using inclusive thresholds.
- Icmpv6 Router Lifetime Remainder
Subtract elapsedSeconds from advertisedLifetime with a zero floor.