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;
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
Hey Jonas!
Hey Jonas! The official Jonas Brothers podcast. Hosted by Kevin, Joe, and Nick Jonas. It’s the Jonas Brothers you know... musicians, actors, and well, yes, brothers. Now, they’re sharing another side of themselves in the playful, intimate, and irreverent way only they can. Spend time with the Jonas Brothers here and stay a little bit longer for deep conversations like never before.
Crime Junkie
Does hearing about a true crime case always leave you scouring the internet for the truth behind the story? Dive into your next mystery with Crime Junkie. Every Monday, join your host Ashley Flowers as she unravels all the details of infamous and underreported true crime cases with her best friend Brit Prawat. From cold cases to missing persons and heroes in our community who seek justice, Crime Junkie is your destination for theories and stories you won’t hear anywhere else. Whether you're a seasoned true crime enthusiast or new to the genre, you'll find yourself on the edge of your seat awaiting a new episode every Monday. If you can never get enough true crime... Congratulations, you’ve found your people. Follow to join a community of Crime Junkies! Crime Junkie is presented by Audiochuck Media Company.
Betrayal Weekly
Betrayal Weekly is back for a new season. Every Thursday, Betrayal Weekly shares first-hand accounts of broken trust, shocking deceptions, and the trail of destruction they leave behind. Hosted by Andrea Gunning, this weekly ongoing series digs into real-life stories of betrayal and the aftermath. From stories of double lives to dark discoveries, these are cautionary tales and accounts of resilience against all odds. From the producers of the critically acclaimed Betrayal series, Betrayal Weekly drops new episodes every Thursday. If you would like to share your story, you can reach out to the Betrayal Team by emailing them at betrayalpod@gmail.com and follow us on Instagram at @betrayalpod and @glasspodcasts. Please join our Substack for additional exclusive content, curated book recommendations, and community discussions. Sign up FREE by clicking this link Beyond Betrayal Substack. Join our community dedicated to truth, resilience, and healing. Your voice matters! Be a part of our Betrayal journey on Substack.