1 00:00:00,000 --> 00:00:02,808 [AUDIO LOGO] 2 00:00:02,808 --> 00:00:07,030 3 00:00:07,030 --> 00:00:09,670 In this video, we're going to start off 4 00:00:09,670 --> 00:00:13,060 by looking at single area OSPF. 5 00:00:13,060 --> 00:00:15,860 We'll take a look at what the database looks like, 6 00:00:15,860 --> 00:00:17,830 as well as what happens if there's 7 00:00:17,830 --> 00:00:21,310 a failure in single area OSPF. 8 00:00:21,310 --> 00:00:23,050 We'll also, of course, talk about some 9 00:00:23,050 --> 00:00:26,530 of the advantages and disadvantages of running 10 00:00:26,530 --> 00:00:28,798 OSPF in a single area. 11 00:00:28,798 --> 00:00:30,340 So let's go ahead and jump in and get 12 00:00:30,340 --> 00:00:34,600 started by talking about some of the attributes of single area 13 00:00:34,600 --> 00:00:36,720 OSPF. 14 00:00:36,720 --> 00:00:38,640 So the first thing we want to consider 15 00:00:38,640 --> 00:00:42,930 when talking about using, particularly single area 16 00:00:42,930 --> 00:00:49,860 OSPF is it's main issues come into play with scalability. 17 00:00:49,860 --> 00:00:52,380 The real issue here is when our network 18 00:00:52,380 --> 00:00:56,040 starts getting very large, single area just 19 00:00:56,040 --> 00:00:57,720 really doesn't cover it. 20 00:00:57,720 --> 00:01:00,580 There are, of course, a few reasons for this. 21 00:01:00,580 --> 00:01:04,560 The first is that the Dijkstra algorithm really 22 00:01:04,560 --> 00:01:07,410 can cause high CPU utilization. 23 00:01:07,410 --> 00:01:12,540 Remember, it has to run against the entire database 24 00:01:12,540 --> 00:01:14,290 for the area. 25 00:01:14,290 --> 00:01:17,700 And because of that, it actually makes the running 26 00:01:17,700 --> 00:01:21,840 of OSPF proportional to the square 27 00:01:21,840 --> 00:01:24,250 of the number of routers. 28 00:01:24,250 --> 00:01:26,940 So the more routers there are in an area, 29 00:01:26,940 --> 00:01:29,700 that means the database is going to be larger. 30 00:01:29,700 --> 00:01:33,000 And overall, it means that Dijkstra 31 00:01:33,000 --> 00:01:35,490 is going to take a lot more horsepower 32 00:01:35,490 --> 00:01:37,710 to run on our devices. 33 00:01:37,710 --> 00:01:42,270 And going along with that, since each router must 34 00:01:42,270 --> 00:01:47,040 hold the complete link state database for that area, 35 00:01:47,040 --> 00:01:52,120 it means that it can also cause high memory use. 36 00:01:52,120 --> 00:01:55,830 Now, just as a note on this topic, when we say high memory 37 00:01:55,830 --> 00:01:59,910 use on today's devices, honestly this is probably not 38 00:01:59,910 --> 00:02:01,300 going to be an issue. 39 00:02:01,300 --> 00:02:04,650 But it is something to keep in mind, particularly if you have 40 00:02:04,650 --> 00:02:07,650 a very large environment or if maybe you 41 00:02:07,650 --> 00:02:11,039 have some dated routers that are still in your environment. 42 00:02:11,039 --> 00:02:15,330 But overall, really neither one of these two issues 43 00:02:15,330 --> 00:02:19,590 is really going to be a huge concern on today's routers 44 00:02:19,590 --> 00:02:22,710 until our network starts getting very large. 45 00:02:22,710 --> 00:02:24,360 But these are some things we need 46 00:02:24,360 --> 00:02:28,890 to keep an eye on as our OSPF environment gets larger. 47 00:02:28,890 --> 00:02:31,230 So we're going to jump over to the command line 48 00:02:31,230 --> 00:02:34,350 and take a look at what the database looks like 49 00:02:34,350 --> 00:02:38,790 and what failures look like in an OSPF single area. 50 00:02:38,790 --> 00:02:42,000 To do that, we're going to be using this topology. 51 00:02:42,000 --> 00:02:45,090 As we can see, this is all of our routers, 52 00:02:45,090 --> 00:02:50,190 router 1 through router 10, all being in a single area zero. 53 00:02:50,190 --> 00:02:53,920 So this is not an exceedingly large environment. 54 00:02:53,920 --> 00:02:55,980 Again, it's just 10 routers. 55 00:02:55,980 --> 00:02:59,160 However, we'll still see how every single one 56 00:02:59,160 --> 00:03:03,720 of these devices is going to be receiving all of the LSAs 57 00:03:03,720 --> 00:03:06,070 from all of the other routers. 58 00:03:06,070 --> 00:03:09,840 So every single router is going to have every other routers LSA 59 00:03:09,840 --> 00:03:12,490 information in its database. 60 00:03:12,490 --> 00:03:16,270 So we'll see this as we look at some of our different routers. 61 00:03:16,270 --> 00:03:19,990 Let's jump over to the command line and take a look. 62 00:03:19,990 --> 00:03:22,620 So let's start off here on router 10, 63 00:03:22,620 --> 00:03:26,460 and let's just start with a show IP route OSPF. 64 00:03:26,460 --> 00:03:31,860 And what we see here is that we have all OSPF intra area 65 00:03:31,860 --> 00:03:32,670 routes. 66 00:03:32,670 --> 00:03:36,480 We can tell because our key here is just 67 00:03:36,480 --> 00:03:41,811 an O where it would be followed by something else like an IA 68 00:03:41,811 --> 00:03:46,810 or an E1 or any E2, if this was external and so on. 69 00:03:46,810 --> 00:03:50,160 So we can see by the fact that there's nothing after the O, 70 00:03:50,160 --> 00:03:53,220 that these are all routes from within the same area. 71 00:03:53,220 --> 00:03:55,950 And this applies to all the routes. 72 00:03:55,950 --> 00:03:58,590 If we do a show IP OSPF database, 73 00:03:58,590 --> 00:04:05,220 we can see that all we have are type 1 and type 2 LSAs. 74 00:04:05,220 --> 00:04:10,000 These are known as router links states and network link states. 75 00:04:10,000 --> 00:04:12,930 We don't have any LSAs that would 76 00:04:12,930 --> 00:04:14,980 be coming from other areas. 77 00:04:14,980 --> 00:04:18,360 This is, of course, because everything's in this area. 78 00:04:18,360 --> 00:04:20,790 We will talk more about these link 79 00:04:20,790 --> 00:04:24,100 state types in an upcoming video. 80 00:04:24,100 --> 00:04:27,360 So now let's take a look at what happens if we 81 00:04:27,360 --> 00:04:30,460 trigger SPF to actually run. 82 00:04:30,460 --> 00:04:33,090 Let's start with a show ip ospf. 83 00:04:33,090 --> 00:04:36,810 And what we want to note here is that for area zero, 84 00:04:36,810 --> 00:04:41,790 currently SPF has executed 17 times. 85 00:04:41,790 --> 00:04:43,560 And this is simply how many times 86 00:04:43,560 --> 00:04:47,130 it executed while this particular lab environment was 87 00:04:47,130 --> 00:04:49,290 being built. So let's take a look 88 00:04:49,290 --> 00:04:53,580 at what happens when a change occurs in OSPF. 89 00:04:53,580 --> 00:04:58,260 Let's turn on a debug ip ospf spf. 90 00:04:58,260 --> 00:04:59,790 So we have this on. 91 00:04:59,790 --> 00:05:02,370 Let's now switch over to router 5. 92 00:05:02,370 --> 00:05:04,890 Here we'll go into configuration mode. 93 00:05:04,890 --> 00:05:07,500 And we'll simply go in to say it's loopback 94 00:05:07,500 --> 00:05:09,550 and shut that interface down. 95 00:05:09,550 --> 00:05:11,370 We'll switch back over to router 10, 96 00:05:11,370 --> 00:05:13,810 we'll scroll up a little bit here. 97 00:05:13,810 --> 00:05:16,560 And what we see as we start going down 98 00:05:16,560 --> 00:05:20,080 through the database, obviously a lot is going on. 99 00:05:20,080 --> 00:05:21,420 There are several pages here. 100 00:05:21,420 --> 00:05:23,700 We're not going to look at every detail of this. 101 00:05:23,700 --> 00:05:28,110 But what we want to see is that SPF is definitely executing, 102 00:05:28,110 --> 00:05:32,800 and it's checking every single route in the database. 103 00:05:32,800 --> 00:05:35,290 So we can see here, as we scroll down through this, 104 00:05:35,290 --> 00:05:40,140 this is covering the entire OSPF domain 105 00:05:40,140 --> 00:05:42,600 because it's all in one area. 106 00:05:42,600 --> 00:05:47,310 So we're forcing SPF to run against the entire database 107 00:05:47,310 --> 00:05:48,070 here. 108 00:05:48,070 --> 00:05:51,120 And as you can see, this is quite a bit of work. 109 00:05:51,120 --> 00:05:54,210 There's quite a bit going on here in the debug. 110 00:05:54,210 --> 00:05:56,280 And if we look at the very end, we 111 00:05:56,280 --> 00:05:59,580 can see that this actually took on this equipment 112 00:05:59,580 --> 00:06:01,900 17 milliseconds. 113 00:06:01,900 --> 00:06:03,990 Now, that's of course not a whole lot. 114 00:06:03,990 --> 00:06:09,150 But let's see how that stands up when we get to multi-area OSPF 115 00:06:09,150 --> 00:06:13,680 next, and we'll see if it's any faster when it's converging 116 00:06:13,680 --> 00:06:15,520 on a much smaller area. 117 00:06:15,520 --> 00:06:17,760 Now, it might not be much faster, again, 118 00:06:17,760 --> 00:06:20,370 this is a relatively small lab environment. 119 00:06:20,370 --> 00:06:22,740 But let's see if we get any performance increase 120 00:06:22,740 --> 00:06:24,420 when we go multi-area. 121 00:06:24,420 --> 00:06:27,300 The main thing, of course, however, regardless 122 00:06:27,300 --> 00:06:31,410 of how long it actually took, is if we do our show ip 123 00:06:31,410 --> 00:06:36,120 ospf again, notice that now, SPF algorithm has executed 124 00:06:36,120 --> 00:06:40,350 18 times, which means it did in fact run again 125 00:06:40,350 --> 00:06:42,600 in response to this change. 126 00:06:42,600 --> 00:06:45,930 And of course, if we bring that interface back up, so 127 00:06:45,930 --> 00:06:49,020 back over here on router 5, we'll simply do a no shut. 128 00:06:49,020 --> 00:06:52,890 Back over on router 10, we can see that it once again 129 00:06:52,890 --> 00:06:54,900 executed SPF. 130 00:06:54,900 --> 00:06:57,300 We don't have to scroll through the whole thing again. 131 00:06:57,300 --> 00:06:59,050 I think you get the idea. 132 00:06:59,050 --> 00:07:01,420 This time it only took 14 milliseconds, 133 00:07:01,420 --> 00:07:03,280 so it was a little bit faster. 134 00:07:03,280 --> 00:07:06,690 And again, if we look at our show ip ospf, 135 00:07:06,690 --> 00:07:09,750 we see that it's now executed 19 times. 136 00:07:09,750 --> 00:07:15,660 So this is definitely executing SPF any time anything changes 137 00:07:15,660 --> 00:07:16,770 in the area. 138 00:07:16,770 --> 00:07:21,180 And this is part of what leads to that scalability problem. 139 00:07:21,180 --> 00:07:25,350 In this video, we talked about, well, mostly 140 00:07:25,350 --> 00:07:31,500 the disadvantages of running a single area in OSPF, mostly 141 00:07:31,500 --> 00:07:34,380 focused around that scalability issue. 142 00:07:34,380 --> 00:07:36,810 But keep in mind, like most things, 143 00:07:36,810 --> 00:07:41,260 there are advantages to running single area OSPF as well. 144 00:07:41,260 --> 00:07:44,520 First, it's definitely easier to configure. 145 00:07:44,520 --> 00:07:47,220 And it's certainly easier to design, 146 00:07:47,220 --> 00:07:50,410 since it's literally just a single area. 147 00:07:50,410 --> 00:07:55,050 And it also has some advantages because certain technologies 148 00:07:55,050 --> 00:07:59,850 such as MPLS traffic engineering actually function better 149 00:07:59,850 --> 00:08:02,610 in a single area environment. 150 00:08:02,610 --> 00:08:06,970 And when you go multi-area, it gets a bit more complicated. 151 00:08:06,970 --> 00:08:09,660 So like most things, it certainly 152 00:08:09,660 --> 00:08:12,000 has advantages and disadvantages. 153 00:08:12,000 --> 00:08:14,490 And we'll talk about this a little bit more 154 00:08:14,490 --> 00:08:20,670 in our next video as we jump into multi-area OSPF. 155 00:08:20,670 --> 00:08:22,860 I hope this has been informative for you. 156 00:08:22,860 --> 00:08:26,030 And I'd like to thank you for viewing. 157 00:08:26,030 --> 00:08:29,000