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
- 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
- 1Day 1: Review IP addressing fundamentals, including the function of subnet masks and default gateways.
- 2Day 2: Memorise and sketch the DORA handshake sequence, noting which entity sends each packet and whether it is broadcast or unicast.
- 3Day 3: Compare DHCP with manual static addressing, identifying specific use cases for both (e.g., mobile clients vs. servers/printers).
- 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)
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.
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.
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)
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.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.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.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.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.