Skip to topic
    ← Back to course topics

    Dynamic Host Configuration Protocol (DHCP) — AQA A-Level Computer Science

    The Dynamic Host Configuration Protocol (DHCP) is an application layer network protocol used to automatically assign IP addresses, subnet masks, default gateways, and DNS server details to client devices from a dynamic pool. It eliminates the administrative overhead and human error associated with manual IP configuration, preventing IP address conflicts across local area networks.

    Dynamic Host Configuration Protocol (DHCP) explained

    The statement as supplied is incomplete: it ends at the word 'the' and does not name the protocol or the aspect to be understood.

    Read the full explanation

    The section heading identifies the topic as the Dynamic Host Configuration Protocol (DHCP). In general terms, DHCP is a protocol that automatically assigns network configuration to devices when they join a network, including an IP address, a subnet mask, a default gateway and DNS server details, so that users do not need to configure each device manually. A DHCP server leases addresses for a set period, and the lease can be renewed or released. Because the exact wording is missing, learners should check the full specification text before relying on any detailed wording, but they can still understand that DHCP automates the allocation of IP address configuration on a network.

    Your focus

    1. Understand the purpose and function of the

    Which command word is this?

    Give a detailed, factual account of a system or process without needing debate. For DHCP, walk step-by-step through the message exchange or explain how an address lease works.

    Dynamic Host Configuration Protocol (DHCP) exam tips

    Topic Overview

    Dynamic Host Configuration Protocol (DHCP) is a core network protocol operating at the Application Layer of the TCP/IP stack that automates the distribution of IP configuration parameters. Without DHCP, network administrators must manually configure the IP address, subnet mask, default gateway, and DNS servers for every host device, an approach that is unsustainable in modern environments with mobile devices and guest networks.

    In the AQA A-Level specification, DHCP is studied within the broader context of communication protocols, addressing mechanisms, and client-server network architectures. Mastering DHCP allows students to understand how hardware connects seamlessly to local networks, how address space is conserved via dynamic leases, and how broadcast domains facilitate automated host discovery.

    Key Concepts
    • →Dynamic IP Allocation: IP addresses are allocated on a temporary lease basis from a predefined address scope/pool and returned when the lease expires or is released.
    • →The DORA Process: Discover, Offer, Request, and Acknowledge represent the four-stage handshake protocol executed between client and DHCP server.
    • →Key Parameters Distributed: Alongside the host IP address, DHCP provides the subnet mask, default gateway address, and DNS server IP addresses.
    • →Static Reservations: A DHCP server can be configured to always assign the same fixed IP address to a specific device based on its unique MAC address.
    Marking Points
    • States that DHCP automatically assigns IP address configuration to devices on a network
    • Identifies that configuration can include a subnet mask, default gateway and DNS server details
    • Explains that addresses are leased for a period rather than permanently assigned
    Examiner Tips
    • 💡Check the full wording of the specification statement, as this version is truncated
    • 💡Describe DHCP as an automatic allocation process and name at least one item it supplies
    • 💡Link the idea of a lease to the fact that addresses are returned and reused
    • 💡Use the 'DORA' acronym to remember the exact sequence of messages: Discover, Offer, Request, Acknowledgement.
    • 💡Explicitly state that the initial DHCPDISCOVER and DHCPREQUEST messages are sent as broadcasts (destination IP 255.255.255.255) because the client does not yet possess an IP address or know the server's identity.
    Common Mistakes
    • Assumes DHCP translates private addresses to public ones; correct this by recognising that address translation is a separate function performed by routers
    • Believes every device must be manually configured with an IP address; correct this by understanding that DHCP automates the process
    • Treats DHCP as a method of routing packets across the Internet; correct this by recognising that it allocates configuration rather than forwarding data
    • Believing DHCP assigns MAC addresses: MAC addresses are physical hardware identifiers burned into the Network Interface Card (NIC) at manufacture; DHCP assigns logical network-layer IP addresses only.
    • Assuming a device keeps its DHCP IP address forever: A DHCP address is leased for a finite time period and must be renewed by the client, otherwise it returns to the pool.
    • Confusing the roles of DHCP and DNS: DHCP provides hosts with initial network configuration parameters, whereas DNS translates human-readable domain names into IP addresses.
    Revision Plan
    1. 1Day 1: Review IP addressing fundamentals, including the function of subnet masks and default gateways.
    2. 2Day 2: Memorise and sketch the DORA handshake sequence, noting which entity sends each packet and whether it is broadcast or unicast.
    3. 3Day 3: Compare DHCP with manual static addressing, identifying specific use cases for both (e.g., mobile clients vs. servers/printers).
    4. 4Day 4: Attempt past AQA exam questions on protocol operations and self-assess using official mark schemes.
    Exam Question Types
    • 📋Short-answer definition: Identify the purpose of DHCP or list the parameters provided by a DHCP server (typically 2-3 marks).
    • 📋Sequence description: Describe the step-by-step handshake exchange (DORA) that occurs when a host joins a network (typically 4 marks).
    • 📋Comparative scenario: Evaluate whether static addressing or DHCP is preferable for a stated organisation or set of devices (typically 4-6 marks).
    Command Word Expectations (AQA)
    Describe

    Give a detailed, factual account of a system or process without needing debate. For DHCP, walk step-by-step through the message exchange or explain how an address lease works.

    Explain

    Provide reasons as to 'how' or 'why' something happens. For DHCP, justify why a specific message is broadcast or why dynamic allocation reduces configuration overhead.

    Compare

    Identify similarities and differences between two approaches (e.g. static configuration vs DHCP), linking each point back to performance, convenience, or network reliability.

    How Students Lose Marks (Examiner Pitfalls)
    Pitfall: Confusing the permanent assignment of an IP address with the temporary lease mechanism inherent to DHCP.
    ❌ Weak Answer (Loses Marks):DHCP gives every computer on the network its own permanent IP address so it can connect to the internet.
    Example improved answer:DHCP dynamically allocates an IP address to a client from an available pool for a temporary lease duration. Once the lease expires, the IP address returns to the pool unless the client renews it.
    Examiner Tip: Always mention the term 'lease' or 'pool of addresses' when describing dynamic allocation to distinguish it clearly from static addressing.
    Pitfall: Vaguely describing DHCP configuration parameters as simply 'internet settings' rather than identifying the precise network parameters provided.
    ❌ Weak Answer (Loses Marks):A DHCP server sends the computer the router information and web settings.
    Example improved answer:A DHCP server provides the host with an IP address, a subnet mask, the default gateway (router IP), and the IP addresses of one or more Domain Name System (DNS) servers.
    Examiner Tip: Memorise all four key configuration parameters provided by DHCP: IP address, subnet mask, default gateway, and DNS server address.
    Step-by-Step Worked Solutions

    Question: Explain the four-step handshake sequence (DORA) used by a client to obtain network configuration parameters from a DHCP server on an Ethernet LAN. [4 marks]

    1. 1.Step 1: DHCPDISCOVER - The client broadcasts a DHCPDISCOVER packet across the local network segment using the MAC address FF:FF:FF:FF:FF:FF to locate any active DHCP servers.
    2. 2.Step 2: DHCPOFFER - Each listening DHCP server reserves an available IP address from its pool and unicasts or broadcasts a DHCPOFFER packet back containing the proposed IP address, subnet mask, lease duration, and server ID.
    3. 3.Step 3: DHCPREQUEST - The client selects one offer (typically the first received) and broadcasts a DHCPREQUEST packet back, formally requesting the offered parameters and notifying other servers that their offers were declined.
    4. 4.Step 4: DHCPACK - The selected server transmits a DHCPACK (acknowledgement) packet confirming the IP lease, subnet mask, default gateway, and DNS server details, completing the configuration.
    Final Answer: The sequence is DHCPDISCOVER (broadcast by client), DHCPOFFER (sent by server), DHCPREQUEST (broadcast by client confirming selection), and DHCPACK (acknowledgement sent by server to finalize configuration).
    Active Recall Memory Test
    What does the acronym DORA stand for in the context of DHCP?
    Key Fact: Discover, Offer, Request, Acknowledge.
    Name four configuration items sent by a DHCP server to a newly connected client.
    Key Fact: IP address, subnet mask, default gateway address, and DNS server address.
    Why are initial DHCPDISCOVER packets sent as broadcast packets?
    Key Fact: Because the client does not yet have an assigned IP address and does not know the IP address of any local DHCP server.
    Frequently Asked Questions
    What happens if two DHCP servers exist on the same local network?
    Both servers will receive the initial DHCPDISCOVER broadcast and respond with separate DHCPOFFER packets containing different IP addresses. The client normally accepts the first offer that arrives and broadcasts a DHCPREQUEST specifying the chosen server ID. The unselected server notes this request and releases its offered address back into its available pool.
    What is an IP lease time and what happens when it expires?
    A lease time is the defined duration for which a client is permitted to use an assigned IP address. Halfway through the lease period, the client attempts to renew the lease directly with the DHCP server. If renewal fails and the lease expires completely, the client must cease using the IP address immediately and restart the DORA process from scratch.
    Can a device keep the same IP address while still using DHCP?
    Yes, using a feature called DHCP reservation (or static DHCP). The network administrator binds a host device's permanent MAC address to a specific IP address within the DHCP server table. Whenever that specific NIC initiates a DHCP request, the server always returns that reserved IP address.
    Why shouldn't key network servers use standard dynamic DHCP?
    If a server's IP address changes periodically due to dynamic lease expiration, clients and local network services will lose connectivity until DNS or network caches update. Servers, default routers, and shared network printers therefore require either permanent static IP configurations or dedicated DHCP reservations to guarantee constant availability.