Communication Networks · Visualized
DHCP
Addressing & Names
How devices get numbers, find each other on the LAN, and turn human-readable names into addresses.
7 interactive subtopics — each one animated, step-through and explained.
DHCP
Addressing & NamesDHCP (Dynamic Host Configuration Protocol) hands out network configuration automatically: IP address, subnet mask, default gateway and DNS servers, all with a lease time. A newcomer broadcasts a DORA exchange — Discover, Offer, Request, Acknowledge — and is online before you finish reading the Wi-Fi icon. Without it, every device would need manual static configuration.
How DHCP Works
- D-Discover: the new host broadcasts a UDP discover packet — it has no address yet, so it uses 0.0.0.0 → 255.255.255.255.
- O-Offer: one or more DHCP servers reply with an offered lease (IP + mask + gateway + DNS + lease time).
- R-Request: the host broadcasts its choice — every server sees it, so unchosen offers are released.
- A-Ack: the chosen server confirms the lease; the host does a gratuitous ARP to verify the address is free.
- At 50% of the lease time the host tries to renew unicast; on failure it rebroadcasts near expiry.
DHCP Worked Example
Try it: Plug in a laptop and watch the DORA broadcast exchange.
Discover floods the LAN; two servers offer .100 and .200; the laptop requests .100; that server ACKs a 24-hour lease and records the reservation. Half a day later the laptop quietly renews with the same server — no user-visible event.
DHCP: Key Facts to Remember
Recommended resourcesAffiliate links · may earn us a commission
Recommended for learners
See how packets really travel
Networks are built on the structures and algorithms you can watch step by step — queues, trees, and routing algorithms.