SlideShare una empresa de Scribd logo
1 de 15
TCP/IP Protocol Suite 1
16.2 DHCP
The Dynamic Host Configuration Protocol (DHCP) provides static and
dynamic address allocation that can be manual or automatic.
The topics discussed in this section include:
Static Address Allocation
Dynamic Address Allocation
Manual and Automatic Configuration
Packet Format
Transition States
Exchanging Messages
TCP/IP Protocol Suite 2
DHCP basics
Bootp is static, but DHCP is dynamic (but it can also be static).
DHCP has a pool of available addresses. When a request
arrives, DHCP pulls out the next available address and assigns
it to the client for a negotiable time period.
When a request comes in from a client, the DHCP server first
consults the static table.
DHCP is great when devices and IP addresses change.
TCP/IP Protocol Suite 3
Figure 16.6 DHCP packet
TCP/IP Protocol Suite 4
DHCPMessageFi
eld
Description
Operation Code
Specifies the type of the Dynamic Host Configuration Protocol (DHCP) message. Set to 1 in messages sent by a client (requests)
and 2 in messages sent by a server (response).
Hardware Type Specifies the network LAN architecture. For example, the ethernet type is specified when htype is set to 1.
Hardware Address
Length
Link-layer address length (in bytes); defines the length of hardware address in the chaddr field. For Ethernet, this value is 6.
Hops Number of relay agents that have forwarded this message.
Transaction
identifier
Used by clients to match responses from servers with previously transmitted requests.
seconds Elapsed time (in seconds) since the client began theDynamic Host Configuration Protocol (DHCP)process.
Flags Flags field is called the broadcast bit, can be set to 1 to indicate that messages to the client must be broadcast
ciaddr Client’s IP address; set by the client when the client has confirmed that its IP address is valid.
yiaddr Client’s IP address; set by the server to inform the client of the client’s IP address.
siaddr
IP address of the next server for the client to use in the configuration process (for example, the serverto
contact for TFTP download of an operating system kernel).
giaddr
Relay agent (gateway) IP address; filled in by the relay agent with the address of the interface through which Dynamic Host
Configuration Protocol (DHCP) message was received.
chaddr Client’s hardware address. (Layer 2 address)
sname Name of the next server for client to use in the configuration process.
file
Name of the file for the client to request from the next server (for example the name of the file that contains the operating
system for this client).
16.1 BOOTP
 BOOTP(Bootstrap Protocol) is
client/server protocol designed to provide
the information for a diskless computer or
a computer that is booted for the first
time
 RARP provides only the IP address and not
the other information
 If we use BOOTP, we do not need RARP
 RARP is not implemented in most systems, it
is totally removed from TCP/IP version 6
Operation
 Client and server on the same network
BOOTP (cont’d)
 Operation
 Steps involved in use of
the BOOTP protocol
1) BOOTP server uses UDP port 67
and waiting for a client
2) The client sends a BOOTP request
message to the server. The client uses
0s as the source address and all 1s as the
destination address.
3) The server replies to the client with
either a broadcast or a unicast message
using UDP destination port 68.
BOOTP (cont’d)
 UDP Ports
 BOOTP is the client’s use of the well-known
port 68 instead of an ephemeral port
 if two hosts with same well-known port 68
use BOOTP at the same time in case of
broadcasting the reply, both hosts receive
the message.
 In this case, transaction ID is used
 Using TFTP
 If a client needs more information for
booting, the client can use the pathname of
a file sent by server which the client can
find complete booting information.
BOOTP (cont’d)
 Relay agent
 In case that does not include a BOOTP sever
in each LAN, a remote BOOTP server may
serve several LANs
 If a client needs to be booted, it cannot
reach the remote sever using the broadcast
address because an address of all 1s has only
local jurisdiction.
 So, a relay agent is used to send local
requests to remote severs
BOOTP (cont’d)
 Client and server on two different
networks
BOOTP (cont’d)
Ethernet : 6
Ethernet : 1 Maximum No. of Hops that c
BOOTP (cont’d)
 Operation code : request(1) or reply (0)
 Transaction ID : set by the client and used
to match a reply with the request
 Number of seconds : indicating the
number of seconds elapsed since the time
the client started to boot
 Your IP address : client address filled by
server (in the client message)
 Server IP address : in a reply message
BOOTP (cont’d)
 Server name : the domain name of the
server in a reply packet
 Boot filename : the full pathname of the
boot in a reply packet (128-byte)
 Options : used in a reply message (64-
byte)
 carrying either additional information (such as the
network mask or default router address) or some
specific vendor information
DHCP (Cont’d)
DHCP (Cont’d)

Más contenido relacionado

La actualidad más candente

La actualidad más candente (20)

Gsm call routing
Gsm call routingGsm call routing
Gsm call routing
 
Application Layer
Application LayerApplication Layer
Application Layer
 
Introduction to Data-Link Layer
Introduction to Data-Link LayerIntroduction to Data-Link Layer
Introduction to Data-Link Layer
 
Asynchronous transfer mode
Asynchronous transfer modeAsynchronous transfer mode
Asynchronous transfer mode
 
Point to-point protocol (ppp)
Point to-point protocol (ppp)Point to-point protocol (ppp)
Point to-point protocol (ppp)
 
Bgp protocol
Bgp protocolBgp protocol
Bgp protocol
 
IP Subnetting
IP SubnettingIP Subnetting
IP Subnetting
 
Forouzan-ch19-Network-Layer-Logical-Addressing.ppt
Forouzan-ch19-Network-Layer-Logical-Addressing.pptForouzan-ch19-Network-Layer-Logical-Addressing.ppt
Forouzan-ch19-Network-Layer-Logical-Addressing.ppt
 
Icmp V4 And Icmp V6
Icmp V4 And Icmp V6Icmp V4 And Icmp V6
Icmp V4 And Icmp V6
 
Data link layer
Data link layer Data link layer
Data link layer
 
Telnet
TelnetTelnet
Telnet
 
Transport layer
Transport layer Transport layer
Transport layer
 
Address resolution protocol
Address resolution protocolAddress resolution protocol
Address resolution protocol
 
Mac adhoc
Mac adhocMac adhoc
Mac adhoc
 
X.25 protocol
X.25 protocolX.25 protocol
X.25 protocol
 
2.7 wlan ieee 802.11
2.7 wlan   ieee 802.112.7 wlan   ieee 802.11
2.7 wlan ieee 802.11
 
Tcp
TcpTcp
Tcp
 
Ip addressing
Ip addressingIp addressing
Ip addressing
 
Routing protocols for ad hoc wireless networks
Routing protocols for ad hoc wireless networks Routing protocols for ad hoc wireless networks
Routing protocols for ad hoc wireless networks
 
Wimax security
Wimax securityWimax security
Wimax security
 

Similar a BOOTP and DHCP.ppt

Similar a BOOTP and DHCP.ppt (20)

unit 2
unit 2unit 2
unit 2
 
BOOTP computer science for multiproc.ppt
BOOTP computer science for multiproc.pptBOOTP computer science for multiproc.ppt
BOOTP computer science for multiproc.ppt
 
Dhcp
DhcpDhcp
Dhcp
 
DHCP
DHCPDHCP
DHCP
 
DHCP Server & Client Presentation
DHCP Server & Client PresentationDHCP Server & Client Presentation
DHCP Server & Client Presentation
 
IP Layer.pptx
IP Layer.pptxIP Layer.pptx
IP Layer.pptx
 
DHCP (dynamic host configuration protocol)
DHCP (dynamic host configuration protocol)DHCP (dynamic host configuration protocol)
DHCP (dynamic host configuration protocol)
 
zuiqui_DHC.ppt
zuiqui_DHC.pptzuiqui_DHC.ppt
zuiqui_DHC.ppt
 
DHCP basics
DHCP basicsDHCP basics
DHCP basics
 
Dhcp
DhcpDhcp
Dhcp
 
TCP/IP Basics
TCP/IP BasicsTCP/IP Basics
TCP/IP Basics
 
DHCP.pptx
DHCP.pptxDHCP.pptx
DHCP.pptx
 
Unit 6 : Application Layer
Unit 6 : Application LayerUnit 6 : Application Layer
Unit 6 : Application Layer
 
Dhcp presentation
Dhcp presentationDhcp presentation
Dhcp presentation
 
Transport Layer Port or TCP/IP & UDP Port
Transport Layer Port or TCP/IP & UDP PortTransport Layer Port or TCP/IP & UDP Port
Transport Layer Port or TCP/IP & UDP Port
 
More on Tcp/Ip
More on Tcp/IpMore on Tcp/Ip
More on Tcp/Ip
 
07 - TCP_IP and the DoD Model.ppt
07 - TCP_IP and the DoD Model.ppt07 - TCP_IP and the DoD Model.ppt
07 - TCP_IP and the DoD Model.ppt
 
Protocol
ProtocolProtocol
Protocol
 
Clase 1 Direccionamiento IPv4.pdf
Clase 1 Direccionamiento IPv4.pdfClase 1 Direccionamiento IPv4.pdf
Clase 1 Direccionamiento IPv4.pdf
 
Tutorial on dhcp
Tutorial on dhcp Tutorial on dhcp
Tutorial on dhcp
 

Último

Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Call Girls Mumbai
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationBhangaleSonal
 
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
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxSCMS School of Architecture
 
Computer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersComputer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersMairaAshraf6
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadhamedmustafa094
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
Verification of thevenin's theorem for BEEE Lab (1).pptx
Verification of thevenin's theorem for BEEE Lab (1).pptxVerification of thevenin's theorem for BEEE Lab (1).pptx
Verification of thevenin's theorem for BEEE Lab (1).pptxchumtiyababu
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapRishantSharmaFr
 
Moment Distribution Method For Btech Civil
Moment Distribution Method For Btech CivilMoment Distribution Method For Btech Civil
Moment Distribution Method For Btech CivilVinayVitekari
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdfKamal Acharya
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdfKamal Acharya
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptxJIT KUMAR GUPTA
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARKOUSTAV SARKAR
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwaitjaanualu31
 
Wadi Rum luxhotel lodge Analysis case study.pptx
Wadi Rum luxhotel lodge Analysis case study.pptxWadi Rum luxhotel lodge Analysis case study.pptx
Wadi Rum luxhotel lodge Analysis case study.pptxNadaHaitham1
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network DevicesChandrakantDivate1
 

Último (20)

Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
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
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
Computer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersComputer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to Computers
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal load
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Verification of thevenin's theorem for BEEE Lab (1).pptx
Verification of thevenin's theorem for BEEE Lab (1).pptxVerification of thevenin's theorem for BEEE Lab (1).pptx
Verification of thevenin's theorem for BEEE Lab (1).pptx
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Moment Distribution Method For Btech Civil
Moment Distribution Method For Btech CivilMoment Distribution Method For Btech Civil
Moment Distribution Method For Btech Civil
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdf
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
 
Wadi Rum luxhotel lodge Analysis case study.pptx
Wadi Rum luxhotel lodge Analysis case study.pptxWadi Rum luxhotel lodge Analysis case study.pptx
Wadi Rum luxhotel lodge Analysis case study.pptx
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 

BOOTP and DHCP.ppt

  • 1. TCP/IP Protocol Suite 1 16.2 DHCP The Dynamic Host Configuration Protocol (DHCP) provides static and dynamic address allocation that can be manual or automatic. The topics discussed in this section include: Static Address Allocation Dynamic Address Allocation Manual and Automatic Configuration Packet Format Transition States Exchanging Messages
  • 2. TCP/IP Protocol Suite 2 DHCP basics Bootp is static, but DHCP is dynamic (but it can also be static). DHCP has a pool of available addresses. When a request arrives, DHCP pulls out the next available address and assigns it to the client for a negotiable time period. When a request comes in from a client, the DHCP server first consults the static table. DHCP is great when devices and IP addresses change.
  • 3. TCP/IP Protocol Suite 3 Figure 16.6 DHCP packet
  • 4. TCP/IP Protocol Suite 4 DHCPMessageFi eld Description Operation Code Specifies the type of the Dynamic Host Configuration Protocol (DHCP) message. Set to 1 in messages sent by a client (requests) and 2 in messages sent by a server (response). Hardware Type Specifies the network LAN architecture. For example, the ethernet type is specified when htype is set to 1. Hardware Address Length Link-layer address length (in bytes); defines the length of hardware address in the chaddr field. For Ethernet, this value is 6. Hops Number of relay agents that have forwarded this message. Transaction identifier Used by clients to match responses from servers with previously transmitted requests. seconds Elapsed time (in seconds) since the client began theDynamic Host Configuration Protocol (DHCP)process. Flags Flags field is called the broadcast bit, can be set to 1 to indicate that messages to the client must be broadcast ciaddr Client’s IP address; set by the client when the client has confirmed that its IP address is valid. yiaddr Client’s IP address; set by the server to inform the client of the client’s IP address. siaddr IP address of the next server for the client to use in the configuration process (for example, the serverto contact for TFTP download of an operating system kernel). giaddr Relay agent (gateway) IP address; filled in by the relay agent with the address of the interface through which Dynamic Host Configuration Protocol (DHCP) message was received. chaddr Client’s hardware address. (Layer 2 address) sname Name of the next server for client to use in the configuration process. file Name of the file for the client to request from the next server (for example the name of the file that contains the operating system for this client).
  • 5. 16.1 BOOTP  BOOTP(Bootstrap Protocol) is client/server protocol designed to provide the information for a diskless computer or a computer that is booted for the first time  RARP provides only the IP address and not the other information  If we use BOOTP, we do not need RARP  RARP is not implemented in most systems, it is totally removed from TCP/IP version 6
  • 6. Operation  Client and server on the same network
  • 7. BOOTP (cont’d)  Operation  Steps involved in use of the BOOTP protocol 1) BOOTP server uses UDP port 67 and waiting for a client 2) The client sends a BOOTP request message to the server. The client uses 0s as the source address and all 1s as the destination address. 3) The server replies to the client with either a broadcast or a unicast message using UDP destination port 68.
  • 8. BOOTP (cont’d)  UDP Ports  BOOTP is the client’s use of the well-known port 68 instead of an ephemeral port  if two hosts with same well-known port 68 use BOOTP at the same time in case of broadcasting the reply, both hosts receive the message.  In this case, transaction ID is used  Using TFTP  If a client needs more information for booting, the client can use the pathname of a file sent by server which the client can find complete booting information.
  • 9. BOOTP (cont’d)  Relay agent  In case that does not include a BOOTP sever in each LAN, a remote BOOTP server may serve several LANs  If a client needs to be booted, it cannot reach the remote sever using the broadcast address because an address of all 1s has only local jurisdiction.  So, a relay agent is used to send local requests to remote severs
  • 10. BOOTP (cont’d)  Client and server on two different networks
  • 11. BOOTP (cont’d) Ethernet : 6 Ethernet : 1 Maximum No. of Hops that c
  • 12. BOOTP (cont’d)  Operation code : request(1) or reply (0)  Transaction ID : set by the client and used to match a reply with the request  Number of seconds : indicating the number of seconds elapsed since the time the client started to boot  Your IP address : client address filled by server (in the client message)  Server IP address : in a reply message
  • 13. BOOTP (cont’d)  Server name : the domain name of the server in a reply packet  Boot filename : the full pathname of the boot in a reply packet (128-byte)  Options : used in a reply message (64- byte)  carrying either additional information (such as the network mask or default router address) or some specific vendor information