SlideShare ist ein Scribd-Unternehmen logo
1 von 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)

Weitere ähnliche Inhalte

Was ist angesagt? (20)

User datagram protocol (udp)
User datagram protocol (udp)User datagram protocol (udp)
User datagram protocol (udp)
 
Routing protocols
Routing protocolsRouting protocols
Routing protocols
 
Application layer protocols
Application layer protocolsApplication layer protocols
Application layer protocols
 
Arp (address resolution protocol)
Arp (address resolution protocol)Arp (address resolution protocol)
Arp (address resolution protocol)
 
Global state routing
Global state routingGlobal state routing
Global state routing
 
5. icmp
5. icmp5. icmp
5. icmp
 
Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)
 
Icmp
IcmpIcmp
Icmp
 
Internet control message protocol
Internet control message protocolInternet control message protocol
Internet control message protocol
 
TCP/IP Protocol Architeture
TCP/IP Protocol ArchitetureTCP/IP Protocol Architeture
TCP/IP Protocol Architeture
 
Data link layer
Data link layerData link layer
Data link layer
 
switching techniques in data communication and networking
switching techniques in data communication and networkingswitching techniques in data communication and networking
switching techniques in data communication and networking
 
Ethernet
EthernetEthernet
Ethernet
 
Rarp
RarpRarp
Rarp
 
Mobile computing : Indirect TCP
Mobile computing : Indirect TCPMobile computing : Indirect TCP
Mobile computing : Indirect TCP
 
Arp and rarp
Arp and rarpArp and rarp
Arp and rarp
 
Transport layer protocol
Transport layer protocolTransport layer protocol
Transport layer protocol
 
Ospf
OspfOspf
Ospf
 
Quality of Service
Quality of ServiceQuality of Service
Quality of Service
 
Tcp ip
Tcp ipTcp ip
Tcp ip
 

Ähnlich wie BOOTP and DHCP.ppt

Ähnlich wie 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
 
RARP, BOOTP, DHCP and PXE Protocols
RARP, BOOTP, DHCP and PXE ProtocolsRARP, BOOTP, DHCP and PXE Protocols
RARP, BOOTP, DHCP and PXE Protocols
 
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
 

Kürzlich hochgeladen

UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
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
 
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
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduitsrknatarajan
 
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
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
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
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
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
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 
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
 
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
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfRagavanV2
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
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
 

Kürzlich hochgeladen (20)

UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
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
 
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
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
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
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
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
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
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)
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.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
 
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
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
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 ...
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 

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