Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 44

Understanding the DHCP DORA Process

Recommended resources

In our last lesson, we mastered the art of troubleshooting Network Address Translation (NAT). We now transition from the manual and static world of NAT mappings to the automatic and dynamic world of host configuration. This lesson introduces the Dynamic Host Configuration Protocol (DHCP), a fundamental service that eliminates the need to manually assign an IP address to every device on your network.

Your goal is to build a functional network for your project, and a crucial part of that is ensuring client devices like PCs can get online seamlessly. This lesson lays the theoretical groundwork for that by explaining the four-step process, known as DORA, that a device uses to acquire an IP address from a DHCP server. Understanding this process is essential for both configuration and troubleshooting.

The Purpose of DHCP

Before diving into the mechanics, let's quickly review why DHCP is so essential in any network, from your home to a large enterprise. Manually configuring IP addresses, subnet masks, default gateways, and DNS servers on every single device is not only time-consuming but also highly prone to errors like typos or duplicate addresses. DHCP automates this entire process.

The following video provides a concise overview of DHCP's role and its importance in modern networks.

Free CCNA | DHCP | Day 39 | CCNA 200-301 Complete Course

This video from Jeremy's IT Lab, "Free CCNA | DHCP," introduces the fundamental purpose of DHCP.

Watch the introductory segment from the beginning. Focus on the distinction between devices that typically use DHCP (client devices like PCs and phones) and those that are usually statically configured (servers, routers).


The Four-Step DORA Process

When a new device without an IP address connects to a network, it initiates a four-message conversation with a DHCP server to lease an IP address. This process is commonly remembered by the acronym DORA:

  1. Discover
  2. Offer
  3. Request
  4. Acknowledge

Let's break down what happens at each stage.

Implementing DHCP: The Practical Guide for CCNA 200-301

This article from the AlphaPrep blog provides a clear and direct explanation of the DORA process.

Read the section titled "DHCP Protocol Mechanics: The DORA Process and Beyond." Pay close attention to the description of each of the four steps and the UDP ports used (server port 67, client port 68).

To help you visualize this exchange, here is a diagram illustrating the flow of messages between a client and a server on the same local network.

This diagram shows the four-step DORA process. The client broadcasts a Discover message. The server responds with an Offer. The client broadcasts a Request to accept the offer, and the server finalizes the lease with an Acknowledge message. Note the source and destination IP addresses and UDP ports for each step.

DORA in Action: A Packet-Level View

The textual explanation gives you the "what," but to truly understand the process from a network engineering perspective, you need to see the "how." The following video uses Wireshark, a packet analyzer, to show you exactly what these DORA messages look like on the wire.

Free CCNA | DHCP | Day 39 | CCNA 200-301 Complete Course

Let's return to the video from Jeremy's IT Lab to see a detailed, packet-by-packet breakdown of the DORA exchange.

Watch the segment from the DORA explanation. As you watch, focus on these key details for each of the four messages: Layer 2 (Ethernet): Is the destination MAC address a specific device (unicast) or all-Fs (broadcast)? Layer 3 (IP): What are the source and destination IP addresses? Note the use of 0.0.0.0 for the client before it has an address and 255.255.255.255 for broadcasts. Layer 4 (UDP): Which source and destination ports are used? (Client: 68, Server: 67). DHCP Message Content: What is the basic purpose of the message? (e.g., finding a server, offering an address).

As the video explains, the first two messages from the client (Discover and Request) are always broadcast because the client doesn't have an IP address and needs to reach all potential DHCP servers on the local network. The messages from the server (Offer and Acknowledge) can be unicast if the client is capable of receiving them, but are often sent as broadcasts to ensure delivery.

Here is a summary table that neatly organizes the DORA process.

Configuring and verifying DHCP client and relay - IT Networking Skills

This article from IT Networking Skills contains a very useful summary table of the DORA process.

Review the table under the heading "DORA (Discover, Offer, Request, Acknowledge)." This table provides a concise summary of the sender, receiver, and transmission type for each message.


The DHCP Lease Lifecycle

Getting an IP address is just the beginning. DHCP assigns addresses for a limited time, known as a lease. If the lease expires, the device loses its IP address. To prevent this, the client must periodically renew its lease. This renewal process also has a defined set of steps.

Implementing DHCP: The Practical Guide for CCNA 200-301

Let's revisit the AlphaPrep blog post to understand what happens after the initial DORA process is complete.

Read the section "DHCP Lease Lifecycle: Renewal and Rebinding." Focus on understanding the purpose of the T1 and T2 timers: T1 (Renewal Timer): At 50% of the lease time, the client sends a unicast DHCP Request directly to the server that gave it the lease. T2 (Rebinding Timer): At 87.5% of the lease time, if the first renewal failed, the client broadcasts a DHCP Request to find any available server to get a new lease.


Check Your Understanding

Let's test your knowledge of the DORA process. Try to answer these questions based on what you've just learned.

  1. What is the correct order of messages when a DHCP client gets an IP address from a server?
    • A) Offer, Discover, Request, Ack
    • B) Discover, Offer, Request, Ack
    • C) Request, Discover, Offer, Ack
    • D) Discover, Request, Offer, Ack

Answer The correct answer is **B**. The process always starts with the client sending a **Discover** message, followed by a server **Offer**, a client **Request**, and a final server **Acknowledge**. Remember the DORA acronym.
  1. Which of the following DHCP messages are always sent as a broadcast by the client? (Select two)
    • A) DHCP Offer
    • B) DHCP Discover
    • C) DHCP Ack
    • D) DHCP Request
    • E) DHCP Release

Answer The correct answers are **B** and **D**. The **DHCP Discover** message is broadcast because the client doesn't know the server's address. The **DHCP Request** message is also broadcast to inform all potential DHCP servers (in case there were multiple offers) which offer the client has accepted.
  1. Which of the following messages can be sent as unicast from the server to the client? (Select two)
    • A) DHCP Discover
    • B) DHCP Offer
    • C) DHCP Request
    • D) DHCP Acknowledge

Answer The correct answers are **B** and **D**. Both the **DHCP Offer** and **DHCP Acknowledge** messages are sent from the server to the client. Depending on the client's capabilities, the server may send these as unicast (directly to the client's MAC address) or as broadcast.

Conclusion

In this lesson, you have unpacked the fundamental process that allows devices to join a network automatically. This theoretical foundation is critical for the practical tasks ahead.

Key Takeaways:

  • DHCP automates IP configuration, assigning an IP address, subnet mask, default gateway, and DNS server addresses to clients.
  • The IP assignment process follows the four-step DORA sequence: Discover, Offer, Request, and Acknowledge.
  • Client messages (Discover, Request) are broadcast. Server messages (Offer, Ack) can be either unicast or broadcast.
  • DHCP communication uses UDP, with clients sending from port 68 to server port 67.
  • IP addresses are leased for a specific duration and must be renewed via the T1 and T2 timers to maintain connectivity.

Now that you understand the theory behind how a client obtains an IP address, our next lesson will put this knowledge into practice. You will learn how to configure a Cisco router to act as a DHCP server, a core skill you will need for your upcoming project.