Got it

Basics of DHCP (1) Highlighted

Latest reply: Aug 21, 2021 01:33:26 911 23 16 0 0

Hello, everyone!


Today, I will explain one of the most important network protocols. It is DHCP. DHCP is an abbreviation from Dynamic Host Configuration Protocol. This protocol is protocol layer 7 (application layer).


The main task of this protocol is to give network configuration parameters to all users who request it. The network configuration parameters include the following parameters:


  • IP address

  • Subnet mask

  • Default gateway

  • Domain name

  • DNS server

  • Lease time

  • ...


This protocol involves two main roles:


  • DHCP server – this device assigns network configuration parameters.

  • DHCP clients – devices that require network configuration parameters.


After DHCP clients receive network configuration parameters, they can communicate with hosts outside their LAN. Generally, there are three situations:


The first situation is that host has static network parameters and it can communicate only in its LAN.


Second, the host is configured to get dynamic network parameters. But for some reason, it doesn't get network configuration parameters. Then the host configures itself.  It will get a private APIPA IP address. This allows the host to communicate within its LAN, but not outside this network.


And the last situation is that host is configured to get dynamic network parameters. And after the DHCP process, the host gets network configuration parameters and it can communicate with hosts in its LAN and with hosts outside their LAN network.


Now, I will explain the DHCP process. In the next figure, we can see the basic process of DHCP.



DHCP process


Fig. 1. DHCP



There are four main steps in DHCP process communication between DHCP client (host) and DHCP server.


Step 1. DHCP client sends broadcast message DISCOVERY. The DHCP client doesn't know where the DHCP server is, and it doesn't know if there is one server or if there are multiple servers. Because of that, the DHCP client sends this message. And this way DHCP client tries to find a DHCP server.


Step 2. The DHCP server sends unicast message OFFER. The DHCP server received a DISCOVERY message and after that, it sends an OFFER message to the DHCP client and provides various configuration parameters.


Step 3. DHCP client sends unicast message REQUEST. The DHCP client sends this message to the DHCP server and in this way confirms the received network configuration parameters. If there is more than one DHCP server in the network, the DHCP client receives more than one DHCP OFFER message. The DHCP client takes the first message it receives.


Step 4. The DHCP server sends unicast message ACK (ACKNOWLEDGMENT). In this message, the DHCP server tells the DHCP client that it agrees that the DHCP client can use the assigned network parameters.


In this first article about the Basics of DHCP, I explained basic messages and process communication between DHCP client and DHCP server. I will continue to explain this protocol in the next articles:



Thank you!


For more information, please click:

Basic of DHCP (2)

Basic of DHCP (3)


The post is synchronized to: Vlada85's Author Collection

Diego.Silva
MVE Author Created Aug 16, 2021 20:42:59

Good! Very good!
View more
  • x
  • convention:

LilStylz237
LilStylz237 Created Aug 18, 2021 20:25:31 (0) (0)
Yess  
andersoncf1
MVE Author Created Aug 17, 2021 12:45:07

Well done! Thanks friend
View more
  • x
  • convention:

ulrichwandja
ulrichwandja Created Aug 17, 2021 16:15:42 (0) (0)
✌  
thank you for sharing
View more
  • x
  • convention:

Awesome my friend thanks for this
View more
  • x
  • convention:

Good
View more
  • x
  • convention:

Thanks for sharing
View more
  • x
  • convention:

Sara_Obaid
Moderator Created Aug 18, 2021 04:42:34

Nice post on the basics of DHCP...well done!
View more
  • x
  • convention:

chantha
chantha Created Aug 18, 2021 13:07:02 (0) (0)
 
You’ve just about mastered that, thanks, thanks for sharing
View more
  • x
  • convention:

chantha
chantha Created Aug 18, 2021 13:06:53 (0) (0)
 
good share my friend
View more
  • x
  • convention:

12
Back to list

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.