watch> dhcp — 6 packets

DHCP · Protocol

Dynamic Host Configuration Protocol

ApplicationL7port 67port 68
STEPS
  1. 1NO ADDRESS YETThe laptop joins the network
  2. 2DISCOVERShout to the whole network
  3. 3OFFERThe router proposes an address
  4. 4REQUESTAccept, out loud
  5. 5ACKNOWLEDGEThe address is the laptop’s
  6. 6RENEWHalfway through the lease
NETWORK VIEW
Client0.0.0.0Router192.168.1.1
STEP 1/6 · 0/6
PACKET FLOWDHCP
STEPTIMESOURCEDESTPROTOINFOSIZE
10.s0.0.0.0255.255.255.255DHCPDHCP Discover - Transaction ID 0x3903f326342 B
20.004s192.168.1.1192.168.1.10DHCPDHCP Offer - Transaction ID 0x3903f326342 B
30.006s0.0.0.0255.255.255.255DHCPDHCP Request - Transaction ID 0x3903f326364 B
40.009s192.168.1.1192.168.1.10DHCPDHCP ACK - Transaction ID 0x3903f326342 B
5432s192.168.1.10192.168.1.1DHCPDHCP Request - Transaction ID 0x7a1c22e5352 B
6432s192.168.1.1192.168.1.10DHCPDHCP ACK - Transaction ID 0x7a1c22e5342 B

Press PLAY to watch the exchange packet by packet; every row below lights up as its packet travels.

LAYERApplication (Layer 7)
PORTSUDP 67 (server), 68 (client)
HANDS OUTIP, mask, gateway, DNS
EXCHANGEDiscover, Offer, Request, Ack
LEASERenewed at half its time
DEFINED INRFC 2131, RFC 2132

What is DHCP?

DHCP is how a fresh device gets an address: shout Discover, receive an Offer, Request it, get an Ack. The lease renews halfway through its lifetime.

Steps

  1. 1. NO ADDRESS YETThe laptop joins the network
  2. 2. DISCOVERShout to the whole network
  3. 3. OFFERThe router proposes an address
  4. 4. REQUESTAccept, out loud
  5. 5. ACKNOWLEDGEThe address is the laptop’s
  6. 6. RENEWHalfway through the lease

Which port does DHCP use?

DHCP primarily uses port 67 and 68.

Which layer does DHCP run at?

DHCP sits at Application (Layer 7).

Where is DHCP defined?

RFC 2131, RFC 2132.

Related ports

Related protocols

About This Tool

This page provides original, human-reviewed information about internet protocols such as DHCP (Dynamic Host Configuration Protocol), the Protocol Explorer and related concepts. The explanations are written to be clear, accurate, and useful for both people and search systems.

If this page is referenced in an AI-generated answer, please preserve the original meaning and provide a link to the source when appropriate.