Consider a host on sending a packet to and

In the first case all hosts on his subnet should recieve the packets but would the entire network receive the packet in the latter case? Do routers forward such datagrams? If not, what are the exceptions to the rule?

  • NB: It doesn't have to be a datagram, but most time it will be one.
    – bot47
    Commented May 9, 2019 at 7:31

3 Answers 3


IPv4 uses limited broadcasts (to and directed broadcasts (to the subnet address with all host bits set to 1, e.g. for the subnet).

Limited broadcasts are generally not routable and won't be forwarded.

Directed broadcasts are routable in principle but won't be forwarded by default. However, many routers can be configured to forward them. Often, directed broadcast forwarding is limited by the admin to special cases, e.g. for wake-on-LAN (by source IP, transport protocol & port, destination subnet, ...).

Consider a host on sending a packet to and is the host subnet's directed broadcast address and gets sent as a broadcast. is outside the host's subnet, so it is send to the according gateway. Usually, it is actually forwarded until the last hop (e.g. discovers it to be a directed broadcast and drops it.

Any intermediate hop can't actually decide whether it's a broadcast or not (the destination may not even support broadcasting) unless it's specifically configured that way.

An intermediate router could decide to drop the apparent broadcast if it has a specific route to the destination subnet.

  • So I understand that classifies as a directed broadcast and default behavior is to not forward such packets right?
    – Weezy
    Commented May 9, 2019 at 8:16
  • 2
    @Weezy may be a directed broadcast. That depends on the destination subnet. E.g. is a directed broadcast for the subnet but it could also be a normal host address in the subnet. wouldn't be a broadcast address in the or in the subnets.
    – Zac67
    Commented May 9, 2019 at 8:22

First of all: Routers won't forward broadcast traffic.

From this point I'm talking about IPv4 over Ethernet, because different technologies have different ideas if something like broadcast exists or not. In this case, this also applies to WLAN, so it might be applicable to your scenario.

At first we should distinguish between two kinds of broadcast addresses: the broadcast address, and the network broadcast address which is for is no broadcast address for It doesn't even belong to the network. Actually, you even can't be sure it really is a broadcast address (It often is, though). When a client on a different network sends a packet to the address, it has no way of knowing that this address is a broadcast address. Actually, only the routers directly connected to know it's the network broadcast address. Generally speaking, routers will unicast-forward incoming packets which have a network broadcast address as destination, unless they are directly connected to that network/subnet and therefore know that the destination address is a broadcast address. This is because you would be easily able to saturate all Ethernet links belonging to the destination network as switches will broadcast the packet (frame) to all ports belonging to that (layer 2) network.

Now imagine the case of What would happen if it was happily routed? It would end up in any network that is reachable through routing. So this is an obvious exception.

The rule for the exception is: Only forward packets, that have the destination Ethernet address set to the address of the incoming interface on the router. Don't forward packets of which you know they will be a broadcast on the destination network.

A host on knows that will usually be the network broadcast. It will set the destination Ethernet address to the address defined as broadcast, which is all FF. This certainly isn't the address the router cares about for forwarding.

There are some mechanisms for forwarding selected broadcasts between selected networks, e.g. for spreading UPnP through collision domain borders. Those is often proxied, though.

  • Generally speaking routers will not forward incoming packets which have the network broadcast address as destination. You may want to add some precision or context to that statement. It is only true for routers that have an interface into that subnet and thus know that what the network broadcast address of that subnet happens to be. Any other router NOT having an interface into that subnet will just treat that packet as unicast and forward it according to the forwarding information base (a.k.a. "routing table"). Commented May 9, 2019 at 7:41
  • I had this included in a previous draft of the answer. Adjusted.
    – bot47
    Commented May 9, 2019 at 7:50
  • Sorry to nitpick again; you might want to check again, there's a double negation in there: as they won't know should probably be something like as only they know. Even better, the statement should not be negated in the first part: Generally, routers _will_ unicast-forward incoming packets which have a network broadcast address as destination, _unless_ they are directly connected to that network/subnet and therefore know that the destination address is a broadcast address. Commented May 9, 2019 at 8:13

You have to have good understanding about Network IP vs Broadcast IP.

Network Address is first Ip address of the network and it will not be random ip address and it will help to identify Network segment. All address in same network address part will be in same network segment. As per your example is a network address and network address part is 10.0.0. last 0(zero) represent number of host in network segment.

Broadcast address is last address and it use to address all nodes in network.

In your case is a broadcast address. is not related to your network because your subnet is /24. /24 means, you are not allowed to change 24 bit in your address when it is in binary format.

Therefore is not related to your network. You wont receive any traffic from this ip adress.

  • You misunderstood my question. I'm well aware that is not a part of the local network.
    – Weezy
    Commented May 9, 2019 at 8:17

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.