Professional Documents
Culture Documents
(DHCP)
What is DHCP ?
Why DHCP required ?
DHCP messages
OPM 1
What is DHCP ?
• A widely used application layer protocol , which addresses
limitations of RARP & InRARP.
• RFC 2131
• Runs over UDP , port no. 67 & 68 are used for DHCP server&
client respectively.
• Configures host device automatically.
• Provides hosts with initial configuration information upon bootup:
– IP address with subnet mask,
– default gateway,
– IP address of the DNS server .
OPM 2
DHCP initial messaging
server A server B
client
(not selected) (selected)
DHCP discover DHCP discover
determine determine
configuration configuration
DHCP offer
DHCP offer
select configuration
DHCP request DHCP request
DHCP ack
Initialization completes
using the allocated configuration
graceful shutdown
DHCP release
discard lease
OPM 3
DHCP message format (based on IPv4)
The source of the DHCP message sets known values of various fields, Zero to unknown filed values
OPM 4
DHCP Messages (Types: part option field)
• DHCPDISCOVER
– The client broadcasts message in search of available DHCP servers.
• DHCPOFFER
– The server response to the client DHCPDISCOVER with offer of configuration
parameters .
• DHCPREQUEST
– The client broadcasts to the server, requesting offered parameters from one server
specifically.
– Confirms correctness of previously allocated address after, e.g., system reboot.
– Extends the lease on a particular network address.
• DHCPRELEASE
– The client-to-server communication, relinquishing network address and canceling
remaining lease.
OPM 5
DHCP Messages (Cont.)
• DHCPACK
– The server-to-client communication with configuration parameters, including
committed network address.
• DHCPNAK
– Server to client indicating client's notion of network address is incorrect (e.g., client
has moved to new subnet) or client's lease has expired
• DHCPDECLINE
– The client-to-server communication, indicating that the network address is already
in use.
• DHCPINFORM
– The client-to-server communication, asking for only local configuration parameters
that the client already has externally configured as an address.
OPM 6
DHCP as UDP application
• DHCP server - port 67, client - port 68
• Reliability is not provided by UDP.
OPM 7