DHCP process, Unicast vs broadcast?

in CCNP
So if I understand this correctly we see the following happening when DHCP is at play.
There are 4 steps:
DHCP Discover
DHCP Offer
DHCP Request
DHCP ACK
When an decive request an DHCP which did not have an IP before it look like this:
DHCP Discover - Broadcast
DHCP Offer - Broadcast
DHCP Request - Broadcast
DHCP ACK - Broadcast
When an decive request an DHCP did have an IP before it look like this:
DHCP Discover - Broadcast
DHCP Offer - Unicast
DHCP Request - Broadcast
DHCP ACK - Unicast
Is this assumption correct?? Is there also a difference in what kind of device is requesting an IP? I've found some threads saying that an broadcast bit can be set, not sure what the use is to set this to broadcast or unicast? Why do you wnat devices to have that choice? Also is my assumption above correct?
If seen in a CBT nugget a 3rd option:
DHCP Discover - Broadcast
DHCP Offer - Unicast
DHCP Request - Unicast
DHCP ACK - Unicast
For this last one I have made/attached a screenshot:
So now I'm confused
There are 4 steps:
DHCP Discover
DHCP Offer
DHCP Request
DHCP ACK
When an decive request an DHCP which did not have an IP before it look like this:
DHCP Discover - Broadcast
DHCP Offer - Broadcast
DHCP Request - Broadcast
DHCP ACK - Broadcast
When an decive request an DHCP did have an IP before it look like this:
DHCP Discover - Broadcast
DHCP Offer - Unicast
DHCP Request - Broadcast
DHCP ACK - Unicast
Is this assumption correct?? Is there also a difference in what kind of device is requesting an IP? I've found some threads saying that an broadcast bit can be set, not sure what the use is to set this to broadcast or unicast? Why do you wnat devices to have that choice? Also is my assumption above correct?
If seen in a CBT nugget a 3rd option:
DHCP Discover - Broadcast
DHCP Offer - Unicast
DHCP Request - Unicast
DHCP ACK - Unicast
For this last one I have made/attached a screenshot:
So now I'm confused

Comments
CompTIA Network+ N10-005: 1.3 – Unicast, Multicast, and Broadcast | Professor Messer - CompTIA A+, Network+, Security+, Linux, Microsoft Technology Training
CompTIA Network+ N10-005: 2.3 - DHCP Addressing Overview | Professor Messer - CompTIA A+, Network+, Security+, Linux, Microsoft Technology Training
Eeeh, or you could just answer the question..... These video's did nothing to help.
DHCP Discover - Broadcast
DHCP Offer - Unicast
DHCP Request - Broadcast
DHCP ACK - Unicast
DHCP Discover - Broadcast
DHCP Offer - Unicast
DHCP Request - Unicast
DHCP ACK - Unicast
Was that an error made by the CBT trainer?
Yes to me that also makers sense, but in most documentation I only see the 2 option below:
DHCP Discover - Broadcast
DHCP Offer - Broadcast
DHCP Request - Broadcast
DHCP ACK - Broadcast
AND:
DHCP Discover - Broadcast
DHCP Offer - Unicast
DHCP Request - Broadcast
DHCP ACK - Unicast
Although I agree that when the Offer is done, the DHCP request can also be done in Unicast, as it is clear what device/IP is offering DHCP services....
I was hoping for an answer, but you're right. I only have access to virtual (GNS3) routers/switches. I'll see what I can do.
DHCP Discover - Broadcast
DHCP Offer - Unicast
DHCP Request - Broadcast
DHCP ACK - Unicast
The discovery is broadcast, the offer is unicast and can come from multiple dhcp servers. The request is broadcast so other dhcp servers can see the request and cancel their offers. The Ack is unicast back to choosen server.
This is gold. Just learned smething new, and it makes sense. Thank you for your insights
Makes perfect sense. Luckily you don't need to be an expert in DHCP for CCIE
Thanks!
Technet says Microsoft DHCP service uses this method
DHCP Discover - Broadcast
DHCP Offer - Broadcast
DHCP Request - Broadcast
DHCP ACK - Broadcast
AWS & Linux Knowledge
- The client sends DHCPDiscover. It is broadcast both in Layer 2 and Layer 3.
- The server replies with DHCPOffer. It's broadcast in Layer 3 but unicast in Layer 2.
- The client replies with DHCPRequest. It's broadcast in both Layers 2/3.
- The server sends DHCPAck. It's broadcast in Layer 3 but unicast in Layer 2.
As you see, at Layer 3 all communication is broadcast. This makes sense as the client does not have an IP address. However, what many people overlook is both client and server have Layer 2 (i.e. MAC) addresses, so unicast communication is possible at Layer 2.At Layer 2, the client's messages are always broadcast, and those of the server's can be unicast or broadcast depending on how vendor implemented it.
That's true when the device has no IP, but when the DHCP lease is about toi end the following order is used to renew the SHCP lease:
DHCP Discover - Broadcast
DHCP Offer - Unicast
DHCP Request - Broadcast
DHCP ACK - Unicast
At least that's how I understand it....
Don't be so sure on that
I've only tested using Cisco as a dhcp server, so i cant say whats true regarding microsoft behavior, but it is possible the microsoft documentation is wrong if it's anything like cisco documentation.
Ah, has to do with a broadcast flag in the DHCP discover packet.
In another case, someone had put in a subnet mask in the default-router IP setting. XP would accept that and ignore the extra info, but Vista/XP didn't like that. But that digresses from the topic of broadcasts and unicasts in DHCP.