← PROTOCOL LIBRARY

DHCP

APPLICATION

Automatically configure a host

LESSON PROGRESS1/4
READ FIRST · 60-SECOND BRIEF

THE PROBLEM

A device joining a network needs an address and other settings before it can communicate normally.

THE NAIVE APPROACH

Manually configuring every device is slow and error-prone, especially when devices move between networks.

THE KEY INSIGHT

A client broadcasts a discovery; a server offers a lease; the client requests it; the server acknowledges it.

WHERE YOU MEET IT

  • • A phone joining home Wi-Fi
  • • A laptop connecting to campus Ethernet
  • • A guest device joining an office VLAN

ANALOGY / HISTORY

Like checking into a hotel: ask for a room, receive an offer, confirm it, then receive the key.

Context: It automated much of the manual BOOTP-era host configuration workflow.

3D NETWORK TOPOLOGY
SIMULATION
3D topologypacket animationlocal simulation
SELECTED NODE · CLIENT
Drag to orbit · packet movement is illustrative
CURRENT EXCHANGE
DISCOVER

client → server · INIT → SELECTING

CONTROLLED LAB SIM

DISCOVER

The client has no IPv4 address yet, so it broadcasts a DHCPDISCOVER to find available servers. The transaction ID identifies this exchange.

BREAK IT · LOCAL ONLY
WHY THIS MATTERS

DHCPDISCOVER is normally broadcast because the client does not yet know a DHCP server address.

BYTE INSPECTOR
0000 01 01 06 00 39 03 f3 26 00 00 00 00 00 00 00 00 |....9..&........| 0010 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 00 |................| 0020 00 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0080 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0090 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00e0 00 00 00 00 00 00 00 00 00 00 00 00 63 82 53 63 |............c.Sc| 00f0 35 01 01 37 04 01 03 06 0f ff |5..7......|
FIELD EXPLANATION

The BOOTP header is 236 bytes, followed by the DHCP magic cookie and options. Option 53 value 1 means DHCPDISCOVER.

Educational simulator · Byte examples are labelled by their level of fidelity in the lesson notes.
← Back to protocol library