1 00:00:00,000 --> 00:00:03,800 [AUDIO LOGO] 2 00:00:03,800 --> 00:00:07,130 3 00:00:07,130 --> 00:00:09,740 So for our final topic in this skill, 4 00:00:09,740 --> 00:00:14,810 let's go ahead and talk about the IS-IS best path selection 5 00:00:14,810 --> 00:00:16,070 criteria. 6 00:00:16,070 --> 00:00:18,590 That's just a big fancy way of saying 7 00:00:18,590 --> 00:00:22,580 if IS-IS has multiple paths to get somewhere, how does it 8 00:00:22,580 --> 00:00:24,560 choose which one is the best. 9 00:00:24,560 --> 00:00:28,400 Now, overall, it's much like OSPF 10 00:00:28,400 --> 00:00:32,940 in that it uses lowest cost for most of its decisions. 11 00:00:32,940 --> 00:00:36,830 However, also like OSPF, there's a little bit more 12 00:00:36,830 --> 00:00:38,310 to it than that. 13 00:00:38,310 --> 00:00:40,880 We have to consider if the route is going to leave the area 14 00:00:40,880 --> 00:00:42,990 or stay in the area, and so on. 15 00:00:42,990 --> 00:00:44,750 So let's go ahead and just jump in 16 00:00:44,750 --> 00:00:47,040 and talk about this in more detail 17 00:00:47,040 --> 00:00:51,320 so we can understand more completely how the IS-IS path 18 00:00:51,320 --> 00:00:54,910 selection process works. 19 00:00:54,910 --> 00:00:57,390 So as we mentioned earlier, Cisco 20 00:00:57,390 --> 00:01:03,120 does set the default IS-IS cost on, unfortunately, 21 00:01:03,120 --> 00:01:05,910 every interface to 10. 22 00:01:05,910 --> 00:01:09,150 And as we mentioned, if that cost is 10, 23 00:01:09,150 --> 00:01:11,400 it really sort of means that this 24 00:01:11,400 --> 00:01:16,510 is acting like a hop count, to a certain extent, making it 25 00:01:16,510 --> 00:01:19,960 not much better than RIP as far as choosing the best 26 00:01:19,960 --> 00:01:21,830 path through the environment. 27 00:01:21,830 --> 00:01:26,530 So it is definitely recommended for you as the administrator 28 00:01:26,530 --> 00:01:29,060 to basically choose a cost. 29 00:01:29,060 --> 00:01:31,030 So basically, look at the interfaces 30 00:01:31,030 --> 00:01:32,800 that you have in your environment 31 00:01:32,800 --> 00:01:35,470 and choose what cost you want to use 32 00:01:35,470 --> 00:01:37,780 for each different type of interface, 33 00:01:37,780 --> 00:01:41,770 then apply those costs manually to each specific type 34 00:01:41,770 --> 00:01:43,300 of interface. 35 00:01:43,300 --> 00:01:45,880 Once all of that is properly configured, 36 00:01:45,880 --> 00:01:49,600 IS-IS will then use the lowest cost 37 00:01:49,600 --> 00:01:55,460 path to choose the best path within the following logical 38 00:01:55,460 --> 00:01:56,510 framework. 39 00:01:56,510 --> 00:01:57,870 What does that mean? 40 00:01:57,870 --> 00:01:59,690 Well, we have to go over some rules 41 00:01:59,690 --> 00:02:04,340 that sort of override or work with lowest cost. 42 00:02:04,340 --> 00:02:06,990 That will make more sense as we go through this. 43 00:02:06,990 --> 00:02:11,000 So the first thing is if it's a Level 1 router. 44 00:02:11,000 --> 00:02:12,770 Two things we have to consider. 45 00:02:12,770 --> 00:02:17,210 First, the destination is in a different area. 46 00:02:17,210 --> 00:02:20,490 Well, that means we have to go to a Level 2 router. 47 00:02:20,490 --> 00:02:24,200 So it's going to deliver this to the closest Level 1 48 00:02:24,200 --> 00:02:25,700 Level 2 router. 49 00:02:25,700 --> 00:02:31,250 This would be, again, the OSPF equivalent to an ABR, 50 00:02:31,250 --> 00:02:34,490 the closest router that can deliver the traffic out 51 00:02:34,490 --> 00:02:35,540 of the area. 52 00:02:35,540 --> 00:02:39,270 If, however, the destination is in the same area, 53 00:02:39,270 --> 00:02:41,420 it's simply going to use the Level 1 54 00:02:41,420 --> 00:02:45,920 database to choose the lowest cost to the other routers' 55 00:02:45,920 --> 00:02:47,100 system ID. 56 00:02:47,100 --> 00:02:49,500 So this is where the lowest cost would come in. 57 00:02:49,500 --> 00:02:54,500 Now, if it's a Level 1-2 router, so this is the ABR, 58 00:02:54,500 --> 00:02:57,440 we're still going to look at the area because remember, 59 00:02:57,440 --> 00:03:02,120 the areas are not crossing on the routers here in IS-IS. 60 00:03:02,120 --> 00:03:04,470 Remember, they cross on the links, 61 00:03:04,470 --> 00:03:07,640 so I still have to look to see if this 62 00:03:07,640 --> 00:03:11,070 goes to the same area that I'm in or a different area. 63 00:03:11,070 --> 00:03:15,770 And again, if the destination is in a different area, 64 00:03:15,770 --> 00:03:20,450 well, then we're going to use the Level 2 database to route 65 00:03:20,450 --> 00:03:22,550 to the correct area ID. 66 00:03:22,550 --> 00:03:26,078 If the destination, however, is in the same area, 67 00:03:26,078 --> 00:03:28,370 well, we're going to do the same thing that the Level 1 68 00:03:28,370 --> 00:03:29,520 router does. 69 00:03:29,520 --> 00:03:32,300 We're going to use the Level 1 database to route 70 00:03:32,300 --> 00:03:33,990 to that system ID. 71 00:03:33,990 --> 00:03:36,990 So once again, we would be using the lowest cost. 72 00:03:36,990 --> 00:03:40,640 And we would be using the lowest cost to get to this area ID 73 00:03:40,640 --> 00:03:41,520 as well. 74 00:03:41,520 --> 00:03:45,140 We would just be using the Level 2 database for that rather than 75 00:03:45,140 --> 00:03:47,270 the Level 1 database. 76 00:03:47,270 --> 00:03:49,790 Once that best path has been chosen, 77 00:03:49,790 --> 00:03:53,880 that path is then offered to the routing table, 78 00:03:53,880 --> 00:03:57,770 which follows normal Cisco routing table rules. 79 00:03:57,770 --> 00:03:58,610 Meaning? 80 00:03:58,610 --> 00:04:02,250 First, we look at the lowest administrative distance. 81 00:04:02,250 --> 00:04:04,940 So if we have two identical routes, 82 00:04:04,940 --> 00:04:09,020 say one is coming from OSPF, and one is coming from IS-IS, 83 00:04:09,020 --> 00:04:12,920 we look to the admin distance or the AD. 84 00:04:12,920 --> 00:04:17,779 Remember that in the case of AD, lowest wins-- keyword there. 85 00:04:17,779 --> 00:04:23,810 IS-IS defaults to 115, which places it basically 86 00:04:23,810 --> 00:04:27,320 between RIP and OSPF. 87 00:04:27,320 --> 00:04:30,260 RIP defaults to 120. 88 00:04:30,260 --> 00:04:33,470 OSPF defaults to 110. 89 00:04:33,470 --> 00:04:36,620 So we see what's happening here is it will actually 90 00:04:36,620 --> 00:04:42,500 believe OSPF before IS-IS but IS-IS before RIP, 91 00:04:42,500 --> 00:04:45,410 so it falls between those two protocols. 92 00:04:45,410 --> 00:04:47,820 This, of course, can be changed. 93 00:04:47,820 --> 00:04:49,580 These are just the defaults. 94 00:04:49,580 --> 00:04:54,860 Like always, we use the longest prefix match 95 00:04:54,860 --> 00:04:56,430 to any destination. 96 00:04:56,430 --> 00:05:03,800 So, for example, if I had a route to 10.1.0.0/16 97 00:05:03,800 --> 00:05:11,660 and a route to 10.1.1.0/24 and then a packet shows up 98 00:05:11,660 --> 00:05:16,860 that's going to 10.1.1.30, it would, of course, 99 00:05:16,860 --> 00:05:21,890 use this route because that's the longest prefix match. 100 00:05:21,890 --> 00:05:29,570 On the other hand, if a packet came up going to 10.1.3.10, 101 00:05:29,570 --> 00:05:32,720 well, then it would use this route because only 102 00:05:32,720 --> 00:05:34,680 the first two octets match. 103 00:05:34,680 --> 00:05:37,880 So that top route would become the longest prefix 104 00:05:37,880 --> 00:05:40,380 match for that destination. 105 00:05:40,380 --> 00:05:42,110 So that's what this rule means. 106 00:05:42,110 --> 00:05:46,080 And just keep in mind, this is not an IS-IS thing. 107 00:05:46,080 --> 00:05:48,380 This is just how Cisco does routing. 108 00:05:48,380 --> 00:05:49,760 And not even just Cisco. 109 00:05:49,760 --> 00:05:51,590 This is just how routing is done. 110 00:05:51,590 --> 00:05:54,450 We always follow the longest prefix match. 111 00:05:54,450 --> 00:05:58,370 So this is certainly not an IS-IS-specific thing. 112 00:05:58,370 --> 00:06:01,370 And this last thing here is by no means a rule or anything. 113 00:06:01,370 --> 00:06:03,620 It's really just sort of a piece of information 114 00:06:03,620 --> 00:06:05,990 that when we do look at the routing table, which 115 00:06:05,990 --> 00:06:07,740 we will do here in just a moment, 116 00:06:07,740 --> 00:06:12,590 this will indicate whether it's a Level 1 or a Level 2 route. 117 00:06:12,590 --> 00:06:15,440 So that said, let's go ahead and jump into the command line 118 00:06:15,440 --> 00:06:16,430 and look at this. 119 00:06:16,430 --> 00:06:18,680 We'll look at our topology real quickly. 120 00:06:18,680 --> 00:06:22,490 We see in the topology, we just have a very, very simple IS-IS 121 00:06:22,490 --> 00:06:23,480 topology. 122 00:06:23,480 --> 00:06:27,200 Everything is in Area 1, so we're not actually 123 00:06:27,200 --> 00:06:29,270 going to have any Level 2 routes. 124 00:06:29,270 --> 00:06:31,850 But let's just hop in real quick on router 1, 125 00:06:31,850 --> 00:06:35,120 look at the IS-IS routing table, and will at least 126 00:06:35,120 --> 00:06:38,150 be able to see that it does, in fact, indicate 127 00:06:38,150 --> 00:06:41,440 which type of route it is. 128 00:06:41,440 --> 00:06:44,360 So again, we'll just do a show ip route isis 129 00:06:44,360 --> 00:06:46,110 and a couple of things we want to look at. 130 00:06:46,110 --> 00:06:49,890 First, we do see that these are all Level 1 routes. 131 00:06:49,890 --> 00:06:52,050 This would, of course, say Level 2 132 00:06:52,050 --> 00:06:54,030 if they were Level 2 learned routes. 133 00:06:54,030 --> 00:06:58,290 And notice that the admin distance on all of these 134 00:06:58,290 --> 00:07:01,280 is the default of 115. 135 00:07:01,280 --> 00:07:03,150 Another interesting thing to note 136 00:07:03,150 --> 00:07:07,980 is that, even in our simple topology here, all of the costs 137 00:07:07,980 --> 00:07:09,720 are multiples of 10. 138 00:07:09,720 --> 00:07:12,750 That's because all of the interfaces default to 10. 139 00:07:12,750 --> 00:07:15,250 They've not been changed in this environment. 140 00:07:15,250 --> 00:07:18,150 So depending on how many interfaces it's going through, 141 00:07:18,150 --> 00:07:21,370 it's 10, 20, 30, 40, 50, and so on. 142 00:07:21,370 --> 00:07:26,270 This is what we mean that it's acting more like a hop count. 143 00:07:26,270 --> 00:07:29,300 In this video, we jumped in, and we took a look 144 00:07:29,300 --> 00:07:33,710 at the IS-IS best path selection process. 145 00:07:33,710 --> 00:07:36,800 We saw that how a Level 1 router will 146 00:07:36,800 --> 00:07:40,160 try to leave the area through the closest exit 147 00:07:40,160 --> 00:07:43,220 if the destination is outside of the area, 148 00:07:43,220 --> 00:07:48,960 but it simply uses lowest cost if the route stays in the area. 149 00:07:48,960 --> 00:07:51,800 We saw that a Level 1/Level 2 router 150 00:07:51,800 --> 00:07:55,610 chooses which database to look things up in based 151 00:07:55,610 --> 00:07:57,630 on where the destination is. 152 00:07:57,630 --> 00:07:59,840 Again, if it's going to a different area, 153 00:07:59,840 --> 00:08:02,460 it uses the Level 2 database. 154 00:08:02,460 --> 00:08:04,530 And if it's staying in the same area, 155 00:08:04,530 --> 00:08:07,400 it uses the Level 1 database. 156 00:08:07,400 --> 00:08:11,030 We also talked about how it uses admin distance, just 157 00:08:11,030 --> 00:08:13,010 like every other routing protocol, 158 00:08:13,010 --> 00:08:15,240 when putting routes into the routing table, 159 00:08:15,240 --> 00:08:20,210 and it defaults to 115, and that every interface 160 00:08:20,210 --> 00:08:24,110 is set to a cost of 10 unless you, as the administrator, 161 00:08:24,110 --> 00:08:26,360 go in and change that to something that makes a little 162 00:08:26,360 --> 00:08:29,280 more sense in your environment. 163 00:08:29,280 --> 00:08:31,310 I hope this has been informative for you, 164 00:08:31,310 --> 00:08:34,330 and I'd like to thank you for viewing. 165 00:08:34,330 --> 00:08:38,000