This topic is to discuss the following lesson:
Why is hop-by-hop messaging different from dense mode flooding ?
With dense mode flooding, the router will flood the original IP multicast packet that it receives on one interface on other PIM enabled interfaces.
The hop-by-hop behavior of BSR is a bit similar but these packets have a TTL of 1. When the router receives these packets, it replicates the receiving packet and sends a new packet (with the same information) on its PIM enabled interfaces.
Super lesson. Just noticed the first picture as the wrong pim multicast adress 188.8.131.52 instead of 184.108.40.206.
Thanks Maikel, just fixed it.
I have another question for you. I notice that each time BSR candidate configuration is created, a new tunnel is created? Can you please elaborate?
These tunnel interfaces are used to communicate with the RP. You can see some examples here:
Got a question about the hash mask - wouldn’t it always be best to use a 31 bit hash mask?
That way one group will be assigned per RP, then it “rolls over” back to the first RP etc.
If you set it to /32, you will have one group per RPR. If you use /31, each RP will have two groups.
I have one question. Can we implement both RP & BSR on the same router? Also, can we do the same thing with Cisco Auto-RP (RP & Mapping Agent on the same router)?
You can enable Auto-RP & BSR (and static RP) on the same router yes. Here’s a quick example:
R1#show ip pim rp mapping PIM Group-to-RP Mappings Group(s) 220.127.116.11/4 RP 18.104.22.168 (?), v2v1 Info source: 22.214.171.124 (?), elected via Auto-RP Uptime: 00:00:23, expires: 00:02:32 RP 126.96.36.199 (?), v2 Info source: 188.8.131.52 (?), via bootstrap, priority 0, holdtime 150 Uptime: 00:02:11, expires: 00:02:11
R2 advertises itself as an RP with Auto-RP, R4 with BSR. R1 seems to prefer Auto-RP.
Interesting to know is that with RP selection, the router prefers RPs that were learned through Auto-RP or BSR over static RPs!
There’s not really a reason to use both Auto-RP and BSR but technically, you could use AutoRP to serve a set of multicast groups and BSR another set of multicast groups.
Running the Auto RP and mapping agent on the same router is no problem, on small networks (and labs) I usually do this.
The lab that I have created seems to conflict with the second determining factor you have listed, used to select the RP for a particular group. The RP with the lowest priority (default 0) wins the election.
R4#sho ip pim rp-hash 184.108.40.206 RP 220.127.116.11 (?), v2 Info source: 18.104.22.168 (?), via bootstrap, priority 0, holdtime 150 Uptime: 00:05:53, expires: 00:01:38 PIMv2 Hash Value (mask 0.0.0.0) RP 22.214.171.124, via bootstrap, priority 0, hash value 884179440 RP 126.96.36.199, via bootstrap, priority 0, hash value 613026582 R4#sho ip pim rp-hash 188.8.131.52 RP 184.108.40.206 (?), v2 Info source: 220.127.116.11 (?), via bootstrap, priority 0, holdtime 150 Uptime: 00:22:06, expires: 00:02:23 PIMv2 Hash Value (mask 0.0.0.0) RP 18.104.22.168, via bootstrap, priority 0, hash value 613026582 RP 22.214.171.124, via bootstrap, priority 10, hash value 884179440
that confused me too, so i read RFC5059 stating:
Contains the BSR priority value of the included BSR. This field
is considered as a high-order byte when comparing BSR addresses.
BSRs should by default set this field to 64. Note that for
historical reasons, the highest BSR priority is 255 (the higher
the better), whereas the highest RP Priority (see below) is 0
(the lower the better).”
- BSR election: higher priority wins
- RP election: lower priority wins!
When an election for RP takes place in a particular group, the priority values exchanged are indeed used as part of the process determine the RP. Once the election is complete, even if you change the priority values, a re-election will not take place. A re-election will only take place if the RP has been detected to have gone down, after the appropriate timers expire. In order to achieve a reelection in your topology, disable the current RP router (reboot or turn off for an extended period of time) and the reelection process will eventually kick in, using the currently configured parameters.
More info about the election and reelection process can be found at RFC 5059.
I hope this has been helpful!
Thanks for explanation …I see just typo error R1 ( instead of R2) while configuring rp-candidate
I have a doubt. Here R4 also gets BSR messages from BSR. But sparse mode is enabled on all routers. Then how R4 gets BSR message from R3?
Or is that what hop-by-hop basis means? In case of BSR selection, messages will be send to all the routers?