You are here:Home>>Tutorials

DHCP - Dynamic Host Configuration Protocol - What is DHCP - Understanding DHCP


DHCP is Stands for Dynamic Host Configuration Protocol. As its name says it's purpose to assign a dynamic IP address to the device in the network. Assigning Dynamic address means that a device will have a different IP address every time it connects to the network.

To be more simple, DHCP allows a device or a computer in network to join a network without having pre-configured IP address. It assigns unique IPs to computer devices each time computer a device connectes or joins to the network. Ans also DHCP renews when the system disconnects and enters the network with uniqe IP address. When the client receives an IP address, the client may use the Address Resolution Protocol (ARP) to prevent IP conflicts caused by overlapping address pools of DHCP servers.

Each time a computer or a device restrts and connects to the network it first connects to the DHCP server and requests a IP address, subnet and a gateway. Then the DHCP server genarally realese the net avilable IP address in the network

The DHCP Server has a future that allows Admin to define the set of IPs or "Pools" or in DHCP terminology it calls "Scopes", The IPs are in "Pools" are configured with the Subnet Mask.

Having DHCP is safe because DHCP handles the confihuration of IP address so that, there is no chance of IP confilts by assiging them manually.

DHCP traffic from DHCP Server to Client uses UDP (User Datagram Protocol) and the Ports used to transmitting packets or messages Port 67 and Port 68.

DHCP Server operates are in four basic actions:

  • IP discovery / IP request,
  • IP lease offer,
  • IP lease selection, and
  • IP lease acknowledgment.

    HOW THE DHCP WORKS

    The DHCP Server's task will be done in 4 simple steps:
    • IP lease request: Lets say You have a computer (It called as Client) and you have no IP configured and let the DHCP Server to do this task. You restart the computer in the morning, while system reboots, it sends a request to DHCP server "I NEED A IP ADDRESS". This requiest is sent with the source IP: 0.0.0.0 and the subnet 255.255.255.255 as you didnt have configured the TCP/IP settings. Also, note that, this request included your systems "NAME" and "MAC ADDRESS". This step is called as IP lease request.
    • IP lease offer: DHCP Server receives the request from Client system (i.e your system), and send a proposal of IP address from the POOL(the set f IPs and Subnet Masks configured) to Client system. Which includes; Client systems hardware address, subnet mask, duration of lease and the IP address of the DHCP server which send the Offer. This Step is known as IP lease offer.
    • IP lease selection: The Cleint system receives the proposal from DHCP server sends a message to DHCP servers to let it know the IP proposal has been chosen. This is known as the IP lease selection.
    • IP lease acknowledgment: DHCP Server receives the message from Client system saying it has been chosen the offer. Now DHCP server send s a acknowledgment to the client system. If this acknowledgment fails to receive by client system, The cleint again starts from STEP 1, i.e it resends request for new IP.

      Thats IT!!!


      Google Reader or Homepage Subscribe Add to My Yahoo! Subscribe with Bloglines Subscribe in NewsGator Online Add to Technorati Favorites!
      Web Development : Free Php Scripts | PHP Script and Programs | Javascripts | Javascript Kit | For latest IT news | Sitemap
      Free Web Templates : Nuvio Templates - Free Web Templates & WordPress Themes
      Best PHP email Systems and Forms : PHP Email Systems Script and Programs | Free ready to use Contact me form for your Website | Free PHP contact us form script | PHP Webmasters tools and help | Website Ranking - Rankings - Get Website Optimization basics correct, add great linking strategies and your website rankings will rocket. Most Web Masters lack website optimization service skills, website ranking and website optimization services is our specialty.

      Search Technohub.in

      Guest Book    |   Contact Me    |    Articles    |    Comments    |    Bookmark My Site !