A Network with One-Year Leases
On Day 1, several DHCP computers and devices start up in this network. The first, a
DHCP-configured laser printer, sends two DHCP messages to the server to obtain its
IP address. This printer never moves and is never powered off, so it keeps its address,
and people use it via its IP address. After half of the lease expires, six months after
Day 1, the printer renews its lease by sending a message to the DHCP server. Six
months later, it renews its lease again. The DHCP server processes a total of four
messages from the printer in the course of one year.
The second device, a DHCP-configured workstation, also starts up on Day 1. It
receives its DHCP lease and is fully functional on the network. Each night, this
device is turned off. Every morning, it is turned back on and sends one DHCP
message to the server to confirm its IP address and to extend its lease on the address.
The DHCP server receives one DHCP message per day from this device.
The third device, a mobile laptop, starts up in one subnet on Day 1 and sends two
messages to the DHCP server to obtain an address with a one-year lease. The next
day, it starts up in a different subnet and gets another address with a one-year lease.
The third day, it starts up in a third subnet and gets yet another address with a one-
year lease. The laptop, therefore, has an address with a one-year lease on each subnet
to which it has been connected.
When the administrator changes a parameter for DHCP clients, the server returns
that new value to DHCP clients in the next message it sends to each client. However,
because the protocol relies on the client to initiate communication, any change to a
DHCP option is not sent to a DHCP client until the client sends a message to the
server. Therefore, on this network, the printer doesn’t see a change to a DHCP
option for six months. The workstation and desktop system receive the new parame-
ter value more quickly because they contact the server each time they are powered
on, but even 24 hours might be too long to wait for changes to DHCP options to
propagate to DHCP clients.
Long leases can also lead to exhaustion of the pool of addresses that are available for
dynamic assignment by the DHCP server. Because the server must wait until the
lease expires before reassigning an address to a new client, every device that
connects to the network—even a laptop that is connected for only a few hours—is
assigned an address that can’t be reused for one year. Over time, many addresses
may no longer be in use but may not be reused because the leases for those
addresses have not expired.
When subnets are assigned new IP addresses, or are renumbered, another problem can
appear. The laptop and workstation are renumbered according to the new subnet
address as soon as they restart. The printer, which is left powered on all the time, is
not assigned an IP address on the new network until it extends the lease on its
address, which could be as long as six months after the network is renumbered.
CHAPTER 19 Tuning a DHCP Service326
023 3273 CH19 10/3/02 4:58 PM Page 326