Before the adoption of automated ways to provide IP addressing for the devices in a network, this was performed manually. The network administrator had to go to each computer and configure the following parameters:
- IP address
- Subnet mask
- Gateway
- DNS servers
- NTP servers
In October 1993, the first automated way to allocate IP addresses was introduced: the Bootstrap Protocol (BOOTP). Even though it was a major improvement over the traditional method, BOOTP had some limitations. Because BOOTP was not able to configure every parameter, the network administrator had to manually configure some settings on devices. Another drawback of using BOOTP was that it did not have any mechanism to understand when a device might leave the network and make its IP address available for others to use.
Because of these disadvantages and lack of functionality, BOOTP was eventually upgraded to the Dynamic Host Configuration Protocol (DHCP), which was initially released in 1997 and underwent periodic upgrades over the years.
To refresh your memory, DHCP address allocation is a four-step process, as presented in Figure 10.1 below:
Figure 10.1 – DHCP Four-Step Process
- 1. DHCP Discover: When a device boots up and it is configured to obtain an address via DHCP, it sends a Broadcast out to UDP port 67. The packet will reach every device on the network, including any possible DHCP servers located there.
- 2. DHCP Offer: The DHCP servers on the local network see the broadcasted Discover message sent by the client and sends back a response (DHCP Offer packet) also in the form of a Broadcast address, because the client still doesn’t have an IP address so it cannot receive Unicast packets.
- 3. DHCP Request: Once the client workstation receives an offer made by the DHCP server, it will send a Broadcast (to let all DHCP servers know that it has accepted an offer from a server) DHCP Request message to a specific DHCP server. The client might have received offers from multiple DHCP servers but it needs only a single IP address, so it must choose a DHCP server (based on an identifier) and this is usually done on a “first-come first-served” basis.
- 4. DHCP ACK: The DHCP server sends another Broadcast message to confirm the IP address allocation to that specific client.
