What is DHCP (Dynamic Host Configuration Protocol)?
PC Networking1 Jan 2021

What is DHCP (Dynamic Host Configuration Protocol)?

What is DHCP (Dynamic Host Configuration Protocol)?

When you connect to a network, you usually have an IP address assigned automatically by the router. This process is necessary for devices to be able to communicate with devices on other networks. The switch service that assigns IP addresses is called Dynamic Host Configuration Protocol or DHCP.

DHCP works in a client-server model where a client broadcasts an IP address request to the local network and the DHCP server responds by assigning an IP address. Typically this happens as soon as the device connects to a network so it can start communicating as soon as possible.

When IP addresses are given, they are leased only for a certain period of time, then the DHCP server retrieves the assigned IP address. To avoid this, hosts will start renewing their current IP address allocation halfway through the lease term. Generally, if a lease expires and a new IP address is assigned to a host, a new one is randomly assigned, not the same as the previous one.

In-home and other small networks, the DHCP server is typically integrated into the router because this reduces the number of devices and reduces setup complexity. For large corporate networks, typically a single DHCP server will be used for multiple networks such as the entire building. In this case, DHCP relay agents are used in each interconnected network to forward DHCP traffic from the hosts to the DHCP server and forward the response back to the original host.

Typically, a DHCP server offers connected hosts a random IP address from a configured IP address pool, but it is also possible to manually assign an IP address to specific devices if required.

This is useful if there is some type of server on a network such as a NAS drive or a local webserver. By manually assigning an IP address to these servers, they are always in the same place and you don't have to worry about the IP addresses changing and causing problems.

DHCP Address Lease Stages:

The lease transaction between client and server consists of 4 steps;

  1. DHCP Discover
  2. DHCP Offer
  3. DHCP Request
  4. DHCP Acknowledgment

If the client dynamically expects an IP when added to the environment, it does Discover for a DHCP server that can assign IP to it. The broadcast package that the client sends to the environment is called the DHCP Discover package. This process continues four times and if it cannot reach the server that will assign IP, it defines an address from the APIPA class.

If there is a DHCP server in the environment, it sends an Offer to the client. During this process, the server has reserved an IP for the client.

The client accepts the first offer returned to him and sends a Request package as feedback against this offer. At this stage, other servers sending offers to the client withdraw their offers.

In the last stage, the server confirms the previously reserved IP address for the client and sends the Acknowledgment package. Communication is always broadcast because the client does not have an approved IP address.

More Podcasts

Denne episoden er hentet fra en åpen RSS-feed og er ikke publisert av Podme. Den kan derfor inneholde annonser.

Episoder(24)

What is SSH (Secure Shell), and What are its Features?

What is SSH (Secure Shell), and What are its Features?

What is SSH (Secure Shell), and What are its Features? Secure Shell (SSH) is a network protocol that provides users, especially system administrators, a secure way to access a computer over an unsecur...

5 Mar 20212min

What is Telnet Protocol in Networking?

What is Telnet Protocol in Networking?

What is Telnet Protocol in Networking? Telnet is a TCP/IP protocol developed to connect to a multi-user machine on the Internet network from another remote machine and is the general name given to pro...

19 Jan 20212min

What is HTTPS (Secure Hypertext Transfer Protocol)?

What is HTTPS (Secure Hypertext Transfer Protocol)?

What is HTTPS (Secure Hypertext Transfer Protocol)? What is HTTP? HTTP (Hypertext Transfer Protocol) is the processing of information shared between client and server without any encryption. In short,...

15 Jan 20212min

What is FTP (File Transfer Protocol)?

What is FTP (File Transfer Protocol)?

What is FTP (File Transfer Protocol)? FTP is a file transfer protocol and is the most commonly used protocol for modifying, updating, and uploading files, folders, images, or text files on your websit...

13 Jan 20212min

What is the OSI Reference Model?

What is the OSI Reference Model?

What is the OSI Reference Model? The OSI model (Open System Interconnection) defines a computer network framework for implementing protocols at seven layers. A protocol in networking terms is a form o...

12 Jan 20212min

What is DNS (Domain Name System)?

What is DNS (Domain Name System)?

What is DNS (Domain Name System)? DNS is the system that provides the connection between domain names and IP addresses of internet sites. In short, DNS converts domain names to IP addresses so you can...

8 Jan 20213min

What is an IP Address?

What is an IP Address?

What is an IP Address? All devices connected to the internet network have a specific address for data exchange. Internet Protocol Address, ie IP address, is the virtual address assigned to all compute...

31 Des 20203min

Populært innen Fakta

fastlegen
dine-penger-pengeradet
relasjonspodden-med-dora-thorhallsdottir-kjersti-idem
foreldreradet
treningspodden
jakt-og-fiskepodden
rss-kull
takk-og-lov-med-anine-kierulf
mikkels-paskenotter
rss-strid-de-norske-borgerkrigene
rss-kunsten-a-leve
hverdagspsyken
sinnsyn
rss-bisarr-historie
rss-impressions-2
gravid-uke-for-uke
rss-mind-body-podden
level-up-med-anniken-binz
hagespiren-podcast
tomprat-med-gunnar-tjomlid