Connected: An Internet Encyclopedia
3.3 Interpretation and representation of time values

Up: Connected: An Internet Encyclopedia
Up: Requests For Comments
Up: RFC 2131
Up: 3. The Client-Server Protocol
Prev: 3.2 Client-server interaction - reusing a previously allocated network address
Next: 3.4 Obtaining parameters with externally configured network address

3.3 Interpretation and representation of time values

3.3 Interpretation and representation of time values

A client acquires a lease for a network address for a fixed period of time (which may be infinite). Throughout the protocol, times are to be represented in units of seconds. The time value of 0xffffffff is reserved to represent "infinity".

As clients and servers may not have synchronized clocks, times are represented in DHCP messages as relative times, to be interpreted with respect to the client's local clock. Representing relative times in units of seconds in an unsigned 32 bit word gives a range of relative times from 0 to approximately 100 years, which is sufficient for the relative times to be measured using DHCP.

The algorithm for lease duration interpretation given in the previous paragraph assumes that client and server clocks are stable relative to each other. If there is drift between the two clocks, the server may consider the lease expired before the client does. To compensate, the server may return a shorter lease duration to the client than the server commits to its local database of client information.


Next: 3.4 Obtaining parameters with externally configured network address

Connected: An Internet Encyclopedia
3.3 Interpretation and representation of time values