SlideShare a Scribd company logo
1 of 23
Dynamic Host Configuration Protocol
DHCP
PREPARED BY:-
ASODIA KUSHAL-(D22CS087)
KARAN DER-(D22CS096)
GUIDED BY:-
MEET DAVE
Overview
⚫ Introduction
⚫ Characteristics
⚫ Software Elements
⚫ DHCP Terminology
⚫ DHCP Client Initialization
⚫ DHCP States & Procedures
⚫ DHCP Security
DHCP - Introduction
⚫ DHCP was created by the Dynamic Host Configuration
Working Group of the Internet Engineering Task Force(IETF)
⚫ Runs over UDP
⚫ Utilizing ports:
⚫67 – connections to server
⚫68 – connections to client
⚫ Extension of BOOTP (protocol used for simple interaction)-
DHCP enhances the capabilities of BOOTP
⚫ DHCP is basically used for dynamic configuration
⚫ Uses client–server model
Objective of DHCP
⚫ DHCP temporarily binds IP address & other configuration
parameters to DHCP client & provides framework for passing
configuration information to hosts
⚫ DHCP was designed to provide computers with temporary
address
⚫ DHCP is well adapted to situation where hosts move from one
location to another or are routinely connected and
disconnected
⚫ Thus DHCP is mainly used to simplify the installation &
maintenance of networked computers.
Characteristics
⚫ Centralized IP address administration
⚫ Backward compatible with BOOTP – therefore a host running
the BOOTP client software can request a static configuration
from a DHCP server
⚫ Supports multiple servers
⚫ Provides dynamic assignment
⚫ Allows static assignment
⚫ Doesn’t interact with domain name service (DNS)
Software Elements
⚫ Client Software :
- installed in client machines
- to handle broadcast requests
- for automatic IP acquisition & acquiring other configuration
⚫ Sever Software :
- installed in server machines
- designated to respond to client requests for IP address
- manage pools of IP addresses & related configuration
⚫ Relay Agent Software :
- DHCP clients broadcasts requests onto local n/w
Software Elements
⚫ Relay Agent Software :
-Routers block broadcasts to outer network which means
responses from the DHCP servers must come from same
network
- DHCP relay agents intercepts IP address requests
- repackages the requests
-rebroadcasts them as unicast messages to DHCP servers
with known addresses of other network
- DHCP servers sends its reply to relay agent which in turn
forwards them to client requesting the IP address
Software Elements
⚫ Relay Agent Software :
Terminology
⚫ DHCP Databases: DHCP server uses two databases
- One database acquires IP addresses manually and binds
them permanently to hardware addresses similar to BOOTP
- Other database contains 1 or more blocks of IP addresses
(address pools) that are dynamically assigned to clients on
FCFS basis i.e assigning on demand.
- when host no longer needs the IP address,it is released &
returned
⚫ DHCP leases: DHCP issue a lease for a dynamic IP address that
expires at the end of lease time
⚫ After ½ the lease time,client can renew the lease time
Terminology
⚫ DHCP leases: Once lease has expired the client must either stop
using the IP address or acquire a new IP address
⚫ If more than 1 DHCP server, each may offer an IP addr to client &
client can select the best offer.
⚫ There are 3 types of address leases : manual, automatic & dynamic
⚫ Manual lease : N/W manager explicitly assigns all IP addresses
⚫ Automatic lease : DHCP server permanently assigns specific IP
address and dynamically assigns the rest
⚫ Dynamic lease : DHCP server dynamically assigns IP addresses for
a specific period of time when permanent address is not required
Terminology
⚫ DHCP Message Format : The format is based on the format of
BOOTP messages.
Client Initialization via DHCP
Server (not selected) Client
DHCP REQ. Collects repliesDHCP REQ.
Initialization Complete
Graceful Shutdown
DHCPRELEASE
Discard lease
Server (selected)
DHCPDISC.
DHCP DISC.
Client selects
configuration;
in DCHP
REQ
it accepts one
server’s offer
(server
identifier
option)
and implicitly
reject rest
Also broadcast
Sent on Ethernet
broadcast address
Client Initialization via DHCP
⚫ Fig. shows one client and 2 servers
⚫ DHCPDISCOVER is broadcast because client does not know IP
address of DHCP server; BOOTP relay agents may relay it to other
DHCP servers
⚫ One or more DHCP servers respond with DHCPOFFER, which carry
the IP address and other parameters.
⚫ Client may wait for multiple replies and then choose one offer. It
broadcasts DHCPREQUEST accepting one of the servers and
rejecting the others
⚫ The accepted server then confirms the configuration with DHCPACK
⚫ If a client leaves a subnet it should release the server by
DHCPRELEASE.
DHCP states & procedure
⚫ With DHCP, transition of client occurs using 6 states : initialization,
selection, request, bound, renew and rebind
⚫ DHCP uses the first 4 states to initialize IP address
⚫ And 4 states are used to rebind, renew or release an IP address.
⚫ The six states are used to perform essentially 3 processes :
discovery, renewal, and release which are described below..
⚫ DHCP Address Discovery Process :
⚫ When client boots ,it executes a standard address discovery process
⚫ Once IP address acquired, it tests the address by sending ARP
broadcast.
⚫ DHCP uses 4-step processes to allocate IP addresses : Discovery,
Offer, Request, Acknowledgment processes.
DHCP states & procedure
⚫ DHCP Address Discovery Process : The state transitions that
performs standard discovery procedure to acquire IP address is :
⚫ i) Initialization State to Selection State : When the client is booting
up, it is the first stage. Here it sends DHCP Discover message that
places the client in Selection state.
⚫ ii) Selection State to Request State : One or more servers respond to
broadcast message with a DHCP Offer message. Client chooses the
best offer and negotiate by sending DHCP REQUEST message
⚫ iii) Request State to Bound State : The server responds to the
request message with a positive acknowledgement (DHCP ACK)
which begins the lease time and puts the client in the bound state
DHCP states & procedure
Client enters
the request
state
Client enters
the
initialization
state
For more
servers
broadcast
DHCP
offers
Client boots up
Client
broadcasts
DHCP discover
message
Client enters
the selection
state
Client sends
DHCP request
to selected
server
Selected server
sends DHCP Ack
Client enters
the bound
state
DHCP states & procedure
⚫ DHCP Address Renewal Process : When client’s lease nears its
expiration time the client must initiate the address renewal process
to maintain the acquired IP address.
⚫ Here, four states are used to renew or release an IP address which
are discussed below :
⚫ i) Bound State to Renew State : After the client’s first timer reaches
50% of its initial value, it broadcasts a DHCP Request message for a
lease renewal and moves to the renew state
⚫ ii) Renew State to Bound State : If the server approves the lease
renewal, the client moves from renew state back to the bound state
and continue using its original IP address.
DHCP states & procedure
⚫ DHCP Address Renewal Process :
⚫ iii) Renew State to Initialization state : If the server disapproves the
lease renewal, the client moves from renew state to initialization
state and begin the process of acquiring new IP address
⚫ iv) Renew State to Rebind State : If the client doesn't receive a
response from the server within the first 87.5% of the lease time, it
moves to the rebind state and broadcast a DHCP request msg
⚫ v) Rebind State to Initialization State : If the client receives a
negative response from a server while in the rebind state, the client
moves to the initialization state and begins the process of acquiring
new IP address
DHCP states & procedure
⚫ DHCP Address Renewal Process :
Initialization
state
Rebind state
Bound state
Renew state
DHCP Request or Lease
reaches 87.5% of expiration
DHCP Ack
DHCP Request or Lease
reaches 50% of
expiration
DHCP Ack
DHCP
Release
DHCP NAK or
Lease Expires
DHCP NAK
DHCP states & procedure
⚫ DHCP Address Release Process : When client is in the bound state
and determines it no longer needs an IP address, DHCP allows the
client to release its IP address without waiting for lease time to
expire
⚫ This is known as early termination
⚫ It is useful when there are limited no. of IP addresses available
⚫ When the client sends a DHCP release message, it leaves the bound
state and returns to the initialization state
⚫ So, now the client can request another IP address when it needs
one.
DHCP states & procedure
⚫ DHCP Address Release Process :
Initialization
state
Bound state
DHCP
Release
Message
DHCP Security
⚫ DHCP is an unauthenticated protocol
When connecting to a network, the user is not required to
provide credentials in order to obtain a lease
Also the server is also not the authenticated one
Malicious users with physical access to the DHCP-enabled
network can start a denial-of-service attack on DHCP servers by
requesting many leases from the server, thereby reducing the
number of leases that are available to other DHCP clients
THANK YOU

More Related Content

Similar to dhcpppt-130331044148-phpapp02.pptx (20)

Wintel ppt for dhcp
Wintel ppt for dhcpWintel ppt for dhcp
Wintel ppt for dhcp
 
unit 2
unit 2unit 2
unit 2
 
DHCP
DHCPDHCP
DHCP
 
DHCP Services (Ipv4 & 6).pptx
DHCP Services (Ipv4 & 6).pptxDHCP Services (Ipv4 & 6).pptx
DHCP Services (Ipv4 & 6).pptx
 
Lesson 6: Dynamic Host Configuration Protocol A
Lesson 6: Dynamic Host Configuration Protocol ALesson 6: Dynamic Host Configuration Protocol A
Lesson 6: Dynamic Host Configuration Protocol A
 
Dhcp presentation 01
Dhcp presentation 01Dhcp presentation 01
Dhcp presentation 01
 
Tutorial on dhcp
Tutorial on dhcp Tutorial on dhcp
Tutorial on dhcp
 
Implementing Dynamic Host
Implementing Dynamic HostImplementing Dynamic Host
Implementing Dynamic Host
 
DHCP in windows server 2012
DHCP in windows server 2012DHCP in windows server 2012
DHCP in windows server 2012
 
DHCP (dynamic host configuration protocol)
DHCP (dynamic host configuration protocol)DHCP (dynamic host configuration protocol)
DHCP (dynamic host configuration protocol)
 
Dhcp
DhcpDhcp
Dhcp
 
DHCP Server Guaidlines using CISCO PACKET TRACER
DHCP Server Guaidlines using CISCO PACKET TRACERDHCP Server Guaidlines using CISCO PACKET TRACER
DHCP Server Guaidlines using CISCO PACKET TRACER
 
DHCP
DHCPDHCP
DHCP
 
Dhcp
DhcpDhcp
Dhcp
 
Dhcp
DhcpDhcp
Dhcp
 
Microsoft Offical Course 20410C_06
Microsoft Offical Course 20410C_06Microsoft Offical Course 20410C_06
Microsoft Offical Course 20410C_06
 
DHCP.pptx
DHCP.pptxDHCP.pptx
DHCP.pptx
 
Dhcp presentation
Dhcp presentationDhcp presentation
Dhcp presentation
 
Dhcp edu
Dhcp eduDhcp edu
Dhcp edu
 
Dhcp
DhcpDhcp
Dhcp
 

Recently uploaded

Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01KreezheaRecto
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)simmis5
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdfKamal Acharya
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdfSuman Jyoti
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Christo Ananth
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesPrabhanshu Chaturvedi
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...SUHANI PANDEY
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLManishPatel169454
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 

Recently uploaded (20)

Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and Properties
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 

dhcpppt-130331044148-phpapp02.pptx

  • 1. Dynamic Host Configuration Protocol DHCP PREPARED BY:- ASODIA KUSHAL-(D22CS087) KARAN DER-(D22CS096) GUIDED BY:- MEET DAVE
  • 2. Overview ⚫ Introduction ⚫ Characteristics ⚫ Software Elements ⚫ DHCP Terminology ⚫ DHCP Client Initialization ⚫ DHCP States & Procedures ⚫ DHCP Security
  • 3. DHCP - Introduction ⚫ DHCP was created by the Dynamic Host Configuration Working Group of the Internet Engineering Task Force(IETF) ⚫ Runs over UDP ⚫ Utilizing ports: ⚫67 – connections to server ⚫68 – connections to client ⚫ Extension of BOOTP (protocol used for simple interaction)- DHCP enhances the capabilities of BOOTP ⚫ DHCP is basically used for dynamic configuration ⚫ Uses client–server model
  • 4. Objective of DHCP ⚫ DHCP temporarily binds IP address & other configuration parameters to DHCP client & provides framework for passing configuration information to hosts ⚫ DHCP was designed to provide computers with temporary address ⚫ DHCP is well adapted to situation where hosts move from one location to another or are routinely connected and disconnected ⚫ Thus DHCP is mainly used to simplify the installation & maintenance of networked computers.
  • 5. Characteristics ⚫ Centralized IP address administration ⚫ Backward compatible with BOOTP – therefore a host running the BOOTP client software can request a static configuration from a DHCP server ⚫ Supports multiple servers ⚫ Provides dynamic assignment ⚫ Allows static assignment ⚫ Doesn’t interact with domain name service (DNS)
  • 6. Software Elements ⚫ Client Software : - installed in client machines - to handle broadcast requests - for automatic IP acquisition & acquiring other configuration ⚫ Sever Software : - installed in server machines - designated to respond to client requests for IP address - manage pools of IP addresses & related configuration ⚫ Relay Agent Software : - DHCP clients broadcasts requests onto local n/w
  • 7. Software Elements ⚫ Relay Agent Software : -Routers block broadcasts to outer network which means responses from the DHCP servers must come from same network - DHCP relay agents intercepts IP address requests - repackages the requests -rebroadcasts them as unicast messages to DHCP servers with known addresses of other network - DHCP servers sends its reply to relay agent which in turn forwards them to client requesting the IP address
  • 8. Software Elements ⚫ Relay Agent Software :
  • 9. Terminology ⚫ DHCP Databases: DHCP server uses two databases - One database acquires IP addresses manually and binds them permanently to hardware addresses similar to BOOTP - Other database contains 1 or more blocks of IP addresses (address pools) that are dynamically assigned to clients on FCFS basis i.e assigning on demand. - when host no longer needs the IP address,it is released & returned ⚫ DHCP leases: DHCP issue a lease for a dynamic IP address that expires at the end of lease time ⚫ After ½ the lease time,client can renew the lease time
  • 10. Terminology ⚫ DHCP leases: Once lease has expired the client must either stop using the IP address or acquire a new IP address ⚫ If more than 1 DHCP server, each may offer an IP addr to client & client can select the best offer. ⚫ There are 3 types of address leases : manual, automatic & dynamic ⚫ Manual lease : N/W manager explicitly assigns all IP addresses ⚫ Automatic lease : DHCP server permanently assigns specific IP address and dynamically assigns the rest ⚫ Dynamic lease : DHCP server dynamically assigns IP addresses for a specific period of time when permanent address is not required
  • 11. Terminology ⚫ DHCP Message Format : The format is based on the format of BOOTP messages.
  • 12. Client Initialization via DHCP Server (not selected) Client DHCP REQ. Collects repliesDHCP REQ. Initialization Complete Graceful Shutdown DHCPRELEASE Discard lease Server (selected) DHCPDISC. DHCP DISC. Client selects configuration; in DCHP REQ it accepts one server’s offer (server identifier option) and implicitly reject rest Also broadcast Sent on Ethernet broadcast address
  • 13. Client Initialization via DHCP ⚫ Fig. shows one client and 2 servers ⚫ DHCPDISCOVER is broadcast because client does not know IP address of DHCP server; BOOTP relay agents may relay it to other DHCP servers ⚫ One or more DHCP servers respond with DHCPOFFER, which carry the IP address and other parameters. ⚫ Client may wait for multiple replies and then choose one offer. It broadcasts DHCPREQUEST accepting one of the servers and rejecting the others ⚫ The accepted server then confirms the configuration with DHCPACK ⚫ If a client leaves a subnet it should release the server by DHCPRELEASE.
  • 14. DHCP states & procedure ⚫ With DHCP, transition of client occurs using 6 states : initialization, selection, request, bound, renew and rebind ⚫ DHCP uses the first 4 states to initialize IP address ⚫ And 4 states are used to rebind, renew or release an IP address. ⚫ The six states are used to perform essentially 3 processes : discovery, renewal, and release which are described below.. ⚫ DHCP Address Discovery Process : ⚫ When client boots ,it executes a standard address discovery process ⚫ Once IP address acquired, it tests the address by sending ARP broadcast. ⚫ DHCP uses 4-step processes to allocate IP addresses : Discovery, Offer, Request, Acknowledgment processes.
  • 15. DHCP states & procedure ⚫ DHCP Address Discovery Process : The state transitions that performs standard discovery procedure to acquire IP address is : ⚫ i) Initialization State to Selection State : When the client is booting up, it is the first stage. Here it sends DHCP Discover message that places the client in Selection state. ⚫ ii) Selection State to Request State : One or more servers respond to broadcast message with a DHCP Offer message. Client chooses the best offer and negotiate by sending DHCP REQUEST message ⚫ iii) Request State to Bound State : The server responds to the request message with a positive acknowledgement (DHCP ACK) which begins the lease time and puts the client in the bound state
  • 16. DHCP states & procedure Client enters the request state Client enters the initialization state For more servers broadcast DHCP offers Client boots up Client broadcasts DHCP discover message Client enters the selection state Client sends DHCP request to selected server Selected server sends DHCP Ack Client enters the bound state
  • 17. DHCP states & procedure ⚫ DHCP Address Renewal Process : When client’s lease nears its expiration time the client must initiate the address renewal process to maintain the acquired IP address. ⚫ Here, four states are used to renew or release an IP address which are discussed below : ⚫ i) Bound State to Renew State : After the client’s first timer reaches 50% of its initial value, it broadcasts a DHCP Request message for a lease renewal and moves to the renew state ⚫ ii) Renew State to Bound State : If the server approves the lease renewal, the client moves from renew state back to the bound state and continue using its original IP address.
  • 18. DHCP states & procedure ⚫ DHCP Address Renewal Process : ⚫ iii) Renew State to Initialization state : If the server disapproves the lease renewal, the client moves from renew state to initialization state and begin the process of acquiring new IP address ⚫ iv) Renew State to Rebind State : If the client doesn't receive a response from the server within the first 87.5% of the lease time, it moves to the rebind state and broadcast a DHCP request msg ⚫ v) Rebind State to Initialization State : If the client receives a negative response from a server while in the rebind state, the client moves to the initialization state and begins the process of acquiring new IP address
  • 19. DHCP states & procedure ⚫ DHCP Address Renewal Process : Initialization state Rebind state Bound state Renew state DHCP Request or Lease reaches 87.5% of expiration DHCP Ack DHCP Request or Lease reaches 50% of expiration DHCP Ack DHCP Release DHCP NAK or Lease Expires DHCP NAK
  • 20. DHCP states & procedure ⚫ DHCP Address Release Process : When client is in the bound state and determines it no longer needs an IP address, DHCP allows the client to release its IP address without waiting for lease time to expire ⚫ This is known as early termination ⚫ It is useful when there are limited no. of IP addresses available ⚫ When the client sends a DHCP release message, it leaves the bound state and returns to the initialization state ⚫ So, now the client can request another IP address when it needs one.
  • 21. DHCP states & procedure ⚫ DHCP Address Release Process : Initialization state Bound state DHCP Release Message
  • 22. DHCP Security ⚫ DHCP is an unauthenticated protocol When connecting to a network, the user is not required to provide credentials in order to obtain a lease Also the server is also not the authenticated one Malicious users with physical access to the DHCP-enabled network can start a denial-of-service attack on DHCP servers by requesting many leases from the server, thereby reducing the number of leases that are available to other DHCP clients