TCPIP Protocol Partb 05112024 121454pm
TCPIP Protocol Partb 05112024 121454pm
1 Introduction
The information that is held in each computer attached to a
TCP/IP internet
Its IP address
Its subnet mask
The IP address of a router
The IP address of a name server
The above information is usually stored in a configuration
file and accessed by the computer during the bootstrap
process
In the case of a diskless computer, the operating system and
networking S/W can be stored in ROM. But the above
information cannot be stored in ROM
Previous Protocol
RARP ( Reverse Address Resolution Protocol)
Provide the IP address for a booted computer
Map a physical address to an IP address
But deprecated today for two reasons
RARP used the broadcast service of the data link layer
So RARP server must be present in each network
RARP can provide only the IP address of the computer
Today, a computer requires IP address, subnet mask, IP address of router, IP
address of name server.
Previous Protocol (cont’)
BOOTP ( Bootstrap Protocol)
Prerunner of DHCP
Client/Server protocol designed
BOOTP server can be anywhere in the Internet
BOOTP can provide all pieces of information
But BOOTP is a static configuration protocol : When a client
requests its IP address, the BOOTP server consults a table that
matches the physical address of the client with its IP address. This
implies that the binding between the physical address and the IP
address of the client already exists. The binding is predetermined.
BOOTP can not support dynamic configuration: example, when a
host moves from one physical network to another, its physical
address changes.
DHCP
Dynamic Host Configuration Protocol
DHCP is a client/server protocol designed to provide the four
pieces of information for a diskless computer or a computer that is
booted for the first time.
Successor to BOOTP and is backward compatible with it
Meaning that a host running the BOOTP client can request a static configuration
to a DHCP server
DHCP provides temporary IP addresses for a limited period of time
UDP port number 67 is the destination port of a server, and UDP port
number 68 is used by the client.
18.2 DHCP Operation
1. A client broadcasts a DHCPDISCOVER message using destination port
67
2. Servers respond with a DHCPOFFER message including an IP address
Offering the duration of the lease - default : one hour
The server that sends a DHCPOFFER locks the offered IP address so that it
is not available to any other clients
If the client receives no DHCPOFER message, it will try four more times,
each with a SPAN of two seconds.
If there is no reply to any of these DHCPDISCOVERs, the client sleeps for
five minutes before trying again