What is DHCP? What does it do? its working mode? working principle?

1. What is DHCP?

DHCP is the abbreviation of Dynamic Host Configuration Protocol. It is a network management protocol that exists at the application layer .

Second, the role of DHCP?

With the help of DHCP, any device or node on the network can be dynamically assigned an Internet IP address so that they can communicate through this IP address.

1. In a network without DHCP service

If there is no DHCP service in the network, it is necessary to manually set the IP address, subnet mask, default gateway, and DNS server. Every time a computer, mobile phone, tablet computer and other devices move to a place, they must be reconfigured.

If ordinary users are allowed to manually configure these network parameters, it will actually be very troublesome, because ordinary people do not understand these things, so there needs to be something to help configure network parameters, so DHCP was born, its purpose It is to realize automatic setting of IP address and unified management of IP address allocation .

2. In the network with DHCP service

With DHCP, as long as the computer is connected to the network (WiFi or wired network), it can perform TCP/IP communication. In other words, DHCP realizes plug and play. It can be used not only in IPv4, but also in IPv6.

3. Introduction to the working mode of DHCP

DHCP is a network protocol in Client/Server mode. The DHCP Client submits a configuration application to the DHCP Server. The DHCP Server automatically selects an IP address from the IP pooling layer and returns other corresponding configuration information (subnet mask, etc.) to the DHCP Client . The Client and Server here are application programs that can run on computers, servers, routers and other devices.


Fourth, the working principle of DHCP

DHCP has two methods for assigning IP addresses:

  1. The DHCP server automatically selects one of the selected IP addresses for assignment
  2. Assign a fixed IP address to the MAC address

These two methods can also be used together .


5. References

  1. 37 pictures explain DHCP in detail: the invisible man who gives you an IP address
  2. What is DHCP? Summarize the advantages, disadvantages and working principles of DHCP
  3. What is DHCP in router settings? What is it useful for networking?

Guess you like

Origin blog.csdn.net/e2788666/article/details/131152618