12-29-2010 02:56 AM - edited 03-06-2019 02:44 PM
Hi every body.
Let say we have enabled forwarding of broadcast on our router. Please consider the following routing table.
R 10.0.0.0/8 via s0
R 10.0.0.0/16 via s1
R 10.10.10.0/24 via s3
scenario #1
router receives a packet with destination ip 10.0.255.255.
Since that ip address (10.255.255.255) falls with in the range of both 10.0.0.0/8 and 10.0.0.0/16 ranges, router will forward the packet out of s1 and s0.
Is it correct?
thanks and happy new year to all of you.
Solved! Go to Solution.
12-29-2010 03:54 AM
Hello Sarahr202.
With unicast destination address the rule is "longest match".
So the router would forward the packet via s1.
With directed broadcast destination address I presume the rule is the same.
If nobody will confirm, I will try your scenario with the GNS simulator.
12-29-2010 04:03 AM
Hello,
Correct, the router will use the longest prefix match also on a destination address that constitutes a directed broadcast. In fact, the directed broadcast has the true meaning of a broadcast only on the router that is directly connected to the destination network. Routers farther away from the destination network do not make any assumptions whether the address is or can be considered a directed broadcast address - they cannot do a competent decision because their routing tables may contain summarized or superficially subnetted entries. So for all routers, the destination IP, be it a directed broadcast or a unicast destination IP, it is just an IP and will be routed in a completely normal fashion. It is only the last hop router that will encapsulate this packet into a broadcast frame and send it out the destination interface.
Best regards,
Peter
12-29-2010 02:59 AM
correction please 10.255.255.255 should be read as 10.0.255.255, the destination ip address.
12-29-2010 03:54 AM
Hello Sarahr202.
With unicast destination address the rule is "longest match".
So the router would forward the packet via s1.
With directed broadcast destination address I presume the rule is the same.
If nobody will confirm, I will try your scenario with the GNS simulator.
12-29-2010 04:03 AM
Hello,
Correct, the router will use the longest prefix match also on a destination address that constitutes a directed broadcast. In fact, the directed broadcast has the true meaning of a broadcast only on the router that is directly connected to the destination network. Routers farther away from the destination network do not make any assumptions whether the address is or can be considered a directed broadcast address - they cannot do a competent decision because their routing tables may contain summarized or superficially subnetted entries. So for all routers, the destination IP, be it a directed broadcast or a unicast destination IP, it is just an IP and will be routed in a completely normal fashion. It is only the last hop router that will encapsulate this packet into a broadcast frame and send it out the destination interface.
Best regards,
Peter
12-29-2010 04:20 AM
Hello Peter and thanks for your, as usual, helpful explanation.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide