Both of these mechanisms were considered by the IETF DHC Working Group during
the development of the DHCP specification. Although both mechanisms are useful
and are, in fact, recommended for use in the DHCP specification to help detect some
duplicate assignments, neither can guarantee that two or more clients will not use
the same IP address.
Explicit Departure Messages
One way in which an IP address allocation server might learn that a computer has
left the 192.168.13.0 subnet is for that computer to send an explicit message that
informs the server that it is leaving. After receiving such a message, the server would
be free to allocate the address of the departed computer to another computer.
Unfortunately, it is impossible to depend on a computer to send a message when it is
disconnected from the network. Computers are not always shut down gracefully, and
users may not remember to send the departure message prior to disconnecting a
computer. Also, if a computer has been disconnected from the segment due to a
change in the network architecture—perhaps the computer has been connected to a
different hub in the wiring closet—there may be no reason to send a departure
message.
Dynamic Address Probing
Another strategy that can be used to determine when an IP address is no longer in
use is to probe to see if a computer is already using that address. For example, an IP
address server might send an ICMP echo request (
ping) to determine whether a candi-
date address might already be in use. If the server receives a matching ICMP echo
reply, a computer must be using the candidate address, so the server would continue
to probe for an unused address.
This strategy is impractical because it cannot reliably determine whether a specific
address has been assigned to a computer. If the IP address server receives an echo
reply after probing an address, that address is definitely in use. However, not receiv-
ing a reply does not necessarily mean that the address is not in use. A network
problem could exist between the server and the computer using the candidate
address, or that computer might simply be turned off. In either case, the server
would not receive an echo reply, even though the address is in use.
Benefits of DHCP Leases
DHCP specifies the use of leases in address allocation so that a server can know reli-
ably when it can reallocate an address. The lease constitutes an agreement between
the client and the server; the server cannot reallocate the address until the lease has
expired, and the client cannot use the address after the lease has expired. If the
computer to which the address was allocated never contacts the server again, the
server must wait until the lease expires before reallocating the address. Even if the
Leases on IP Addresses in DHCP 27
004 3273 CH02 10/3/02 4:58 PM Page 27