0% found this document useful (0 votes)
30 views

Lecture 1.2.3 and 1.2.4

The document discusses the Dynamic Host Configuration Protocol (DHCP). It begins by explaining that DHCP automatically assigns IP addresses and networking settings to devices on a network. It then describes the basic purposes and functions of a DHCP server, including reducing errors from manually assigning IP addresses and preventing conflicts. The document concludes by summarizing some of the key points about DHCP, such as how it is based on the Bootstrap Protocol and uses UDP ports 67 and 68 to operate.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views

Lecture 1.2.3 and 1.2.4

The document discusses the Dynamic Host Configuration Protocol (DHCP). It begins by explaining that DHCP automatically assigns IP addresses and networking settings to devices on a network. It then describes the basic purposes and functions of a DHCP server, including reducing errors from manually assigning IP addresses and preventing conflicts. The document concludes by summarizing some of the key points about DHCP, such as how it is based on the Bootstrap Protocol and uses UDP ports 67 and 68 to operate.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 27

UNIVERSITY INSTITUTE OF TECHNOLOGY

COMPUTER SCIENCE & ENGINEERING


Bachelor of Engineering (Computer Science & Engineering)
Network Operating System
CST-397
Dayal Chandra Sati(E13263)

Dynamic Host Configuration Protocol (DHCP) DISCOVER . LEARN . EMPOWER


COURSE OBJECTIVES
The Course aims to:
1. Make students learn about basics of Networks and Operating system
concepts that will help them to understand the requirements of
Network Operating System.

2. Make students learn about deployment of Network Operating


System’s roles and services.

3. Facilitate students in building analytical and creative thinking so that


they can move themselves in the field of core server usage for social
and technical reasons.
COURSE OUTCOMES
CO Title Level
Number
CO1 Students will recall basic concepts of Networks, Understand &
Operating System and to build up the basic concepts of Remember
Network Operating System.
CO2 Student would be able to deploy Server 2008/2012 and Implement
make use of it as a technical platform.
CO3 Students will prepare themselves for placements in Apply
Companies focusing on Networking and Server
environment and further being research oriented in the
field of Computer Networks.
CO4 Analyze the working of virtual machines Analyze
CO5 Identify the role of active directory Analyze
3
WHAT IS DHCP
 Dynamic Host Control Protocol (DHCP) is a method for automating the
assignment of IP addresses and other networking information. It is used on
campus in residence halls and libraries, as well as over the wireless
network.

 In other words DHCP Automatically assigns IP addresses and tcp/ip


setting to devices on a network
PURPOSE OF DHCP

 The overall purpose of the DHCP server is to reduce the workload and error
margins, which can occur in assigning the IP addresses manually.

 When a computer uses a static IP address there can be the chances of error and
conflict when two computers use the same IP address. By using the DHCP
server there are no chances of such kind of conflicts and errors.
DHCP
DHCP

 Dynamic Host Configuration Protocol(DHCP) provides a


framework for passing configuration information to hosts on a
TCP/IP network.

 DHCP is based on the Bootstrap Protocol(BOOTP), adding


the capability of automatic allocation of reusable network
addresses and additional configuration options.

 DHCP capture the behavior of BOOTP relay agents and


DHCP participants can interoperate with BOOTP participants.
BOOTP

 DHCP is an extension of Bootstrap protocol (BOOTP)

 BOOTP allows a diskless client machine to discover its own


IP address, the address of a server host, and the name of a
file to be loaded into memory and executed.
DHCP MAIN POINTS

• It automatically assigns the IP Address.


• it is based on client server model.
• DHCP works at application layer.
• IP ADDRESS is assigned is known as dynamic IP Address
• BOOT P is another method to allocate IP Address but MAC Address must be eneterd manually in a
BOOT P table
• DHCP is a dynamic BOOT P
• It uses UDP port number 67 AND 68 at the Transport Layer.
• DHCP Server can provide:
• IP ADDRESS
• SUBNET MASK
• DOMAIN NAME
• DEFAULT GATEWAY
• DNS SERVER ADDRESS
• WIN SERVER ADDRESS
DHCP must

Guarantee unique network address.

Retain DHCP client configuration across a client reboot.

Allow automated assignment of configuration parameters to new clients.

Support fixed allocation of configuration parameters to specific clients.

Curtesy: https://www.javatpoint.com/dynamic-host-configuration- 15
protocol
DHCP Address Allocation Mechanisms

Providing an IP address to a client is the most fundamental configuration task performed by a host
configuration protocol. To provide flexibility for configuring addresses on different types of clients, the
DHCP standard includes three different address allocation mechanisms:

oManual Allocation: A particular IP address is pre-allocated to a single device by an administrator.


DHCP only communicates the IP address to the device.

oAutomatic Allocation: DHCP automatically assigns an IP address permanently to a device, selecting


it from a pool of available addresses.

oDynamic Allocation: DHCP assigns an IP address from a pool of addresses for a limited period of
time chosen by the server, or until the client tells the DHCP server that it no longer needs the address.
DHCP port number for server is 67 and for the client is 68. It
is a Client server protocol which uses UDP services. IP address
is assigned from a pool of addresses
DHCP discover message – (port number 68)-broadcast msg
This is a first message generated in the communication process between server and client. This message is
generated by Client host in order to discover if there is any DHCP server/servers are present in a network or not.
This message is broadcasted to all devices present in a network to find the DHCP server. This message is 342 or
576 bytes long
DHCP offer message – (port number 67) -broadcast msg

The server will respond to host in this message specifying the unleased IP address and other TCP configuration
information. This message is broadcasted by server. Size of message is 342 bytes. If there are more than one
DHCP servers present in the network then client host will accept the first DHCP OFFER message it receives.
Also a server ID is specified in the packet in order to identify the server.
DHCP request message – (port number 68)

When a client receives a offer message, it responds by broadcasting a DHCP request message. The client will
produce a gratuitous ARP in order to find if there is any other host present in the network with same IP address. If
there is no reply by other host, then there is no host with same TCP configuration in the network and the message is
broadcasted to server showing the acceptance of IP address .A Client ID is also added in this message.
DHCP acknowledgement message – (port number 67)

In response to the request message received, the server will make an entry with specified client ID and bind the IP
address offered with lease time. Now, the client will have the IP address provided by server.
1.DHCP negative acknowledgement message – server
Whenever a DHCP server receives a request for IP address that is invalid according to the scopes that is
configured with, it send DHCP Nak message to client. Eg-when the server has no IP address unused or the pool is
empty, then this message is sent by the server to client.

2.DHCP decline –client


If DHCP client determines the offered configuration parameters are different or invalid, it sends DHCP decline
message to the server .When there is a reply to the gratuitous ARP by any host to the client, the client sends
DHCP decline message to the server showing the offered IP address is already in use.

3.DHCP release –
A DHCP client sends DHCP release packet to server to release IP address and cancel any remaining lease time.

4.DHCP inform –
If a client address has obtained IP address manually then the client uses a DHCP inform to obtain other local
configuration parameters, such as domain name. In reply to the dhcp inform message, DHCP server generates
DHCP ack message with local configuration suitable for the client without allocating a new IP address. This
DHCP ack message is unicast to the client.
DHCP OPERATION
DHCP provides an automated way to distribute and update IP addresses and other configuration information on a network. A
DHCP server provides this information to a DHCP client through the exchange of a series of messages, known as the DHCP
conversation or the DHCP transaction.
The DHCP client and server can either be on the same network or on different networks. DHCP relay agent is used to facilitate
the conversation. Let us discuss each situation separately.

Curtesy: https://www.javatpoint.com/dynamic-host-configuration- 23
protocol
Client and server on two different networks

24
25
REFERENCES

1. Reference Book: Behrouz A. Forouzan

2. Video Lecture on YouTube URL: https://www.youtube.com/watch?v=e6-TaH5bkjo

4. Relevant Web Link


https://www.javatpoint.com/dynamic-host-configuration-protocol

26
THANK YOU

For queries
Email: [email protected]
27

You might also like