BOOTP vs DHCP: Bootstrap Protocol Explained (Ports 67 and 68)

By editor 6 min read
BOOTP request and reply compared with DHCP DORA exchange

BOOTP (Bootstrap Protocol, RFC 951, 1985) and DHCP (Dynamic Host Configuration Protocol, 1993) both give a device its IP address automatically over UDP ports 67 and 68. BOOTP hands out addresses from a fixed MAC-to-IP table with no expiry. DHCP grew out of BOOTP and adds dynamic pools, leases, address reuse and many more options. DHCP servers can answer BOOTP clients. In industrial networks, BOOTP or DHCP is often used just to commission a device’s IP address, which is then kept fixed.

UDP 67 / 68
server / client
1985
BOOTP (RFC 951)
1993
DHCP
DORA
DHCP 4-step

BOOTP vs DHCP Comparison

BOOTPDHCP
DefinedRFC 951, 1985October 1993; IPv4 RFC 2131
Address sourceAdministrator’s MAC-to-IP tableDynamic pool, automatic or manual (reservation)
LeasesNo: address kept until changedYes: time-limited, renewable, reclaimable
MessagesRequest + replyDiscover, Offer, Request, Acknowledge (DORA)
Information returnedIP, mask, gateway, boot server and imageIP, mask, gateway, DNS and many options
TransportUDP 67 (server) / 68 (client), IPv4 onlyUDP 67 / 68 (IPv4); DHCPv6 for IPv6
CompatibilityClients can be served by many DHCP serversSuperset of BOOTP
From Wikipedia: Bootstrap Protocol and Dynamic Host Configuration Protocol.
BOOTP and DHCP message exchangesLeft: BOOTP client broadcasts a BOOTREQUEST with its MAC address and the server replies with IP address, subnet mask, gateway and boot server. Right: DHCP uses four messages: discover, offer, request and acknowledge, with a lease time.BOOTP: two messages, fixed table · DHCP: four messages (DORA), leased addressBOOTP (RFC 951, 1985)ClientServerBOOTREQUEST (broadcast, my MAC)BOOTREPLY (IP, mask, gateway, boot server)DHCP (RFC 2131, from 1993)ClientServerDHCPDISCOVER (broadcast)DHCPOFFERDHCPREQUESTDHCPACK + lease timeServer looks up the MAC in a tableset by the administratorBoth use UDP: server port 67, client port 68. DHCP servers can also answer BOOTP clients.IndustrialBasicsindustrialbasics.com
Figure 1: Message sequences from Wikipedia (Bootstrap Protocol; Dynamic Host Configuration Protocol).

How BOOTP Works

A BOOTP client starts with no IP address, so it broadcasts a BOOTP request containing its MAC address. The BOOTP server picks it up and replies with the client’s IP address, subnet mask and default gateway, the BOOTP server’s address and host name, and the address of the server holding the boot image. The client configures its TCP/IP stack and can then load its operating system from the boot server (Wikipedia). BOOTP replaced RARP, which worked at the link layer and was harder to implement.

Because the request is a broadcast, routers drop it. A relay agent, often a router’s UDP helper address, listens on port 67 and forwards the request as a unicast datagram to the server, then returns the reply.

How DHCP Extends BOOTP

  • Dynamic allocation: addresses come from a pool on a lease, so unused addresses return to the pool.
  • Automatic allocation: permanent assignment from a range, with the server remembering past assignments.
  • Manual allocation: also called static DHCP, fixed address, reservation or MAC/IP binding. This is effectively the BOOTP model.
  • Options: BOOTP vendor extensions became DHCP option fields, so a DHCP server can still serve BOOTP clients.

IP Assignment Checker

IP Assignment Checker (before you hand out the address)
IndustrialBasics calculator (IPv4). Checks that the address is a usable host in its subnet, that the gateway is in the same subnet, and whether the server is on the same subnet (if not, BOOTP/DHCP broadcasts need a relay agent / helper address on the router).

BOOTP and DHCP on the Plant Floor

Many industrial Ethernet devices, such as PLC communication modules, remote I/O adapters, drives and HMIs, ship with BOOTP or DHCP enabled so a commissioning tool can assign the first IP address against the device’s MAC address. Controllers and I/O normally need fixed addresses because connections, HMI tags and programs refer to them. A common practice is to assign by BOOTP/DHCP once, then set the address to static in the device. Check the device manual for how it behaves if no server answers after a power cycle. For the network layer underneath, see what is Profinet and Modbus RTU vs TCP.

Network tip: A rogue or forgotten DHCP server can hand machines the wrong address. Managed switches with DHCP snooping block server replies on untrusted ports and keep a table of valid bindings (Wikipedia, DHCP snooping).
Caution: Changing a controller’s IP address breaks existing connections to HMIs, SCADA and other controllers. Plan address changes with the control system owner and do them during a planned stop.

Plant networks almost always use private addresses; see private IP ranges for the RFC 1918 blocks and a subnet calculator.

Frequently Asked Questions

What is BOOTP?

The Bootstrap Protocol (RFC 951, 1985) lets a device with no IP address broadcast its MAC address and receive an IP address, subnet mask, default gateway and boot-server details from a BOOTP server. It runs over UDP on IPv4 only.

What is the difference between BOOTP and DHCP?

DHCP (1993) was built as an extension of BOOTP. BOOTP gives an address from a table the administrator maintains and has no leases; DHCP can allocate addresses dynamically from a pool, lease them for a set time and reclaim them, and carries many more options. DHCP servers can also answer BOOTP clients.

What ports do BOOTP and DHCP use?

Both use UDP port 67 on the server (bootps) and UDP port 68 on the client (bootpc).

Is BOOTP still used?

Yes, in places. Parts of BOOTP still underpin DHCP, some DHCP servers provide legacy BOOTP service, and many industrial devices offer BOOTP or DHCP for initial IP setup.

What is DORA in DHCP?

The four DHCP steps: Discover (client broadcast), Offer (server proposes an address), Request (client asks for it) and Acknowledge (server confirms the lease).

Can BOOTP work across routers?

Not directly, because the request is a broadcast and routers drop broadcasts. A relay agent (often a router “helper address”) listens on port 67 and forwards the request as unicast to the server.

What is a DHCP reservation?

Manual (static) allocation: the administrator maps a device’s MAC address or client ID to a fixed IP address, so the device always gets the same address. It behaves much like a BOOTP table.

What is a rogue DHCP server?

An unauthorized DHCP server handing out wrong addresses. DHCP snooping on managed switches blocks DHCP server replies on untrusted ports and builds a table of valid bindings.

Should PLCs and I/O use DHCP?

Controllers and I/O usually need fixed addresses because other devices and programs reference them. Use BOOTP/DHCP only to set the address during commissioning, or DHCP reservations, then follow the device manual for keeping the address static.

What does BOOTP stand for?

Bootstrap Protocol, from its original use: helping diskless computers get an address and the location of a boot image so they could load their operating system over the network.

Sources and Further Reading

About the author

editor

Leave a Comment