1 00:00:00,000 --> 00:00:03,465 [AUDIO LOGO] 2 00:00:03,465 --> 00:00:08,119 3 00:00:08,119 --> 00:00:13,800 So now it's time to look at redundant RPs with BSR. 4 00:00:13,800 --> 00:00:17,400 Now, just at its default configuration, 5 00:00:17,400 --> 00:00:21,030 this actually works the same as what we saw in auto-RP. 6 00:00:21,030 --> 00:00:24,030 So we're only going to spend just a few minutes looking 7 00:00:24,030 --> 00:00:24,990 at that. 8 00:00:24,990 --> 00:00:28,920 BSR has two other options which are really going 9 00:00:28,920 --> 00:00:31,060 to be the focus of this video. 10 00:00:31,060 --> 00:00:37,320 The first is we can use priority to control which RP becomes 11 00:00:37,320 --> 00:00:40,110 chosen as the active RP. 12 00:00:40,110 --> 00:00:44,130 This is something that wasn't really available in auto-RP, 13 00:00:44,130 --> 00:00:47,310 it just chose the highest IP address. 14 00:00:47,310 --> 00:00:49,980 But the other choice we have with BSR 15 00:00:49,980 --> 00:00:53,820 is leaving everything equal, we can actually 16 00:00:53,820 --> 00:00:58,950 do load sharing per group between multiple RPs. 17 00:00:58,950 --> 00:01:02,550 So that's another option we need to look at because that gives 18 00:01:02,550 --> 00:01:06,540 us not only redundancy, but also a certain amount of load 19 00:01:06,540 --> 00:01:07,360 sharing. 20 00:01:07,360 --> 00:01:09,970 It's a little more complicated than it sounds, 21 00:01:09,970 --> 00:01:12,790 but it gives us load sharing nonetheless. 22 00:01:12,790 --> 00:01:16,030 So as usual, let's bring up our topology 23 00:01:16,030 --> 00:01:18,580 just real quickly to review what we're going to do, 24 00:01:18,580 --> 00:01:20,590 and then we'll jump into the command line 25 00:01:20,590 --> 00:01:26,690 and see redundant RPs with BSR in action. 26 00:01:26,690 --> 00:01:31,600 So one last time, here we are on multicast topology 1. 27 00:01:31,600 --> 00:01:33,880 And there's really two things that we 28 00:01:33,880 --> 00:01:37,060 need to discuss before we jump into the command line. 29 00:01:37,060 --> 00:01:39,610 The first is, of course, that we're 30 00:01:39,610 --> 00:01:44,680 going to be bringing router 4 in here as a second RP. 31 00:01:44,680 --> 00:01:46,690 But the other thing we need to discuss 32 00:01:46,690 --> 00:01:49,720 is when we start doing load sharing, 33 00:01:49,720 --> 00:01:52,930 how does BSR actually do load sharing? 34 00:01:52,930 --> 00:01:56,900 And the answer to that is it uses a hash. 35 00:01:56,900 --> 00:02:02,650 This hash is referenced in RFC 4601, 36 00:02:02,650 --> 00:02:06,280 and I put it here just for your reference. 37 00:02:06,280 --> 00:02:07,670 Don't panic. 38 00:02:07,670 --> 00:02:10,180 You don't have to know this in any way. 39 00:02:10,180 --> 00:02:14,890 I just wanted to show it to you so you understand this is not 40 00:02:14,890 --> 00:02:19,930 as easy as it's just going to do 50/50 load sharing between two 41 00:02:19,930 --> 00:02:22,150 rendezvous points and so on. 42 00:02:22,150 --> 00:02:25,960 It uses this algorithm to combine 43 00:02:25,960 --> 00:02:32,330 the group, the mask, and the RP address to create a hash. 44 00:02:32,330 --> 00:02:37,260 That hash is then used to load share between the RPs. 45 00:02:37,260 --> 00:02:41,990 So don't be too surprised when we start changing the hash mask 46 00:02:41,990 --> 00:02:46,700 length if you don't exactly get a nice even load 47 00:02:46,700 --> 00:02:48,980 share across the RPs. 48 00:02:48,980 --> 00:02:51,440 That's not exactly how this works. 49 00:02:51,440 --> 00:02:53,700 But the other way to look at it, of course, 50 00:02:53,700 --> 00:02:58,400 is that any load sharing is better than no load sharing. 51 00:02:58,400 --> 00:03:02,070 So all of that said, let's jump into the command line. 52 00:03:02,070 --> 00:03:07,650 We'll start on router 4 just by configuring it to be an RP. 53 00:03:07,650 --> 00:03:10,860 So this is actually the exact same configuration 54 00:03:10,860 --> 00:03:13,950 that we did on router 2, the only difference is 55 00:03:13,950 --> 00:03:17,920 we're going to be using router 4's loopback IP address. 56 00:03:17,920 --> 00:03:20,850 So we'll just paste this configuration in, 57 00:03:20,850 --> 00:03:24,690 and now router 4 is a candidate RP. 58 00:03:24,690 --> 00:03:29,920 So let's go up to the BSR router 5 and see what that looks like. 59 00:03:29,920 --> 00:03:34,470 So on router 5, we'll do our show ip pim rp map, 60 00:03:34,470 --> 00:03:40,020 and what we see is that the BSR is now aware of both rendezvous 61 00:03:40,020 --> 00:03:40,830 points. 62 00:03:40,830 --> 00:03:44,860 These are completely equal, except for their IP address. 63 00:03:44,860 --> 00:03:49,450 So the question becomes, which one is actually being used? 64 00:03:49,450 --> 00:03:51,960 Well, if we do our show ip pim rp, 65 00:03:51,960 --> 00:03:57,120 we can see that for our group, it's actually using router 4. 66 00:03:57,120 --> 00:04:00,420 Once again, just like auto-RP, this 67 00:04:00,420 --> 00:04:03,390 has chosen the highest IP address. 68 00:04:03,390 --> 00:04:06,990 This is why we're not going to spend a lot of time discussing 69 00:04:06,990 --> 00:04:11,740 this particular configuration, because at this point, 70 00:04:11,740 --> 00:04:16,570 BSR is acting exactly like auto-RP with only one 71 00:04:16,570 --> 00:04:17,410 difference. 72 00:04:17,410 --> 00:04:21,339 If we go to a router that's not the BSR-- 73 00:04:21,339 --> 00:04:24,200 we've been picking on router 6 a lot. 74 00:04:24,200 --> 00:04:28,000 And if we did a show ip pim rp map here, 75 00:04:28,000 --> 00:04:34,360 notice that unlike auto-RP where only the winner gets advertised 76 00:04:34,360 --> 00:04:39,280 to the other routers, with BSR, the BSR is really 77 00:04:39,280 --> 00:04:41,680 just collecting all of the information 78 00:04:41,680 --> 00:04:44,830 and sending it out to the other routers. 79 00:04:44,830 --> 00:04:48,550 Notice the info source is the BSR, 80 00:04:48,550 --> 00:04:52,300 but it's still notifying us of both RPs. 81 00:04:52,300 --> 00:04:55,600 That's because in BSR, each router 82 00:04:55,600 --> 00:04:58,670 chooses the winner on its own. 83 00:04:58,670 --> 00:05:01,210 But again, they're all going to make the same decision 84 00:05:01,210 --> 00:05:03,440 based on the same criteria. 85 00:05:03,440 --> 00:05:06,640 So if we do our show ip pim rp we'll 86 00:05:06,640 --> 00:05:11,350 see that this is also using router 4 just like router 5 is. 87 00:05:11,350 --> 00:05:13,390 Everybody's making the same decision 88 00:05:13,390 --> 00:05:15,460 based on the highest IP. 89 00:05:15,460 --> 00:05:17,800 But what if that's not what we want to do? 90 00:05:17,800 --> 00:05:22,060 What if we want to force router 2 to be the RP 91 00:05:22,060 --> 00:05:26,540 and not router 4 without changing their addresses? 92 00:05:26,540 --> 00:05:29,350 Well, this is where BSR gives us an option. 93 00:05:29,350 --> 00:05:32,200 The good news is this is super simple. 94 00:05:32,200 --> 00:05:35,020 Notice that both of these RPs currently 95 00:05:35,020 --> 00:05:38,368 have a priority of 192. 96 00:05:38,368 --> 00:05:43,330 Well, the best priority wins in BSR, however, 97 00:05:43,330 --> 00:05:47,650 the caveat is the best priority is actually 98 00:05:47,650 --> 00:05:49,610 the lowest priority. 99 00:05:49,610 --> 00:05:54,490 So let's change the priority on router 2 to make it the winner. 100 00:05:54,490 --> 00:05:58,360 So on router 2, we'll simply go into configuration mode. 101 00:05:58,360 --> 00:06:01,450 Under router pim for IPv4. 102 00:06:01,450 --> 00:06:05,200 Under the bsr candidate-rp line, where 103 00:06:05,200 --> 00:06:09,710 we were advertising 10.2.2.2, we'll add a priority. 104 00:06:09,710 --> 00:06:12,890 We can see here the range is 1 to 255. 105 00:06:12,890 --> 00:06:15,860 We already saw that the default was 192. 106 00:06:15,860 --> 00:06:19,310 So let's just lower it to say 128. 107 00:06:19,310 --> 00:06:21,570 Let's commit that change. 108 00:06:21,570 --> 00:06:23,600 Then let's go back over to router 6 109 00:06:23,600 --> 00:06:25,200 and see what's happened. 110 00:06:25,200 --> 00:06:27,920 So if we just do our show ip pim rp again, 111 00:06:27,920 --> 00:06:32,700 we see that now it has switched to router 2 as we wanted it to. 112 00:06:32,700 --> 00:06:35,430 And of course, if we look at the map again, 113 00:06:35,430 --> 00:06:42,620 we'll see that router 2 has that lower or better priority of 128 114 00:06:42,620 --> 00:06:45,032 beating out the 192. 115 00:06:45,032 --> 00:06:48,680 So what this is doing is if our goal is 116 00:06:48,680 --> 00:06:52,100 to have an active standby type scenario, 117 00:06:52,100 --> 00:06:55,550 it allows us to choose which one's going to be active 118 00:06:55,550 --> 00:06:57,830 and which one's going to be standby. 119 00:06:57,830 --> 00:07:00,110 But what if we want to do load sharing? 120 00:07:00,110 --> 00:07:03,498 Well in order to do load sharing, the priorities-- well, 121 00:07:03,498 --> 00:07:05,790 they're going to have to be set back to the same again. 122 00:07:05,790 --> 00:07:07,640 So let's go ahead and do that first, 123 00:07:07,640 --> 00:07:11,540 and then we'll implement load sharing. 124 00:07:11,540 --> 00:07:14,720 So back over here on router 2, if we just 125 00:07:14,720 --> 00:07:17,990 say no on the bsr candidate-rp command, 126 00:07:17,990 --> 00:07:20,520 it'll actually take the whole command out. 127 00:07:20,520 --> 00:07:22,550 So to set this back, we're going to have 128 00:07:22,550 --> 00:07:25,890 to set this back to 192, which is the default 129 00:07:25,890 --> 00:07:28,070 and then commit the change again. 130 00:07:28,070 --> 00:07:31,400 We can exit out of configuration here on router 2. 131 00:07:31,400 --> 00:07:33,860 This time, let's go over to router 7 132 00:07:33,860 --> 00:07:36,980 because seeing the load sharing on router 7, which 133 00:07:36,980 --> 00:07:40,740 is the last hop router is going to be a little bit easier. 134 00:07:40,740 --> 00:07:44,420 So here on router 7, let's start with our show ip pim rp 135 00:07:44,420 --> 00:07:48,600 map because we want to see that they are back to being equal. 136 00:07:48,600 --> 00:07:50,300 The priorities are the same, they're 137 00:07:50,300 --> 00:07:54,620 both 192, which means that we should be using router 4. 138 00:07:54,620 --> 00:07:58,770 So if we do our show ip pim rp, we can see that, yes in fact, 139 00:07:58,770 --> 00:08:01,410 we are using router 4. 140 00:08:01,410 --> 00:08:03,420 Now, one other thing to note here. 141 00:08:03,420 --> 00:08:07,200 If we're going to do group-based load sharing 142 00:08:07,200 --> 00:08:09,630 and we want to see it work, we're 143 00:08:09,630 --> 00:08:15,150 going to need more than just this one group 224.1.1.1. 144 00:08:15,150 --> 00:08:17,700 So we're going to hop on to router 8 real quick 145 00:08:17,700 --> 00:08:20,220 and just have it join a few groups 146 00:08:20,220 --> 00:08:22,630 with some various different group numbers. 147 00:08:22,630 --> 00:08:25,570 So let's go ahead and do that. 148 00:08:25,570 --> 00:08:27,240 So here on router 8, I'm just going 149 00:08:27,240 --> 00:08:28,770 to paste the configuration in. 150 00:08:28,770 --> 00:08:30,240 I already have it saved. 151 00:08:30,240 --> 00:08:33,120 You can see here we're simply joining 152 00:08:33,120 --> 00:08:36,330 a bunch of different igmp groups that 153 00:08:36,330 --> 00:08:40,020 are sort of different in the first and second octets. 154 00:08:40,020 --> 00:08:42,390 It doesn't really matter a whole lot because of the way 155 00:08:42,390 --> 00:08:43,570 the hash works. 156 00:08:43,570 --> 00:08:45,880 However, we're having it join these groups. 157 00:08:45,880 --> 00:08:48,780 So now if we go over to router 7 again, 158 00:08:48,780 --> 00:08:52,740 and we look at our show ip pim rp, what we see 159 00:08:52,740 --> 00:08:54,250 is at the moment-- 160 00:08:54,250 --> 00:08:56,550 and you could say then by default-- 161 00:08:56,550 --> 00:09:00,180 this is not doing any form of load sharing. 162 00:09:00,180 --> 00:09:04,320 Everything is going to the 10.4.4.4. 163 00:09:04,320 --> 00:09:08,880 The way we control the load sharing is from the BSR. 164 00:09:08,880 --> 00:09:12,700 So let's go over to router 5. 165 00:09:12,700 --> 00:09:14,590 We'll go into configuration mode. 166 00:09:14,590 --> 00:09:17,380 And then on the line where we're configuring 167 00:09:17,380 --> 00:09:21,370 pim and the bsr-candidate, again, we 168 00:09:21,370 --> 00:09:23,320 have to put in the loopback interface, 169 00:09:23,320 --> 00:09:27,590 but now we're going to change the hash mask length. 170 00:09:27,590 --> 00:09:31,270 Now, the default is zero, which means 171 00:09:31,270 --> 00:09:34,060 it's going to put a zero into the formula, 172 00:09:34,060 --> 00:09:36,520 and therefore everything is going 173 00:09:36,520 --> 00:09:39,220 to become the exact same hash. 174 00:09:39,220 --> 00:09:42,550 If you're trying to load share as evenly as 175 00:09:42,550 --> 00:09:45,940 possible between two rendezvous points, which 176 00:09:45,940 --> 00:09:49,900 is a very, very common thing to do, the best value to use 177 00:09:49,900 --> 00:09:52,610 here is 31. 178 00:09:52,610 --> 00:09:57,220 If we hit 31, that allows it to create 2 different hashes 179 00:09:57,220 --> 00:09:59,770 to load share between the rendezvous points 180 00:09:59,770 --> 00:10:02,650 because there's one bit that's not masked. 181 00:10:02,650 --> 00:10:07,120 So if we hit 31 and we go back over and look at router 7 182 00:10:07,120 --> 00:10:10,580 again, we look at our groups again, 183 00:10:10,580 --> 00:10:14,180 we can see that now we have a fairly even split. 184 00:10:14,180 --> 00:10:17,720 We have 3 groups that are going to router 2, 185 00:10:17,720 --> 00:10:21,170 and we have 3 groups that are going to router 4. 186 00:10:21,170 --> 00:10:24,570 Now, just to show you what I was talking about, 187 00:10:24,570 --> 00:10:27,780 let's go change router 5 to something else. 188 00:10:27,780 --> 00:10:31,040 Let's change router 5 to, say, 16. 189 00:10:31,040 --> 00:10:33,530 Only mask 16 bits. 190 00:10:33,530 --> 00:10:35,330 You might think that that would also 191 00:10:35,330 --> 00:10:37,040 give you an even load share. 192 00:10:37,040 --> 00:10:41,390 But like I said, the hash isn't that predictable. 193 00:10:41,390 --> 00:10:44,820 Back over to router 7, look at it again. 194 00:10:44,820 --> 00:10:49,190 And what we see is now we have 4 groups going to router 2 195 00:10:49,190 --> 00:10:52,910 and only 2 groups going to router 4. 196 00:10:52,910 --> 00:10:56,570 So as I mentioned, if you're in an environment that's 197 00:10:56,570 --> 00:11:00,350 using two RPs, which is fairly common, 198 00:11:00,350 --> 00:11:06,020 the best hash mask length to use is generally 31. 199 00:11:06,020 --> 00:11:08,300 Now, you can play around with other numbers 200 00:11:08,300 --> 00:11:09,800 and see what kind of load sharing 201 00:11:09,800 --> 00:11:13,250 you get or you can sit down and figure out the hash, 202 00:11:13,250 --> 00:11:18,020 but generally speaking, 31 works fairly well if you have 2 RPs. 203 00:11:18,020 --> 00:11:20,370 So let's go ahead and set router 5 back 204 00:11:20,370 --> 00:11:23,510 so we have some nice even load sharing. 205 00:11:23,510 --> 00:11:27,500 So again, router 5, we'll just set it back to the 31. 206 00:11:27,500 --> 00:11:30,110 We'll go back over to router 7. 207 00:11:30,110 --> 00:11:33,230 And we can see that we're back to our nice even load 208 00:11:33,230 --> 00:11:37,910 sharing of 3 groups going to 1 RP and 3 groups 209 00:11:37,910 --> 00:11:39,510 going to the other. 210 00:11:39,510 --> 00:11:44,680 So this is how we can do load sharing in BSR. 211 00:11:44,680 --> 00:11:48,910 So in this video, we took a look at our redundancy options 212 00:11:48,910 --> 00:11:50,410 in BSR. 213 00:11:50,410 --> 00:11:53,530 So the first option, which we looked at very quickly, 214 00:11:53,530 --> 00:11:59,080 is we can simply configure multiple BSR/RP candidates 215 00:11:59,080 --> 00:12:02,650 and it will simply choose the one with the highest IP address 216 00:12:02,650 --> 00:12:04,960 just like auto-RP. 217 00:12:04,960 --> 00:12:07,390 The second option, however, gives us 218 00:12:07,390 --> 00:12:09,110 a little bit more control. 219 00:12:09,110 --> 00:12:13,600 We can set the best priority, which is the lowest priority, 220 00:12:13,600 --> 00:12:18,370 on a particular RP, and then that will win and become 221 00:12:18,370 --> 00:12:20,650 the active RP that we're using. 222 00:12:20,650 --> 00:12:23,260 And of course, the final choice is 223 00:12:23,260 --> 00:12:26,920 to change the hash mask length on the BSR 224 00:12:26,920 --> 00:12:30,430 itself so that it will create multiple hashes 225 00:12:30,430 --> 00:12:34,840 for each different group and send them to different RPs. 226 00:12:34,840 --> 00:12:37,060 Again, it can be a little bit finicky, 227 00:12:37,060 --> 00:12:41,560 but if you use a 31 with 2 RPs, you generally 228 00:12:41,560 --> 00:12:44,080 get a fairly even split. 229 00:12:44,080 --> 00:12:47,840 Now, all of that said, that covers everything 230 00:12:47,840 --> 00:12:50,610 that we need to discuss in this skill, 231 00:12:50,610 --> 00:12:52,700 which leaves us with nothing more 232 00:12:52,700 --> 00:12:56,612 than a review in the form of a quiz and, of course, 233 00:12:56,612 --> 00:12:58,070 that's what we're going to do next. 234 00:12:58,070 --> 00:13:01,400 Until then, I hope this has been informative for you, 235 00:13:01,400 --> 00:13:04,510 and I'd like to thank you for viewing. 236 00:13:04,510 --> 00:13:08,000