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

Club Baloncesto Breogán Índice Historia | Pavillón | Nome | O Breogán na cultura popular | Xogadores | Adestradores | Presidentes | Palmarés | Historial | Líderes | Notas | Véxase tamén | Menú de navegacióncbbreogan.galCadroGuía oficial da ACB 2009-10, páxina 201Guía oficial ACB 1992, páxina 183. Editorial DB.É de 6.500 espectadores sentados axeitándose á última normativa"Estudiantes Junior, entre as mellores canteiras"o orixinalHemeroteca El Mundo Deportivo, 16 setembro de 1970, páxina 12Historia do BreogánAlfredo Pérez, o último canoneiroHistoria C.B. BreogánHemeroteca de El Mundo DeportivoJimmy Wright, norteamericano do Breogán deixará Lugo por ameazas de morteResultados de Breogán en 1986-87Resultados de Breogán en 1990-91Ficha de Velimir Perasović en acb.comResultados de Breogán en 1994-95Breogán arrasa al Barça. "El Mundo Deportivo", 27 de setembro de 1999, páxina 58CB Breogán - FC BarcelonaA FEB invita a participar nunha nova Liga EuropeaCharlie Bell na prensa estatalMáximos anotadores 2005Tempada 2005-06 : Tódolos Xogadores da Xornada""Non quero pensar nunha man negra, mais pregúntome que está a pasar""o orixinalRaúl López, orgulloso dos xogadores, presume da boa saúde económica do BreogánJulio González confirma que cesa como presidente del BreogánHomenaxe a Lisardo GómezA tempada do rexurdimento celesteEntrevista a Lisardo GómezEl COB dinamita el Pazo para forzar el quinto (69-73)Cafés Candelas, patrocinador del CB Breogán"Suso Lázare, novo presidente do Breogán"o orixinalCafés Candelas Breogán firma el mayor triunfo de la historiaEl Breogán realizará 17 homenajes por su cincuenta aniversario"O Breogán honra ao seu fundador e primeiro presidente"o orixinalMiguel Giao recibiu a homenaxe do PazoHomenaxe aos primeiros gladiadores celestesO home que nos amosa como ver o Breo co corazónTita Franco será homenaxeada polos #50anosdeBreoJulio Vila recibirá unha homenaxe in memoriam polos #50anosdeBreo"O Breogán homenaxeará aos seus aboados máis veteráns"Pechada ovación a «Capi» Sanmartín e Ricardo «Corazón de González»Homenaxe por décadas de informaciónPaco García volve ao Pazo con motivo do 50 aniversario"Resultados y clasificaciones""O Cafés Candelas Breogán, campión da Copa Princesa""O Cafés Candelas Breogán, equipo ACB"C.B. Breogán"Proxecto social"o orixinal"Centros asociados"o orixinalFicha en imdb.comMario Camus trata la recuperación del amor en 'La vieja música', su última película"Páxina web oficial""Club Baloncesto Breogán""C. B. Breogán S.A.D."eehttp://www.fegaba.com

Vilaño, A Laracha Índice Patrimonio | Lugares e parroquias | Véxase tamén | Menú de navegación43°14′52″N 8°36′03″O / 43.24775, -8.60070

Cegueira Índice Epidemioloxía | Deficiencia visual | Tipos de cegueira | Principais causas de cegueira | Tratamento | Técnicas de adaptación e axudas | Vida dos cegos | Primeiros auxilios | Crenzas respecto das persoas cegas | Crenzas das persoas cegas | O neno deficiente visual | Aspectos psicolóxicos da cegueira | Notas | Véxase tamén | Menú de navegación54.054.154.436928256blindnessDicionario da Real Academia GalegaPortal das Palabras"International Standards: Visual Standards — Aspects and Ranges of Vision Loss with Emphasis on Population Surveys.""Visual impairment and blindness""Presentan un plan para previr a cegueira"o orixinalACCDV Associació Catalana de Cecs i Disminuïts Visuals - PMFTrachoma"Effect of gene therapy on visual function in Leber's congenital amaurosis"1844137110.1056/NEJMoa0802268Cans guía - os mellores amigos dos cegosArquivadoEscola de cans guía para cegos en Mortágua, PortugalArquivado"Tecnología para ciegos y deficientes visuales. Recopilación de recursos gratuitos en la Red""Colorino""‘COL.diesis’, escuchar los sonidos del color""COL.diesis: Transforming Colour into Melody and Implementing the Result in a Colour Sensor Device"o orixinal"Sistema de desarrollo de sinestesia color-sonido para invidentes utilizando un protocolo de audio""Enseñanza táctil - geometría y color. Juegos didácticos para niños ciegos y videntes""Sistema Constanz"L'ocupació laboral dels cecs a l'Estat espanyol està pràcticament equiparada a la de les persones amb visió, entrevista amb Pedro ZuritaONCE (Organización Nacional de Cegos de España)Prevención da cegueiraDescrición de deficiencias visuais (Disc@pnet)Braillín, un boneco atractivo para calquera neno, con ou sen discapacidade, que permite familiarizarse co sistema de escritura e lectura brailleAxudas Técnicas36838ID00897494007150-90057129528256DOID:1432HP:0000618D001766C10.597.751.941.162C97109C0155020