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

lab 08

Uploaded by

Sundas Shafi
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

lab 08

Uploaded by

Sundas Shafi
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

NATIONAL UNIVERSITY OF TECHNOLOGY

National University of Technology

Computer Science Department


Semester Fall – 2023
LAB REPORT – 07
Course: CN Lab
Course Code: CS4016

Submitted To: Submitted By:


Name: Eng Syed Ahmad Raza Name: Sundas Shafi
Science Department ID: f20605047
Warm up Task

Answer each question in your own words (3 to 4 lines)


1.What is DHCP?

DHCP stands for Dynamic Host Configuration Protocol. It is a network protocol used to
automatically assign and manage IP addresses and other network configuration information to
devices on a network. DHCP is commonly used in local area networks (LANs) to simplify the
process of configuring devices and ensuring that they can communicate with each other.

2. Why is DHCP important?

DHCP is important for several reasons:

 Automated IP Address Assignment: DHCP eliminates the need for manual IP address
configuration, making it more efficient and less prone to errors.
 Centralized Management: DHCP allows for centralized management of IP addresses
and related network configuration parameters.
 Dynamic Allocation: IP addresses are assigned dynamically, meaning devices can be
easily added or removed from the network without manual intervention.
 Avoids IP Address Conflicts: DHCP helps prevent IP address conflicts by ensuring that
each device on the network receives a unique IP address.

3. How does DHCP work?

The DHCP process typically involves the following steps:

 DHCP Discovery: When a device joins a network, it sends out a DHCP discovery
broadcast message to identify available DHCP servers.
 DHCP Offer: DHCP servers respond with DHCP offer messages, providing the
requesting device with an available IP address and other network configuration
information.
 DHCP Request: The requesting device selects one of the offered IP addresses and sends a
DHCP request to the chosen DHCP server.
 DHCP Acknowledgment: The selected DHCP server responds with a DHCP
acknowledgment, confirming the assignment of the IP address to the device.

4. What is a DHCP lease?

A DHCP lease is a temporary assignment of an IP address and related configuration parameters to a


device on a network. The lease includes a specific duration for which the device is allowed to use the
assigned IP address. At the end of the lease period, the device must renew its lease or request a new one
to continue using the IP address

5. Explain the DHCP lease renewal process:


 Lease Time: When a device obtains an IP address through DHCP, it is assigned a lease
time, indicating how long it can use that IP address.
 Lease Renewal: Before the lease expires, the device can initiate a lease renewal by
sending a DHCP request to the DHCP server that initially provided the IP address.
 DHCP Server Response: The DHCP server can respond with a DHCP acknowledgment,
renewing the lease for a specified period. If the server doesn't respond, the device may
retry or eventually request a new lease.
 Release and Rebinding: If the device cannot reach its original DHCP server for renewal,
it may try to obtain a renewal from any available DHCP server (rebinding). If that fails, it
may release the current lease and request a new one.

You might also like