DHCP is based on a client-server model and based on discovery, offer, request, and ACK.
DHCP port number for server is 67 and for the client is 68. It is a Client server protocol which uses UDP services. 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 DORA process, but there are 8 DHCP messages in the process.
Read more:
what is DHCP and how it works?
These messages are given as below:
DHCP discover message –
This is a first message generated in the communication process between server and client. This message is generated by Client host in order to discover if there is any DHCP server/servers are present in a network or not. This message is broadcasted to all devices present in a network to find the DHCP server. This message is 342 or 576 bytes long.
A DHCP server allots a dynamic IP number. The DHCP server has a group of IP addresses which can serve the purpose. It provides IP addresses to systems linked to the internet as they are connected to the network. These IP addresses are providing temporary in nature (this is why it is termed as dynamic), and this provisional period is identified as a lease.