What is DHCP? And how does it works ?

To connect different devices in any computer network and make their connection, it is necessary to enter IP address in the device, and only after this communication can be established between the devices, that is, it is a unique address which is unique in any network.  It is completely different for every device.  We can also call it an identity of the device, through which it communicates with all the other computers connected to the network and shares data among themselves.

 So there are two ways to enter IP (Internet Protocol) address in computers and devices, the first way is manual, in which the administrator has to go to all the computers or devices and enter unique IP addresses one by one, that is, every computer gets an IP.  Has to be given which is completely different from the IP of all other devices connected to the network.

 This process of manually entering IP details takes a lot of time, and if the network is very large then doing this can even become an activity of several days.  Besides, information about every IP address entered in it also has to be maintained, so that that IP is not used again and problems like IP Conflict can be avoided.  And the second method is DHCP (Dynamic Host Configuration Protocol) Server, so let’s understand it.

What is DHCP?

 D-H-CP is a Network Management Protocol, it works on Server Client Model.  By DHCP Server, all the computers or devices connected to the network are automatically given a unique IP address and other network configuration’s like Subnet, Gateway and DNS address, so that all the devices can communicate with each other.

 DHCP Server is used in both small and large networks, where in a small computer network, the work of DHCP Server is used by Centralized Router or Modem, whereas if the network is large, then Dedicated DHCP Server is installed for it.

 The main objective of D-H-CP is to automatically configure the IP addresses of all computers and devices installed in a network, so that the network administrator does not have to manually go to each computer and do this work.

How does DHCP work?

 As you read, it works on a Server Client Model, where DHCP is a host and all other computers connected on the network are clients.

 As soon as a new computer i.e. client computer joins the network, the DHCPDISCOVER message is broadcast by the client computer, this is a request, which is made by the client computer to find the host i.e. DHCP Server and get the IP address from it.  .

In response to this, a DHCPOFFER message is given to the client computer by the DHCP Server, which contains the configuration of the network.  That means DHCP checks for available IP addresses in its IP Pool and sends the available IP address to the client machine.

 In response, a DHCPREQUEST message is broadcast to the server by the client computer, that is, the client computer has accepted the DHCPOFFER.  And then finally the DHCPACK message is broadcast by the server, which indicates the completion of this session.

Advantages of DHCP :

 Following are some of the benefits of implementing DHCP in the network.

 Reliable IP Setup:- All client computers connected to the server are given a unique IP, so that IP conflict and other problems related to IP configuration can be avoided.

 Time Saving:- The administrator does not have to go to all the computers and do the activity of manually entering and noting down the IP settings, which saves a lot of time.

 Centralized IP Management:- Because all the information about IP configuration is given by DHCP server, in which IP configuration can be given according to different clients, and all the data remains safe in DHCP data store, then it is a Centralized IP Management.

 From all these features of DHCP, we can say that through its implementation, the administration of a network i.e. it has to be taken less care.

 So, hopefully friends, you would have got the information about what is DHCP, if you liked the given information then share it with others also, thank you.

Leave a Comment