SlideShare a Scribd company logo
SUBJECT : NMA
CHAPTER-2 NETWORK PROTOCOLS AND
SERVICES
TOPIC: DYNAMIC HOST CONFIGURATION
PROTOCOL(DHCP)
By: Kansara Mansi
Chaudhari Nimisha
Dave Tarang
Rahul Gadhvi
WHAT IS DHCP?
DHCP stands for ‘Dynamic Host Configuration Protocol’.
It is an extension of an earlier network IP management protocol, Bootstrap
Protocol (BOOTP).
It is a network protocol used on IP network where a DHCP server automatically
assigns an IP address and other information to each host on the network so they
can communicate efficiently with other endpoints.
The primary reason DHCP is needed is to simplify the management of IP address
on network.
No two can have the same IP address and configuring them manually will likely
lead to error.
Even on small network manually assigning IP address can be confusing,
particularly with mobile devices that require IP address on a non permanent
basis.
DHCP ORIGINS
DHCP was developed by Microsoft in early 1990’s as a workstation
configuration solution for enterprise network and particularly for it’s own
35,000 node network rollout.
After determining the TCP/IP was the optical protocol for their needs,
Microsoft realized that the task of manually assigning IP address to
thousands of machines located at various sites in fifty country was
enormous as was the continued traciking of those address as computer
where added to and removed from the network.
DHCP is based on two earlier protocols : RARP and BOOTP.
RARP  BOOTP  DHCP
REVERSE ADDRESS RESOLUTION
PROTOCOL (RARP)
Reverse ARP is a networking protocol used by a client machine in a local area network to
request its Internet Protocol address (IPv4) from the gateway-router’s ARP table.
The network administrator creates a table in gateway-router, which is used to map the
MAC address to corresponding IP address.
When a new machine is setup or any machine which don’t have memory to store IP
address, needs an IP address for its own use.
So the machine sends a RARP broadcast packet which contains its own MAC address in
both sender and receiver hardware address field.
A special host configured inside the local area network, called as RARP-server is
responsible to reply for these kind of broadcast packets.
Now the RARP server attempt to find out the entry in IP to MAC address mapping table.
If any entry matches in table, RARP server send the response packet to the requesting
device along with IP address.
RARP is not being used in today’s networks. Because we have much great featured
protocols like BOOTP (Bootstrap Protocol) and DHCP( Dynamic Host Configuration
Protocol).
ADDRESS RESOLUTION PROTOCOL (ARP)
Address Resolution Protocol is a communication protocol used for discovering physical
address associated with given network address.
 Typically, ARP is a network layer to data link layer mapping process, which is used to
discover MAC address for given Internet Protocol Address.
In order to send the data to destination, having IP address is necessary but not
sufficient; we also need the physical address of the destination machine.
ARP is used to get the physical address (MAC address) of destination machine.
Before sending the IP packet, the MAC address of destination must be known.
 If not so, then sender broadcasts the ARP-discovery packet requesting the MAC address
of intended destination.
 Since ARP-discovery is broadcast, every host inside that network will get this message
but the packet will be discarded by everyone except that intended receiver host whose IP
is associated.
Now, this receiver will send a unicast packet with its MAC address (ARP-reply) to the
sender of ARP-discovery packet.
After the original sender receives the ARP-reply, it updates ARP-cache and start sending
ARP AND RARP
ARP RARP
BOOTSTRAP PROTOCOL (BOOTP)
The Bootstrap Protocol is a networking protocol used to by a client for obtaining
an IP address from a server.
It was originally defined as specification RFC 951 and was designed to replace
the Reverse Address Resolution Protocol (RARP), also known as RFC 903.
 Bootstrap protocol was intended to allow computers to find what they need to
function properly after booting up.
BOOTP uses a relay agent, which allows packet forwarding from the local
network using standard IP routing, allowing one BOOTP server to serve hosts on
multiple subnets.
BOOTP was largely replaced by the more efficient Dynamic Host Configuration
Protocol (DHCP), which has more options and flexibility. However, it has found
renewed utility in diskless media center PCs.
BOOTSTRAP PROTOCOL (BOOTP)
Client and Server on Same
network
Client and Server on Different
network
DHCP OBJECTIVES
DHCP is a Client-Server protocol which is used to provide the following
information to a computer that is booted for the 1st time:
1. IP Address
2. Subnet Mask
3. IP of Router (default gateway)
4. IP of name server (DNS)
DIFFERENCE BETWEEN ARP AND RARP
S.NO ARP RARP
1. ARP stands for Address Resolution Protocol.
Whereas RARP stands for Reverse Address
Resolution Protocol.
2.
Through ARP, (32-bit) IP address mapped into
(48-bit) MAC address.
Whereas through RARP, (48-bit) MAC address
of 48 bits mapped into (32-bit) IP address.
3. In ARP, broadcast MAC address is used. While in RARP, broadcast IP address is used.
4.
In ARP, ARP table is managed or maintained by
local host.
While in RARP, RARP table is managed or
maintained by RARP server.
5.
In Address Resolution Protocol, Receiver’s MAC
address is fetched.
While in RARP, IP address is fetched.
DIFFERENCE BETWEEN BOOTP AND
DHCP
S.NO BOOTP DHCP
1. BOOTP stands for Bootstrap Protocol.
While DHCP stands for Dynamic host configuration
protocol.
2. BOOTP does not provide temporary IP addressing.
While DHCP provides temporary IP addressing for only
limited amount of time.
3. BOOTP does not support DHCP clients. While it support BOOTP clients.
4. In BOOTP, manual-configuration takes place. While in DHCP, auto-configuration takes place.
5. BOOTP does not support mobile machines. Whereas DHCP supports mobile machines.
6.
BOOTP is face down to errors due to manual-
configuration.
Whereas in DHCP errors do not occure mostly due to
auto-configuration.
ADVANTAGES OF DHCP
DHCP is easy to implement
The implementations does not required any additional cost.
Duplicate or invalid assignment of IP addresses are prevented.
It simplifies administration of the network
It supports multiple scopes
DISADVANTAGES OF DHCP
DHCP server can be single point of failure.
DHCP server has no secure mechanism.
The machine name doesn’t change when new IP address is assigned
Client is not able to access the network in the absence of the DHCP server.
WAYS TO EITHER ASSIGN OR SEND IP
ADDRESS TO CLIENT
 There are three ways that a DHCP server either assigns or
sends an IP address to a client:
1.Dynamic Allocation
2.Automatic Allocation
3.Static Allocation
DYNAMIC ALLOCATION
 A network administrator reserves a range of IP addresses for
DHCP, and each DHCP client on the LAN is configured to
request an IP address from the DHCP server during network
initialization.
 The request-and-grant process uses a lease concept with a
controllable time period, allowing the DHCP server to reclaim
and then reallocate IP addresses that are not renewed.
AUTOMATIC ALLOCATION
 The DHCP server permanently assigns an IP address to a
requesting client from the range defined by the administrator.
 This is like dynamic allocation, but the DHCP server keeps a
table of past IP address assignments, so that it can
preferentially assign to a client the same IP address that the
client previously had.
STATIC ALLOCATION
 Also commonly called manually allocation and reservations.
 The DHCP server issues a private IP address dependent upon each client's client id
(or, traditionally, the client MAC address), based on a predefined mapping by the
administrator.
 This feature is variously called static DHCP assignment by DD-WRT, fixed-address by
the dhcpd documentation, address reservation by Netgear, DHCP reservation or static
DHCP by Cisco and Linksys, and IP address reservation or MAC/IP address binding by
various other router manufacturers.
If no match for the client's client ID (if provided) or MAC address (if no client id is
provided) is found, the server may or may not optionally fall back to either Dynamic or
Automatic allocation.
DHCP ARCHITECTURE
DHCP means DYNAMIC HOST CONFIGURATION PROTOCOL.
The DHCP architecture consists of DHCP clients, DHCP servers, And
DHCP relay agents on a network.
The clients interact with servers using DHCP messages in a DHCP
conversation to obtain and renew IP address leases.
DHCP CLIENTS
 A DHCP client is any network enabled device the supports the ability
to communicate with a DHCP server for the purpose of obtaining
dynamic leased IP configuration and related optional information.
The client obtains automatic IP from DHCP server, every time IP
address is different.
DHCP provides support for client computers running any of the
following operating system :• Windows 8
• Windows 7
• Windows Vista
• Windows server
2012
• Windows server
2008
• Windows xp
• Windows server
2003
• Windows 2000
• Windows 98
• Windows millennium
edition
• Windows anti
version 4.0
DHCP SERVER
DHCP server is used to centrally allocate TCP/IP configurations to
computer automatically without setting it manually. But if
It saves you plenty of time to set up and manage TCP/IP network
especially if you have a big network.
A server can be installed as standalone server or a built-in feature
on most network routers.
If your network router does support this feature, you can define a
pool of IP address and other configurations to be allocated to
computers.
The IP address will be leased for a period of time, therefore unused
IP address for the durations of lease will be put back to unallocated
pool.
If the IP address is actively used, your computer will ask the server
DHCP RELAY AGENT
The core function of DHCP relay agent is to convert a broadcast DHCP
packet into a unicast one, and forward it to a DHCP server.
DHCP relay agent is any TCP/IP host which is used to forward request and
replies between DHCP server and client when the server is present on the
different network.
Relay agents receive DHCP messages and then generate a new DHCP
message to send out on another INTERFACE.
Generally, DHCP messages are broadcasted. So, in order for the messages
to be exchanged between a DHCP client (PC) and DHCP server, both the
client and server have to reside on the same subnet. That is because routers
do not forward any broadcast IP packet to other interfaces.
Thus a broadcast DHCP packet sent by a DHCP client cannot be delivered to
DHCP server on different subnet through a router.
To address this problem, the concept of a DHCP relay agent has been
adopted, enabling the DHCP relay agent function in the router, that allows
DHCP messages to be exchanged between a DHCP client and DHCP server
residing on different subnets.
INTERACTIONS BETWEEN CLIENT &
SERVER.DHCP servers & DHCP clients communicate through a series of DHCP
messages.
To obtain a lease, the DHCP client initiates a conversation with a DHCP
server using a series of these DHCP messages.
DHCP MESSAGES :
DHCPDISCOVER : Used by clients system to locate DHCP servers and requesr an IP address
DHCPREQUEST : Used by servers to offer IP address to clients.
DHCPDECLINE : Used by clients to reject an IP address offered by a server.
DHCPACK : Used by servers to acknowledge a client’s acceptance of an offered IP address.
DHCPNAK : Used by servers to reject a client’s acceptance of an offered IP address.
DHCPRELEASE : Used by client’s to terminate a lease.
DHCPINFORM : Used by client’s that have already been assigned an IP address to request
additional configurations parameters.

More Related Content

What's hot

Internet control message protocol
Internet control message protocolInternet control message protocol
Internet control message protocolasimnawaz54
 
IPv4 Addressing
 IPv4 Addressing   IPv4 Addressing
IPv4 Addressing
TheGodfather HA
 
DHCP Server & Client Presentation
DHCP Server & Client PresentationDHCP Server & Client Presentation
DHCP Server & Client Presentation
raini
 
Dhcp
DhcpDhcp
Spanning tree protocol (stp)
Spanning tree protocol (stp)Spanning tree protocol (stp)
Spanning tree protocol (stp)
RaghulR21
 
DHCP (Dynamic Host Configuration Protocol)
DHCP (Dynamic Host Configuration Protocol)DHCP (Dynamic Host Configuration Protocol)
DHCP (Dynamic Host Configuration Protocol)
Faisal Jatt
 
IPv6
IPv6IPv6
Routing ppt
Routing pptRouting ppt
Routing ppt
ArpiSaxena1
 
IPV6 ADDRESS
IPV6 ADDRESSIPV6 ADDRESS
IPV6 ADDRESS
Jothi Lakshmi
 
Network address translation
Network address translationNetwork address translation
Network address translation
Varsha Honde
 
Dynamic routing protocols (CCNA)
Dynamic routing protocols (CCNA)Dynamic routing protocols (CCNA)
Dynamic routing protocols (CCNA)
Varinder Singh Walia
 
Address resolution protocol
Address resolution protocolAddress resolution protocol
Address resolution protocolasimnawaz54
 
Presentation on arp protocol
Presentation on arp protocolPresentation on arp protocol
Presentation on arp protocol
Mohd. Ahmad Siddiqi
 
Classless inter domain routing
Classless inter domain routingClassless inter domain routing
Classless inter domain routing
Vikash Gangwar
 
CCNA Routing Fundamentals - EIGRP, OSPF and RIP
CCNA  Routing Fundamentals -  EIGRP, OSPF and RIPCCNA  Routing Fundamentals -  EIGRP, OSPF and RIP
CCNA Routing Fundamentals - EIGRP, OSPF and RIP
sushmil123
 
Cn ipv4 addressing
Cn ipv4 addressingCn ipv4 addressing
Cn ipv4 addressing
SangeethaSasi1
 
Mac addresses(media access control)
Mac addresses(media access control)Mac addresses(media access control)
Mac addresses(media access control)Ismail Mukiibi
 
Ip addressing
Ip addressingIp addressing
Ip addressing
sid1322
 
Arp (address resolution protocol)
Arp (address resolution protocol)Arp (address resolution protocol)
Arp (address resolution protocol)tigerbt
 

What's hot (20)

Internet control message protocol
Internet control message protocolInternet control message protocol
Internet control message protocol
 
IPv4 Addressing
 IPv4 Addressing   IPv4 Addressing
IPv4 Addressing
 
DHCP Server & Client Presentation
DHCP Server & Client PresentationDHCP Server & Client Presentation
DHCP Server & Client Presentation
 
Dhcp
DhcpDhcp
Dhcp
 
Spanning tree protocol (stp)
Spanning tree protocol (stp)Spanning tree protocol (stp)
Spanning tree protocol (stp)
 
Network address translation
Network address translationNetwork address translation
Network address translation
 
DHCP (Dynamic Host Configuration Protocol)
DHCP (Dynamic Host Configuration Protocol)DHCP (Dynamic Host Configuration Protocol)
DHCP (Dynamic Host Configuration Protocol)
 
IPv6
IPv6IPv6
IPv6
 
Routing ppt
Routing pptRouting ppt
Routing ppt
 
IPV6 ADDRESS
IPV6 ADDRESSIPV6 ADDRESS
IPV6 ADDRESS
 
Network address translation
Network address translationNetwork address translation
Network address translation
 
Dynamic routing protocols (CCNA)
Dynamic routing protocols (CCNA)Dynamic routing protocols (CCNA)
Dynamic routing protocols (CCNA)
 
Address resolution protocol
Address resolution protocolAddress resolution protocol
Address resolution protocol
 
Presentation on arp protocol
Presentation on arp protocolPresentation on arp protocol
Presentation on arp protocol
 
Classless inter domain routing
Classless inter domain routingClassless inter domain routing
Classless inter domain routing
 
CCNA Routing Fundamentals - EIGRP, OSPF and RIP
CCNA  Routing Fundamentals -  EIGRP, OSPF and RIPCCNA  Routing Fundamentals -  EIGRP, OSPF and RIP
CCNA Routing Fundamentals - EIGRP, OSPF and RIP
 
Cn ipv4 addressing
Cn ipv4 addressingCn ipv4 addressing
Cn ipv4 addressing
 
Mac addresses(media access control)
Mac addresses(media access control)Mac addresses(media access control)
Mac addresses(media access control)
 
Ip addressing
Ip addressingIp addressing
Ip addressing
 
Arp (address resolution protocol)
Arp (address resolution protocol)Arp (address resolution protocol)
Arp (address resolution protocol)
 

Similar to DHCP basics

DHCP (dynamic host configuration protocol)
DHCP (dynamic host configuration protocol)DHCP (dynamic host configuration protocol)
DHCP (dynamic host configuration protocol)
Netwax Lab
 
unit 2
unit 2unit 2
Dhcp
DhcpDhcp
DHCP
DHCPDHCP
dynamichost configuration protocol
dynamichost configuration protocoldynamichost configuration protocol
dynamichost configuration protocol
rajisri2
 
zuiqui_DHC.ppt
zuiqui_DHC.pptzuiqui_DHC.ppt
zuiqui_DHC.ppt
KushalAsodia
 
DHCP.pptx
DHCP.pptxDHCP.pptx
DHCP.pptx
GayathriPG3
 
Configurar dhcp en router cisco
Configurar dhcp en router ciscoConfigurar dhcp en router cisco
Configurar dhcp en router cisco
Guiro Lin
 
DHCP in windows server 2012
DHCP in windows server 2012DHCP in windows server 2012
DHCP in windows server 2012Abaady Sahal
 
DCHP,NAT,forwarding of ip packets
DCHP,NAT,forwarding of ip packetsDCHP,NAT,forwarding of ip packets
DCHP,NAT,forwarding of ip packets
rajshreemuthiah
 
Dynamic Host Configuration Protocol ( DHCP).pptx
Dynamic Host Configuration Protocol ( DHCP).pptxDynamic Host Configuration Protocol ( DHCP).pptx
Dynamic Host Configuration Protocol ( DHCP).pptx
SYEDASGARAHMED1
 
IP Layer.pptx
IP Layer.pptxIP Layer.pptx
IP Layer.pptx
DhananjayKumbhar15
 
Ch21 network layer final
Ch21 network layer finalCh21 network layer final
Ch21 network layer final
Faraz Humayun
 
Customized Dynamic Host Configuration Protocol
Customized Dynamic Host Configuration ProtocolCustomized Dynamic Host Configuration Protocol
Customized Dynamic Host Configuration Protocol
IDES Editor
 
DHCP
DHCPDHCP
DYNAMIC HOST CONFIGURATION PROTOCOL
DYNAMIC HOST CONFIGURATION PROTOCOLDYNAMIC HOST CONFIGURATION PROTOCOL
DYNAMIC HOST CONFIGURATION PROTOCOL
VENKATESHAN A S
 
Web technology and commerce unit 1
Web technology and commerce unit 1Web technology and commerce unit 1
Web technology and commerce unit 1
arun0501
 
Module (8) DHCP Server.pptx
Module (8) DHCP Server.pptxModule (8) DHCP Server.pptx
Module (8) DHCP Server.pptx
GeorgeThoreJr
 

Similar to DHCP basics (20)

DHCP (dynamic host configuration protocol)
DHCP (dynamic host configuration protocol)DHCP (dynamic host configuration protocol)
DHCP (dynamic host configuration protocol)
 
Dhcp presentation
Dhcp presentationDhcp presentation
Dhcp presentation
 
unit 2
unit 2unit 2
unit 2
 
Dhcp
DhcpDhcp
Dhcp
 
DHCP
DHCPDHCP
DHCP
 
dynamichost configuration protocol
dynamichost configuration protocoldynamichost configuration protocol
dynamichost configuration protocol
 
zuiqui_DHC.ppt
zuiqui_DHC.pptzuiqui_DHC.ppt
zuiqui_DHC.ppt
 
DHCP.pptx
DHCP.pptxDHCP.pptx
DHCP.pptx
 
Configurar dhcp en router cisco
Configurar dhcp en router ciscoConfigurar dhcp en router cisco
Configurar dhcp en router cisco
 
DHCP in windows server 2012
DHCP in windows server 2012DHCP in windows server 2012
DHCP in windows server 2012
 
DCHP,NAT,forwarding of ip packets
DCHP,NAT,forwarding of ip packetsDCHP,NAT,forwarding of ip packets
DCHP,NAT,forwarding of ip packets
 
Dynamic Host Configuration Protocol ( DHCP).pptx
Dynamic Host Configuration Protocol ( DHCP).pptxDynamic Host Configuration Protocol ( DHCP).pptx
Dynamic Host Configuration Protocol ( DHCP).pptx
 
IP Layer.pptx
IP Layer.pptxIP Layer.pptx
IP Layer.pptx
 
Ch21 network layer final
Ch21 network layer finalCh21 network layer final
Ch21 network layer final
 
Customized Dynamic Host Configuration Protocol
Customized Dynamic Host Configuration ProtocolCustomized Dynamic Host Configuration Protocol
Customized Dynamic Host Configuration Protocol
 
DHCP
DHCPDHCP
DHCP
 
14047721
1404772114047721
14047721
 
DYNAMIC HOST CONFIGURATION PROTOCOL
DYNAMIC HOST CONFIGURATION PROTOCOLDYNAMIC HOST CONFIGURATION PROTOCOL
DYNAMIC HOST CONFIGURATION PROTOCOL
 
Web technology and commerce unit 1
Web technology and commerce unit 1Web technology and commerce unit 1
Web technology and commerce unit 1
 
Module (8) DHCP Server.pptx
Module (8) DHCP Server.pptxModule (8) DHCP Server.pptx
Module (8) DHCP Server.pptx
 

Recently uploaded

DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
FluxPrime1
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
Jayaprasanna4
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
ViniHema
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
thanhdowork
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 
Runway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptxRunway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptx
SupreethSP4
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
Kerry Sado
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
ankuprajapati0525
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
ongomchris
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
Pipe Restoration Solutions
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
BrazilAccount1
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
obonagu
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
Vijay Dialani, PhD
 

Recently uploaded (20)

DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
Runway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptxRunway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptx
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
 

DHCP basics

  • 1. SUBJECT : NMA CHAPTER-2 NETWORK PROTOCOLS AND SERVICES TOPIC: DYNAMIC HOST CONFIGURATION PROTOCOL(DHCP) By: Kansara Mansi Chaudhari Nimisha Dave Tarang Rahul Gadhvi
  • 2. WHAT IS DHCP? DHCP stands for ‘Dynamic Host Configuration Protocol’. It is an extension of an earlier network IP management protocol, Bootstrap Protocol (BOOTP). It is a network protocol used on IP network where a DHCP server automatically assigns an IP address and other information to each host on the network so they can communicate efficiently with other endpoints. The primary reason DHCP is needed is to simplify the management of IP address on network. No two can have the same IP address and configuring them manually will likely lead to error. Even on small network manually assigning IP address can be confusing, particularly with mobile devices that require IP address on a non permanent basis.
  • 3. DHCP ORIGINS DHCP was developed by Microsoft in early 1990’s as a workstation configuration solution for enterprise network and particularly for it’s own 35,000 node network rollout. After determining the TCP/IP was the optical protocol for their needs, Microsoft realized that the task of manually assigning IP address to thousands of machines located at various sites in fifty country was enormous as was the continued traciking of those address as computer where added to and removed from the network. DHCP is based on two earlier protocols : RARP and BOOTP. RARP  BOOTP  DHCP
  • 4. REVERSE ADDRESS RESOLUTION PROTOCOL (RARP) Reverse ARP is a networking protocol used by a client machine in a local area network to request its Internet Protocol address (IPv4) from the gateway-router’s ARP table. The network administrator creates a table in gateway-router, which is used to map the MAC address to corresponding IP address. When a new machine is setup or any machine which don’t have memory to store IP address, needs an IP address for its own use. So the machine sends a RARP broadcast packet which contains its own MAC address in both sender and receiver hardware address field. A special host configured inside the local area network, called as RARP-server is responsible to reply for these kind of broadcast packets. Now the RARP server attempt to find out the entry in IP to MAC address mapping table. If any entry matches in table, RARP server send the response packet to the requesting device along with IP address. RARP is not being used in today’s networks. Because we have much great featured protocols like BOOTP (Bootstrap Protocol) and DHCP( Dynamic Host Configuration Protocol).
  • 5. ADDRESS RESOLUTION PROTOCOL (ARP) Address Resolution Protocol is a communication protocol used for discovering physical address associated with given network address.  Typically, ARP is a network layer to data link layer mapping process, which is used to discover MAC address for given Internet Protocol Address. In order to send the data to destination, having IP address is necessary but not sufficient; we also need the physical address of the destination machine. ARP is used to get the physical address (MAC address) of destination machine. Before sending the IP packet, the MAC address of destination must be known.  If not so, then sender broadcasts the ARP-discovery packet requesting the MAC address of intended destination.  Since ARP-discovery is broadcast, every host inside that network will get this message but the packet will be discarded by everyone except that intended receiver host whose IP is associated. Now, this receiver will send a unicast packet with its MAC address (ARP-reply) to the sender of ARP-discovery packet. After the original sender receives the ARP-reply, it updates ARP-cache and start sending
  • 7. BOOTSTRAP PROTOCOL (BOOTP) The Bootstrap Protocol is a networking protocol used to by a client for obtaining an IP address from a server. It was originally defined as specification RFC 951 and was designed to replace the Reverse Address Resolution Protocol (RARP), also known as RFC 903.  Bootstrap protocol was intended to allow computers to find what they need to function properly after booting up. BOOTP uses a relay agent, which allows packet forwarding from the local network using standard IP routing, allowing one BOOTP server to serve hosts on multiple subnets. BOOTP was largely replaced by the more efficient Dynamic Host Configuration Protocol (DHCP), which has more options and flexibility. However, it has found renewed utility in diskless media center PCs.
  • 8. BOOTSTRAP PROTOCOL (BOOTP) Client and Server on Same network Client and Server on Different network
  • 9. DHCP OBJECTIVES DHCP is a Client-Server protocol which is used to provide the following information to a computer that is booted for the 1st time: 1. IP Address 2. Subnet Mask 3. IP of Router (default gateway) 4. IP of name server (DNS)
  • 10. DIFFERENCE BETWEEN ARP AND RARP S.NO ARP RARP 1. ARP stands for Address Resolution Protocol. Whereas RARP stands for Reverse Address Resolution Protocol. 2. Through ARP, (32-bit) IP address mapped into (48-bit) MAC address. Whereas through RARP, (48-bit) MAC address of 48 bits mapped into (32-bit) IP address. 3. In ARP, broadcast MAC address is used. While in RARP, broadcast IP address is used. 4. In ARP, ARP table is managed or maintained by local host. While in RARP, RARP table is managed or maintained by RARP server. 5. In Address Resolution Protocol, Receiver’s MAC address is fetched. While in RARP, IP address is fetched.
  • 11. DIFFERENCE BETWEEN BOOTP AND DHCP S.NO BOOTP DHCP 1. BOOTP stands for Bootstrap Protocol. While DHCP stands for Dynamic host configuration protocol. 2. BOOTP does not provide temporary IP addressing. While DHCP provides temporary IP addressing for only limited amount of time. 3. BOOTP does not support DHCP clients. While it support BOOTP clients. 4. In BOOTP, manual-configuration takes place. While in DHCP, auto-configuration takes place. 5. BOOTP does not support mobile machines. Whereas DHCP supports mobile machines. 6. BOOTP is face down to errors due to manual- configuration. Whereas in DHCP errors do not occure mostly due to auto-configuration.
  • 12. ADVANTAGES OF DHCP DHCP is easy to implement The implementations does not required any additional cost. Duplicate or invalid assignment of IP addresses are prevented. It simplifies administration of the network It supports multiple scopes
  • 13. DISADVANTAGES OF DHCP DHCP server can be single point of failure. DHCP server has no secure mechanism. The machine name doesn’t change when new IP address is assigned Client is not able to access the network in the absence of the DHCP server.
  • 14. WAYS TO EITHER ASSIGN OR SEND IP ADDRESS TO CLIENT  There are three ways that a DHCP server either assigns or sends an IP address to a client: 1.Dynamic Allocation 2.Automatic Allocation 3.Static Allocation
  • 15. DYNAMIC ALLOCATION  A network administrator reserves a range of IP addresses for DHCP, and each DHCP client on the LAN is configured to request an IP address from the DHCP server during network initialization.  The request-and-grant process uses a lease concept with a controllable time period, allowing the DHCP server to reclaim and then reallocate IP addresses that are not renewed.
  • 16. AUTOMATIC ALLOCATION  The DHCP server permanently assigns an IP address to a requesting client from the range defined by the administrator.  This is like dynamic allocation, but the DHCP server keeps a table of past IP address assignments, so that it can preferentially assign to a client the same IP address that the client previously had.
  • 17. STATIC ALLOCATION  Also commonly called manually allocation and reservations.  The DHCP server issues a private IP address dependent upon each client's client id (or, traditionally, the client MAC address), based on a predefined mapping by the administrator.  This feature is variously called static DHCP assignment by DD-WRT, fixed-address by the dhcpd documentation, address reservation by Netgear, DHCP reservation or static DHCP by Cisco and Linksys, and IP address reservation or MAC/IP address binding by various other router manufacturers. If no match for the client's client ID (if provided) or MAC address (if no client id is provided) is found, the server may or may not optionally fall back to either Dynamic or Automatic allocation.
  • 18. DHCP ARCHITECTURE DHCP means DYNAMIC HOST CONFIGURATION PROTOCOL. The DHCP architecture consists of DHCP clients, DHCP servers, And DHCP relay agents on a network. The clients interact with servers using DHCP messages in a DHCP conversation to obtain and renew IP address leases.
  • 19. DHCP CLIENTS  A DHCP client is any network enabled device the supports the ability to communicate with a DHCP server for the purpose of obtaining dynamic leased IP configuration and related optional information. The client obtains automatic IP from DHCP server, every time IP address is different. DHCP provides support for client computers running any of the following operating system :• Windows 8 • Windows 7 • Windows Vista • Windows server 2012 • Windows server 2008 • Windows xp • Windows server 2003 • Windows 2000 • Windows 98 • Windows millennium edition • Windows anti version 4.0
  • 20. DHCP SERVER DHCP server is used to centrally allocate TCP/IP configurations to computer automatically without setting it manually. But if It saves you plenty of time to set up and manage TCP/IP network especially if you have a big network. A server can be installed as standalone server or a built-in feature on most network routers. If your network router does support this feature, you can define a pool of IP address and other configurations to be allocated to computers. The IP address will be leased for a period of time, therefore unused IP address for the durations of lease will be put back to unallocated pool. If the IP address is actively used, your computer will ask the server
  • 21. DHCP RELAY AGENT The core function of DHCP relay agent is to convert a broadcast DHCP packet into a unicast one, and forward it to a DHCP server. DHCP relay agent is any TCP/IP host which is used to forward request and replies between DHCP server and client when the server is present on the different network. Relay agents receive DHCP messages and then generate a new DHCP message to send out on another INTERFACE. Generally, DHCP messages are broadcasted. So, in order for the messages to be exchanged between a DHCP client (PC) and DHCP server, both the client and server have to reside on the same subnet. That is because routers do not forward any broadcast IP packet to other interfaces. Thus a broadcast DHCP packet sent by a DHCP client cannot be delivered to DHCP server on different subnet through a router. To address this problem, the concept of a DHCP relay agent has been adopted, enabling the DHCP relay agent function in the router, that allows DHCP messages to be exchanged between a DHCP client and DHCP server residing on different subnets.
  • 22. INTERACTIONS BETWEEN CLIENT & SERVER.DHCP servers & DHCP clients communicate through a series of DHCP messages. To obtain a lease, the DHCP client initiates a conversation with a DHCP server using a series of these DHCP messages. DHCP MESSAGES : DHCPDISCOVER : Used by clients system to locate DHCP servers and requesr an IP address DHCPREQUEST : Used by servers to offer IP address to clients. DHCPDECLINE : Used by clients to reject an IP address offered by a server. DHCPACK : Used by servers to acknowledge a client’s acceptance of an offered IP address. DHCPNAK : Used by servers to reject a client’s acceptance of an offered IP address. DHCPRELEASE : Used by client’s to terminate a lease. DHCPINFORM : Used by client’s that have already been assigned an IP address to request additional configurations parameters.