Do routers forward broadcast traffic?Can a Bridge forward frames with the destination as broadcast/multicastDifference between local broadcast and directed broadcastHow broadcasting works on different networks?pinging broadcast addressRouter and broadcast domainsReducing broadcast traffic on Cisco SG300How does broadcast work in cable networks?Broadcast storm generationCan a large broadcast domain break accesspointsDoesn't a router stop broadcast?

If I arrive in the UK, and then head to mainland Europe, does my Schengen visa 90 day limit start when I arrived in the UK, or mainland Europe?

How to teach an undergraduate course without having taken that course formally before?

Why does the painters tape have to be blue?

Toxic, harassing lab environment

What is the limit to a Glyph of Warding's trigger?

Is it safe to redirect stdout and stderr to the same file without file descriptor copies?

The disk image is 497GB smaller than the target device

Piping the output of comand columns

Have any humans orbited the Earth in anything other than a prograde orbit?

Time complexity of an algorithm: Is it important to state the base of the logarithm?

Physical only checkdb is failing, but full one is completed successfully

Why did other houses not demand this?

Why was this character made Grand Maester?

Goldfish unresponsive, what should I do?

Flatten not working

What is the purpose of the yellow wired panels on the IBM 360 Model 20?

Possibility of faking someone's public key

Why did OJ Simpson's trial take 9 months?

Merge pdfs sequentially

Paired t-test means that the variances of the 2 samples are the same?

How to write numbers and percentage?

Cisco 3750X Power Cable

Count all vowels in string

These Two Cubes are The Only Ones That Are All Pure Prime..name them



Do routers forward broadcast traffic?


Can a Bridge forward frames with the destination as broadcast/multicastDifference between local broadcast and directed broadcastHow broadcasting works on different networks?pinging broadcast addressRouter and broadcast domainsReducing broadcast traffic on Cisco SG300How does broadcast work in cable networks?Broadcast storm generationCan a large broadcast domain break accesspointsDoesn't a router stop broadcast?













1















Consider a host on 10.0.0.0/24 sending a packet to 10.0.0.255 and 10.255.255.255.



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?










share|improve this question






















  • NB: It doesn't have to be a datagram, but most time it will be one.

    – Max Ried
    May 9 at 7:31















1















Consider a host on 10.0.0.0/24 sending a packet to 10.0.0.255 and 10.255.255.255.



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?










share|improve this question






















  • NB: It doesn't have to be a datagram, but most time it will be one.

    – Max Ried
    May 9 at 7:31













1












1








1


2






Consider a host on 10.0.0.0/24 sending a packet to 10.0.0.255 and 10.255.255.255.



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?










share|improve this question














Consider a host on 10.0.0.0/24 sending a packet to 10.0.0.255 and 10.255.255.255.



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?







broadcast






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked May 9 at 5:59









WeezyWeezy

1334




1334












  • NB: It doesn't have to be a datagram, but most time it will be one.

    – Max Ried
    May 9 at 7:31

















  • NB: It doesn't have to be a datagram, but most time it will be one.

    – Max Ried
    May 9 at 7:31
















NB: It doesn't have to be a datagram, but most time it will be one.

– Max Ried
May 9 at 7:31





NB: It doesn't have to be a datagram, but most time it will be one.

– Max Ried
May 9 at 7:31










3 Answers
3






active

oldest

votes


















6














IPv4 uses limited broadcasts (to 255.255.255.255) and directed broadcasts (to the subnet address with all host bits set to 1, e.g. 10.0.0.255 for the 10.0.0.0/24 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 10.0.0.0/24 sending a packet to 10.0.0.255 and 10.255.255.255.




10.0.0.255 is the host subnet's directed broadcast address and gets sent as a broadcast.



10.255.255.255 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. 10.255.255.1/24) 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.






share|improve this answer

























  • So I understand that 10.255.255.255 classifies as a directed broadcast and default behavior is to not forward such packets right?

    – Weezy
    May 9 at 8:16






  • 2





    @Weezy 10.255.255.255 may be a directed broadcast. That depends on the destination subnet. E.g. 10.0.15.255 is a directed broadcast for the 10.0.0.0/20 subnet but it could also be a normal host address in the 10.0.0.0/19 subnet. 10.255.255.255 wouldn't be a broadcast address in the 10.0.0.0/7 or in the 10.255.255.254/31 subnets.

    – Zac67
    May 9 at 8:22



















3














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 255.255.255.255, and the network broadcast address which is 10.0.0.255 for 10.0.0.0/24. 10.255.255.255 is no broadcast address for 10.0.0.0/24. 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 10.0.0.255, it has no way of knowing that this address is a broadcast address. Actually, only the routers directly connected to 10.0.0.0/24 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 255.255.255.255. 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 10.0.0.0/24 knows that 10.0.0.255/24 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.






share|improve this answer

























  • 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").

    – Marc 'netztier' Luethi
    May 9 at 7:41











  • I had this included in a previous draft of the answer. Adjusted.

    – Max Ried
    May 9 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.

    – Marc 'netztier' Luethi
    May 9 at 8:13


















0














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 10.0.0.0/24 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 10.0.0.255 is a broadcast address. 10.255.255.255 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 10.255.255.255 is not related to your network. You wont receive any traffic from this ip adress.






share|improve this answer























  • You misunderstood my question. I'm well aware that 10.255.255.255 is not a part of the local network.

    – Weezy
    May 9 at 8:17











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "496"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fnetworkengineering.stackexchange.com%2fquestions%2f58997%2fdo-routers-forward-broadcast-traffic%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























3 Answers
3






active

oldest

votes








3 Answers
3






active

oldest

votes









active

oldest

votes






active

oldest

votes









6














IPv4 uses limited broadcasts (to 255.255.255.255) and directed broadcasts (to the subnet address with all host bits set to 1, e.g. 10.0.0.255 for the 10.0.0.0/24 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 10.0.0.0/24 sending a packet to 10.0.0.255 and 10.255.255.255.




10.0.0.255 is the host subnet's directed broadcast address and gets sent as a broadcast.



10.255.255.255 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. 10.255.255.1/24) 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.






share|improve this answer

























  • So I understand that 10.255.255.255 classifies as a directed broadcast and default behavior is to not forward such packets right?

    – Weezy
    May 9 at 8:16






  • 2





    @Weezy 10.255.255.255 may be a directed broadcast. That depends on the destination subnet. E.g. 10.0.15.255 is a directed broadcast for the 10.0.0.0/20 subnet but it could also be a normal host address in the 10.0.0.0/19 subnet. 10.255.255.255 wouldn't be a broadcast address in the 10.0.0.0/7 or in the 10.255.255.254/31 subnets.

    – Zac67
    May 9 at 8:22
















6














IPv4 uses limited broadcasts (to 255.255.255.255) and directed broadcasts (to the subnet address with all host bits set to 1, e.g. 10.0.0.255 for the 10.0.0.0/24 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 10.0.0.0/24 sending a packet to 10.0.0.255 and 10.255.255.255.




10.0.0.255 is the host subnet's directed broadcast address and gets sent as a broadcast.



10.255.255.255 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. 10.255.255.1/24) 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.






share|improve this answer

























  • So I understand that 10.255.255.255 classifies as a directed broadcast and default behavior is to not forward such packets right?

    – Weezy
    May 9 at 8:16






  • 2





    @Weezy 10.255.255.255 may be a directed broadcast. That depends on the destination subnet. E.g. 10.0.15.255 is a directed broadcast for the 10.0.0.0/20 subnet but it could also be a normal host address in the 10.0.0.0/19 subnet. 10.255.255.255 wouldn't be a broadcast address in the 10.0.0.0/7 or in the 10.255.255.254/31 subnets.

    – Zac67
    May 9 at 8:22














6












6








6







IPv4 uses limited broadcasts (to 255.255.255.255) and directed broadcasts (to the subnet address with all host bits set to 1, e.g. 10.0.0.255 for the 10.0.0.0/24 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 10.0.0.0/24 sending a packet to 10.0.0.255 and 10.255.255.255.




10.0.0.255 is the host subnet's directed broadcast address and gets sent as a broadcast.



10.255.255.255 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. 10.255.255.1/24) 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.






share|improve this answer















IPv4 uses limited broadcasts (to 255.255.255.255) and directed broadcasts (to the subnet address with all host bits set to 1, e.g. 10.0.0.255 for the 10.0.0.0/24 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 10.0.0.0/24 sending a packet to 10.0.0.255 and 10.255.255.255.




10.0.0.255 is the host subnet's directed broadcast address and gets sent as a broadcast.



10.255.255.255 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. 10.255.255.1/24) 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.







share|improve this answer














share|improve this answer



share|improve this answer








edited May 9 at 8:32

























answered May 9 at 8:13









Zac67Zac67

35.1k22572




35.1k22572












  • So I understand that 10.255.255.255 classifies as a directed broadcast and default behavior is to not forward such packets right?

    – Weezy
    May 9 at 8:16






  • 2





    @Weezy 10.255.255.255 may be a directed broadcast. That depends on the destination subnet. E.g. 10.0.15.255 is a directed broadcast for the 10.0.0.0/20 subnet but it could also be a normal host address in the 10.0.0.0/19 subnet. 10.255.255.255 wouldn't be a broadcast address in the 10.0.0.0/7 or in the 10.255.255.254/31 subnets.

    – Zac67
    May 9 at 8:22


















  • So I understand that 10.255.255.255 classifies as a directed broadcast and default behavior is to not forward such packets right?

    – Weezy
    May 9 at 8:16






  • 2





    @Weezy 10.255.255.255 may be a directed broadcast. That depends on the destination subnet. E.g. 10.0.15.255 is a directed broadcast for the 10.0.0.0/20 subnet but it could also be a normal host address in the 10.0.0.0/19 subnet. 10.255.255.255 wouldn't be a broadcast address in the 10.0.0.0/7 or in the 10.255.255.254/31 subnets.

    – Zac67
    May 9 at 8:22

















So I understand that 10.255.255.255 classifies as a directed broadcast and default behavior is to not forward such packets right?

– Weezy
May 9 at 8:16





So I understand that 10.255.255.255 classifies as a directed broadcast and default behavior is to not forward such packets right?

– Weezy
May 9 at 8:16




2




2





@Weezy 10.255.255.255 may be a directed broadcast. That depends on the destination subnet. E.g. 10.0.15.255 is a directed broadcast for the 10.0.0.0/20 subnet but it could also be a normal host address in the 10.0.0.0/19 subnet. 10.255.255.255 wouldn't be a broadcast address in the 10.0.0.0/7 or in the 10.255.255.254/31 subnets.

– Zac67
May 9 at 8:22






@Weezy 10.255.255.255 may be a directed broadcast. That depends on the destination subnet. E.g. 10.0.15.255 is a directed broadcast for the 10.0.0.0/20 subnet but it could also be a normal host address in the 10.0.0.0/19 subnet. 10.255.255.255 wouldn't be a broadcast address in the 10.0.0.0/7 or in the 10.255.255.254/31 subnets.

– Zac67
May 9 at 8:22












3














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 255.255.255.255, and the network broadcast address which is 10.0.0.255 for 10.0.0.0/24. 10.255.255.255 is no broadcast address for 10.0.0.0/24. 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 10.0.0.255, it has no way of knowing that this address is a broadcast address. Actually, only the routers directly connected to 10.0.0.0/24 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 255.255.255.255. 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 10.0.0.0/24 knows that 10.0.0.255/24 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.






share|improve this answer

























  • 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").

    – Marc 'netztier' Luethi
    May 9 at 7:41











  • I had this included in a previous draft of the answer. Adjusted.

    – Max Ried
    May 9 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.

    – Marc 'netztier' Luethi
    May 9 at 8:13















3














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 255.255.255.255, and the network broadcast address which is 10.0.0.255 for 10.0.0.0/24. 10.255.255.255 is no broadcast address for 10.0.0.0/24. 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 10.0.0.255, it has no way of knowing that this address is a broadcast address. Actually, only the routers directly connected to 10.0.0.0/24 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 255.255.255.255. 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 10.0.0.0/24 knows that 10.0.0.255/24 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.






share|improve this answer

























  • 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").

    – Marc 'netztier' Luethi
    May 9 at 7:41











  • I had this included in a previous draft of the answer. Adjusted.

    – Max Ried
    May 9 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.

    – Marc 'netztier' Luethi
    May 9 at 8:13













3












3








3







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 255.255.255.255, and the network broadcast address which is 10.0.0.255 for 10.0.0.0/24. 10.255.255.255 is no broadcast address for 10.0.0.0/24. 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 10.0.0.255, it has no way of knowing that this address is a broadcast address. Actually, only the routers directly connected to 10.0.0.0/24 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 255.255.255.255. 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 10.0.0.0/24 knows that 10.0.0.255/24 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.






share|improve this answer















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 255.255.255.255, and the network broadcast address which is 10.0.0.255 for 10.0.0.0/24. 10.255.255.255 is no broadcast address for 10.0.0.0/24. 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 10.0.0.255, it has no way of knowing that this address is a broadcast address. Actually, only the routers directly connected to 10.0.0.0/24 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 255.255.255.255. 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 10.0.0.0/24 knows that 10.0.0.255/24 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.







share|improve this answer














share|improve this answer



share|improve this answer








edited May 9 at 10:45









Marc 'netztier' Luethi

4,9111420




4,9111420










answered May 9 at 7:29









Max RiedMax Ried

1549




1549












  • 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").

    – Marc 'netztier' Luethi
    May 9 at 7:41











  • I had this included in a previous draft of the answer. Adjusted.

    – Max Ried
    May 9 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.

    – Marc 'netztier' Luethi
    May 9 at 8:13

















  • 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").

    – Marc 'netztier' Luethi
    May 9 at 7:41











  • I had this included in a previous draft of the answer. Adjusted.

    – Max Ried
    May 9 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.

    – Marc 'netztier' Luethi
    May 9 at 8:13
















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").

– Marc 'netztier' Luethi
May 9 at 7:41





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").

– Marc 'netztier' Luethi
May 9 at 7:41













I had this included in a previous draft of the answer. Adjusted.

– Max Ried
May 9 at 7:50





I had this included in a previous draft of the answer. Adjusted.

– Max Ried
May 9 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.

– Marc 'netztier' Luethi
May 9 at 8:13





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.

– Marc 'netztier' Luethi
May 9 at 8:13











0














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 10.0.0.0/24 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 10.0.0.255 is a broadcast address. 10.255.255.255 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 10.255.255.255 is not related to your network. You wont receive any traffic from this ip adress.






share|improve this answer























  • You misunderstood my question. I'm well aware that 10.255.255.255 is not a part of the local network.

    – Weezy
    May 9 at 8:17















0














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 10.0.0.0/24 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 10.0.0.255 is a broadcast address. 10.255.255.255 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 10.255.255.255 is not related to your network. You wont receive any traffic from this ip adress.






share|improve this answer























  • You misunderstood my question. I'm well aware that 10.255.255.255 is not a part of the local network.

    – Weezy
    May 9 at 8:17













0












0








0







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 10.0.0.0/24 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 10.0.0.255 is a broadcast address. 10.255.255.255 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 10.255.255.255 is not related to your network. You wont receive any traffic from this ip adress.






share|improve this answer













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 10.0.0.0/24 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 10.0.0.255 is a broadcast address. 10.255.255.255 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 10.255.255.255 is not related to your network. You wont receive any traffic from this ip adress.







share|improve this answer












share|improve this answer



share|improve this answer










answered May 9 at 6:45









infrainfra

81218




81218












  • You misunderstood my question. I'm well aware that 10.255.255.255 is not a part of the local network.

    – Weezy
    May 9 at 8:17

















  • You misunderstood my question. I'm well aware that 10.255.255.255 is not a part of the local network.

    – Weezy
    May 9 at 8:17
















You misunderstood my question. I'm well aware that 10.255.255.255 is not a part of the local network.

– Weezy
May 9 at 8:17





You misunderstood my question. I'm well aware that 10.255.255.255 is not a part of the local network.

– Weezy
May 9 at 8:17

















draft saved

draft discarded
















































Thanks for contributing an answer to Network Engineering Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fnetworkengineering.stackexchange.com%2fquestions%2f58997%2fdo-routers-forward-broadcast-traffic%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company