DHCP
DHCP
•
Prerequisite – Protocols in the Application Layer
DHCP stands for Dynamic Host Configuration Protocol. It is the critical feature on which the users
of an enterprise network communicate. DHCP helps enterprises to smoothly manage the allocation
of IP addresses to the end-user clients’ devices such as desktops, laptops, cellphones, etc. is an
application layer protocol that is used to provide:
DHCP is based on a client-server model and based on discovery, offer, request, and ACK.
Components of DHCP
The main components of DHCP include:
• DHCP Server: DHCP Server is basically a server that holds IP Addresses and other
information related to configuration.
• DHCP Client: It is basically a device that receives configuration information from the
server. It can be a mobile, laptop, computer, or any other electronic device that requires a
connection.
• DHCP Relay: DHCP relays basically work as a communication channel between DHCP
Client and Server.
• IP Address Pool: It is the pool or container of IP Addresses possessed by the DHCP Server.
It has a range of addresses that can be allocated to devices.
• Subnets: Subnets are smaller portions of the IP network partitioned to keep networks under
control.
• Lease: It is simply the time that how long the information received from the server is valid,
in case of expiration of the lease, the tenant must have to re-assign the lease.
• DNS Servers: DHCP servers can also provide DNS (Domain Name System) server
information to DHCP clients, allowing them to resolve domain names to IP addresses.
• Default Gateway: DHCP servers can also provide information about the default gateway,
which is the device that packets are sent to when the destination is outside the local network.
• Options: DHCP servers can provide additional configuration options to clients, such as the
subnet mask, domain name, and time server information.
• Renewal: DHCP clients can request to renew their lease before it expires to ensure that they
continue to have a valid IP address and configuration information.
• Failover: DHCP servers can be configured for failover, where two servers work together to
provide redundancy and ensure that clients can always obtain an IP address and
configuration information, even if one server goes down.
• Dynamic Updates: DHCP servers can also be configured to dynamically update DNS
records with the IP address of DHCP clients, allowing for easier management of network
resources.
• Audit Logging: DHCP servers can keep audit logs of all DHCP transactions, providing
administrators with visibility into which devices are using which IP addresses and when
leases are being assigned or renewed.
Server name
(64 bytes)
(128 bytes)
Options
( Variable length)
Working of DHCP
The working of DHCP is as follows:
DHCP works on the Application layer of the TCP/IP Protocol. The main task of DHCP is to
dynamically assigns IP Addresses to the Clients and allocate information on TCP/IP configuration
to Clients. For more, you can refer to the Article Working of DHCP.
The DHCP port number for the server is 67 and for the client is 68. It is a client-server protocol
that uses UDP services. An IP address is assigned from a pool of addresses. In DHCP, the client and
the server exchange mainly 4 DHCP messages in order to make a connection, also called the DORA
process, but there are 8 DHCP messages in the process.
Working of DHCP