Description
Compare ageSeconds against renewalSeconds and leaseSeconds using inclusive thresholds.
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.
Compare ageSeconds against renewalSeconds and leaseSeconds using inclusive thresholds.
When to use this tool
Use Dhcpv4 Lease Renewal Age Gap when you need an explicit lease or advertisement timer calculation.
How to use the tool and how it works
- Enter leaseSeconds, renewalSeconds, ageSeconds. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read renewalDue, leaseExpired, untilRenewal. Inspect renewalDue, leaseExpired before interpreting the associated values.
Compare ageSeconds against renewalSeconds and leaseSeconds using inclusive thresholds. Return renewalDue, leaseExpired, and a zero-floored untilRenewal in seconds.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| leaseSeconds | Lease Seconds | Required. Safe integer; minimum 1; maximum 4294967295. |
| renewalSeconds | Renewal Seconds | Required. Safe integer; minimum 0. |
| ageSeconds | Age Seconds | Required. Safe integer; minimum 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| renewalDue | Renewal Due | Required. Boolean. |
| leaseExpired | Lease Expired | Required. Boolean. |
| untilRenewal | Until Renewal | Required. Safe integer. |
{
"input": {
"leaseSeconds": 3600,
"renewalSeconds": 1800,
"ageSeconds": 1200
},
"output": {
"renewalDue": false,
"leaseExpired": false,
"untilRenewal": 600
}
} Limitations and assumptions
- Renewal may equal lease expiration; this does not schedule DHCP actions or infer default timers.
- 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
- DHCP Lease T1 T2 Order Gap
Check the strict relation t1 < t2 < leaseSeconds.
- Icmpv6 Router Lifetime Remainder
Subtract elapsedSeconds from advertisedLifetime with a zero floor.