Computer Networking Basics

When a device obtains an IP address with DHCP, what is the correct order of messages?

  1. ARequest → Offer → Discover → Ack
  2. BDiscover → Offer → Request → Ack
  3. COffer → Discover → Ack → Request
Show answer and explanation

Answer: B. Discover → Offer → Request → Ack

A device with no address yet does not know where the DHCP server is either, so it first broadcasts a Discover. A server proposes an address and other settings in an Offer, the device states which server's offer it accepts in a Request, and the server confirms with an Ack. From the initials this is called DORA. Besides the IP address, the device receives the subnet mask, the default gateway, the DNS server addresses and more. Addresses are lent for a limited time (the lease), and the device asks for renewal before it expires. To use a DHCP server beyond a router, a DHCP relay is configured on the router.

  • A. Unless the device first sends a Discover looking for a server, the server does not know the device exists.
  • B. Correct. Discover, Offer, Request, Ack, known as DORA.
  • C. A server's Offer is sent in answer to the device's Discover.
Practice this topic Back to topic

Related calculators

Books on Computer Networking Basics Ad

As an Amazon Associate I earn from qualifying purchases.

More Computer Networking Basics questions

  1. Which of the following does HTTPS (HTTP protected by TLS) protect?
  2. In TLS, why can a browser conclude that the server it connects to is not an impostor?
  3. Roughly how long does it take to send a 100 MB file over a 100 Mbps link? Ignore overhead such as headers and latency, and take 1 MB = 10^6 bytes.
  4. On 1 Gbps Ethernet, TCP data is sent continuously with IP packets filling the 1500-byte MTU. Taking the IPv4 header as 20 bytes, the TCP header as 20 bytes, the Ethernet header and FCS together as 18 bytes, and the preamble and inter-frame gap together as 20 bytes, which is closest to the upper limit on application-data throughput?
  5. Over a link with an RTT of 50 ms and a bandwidth of 100 Mbps, a request that returns a 10 KB response is repeated 100 times, each sent only after the previous response has been fully received. Which is closest to the total time? Take the time per request as the RTT plus the response transfer time (data size ÷ bandwidth), 1 KB = 1000 bytes, and ignore server processing time.