I was reading DHCP ( RFC 2131 ), I have basic knowledge about Relay Agent and Broadcasting. But for Understanding DHCP in depth, I felt like I have to know Broadcasting and Relay Agent ( RFC 1542 ) in details. But could not find any RFC (RFC919,922 not much helpful) for broadcasting in details.

  1. How broadcast packet routes ? Because if the packet is intended for a different network than source, obviously the router will drop the packet. Is there any protocols for this ? Does router prevents all broadcasting or only the Limited/Local broadcast ?

  2. Can we send a packet with destination as a direct/limited broadcast IP without a broadcast MAC address ? If Yes, I think because of a perticular MAC address the packet will forward to a single Host, So the question, in which case this would be helpful.

  3. Consider a router is enabled by relay agent. When a DHCPDiscover ( which is a broadcast packet ) comes to that router, How does it proceed ? Because first thing its a broad cast IP also the network "0" is there, Does always relay-agent first checks the packet if the Packet is of DHCP ?

My questions are not from a perticular subject (DHCP ond Broadcasting ), so you might be angry, But Please do help me. Thank You


3 Answers 3


How Routers Handle Limited and Directed Broadcasts

The first thing to understand to answer your questions is that limited broadcast frames are not routed. By default when a router receives a frame with a destination address that is broadcast at either layer 2 or layer 3, the router simply drops the frame. That's why routers are said to be the boundary of broadcast domains.

Some examples of these would be:

  • ff-ff-ff-ff-ff-ff (layer 2 broadcast)
  • (layer 3 limited broadcast)

Thinking about it, this makes sense. If routers forwarded broadcasts a single arp request would reach every single reachable host on the internet which would be terribly inefficient and rather silly.

Directed broadcasts on the other hand are sometimes routed. (I.E. Normally by default this functionality is disabled but can be enabled by issuing the ip directed-broadcast command on the router. This will allow it to forward directed broadcasts according to its routing table as if they were normal packets. This does not however allow the router to forward limited broadcasts, those are still blocked by default. This is also slightly off topic as to your original question, see this cisco forms page for more on this.

Layer 3 Broadcast But not Layer 2?

To answer your second question, it would make no sense to have a frame with a layer 3 broadcast address without a layer 2 broadcast address. This would defeat the entire purpose of it being a broadcast frame and just not work outright. Having a unicast layer 2 destination address would not change the router's behavior at all since the router makes its decisions at layer 3. All the router cares about is that destination address and drops the packet.

Where this would matter is with switches which don't care about the layer 3 address at all. The switches would only see the unicast layer 2 address. Instead of sending the packet out all interfaces on the same vlan it would use the source address table (SAT) like it would with any other unicast destination address. In effect, by assigning a unicast layer 2 address the frame is no longer a broadcast frame at all even though it has the address at layer 3.

How DHCP Relay Works in Practice

As for your last question, DHCP relay is a router's way of "cheating" around the rule about not forwarding broadcast packets. Let's look at a DHCP Discover packet:

  • Source MAC: [unicast mac of the source]
  • Dest MAC: ff-ff-ff-ff-ff-ff
  • Source IP:
  • Destination IP:
  • Source Port: UDP 68
  • Destination Port: UDP 67

When the router sees a packet arrive on an interface with the ip helper-address command configured it checks to see is it matches any of the protocols that are "helped" by default or configured with the global ip forward-protocol command. In this case because it's DHCP the router sees that the destination port matches UDP 67 and allows the packet to be "helped". The router then changes the destination IP address from to the IP address configured by the ip helper-address command as well as changing the source address to the address of the router interface on which the packet arrived and passes the packet along to the rest of the routing logic.

Now that the packet has a unicast destination address the router treats it like any other packet. It arps for the destination IP address (which is now that helper address) and then replaces the layer 2 addresses before sending the packet out the appropriate interface.

Getting Back Again

The router uses essentially the same process in reverse for the DHCP offer that is sent back to the client. The DHCP servers sends the offer to the IP address that was specified as the source address on the DHCP Discover packet. So the packet leaving the DHCP server looks like:

  • Source MAC: unicast mac of the DHCP server
  • Dest MAC: mac address of the router or the DHCP server's default gateway
  • Source IP: unicast IP address of the DHCP server
  • Destination IP: ip address of the first router interface that the DHCP Discover packet reached
  • Source Port: UDP 67
  • Destination Port: UDP 68

Since this packet has a unicast layer 3 destination address routers will forward the packet normally until it reaches the router with an interface that has an IP address matching the destination IP of the packet. Remember from earlier that this router has the ip helper-address configuration on that interface still. The router checks if the packet is a DHCP Offer then rewrites the packet to become a broadcast packet and sends it back out that interface knowing that the DHCP client is somewhere on that network segment. The packet leaving the router now looks like this.

  • Source MAC: unicast mac of the router interface
  • Dest MAC: ff-ff-ff-ff-ff-ff
  • Source IP: unicast IP address of the DHCP server
  • Destination IP:
  • Source Port: UDP 67
  • Destination Port: UDP 68

TL:DR; DHCP relay using the ip helper-address interface subcommand "cheats" around the rule that routers cannot forward limited broadcasts by changing the packet's destination IP address to the unicast IP address of the DHCP server before routing it. This allows all routers down the line to route the packet appropriately to the DHCP server. When replying the DHCP server sends the packet back to the unicast IP address of the router interface that first received the DHCP Discover packet (the one with the ip helper-interface command). When the router receives the offer back it converts it back to a broadcast packet and sends it out the interface with the client in its broadcast domain.

  • Ty Bad Wolf, this is very very useful, Thank You @Bad Wolf Commented Jul 24, 2014 at 5:35
  1. A router will forward a directed broadcast, such as if configured to do so. For Cisco you can disable this behavior with 'no ip directed-broadcast' under the interface.

To get the router to forward a local broadcast,, from one interface to another you would need to bridge those two interfaces. IE configuring either IRB or CRB and a BVI.

  1. This would not be possible. The router will build a new Dst MAC address for every link it has to forward out to.

  2. The router sees that it is a DHCP packet and sends it via unicast to the provisioned DHCP 'helper' address.

Here is a good article that may help and give further details...




There is no specific standard for broadcasting. They use regular IP (Internet Protocol) to send and receive to/from specifically addresses.

I have worked on several brands of automation systems, most of which are server-based. They use regular networking equipment like your office PC network. I have even seen both run on the same system, but that doesn't work at large stations because a single user might cause interruptions of broadcast audio. It is best to keep them separate.

The only place where it might make sense to have them connected is in "traffic" - making sure commercials get played per contract, and logging to verify same.

The way these broadcast audio systems work is very much like a mail server or Netflix. The particular studio will "ask" the server for a specific file (a song or promo, etc.) then will stream it through the control board to an output leading to the transmitter. Playlists are usually set up from one PC in the PD (program director)'s office.

You asked about DHCP. It is simply a way to automatically assign addresses to the control boards in the studios, and the PD's PC. The specific addresses themselves are not important, much like your address on your ISP when you reach out to the mail server to retrieve your email or to Netflix to watch a video.

The only address that is important is the server itself. Just like your email server - pop.xyzcorp.com and smtp.xyzcorp.com, or www.netflix.com. Those addresses are generally coded into each studio just like your email program 'remembers' the addresses to the server used for sending and receiving email.

Most automation server systems provide DHCP services (whether in the same box or another on the network), so you do not need to enter static IP addresses for each client studio.

If your question is how the signals don't get tangled up and sent to the wrong place, your answer is probably found in the switches that interconnect studios with the servers. They examine the destination address and send the packets out the correct port for the studio with that particular address.

Yes, in the industry the whole thing is colloquially called a router, but that is a holdover from the old television days where the router was a physical unit that sent video signals from one place to another.

They were crosspoint switchers, but were called routers simply because when you instructed them to take video from input x and send it to output y they would take care of routing the signal as instructed.

Network switches are smart enough to send the server files to the correct studio, much like your ISP sends your email just to you and not to all your neighbors. That is the nature of IP (Internet Protocol).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.