DHCP Address Assignment
Read this concept as one more decision made about a packet in flight. The widget below lets you change the inputs and watch the consequence instead of memorising the rule.
Why it matters
A host cannot choose its own IP address safely on a shared link, so it obtains an address plus gateway and DNS settings from a server. The exchange happens before ordinary IP communication is possible.
On the wire
The client broadcasts DHCPDISCOVER from 0.0.0.0, servers answer with DHCPOFFER, and the client requests one offer with DHCPREQUEST before the server commits with DHCPACK. These are UDP datagrams to ports 67 and 68 carrying options such as subnet mask, lease time, and router address.
When it breaks
A rogue DHCP server that answers first can hand out a gateway controlled by an attacker and intercept all traffic. An expired lease with no renewal available leaves the host with an address the network no longer routes, so connections stall at the link.
Handshake stepper
Send each message in order; drop one to see a timeout-driven retransmission.
Each message costs roughly one delay
Each step carries state the next one depends on, so ordering matters.