Dynamic Host Configuration Protocol (DHCP) is a protocol that is used to provide a responsive, quick, and automatic central-management system intended to distribute IP addresses within a particular network. This also contains several other utility functions such as configuring the appropriate subnet mask, default gateway, and DNS server information on a computer, or any form of device.
The DHCP runs at the application layer of the TCP (Transmission control protocol) stack to dynamically assign IP addresses to the different devices, as well as allocate different configuration information to DHCP clients. Users need to be aware that the DHCP is a client-server protocol. This means that the servers manage a list of already pooled unique IP addresses and information about several configuration parameters.
The devices that are configured with DHCP broadcast a request towards the DHCP server in order to request information regarding the network configurations. Then, a device typically broadcasts a query of information a few seconds right after booting up. The DHCP server responds to the device that is making a request by providing configuration information on the IP address that has been specified by the network admin. This also includes specific types of IP addresses for that specific time period, which is actually called a lease, for the valid allocation. Then, the DHCP server refreshes an assignment so that a DHCP device or client can request the same parameters after which the same process can be done again.
A Dynamic Lease is where the client does not necessarily own the IP address assigned to but, instead, ‘leases’ or borrows that IP address for that short period of time. A client may have to go through certain steps in order to terminate the IP address of a certain device while also connecting another IP address to the same device. In most cases, the server will assign a new address rather than using an old IP address. DHCP lease times will depend on the particular location the user is located in. The following cycle is followed when it comes to the leasing.
To put it simply, the IP address that a device has is bound to the network whether this is a Local Area Network or from a large public network, such as the internet.
When it comes to a DHCP handshake, the following steps are followed:
In most cases, the advantages of using DHCP is closely tied to its main function.[1:1]
There is a multitude of different advantages of using DHCP, and there are certainly a few disadvantages as well. However, the disadvantages are actually quite specific and might not affect the user anyway. An example would be when a user wants a specific manual IP address. The network administrator will have to go through a number of processes, such as checking if the IP address is available, before assigning that device with a new IP address. This actually takes a bit of time to do but is not really that common. Dynamic IP addresses that are changing shouldn’t be used in specific devices that are usually stationary and not hand-held, such as printers, and file servers.
Although these devices are usually being used by a lot of individuals in an office, it’s actually quite impractical for these stationary devices to have a constantly changing IP address. Having an ever-changing IP address for stationary devices will only complicate things.