1 00:00:02,698 --> 00:00:08,864 [music] 2 00:00:08,889 --> 00:00:11,645 So we have spent the vast 3 00:00:11,646 --> 00:00:13,622 majority of our day today 4 00:00:15,312 --> 00:00:18,015 talking about taking networks, 5 00:00:18,016 --> 00:00:19,365 a single network that you've 6 00:00:19,365 --> 00:00:20,895 leased or rented from your 7 00:00:20,896 --> 00:00:22,848 service provider, 8 00:00:23,356 --> 00:00:24,910 and by modifying some of the 9 00:00:24,910 --> 00:00:25,383 host bits, 10 00:00:25,384 --> 00:00:27,367 taking that network and cutting 11 00:00:27,368 --> 00:00:29,534 it up into little subnets, 12 00:00:29,535 --> 00:00:30,191 cutting it up into 13 00:00:30,191 --> 00:00:31,255 multiple pieces, 14 00:00:31,256 --> 00:00:33,652 replaced on this LAN over here, 15 00:00:33,652 --> 00:00:34,603 that LAN over here, 16 00:00:34,604 --> 00:00:36,014 this LAN over here. 17 00:00:37,244 --> 00:00:39,484 Summarization is just the 18 00:00:39,485 --> 00:00:41,799 opposite of that - starting out 19 00:00:41,800 --> 00:00:43,626 with a bunch of networks 20 00:00:43,627 --> 00:00:44,119 and saying, 21 00:00:44,119 --> 00:00:46,717 I want to shrink them all down 22 00:00:46,742 --> 00:00:47,555 to something they have 23 00:00:47,556 --> 00:00:49,703 in common. 24 00:00:49,704 --> 00:00:51,359 Summarization is the process 25 00:00:51,360 --> 00:00:52,704 of that. 26 00:00:56,790 --> 00:00:57,721 So it's the process of 27 00:00:57,722 --> 00:01:00,100 combining multiple subnetworks 28 00:01:00,101 --> 00:01:01,389 into a single 29 00:01:01,390 --> 00:01:03,495 network advertisement. 30 00:01:05,765 --> 00:01:07,609 Also, we'll refer to this as 31 00:01:07,609 --> 00:01:11,329 route aggregation. 32 00:01:11,330 --> 00:01:12,879 Efficient and large networks 33 00:01:12,880 --> 00:01:14,470 provides addressing hierarchy. 34 00:01:14,470 --> 00:01:15,572 Okay, so let's talk a little 35 00:01:15,573 --> 00:01:17,159 bit about why would we want to 36 00:01:17,159 --> 00:01:18,333 do this. 37 00:01:19,174 --> 00:01:19,961 I'm going to use my 38 00:01:19,961 --> 00:01:20,835 favorite analogy. 39 00:01:20,836 --> 00:01:21,542 Ready? Here we go. 40 00:01:21,542 --> 00:01:22,288 If you've seen any videos 41 00:01:22,289 --> 00:01:22,627 of me, 42 00:01:22,627 --> 00:01:23,866 you'll see me do this a lot. 43 00:01:23,867 --> 00:01:24,999 I'm a router and you're 44 00:01:25,000 --> 00:01:25,782 a router, 45 00:01:25,783 --> 00:01:27,204 and we're connected together. 46 00:01:27,204 --> 00:01:29,301 I do that all the time so play 47 00:01:29,302 --> 00:01:30,150 along with me here. 48 00:01:30,151 --> 00:01:31,534 I'm a router and you're 49 00:01:31,535 --> 00:01:32,016 a router. 50 00:01:32,016 --> 00:01:33,586 We have a cable between us, 51 00:01:33,587 --> 00:01:35,025 and we're running some kind of 52 00:01:35,026 --> 00:01:36,416 a routing protocol. 53 00:01:36,417 --> 00:01:38,637 Take your pick: RIP, OSPF, 54 00:01:38,638 --> 00:01:40,356 EIGRP, BGP. 55 00:01:40,357 --> 00:01:41,481 It doesn't matter. 56 00:01:41,482 --> 00:01:42,683 The fact is, 57 00:01:42,731 --> 00:01:43,878 the networks I know about, 58 00:01:43,879 --> 00:01:45,706 it's my responsibility to 59 00:01:45,707 --> 00:01:48,485 advertise them to you so that 60 00:01:48,485 --> 00:01:50,542 you know you can get to them 61 00:01:50,567 --> 00:01:51,735 through me. 62 00:01:51,736 --> 00:01:53,159 That's the whole point. 63 00:01:53,889 --> 00:01:54,994 Now normally when you turn on a 64 00:01:54,995 --> 00:01:56,299 routing protocol - like I said, 65 00:01:56,300 --> 00:01:58,806 take your pick - as that router 66 00:01:58,807 --> 00:02:00,786 learns about networks, 67 00:02:00,811 --> 00:02:02,046 it doesn't matter if they're 68 00:02:02,047 --> 00:02:03,342 subnets or classful networks. 69 00:02:03,342 --> 00:02:04,965 The router doesn't care. 70 00:02:04,966 --> 00:02:05,688 The router says, 71 00:02:05,688 --> 00:02:06,727 Hey, let met tell you, 72 00:02:06,728 --> 00:02:08,646 neighbor, about what I know. 73 00:02:08,647 --> 00:02:10,367 So imagine if behind me there's 74 00:02:10,367 --> 00:02:12,659 a whole bunch of LANs. 75 00:02:12,659 --> 00:02:13,672 Let's say there's a LAN out 76 00:02:13,673 --> 00:02:18,105 there that's 10.10.0.0/16, 77 00:02:18,105 --> 00:02:21,325 10.30.0.0/16, 78 00:02:21,326 --> 00:02:27,132 10.64.128/17. 79 00:02:27,133 --> 00:02:28,977 Now normally, 80 00:02:28,977 --> 00:02:29,665 as a routing protocol, 81 00:02:29,666 --> 00:02:30,742 I would send all those to you. 82 00:02:30,742 --> 00:02:31,231 I'd say, Okay, 83 00:02:31,231 --> 00:02:32,147 here's your routing update. 84 00:02:32,148 --> 00:02:34,276 Let me tell you about 10.10/16, 85 00:02:34,277 --> 00:02:35,457 10.30/16, 86 00:02:35,458 --> 00:02:36,603 10.40.120. 87 00:02:36,603 --> 00:02:37,424 So I'd give you all these 88 00:02:37,425 --> 00:02:38,315 specific networks that 89 00:02:38,315 --> 00:02:39,882 I know about. 90 00:02:40,650 --> 00:02:42,018 Well, there can be a downside 91 00:02:42,018 --> 00:02:43,220 to that. 92 00:02:44,419 --> 00:02:46,955 What if you are running out 93 00:02:46,956 --> 00:02:48,733 of memory? 94 00:02:48,734 --> 00:02:50,010 Because all these routes that 95 00:02:50,010 --> 00:02:50,724 I'm sending to you, 96 00:02:50,725 --> 00:02:52,016 you have to store them in 97 00:02:52,017 --> 00:02:53,088 memory somewhere in a place 98 00:02:53,089 --> 00:02:54,892 called an IP routing table, 99 00:02:54,893 --> 00:02:56,373 an IPv4 routing table. 100 00:02:57,262 --> 00:02:59,688 What if you've got so many 101 00:02:59,689 --> 00:03:03,114 routes already that if I send 102 00:03:03,115 --> 00:03:07,560 you, let's say, oh, 500 routes, 103 00:03:07,561 --> 00:03:08,720 that's going to overwhelm you. 104 00:03:08,720 --> 00:03:09,231 You're going to say, 105 00:03:09,232 --> 00:03:10,575 Look, I'm busting at the 106 00:03:10,576 --> 00:03:10,919 seams here. 107 00:03:10,919 --> 00:03:12,078 I don't have enough memory left 108 00:03:12,079 --> 00:03:13,568 over to store 500 109 00:03:13,569 --> 00:03:14,924 additional routes. 110 00:03:14,925 --> 00:03:16,011 That's going to be bad. 111 00:03:16,011 --> 00:03:17,090 It might cause your router 112 00:03:17,091 --> 00:03:19,042 to crash. 113 00:03:19,042 --> 00:03:20,266 Least case scenario, 114 00:03:20,267 --> 00:03:20,999 you're probably going to drop 115 00:03:20,999 --> 00:03:22,063 some of my routes because 116 00:03:22,064 --> 00:03:22,943 you're just not going to have 117 00:03:22,944 --> 00:03:23,741 any place to put them. 118 00:03:24,724 --> 00:03:26,114 And certainly, 119 00:03:26,115 --> 00:03:26,947 when we're talking about 120 00:03:26,947 --> 00:03:28,299 service provider networks, 121 00:03:28,300 --> 00:03:29,450 this is a big concern. 122 00:03:29,450 --> 00:03:31,273 If we're talking about a router 123 00:03:31,274 --> 00:03:32,803 that's owned by Time Warner 124 00:03:32,803 --> 00:03:34,619 Cable or Comcast, 125 00:03:34,644 --> 00:03:36,266 that router could literally, 126 00:03:36,267 --> 00:03:38,355 if it knows about everything in 127 00:03:38,355 --> 00:03:39,567 the Internet-- 128 00:03:40,046 --> 00:03:41,064 currently in the Internet 129 00:03:41,065 --> 00:03:41,989 there's well over 130 00:03:41,990 --> 00:03:45,256 400,000 networks. 131 00:03:45,257 --> 00:03:45,783 Think about that, 132 00:03:45,783 --> 00:03:47,656 400,000 networks in the 133 00:03:47,657 --> 00:03:48,787 entire world. 134 00:03:48,788 --> 00:03:50,891 Imagine how much memory that 135 00:03:50,892 --> 00:03:53,126 would consume to store in a 136 00:03:53,127 --> 00:03:54,565 single routing table. 137 00:03:54,565 --> 00:03:55,280 And that's not the only thing 138 00:03:55,281 --> 00:03:56,517 that routers keep in track of. 139 00:03:56,518 --> 00:03:57,825 That router is also keeping 140 00:03:57,825 --> 00:03:59,931 track of access lists and ARP 141 00:03:59,932 --> 00:04:00,974 tables and all kinds of 142 00:04:00,975 --> 00:04:02,057 other stuff. 143 00:04:02,058 --> 00:04:02,800 And now he's got to store 144 00:04:02,801 --> 00:04:04,927 500,000 routes? 145 00:04:04,927 --> 00:04:06,525 Yikes. Better be a big, 146 00:04:06,526 --> 00:04:08,311 powerful router with a lot of 147 00:04:08,312 --> 00:04:09,648 memory to do that. 148 00:04:10,315 --> 00:04:11,102 Well, a lot of times, 149 00:04:11,103 --> 00:04:12,218 what service providers will do 150 00:04:12,218 --> 00:04:12,564 is they'll say, 151 00:04:12,564 --> 00:04:14,678 look, yeah, 152 00:04:14,679 --> 00:04:16,848 I could send you all these 500 153 00:04:16,848 --> 00:04:18,545 routes I know about: 10.10, 154 00:04:18,546 --> 00:04:21,530 10.30, 10.90.128. 155 00:04:21,531 --> 00:04:23,350 But when I think about it, 156 00:04:24,493 --> 00:04:26,312 they all begin with 10. 157 00:04:26,337 --> 00:04:27,946 Every router I have back here 158 00:04:27,946 --> 00:04:29,626 begins with 10, 159 00:04:29,651 --> 00:04:31,822 so why don't I do this? 160 00:04:31,823 --> 00:04:33,119 Why don't I just send you a 161 00:04:33,120 --> 00:04:34,463 single route that says, 162 00:04:34,464 --> 00:04:36,887 hey, look, any packet you have 163 00:04:36,888 --> 00:04:38,501 that starts with 10, 164 00:04:38,502 --> 00:04:41,754 10/8, send it to me. 165 00:04:41,755 --> 00:04:43,476 I know about all networks that 166 00:04:43,477 --> 00:04:45,119 begin with 10. 167 00:04:46,000 --> 00:04:46,979 That'd be nice wouldn't it, 168 00:04:46,979 --> 00:04:47,919 because that, now, 169 00:04:47,920 --> 00:04:50,219 conserves your memory. 170 00:04:50,220 --> 00:04:51,409 You don't have to know about 171 00:04:51,410 --> 00:04:53,618 every specific little thing. 172 00:04:53,643 --> 00:04:54,855 I'm just sending you a single 173 00:04:54,856 --> 00:04:56,848 aggregated route, 174 00:04:56,849 --> 00:04:58,515 a single summarized route. 175 00:04:58,516 --> 00:04:59,389 And that's what route 176 00:04:59,390 --> 00:05:01,152 summarization is all about. 177 00:05:01,153 --> 00:05:02,432 Now, routers don't do this, 178 00:05:02,433 --> 00:05:03,827 technically, by default. 179 00:05:03,852 --> 00:05:04,833 You have to get in them and 180 00:05:04,833 --> 00:05:05,609 configure them. 181 00:05:05,610 --> 00:05:06,556 And this is something at the 182 00:05:06,556 --> 00:05:07,615 CCNP level, 183 00:05:07,616 --> 00:05:09,692 you learn how to do that. 184 00:05:09,693 --> 00:05:11,998 But theoretically on paper, 185 00:05:12,023 --> 00:05:13,510 you do have to know how to take 186 00:05:13,511 --> 00:05:15,712 a bunch of subnets like 10/1, 187 00:05:15,713 --> 00:05:17,893 10/2, 10/50, 10/98, 188 00:05:17,894 --> 00:05:19,579 and ask yourself, okay, 189 00:05:19,604 --> 00:05:21,219 if I thought about these as 190 00:05:21,220 --> 00:05:22,728 binary patterns, 191 00:05:24,054 --> 00:05:26,101 from left to right, 192 00:05:26,126 --> 00:05:27,758 is any of the binary pattern 193 00:05:27,759 --> 00:05:30,924 consistent and the same across 194 00:05:30,925 --> 00:05:32,285 all of these? 195 00:05:32,286 --> 00:05:34,329 That's what I'll send to my 196 00:05:34,330 --> 00:05:36,305 neighbor. 197 00:05:36,305 --> 00:05:37,302 So for example-- 198 00:05:37,302 --> 00:05:38,153 let's look at an example 199 00:05:38,154 --> 00:05:39,231 of this. 200 00:05:41,834 --> 00:05:43,852 Here we have two networks, 201 00:05:43,853 --> 00:05:48,599 10.10.32.0 and 10.10.48.0. 202 00:05:48,599 --> 00:05:49,510 They both, in this case, 203 00:05:49,511 --> 00:05:51,063 have the exact same mask, 204 00:05:51,064 --> 00:05:51,790 although really, 205 00:05:51,791 --> 00:05:54,206 the subnet mask of the original 206 00:05:54,206 --> 00:05:55,981 network is irrelevant in the 207 00:05:55,982 --> 00:05:57,442 case of route summarization. 208 00:05:57,442 --> 00:05:59,762 We really could care less. 209 00:05:59,762 --> 00:06:00,715 So that's to serve like 210 00:06:00,716 --> 00:06:02,341 a distractor. 211 00:06:03,500 --> 00:06:04,701 So if we convert these networks 212 00:06:04,702 --> 00:06:05,663 into binary, remember, 213 00:06:05,664 --> 00:06:06,864 what is our objective here? 214 00:06:06,865 --> 00:06:07,396 What's our goal? 215 00:06:07,397 --> 00:06:08,186 We're trying to figure out, 216 00:06:08,186 --> 00:06:10,092 from left to right, 217 00:06:10,566 --> 00:06:11,846 what do these networks have in 218 00:06:11,847 --> 00:06:14,401 common, if anything. 219 00:06:14,402 --> 00:06:15,909 Well, clearly, 220 00:06:15,934 --> 00:06:17,548 they have the first 16 bits in 221 00:06:17,549 --> 00:06:18,936 common because they both start 222 00:06:18,937 --> 00:06:20,212 with 10.10. 223 00:06:20,212 --> 00:06:21,542 But do they have any more 224 00:06:21,543 --> 00:06:23,093 than that? 225 00:06:23,094 --> 00:06:24,285 When we go into the 226 00:06:24,286 --> 00:06:24,960 third octet, 227 00:06:24,961 --> 00:06:27,093 we see, Oh, wait a second, 228 00:06:27,118 --> 00:06:28,851 the number 32 and 48, 229 00:06:28,852 --> 00:06:30,595 when I start converting that 230 00:06:30,595 --> 00:06:33,398 into binary, sure enough, 231 00:06:33,423 --> 00:06:34,768 those two numbers have the 232 00:06:34,769 --> 00:06:36,224 first 3 bits in common. 233 00:06:36,225 --> 00:06:38,877 They both start with 001. 234 00:06:38,902 --> 00:06:41,817 The 128 and 64-bit are off, 235 00:06:41,842 --> 00:06:43,759 the 32-bit is on. 236 00:06:43,784 --> 00:06:44,787 After that, 237 00:06:44,812 --> 00:06:45,918 I start experiencing some 238 00:06:45,919 --> 00:06:47,114 variation where they're 239 00:06:47,114 --> 00:06:49,179 not the same. 240 00:06:49,180 --> 00:06:50,238 So what do these guys have 241 00:06:50,239 --> 00:06:51,758 in common? 242 00:06:51,759 --> 00:06:52,866 What they have in common is the 243 00:06:52,867 --> 00:06:55,960 first 19 bits. 244 00:06:55,961 --> 00:06:57,562 All 8 bits of 10, 245 00:06:58,046 --> 00:06:59,758 all 8 bits of 10 in the second 246 00:06:59,758 --> 00:07:05,556 octet and then 3 bits of 001. 247 00:07:05,557 --> 00:07:07,574 So I can shrink that down to a 248 00:07:07,575 --> 00:07:09,160 single summarized route of 249 00:07:09,161 --> 00:07:15,570 10.10.32.0/19. 250 00:07:15,571 --> 00:07:16,546 And that's how you summarize 251 00:07:16,547 --> 00:07:18,303 something like that. 252 00:07:23,430 --> 00:07:25,273 Well, let's do one-- 253 00:07:25,298 --> 00:07:26,638 let's see here. 254 00:07:26,663 --> 00:07:27,786 Actually, I've got a whiteboard 255 00:07:27,787 --> 00:07:29,589 pre-built that we can work on 256 00:07:29,590 --> 00:07:32,796 this. There we go. 257 00:07:32,796 --> 00:07:35,557 Let's do a couple examples 258 00:07:35,558 --> 00:07:36,760 of this. 259 00:07:36,761 --> 00:07:37,959 Let's start with these three 260 00:07:37,959 --> 00:07:39,247 networks right here. 261 00:07:41,620 --> 00:07:44,268 So we can see pretty clearly 262 00:07:44,269 --> 00:07:47,339 right off the bat that all 263 00:07:47,340 --> 00:07:48,543 three of these networks start 264 00:07:48,544 --> 00:07:52,082 with 20.20.40, 265 00:07:52,082 --> 00:07:54,014 so their first 24 bits, 266 00:07:54,039 --> 00:07:56,256 clearly, are in common. 267 00:07:56,257 --> 00:07:57,353 Well let's see if we can create 268 00:07:57,353 --> 00:07:58,569 summarized route that's even 269 00:07:58,570 --> 00:08:00,330 more specific than that, 270 00:08:00,331 --> 00:08:02,135 that has even more in common. 271 00:08:03,413 --> 00:08:07,739 So, in the fourth octet, .90, 272 00:08:07,740 --> 00:08:08,299 let's see here. 273 00:08:08,299 --> 00:08:09,856 It's got the 128-bit 274 00:08:09,856 --> 00:08:11,687 turned off. 275 00:08:11,712 --> 00:08:14,091 Also, 82 has the 128-bit 276 00:08:14,091 --> 00:08:14,610 turned off, 277 00:08:14,611 --> 00:08:16,956 and 88 has the 128-bit 278 00:08:16,956 --> 00:08:17,339 turned off. 279 00:08:17,340 --> 00:08:20,200 So far, so good. 280 00:08:20,200 --> 00:08:21,604 Let's keep going. 281 00:08:21,629 --> 00:08:24,326 .90 has the 64-bit turned on, 282 00:08:25,080 --> 00:08:28,040 82 has the 64-bit turned on, 283 00:08:29,556 --> 00:08:31,866 and 88 has the 64-bit 284 00:08:31,867 --> 00:08:32,976 turned on. 285 00:08:32,976 --> 00:08:36,387 So far we've identified 26 bits 286 00:08:36,388 --> 00:08:37,238 that all three of these 287 00:08:37,238 --> 00:08:38,086 networks have in common. 288 00:08:38,086 --> 00:08:38,766 Can we go further? 289 00:08:38,767 --> 00:08:40,487 Can we keep going? 290 00:08:42,741 --> 00:08:43,059 Let's see. 291 00:08:43,060 --> 00:08:46,189 The 32-bit is off here because 292 00:08:46,190 --> 00:08:48,446 64 plus 32 would be 96. 293 00:08:48,447 --> 00:08:50,658 So that's off. 294 00:08:50,683 --> 00:08:53,220 32-bit is off here, 295 00:08:53,221 --> 00:08:54,941 32-bit is off here. 296 00:08:54,941 --> 00:08:55,831 Oh, so far, so good. 297 00:08:55,832 --> 00:08:56,404 Let's keep going. 298 00:08:56,405 --> 00:08:58,560 Can we go even further? 299 00:08:58,560 --> 00:09:00,381 What about the 16-bit? 300 00:09:00,382 --> 00:09:05,354 64 plus 16 is 80. 301 00:09:05,379 --> 00:09:07,388 So yeah, 16-bit is on, 302 00:09:07,389 --> 00:09:08,885 on and on. 303 00:09:08,910 --> 00:09:11,557 So we're up to 80 right now. 304 00:09:11,582 --> 00:09:13,785 Now if I go to the 8-bit, 305 00:09:13,810 --> 00:09:15,329 80 plus 8 is 88. 306 00:09:15,330 --> 00:09:17,922 Yeah, we got the 8-bit on here. 307 00:09:17,922 --> 00:09:21,729 The 8-bit is off there and the 308 00:09:21,730 --> 00:09:23,831 8-bit is on right here. 309 00:09:23,831 --> 00:09:25,836 So now I can stop. 310 00:09:25,861 --> 00:09:27,589 I can see that of 311 00:09:27,590 --> 00:09:29,646 these networks, 312 00:09:29,671 --> 00:09:30,647 in addition to the first 313 00:09:30,648 --> 00:09:32,833 24-bits in common, 314 00:09:33,762 --> 00:09:34,932 they actually have the first 315 00:09:34,932 --> 00:09:38,506 28-bits in common. 316 00:09:40,745 --> 00:09:42,204 So all these networks start 317 00:09:42,205 --> 00:09:49,221 with 20.20.40.0101 and then I 318 00:09:49,221 --> 00:09:52,490 have my variability. 319 00:09:52,491 --> 00:09:53,687 So that would come up with 320 00:09:53,688 --> 00:10:00,380 20.20.40.0101000. 321 00:10:00,405 --> 00:10:03,007 So my single summarized route 322 00:10:05,302 --> 00:10:09,940 is 20.20.40 - just make sure I 323 00:10:09,940 --> 00:10:11,362 got this right here - 64 and 324 00:10:11,363 --> 00:10:16,766 16, yes, 80/28. 325 00:10:21,098 --> 00:10:22,976 So all 3 of these subnets are 326 00:10:22,977 --> 00:10:25,453 encompassed or included in this 327 00:10:25,454 --> 00:10:27,558 one aggregated or 328 00:10:27,583 --> 00:10:29,756 summarized route. 329 00:10:33,548 --> 00:10:34,873 Let's do one more example of 330 00:10:34,873 --> 00:10:39,785 that, down here. 331 00:10:43,364 --> 00:10:46,968 So these clearly have the first 332 00:10:46,969 --> 00:10:50,481 two bytes in common, 333 00:10:51,981 --> 00:10:53,038 so our variability is going to 334 00:10:53,039 --> 00:10:53,988 be somewhere in the 335 00:10:53,989 --> 00:10:55,675 third octet. 336 00:10:59,159 --> 00:11:00,646 They all have the 128 337 00:11:00,647 --> 00:11:02,263 turned off. 338 00:11:04,017 --> 00:11:05,200 They all have the 64 339 00:11:05,200 --> 00:11:06,606 turned off. 340 00:11:11,108 --> 00:11:12,556 They all have the 32 341 00:11:12,581 --> 00:11:14,008 turned off. 342 00:11:17,096 --> 00:11:17,957 They all have the 16 343 00:11:17,958 --> 00:11:19,931 turned off. 344 00:11:22,348 --> 00:11:24,485 This has the 8 on. 345 00:11:24,486 --> 00:11:26,720 This has the 8-bit on. 346 00:11:26,721 --> 00:11:30,280 This has the 8-bit on. 347 00:11:30,280 --> 00:11:31,915 This has the 4-bit on. 348 00:11:31,916 --> 00:11:34,347 8 plus 4 is 12. 349 00:11:34,348 --> 00:11:36,065 This has the 4 bit on. 350 00:11:36,066 --> 00:11:37,204 This does not. 351 00:11:37,205 --> 00:11:39,674 This has the 4-bit turned off. 352 00:11:39,699 --> 00:11:41,618 So now I can stop. 353 00:11:42,944 --> 00:11:44,452 In this particular case, 354 00:11:46,356 --> 00:11:49,446 they all have this bit pattern 355 00:11:49,471 --> 00:12:01,854 in common, 130.75.00001. 356 00:12:01,854 --> 00:12:08,129 Let's see 1, 2, 3, 4, 5, 6 7, 8. 357 00:12:08,129 --> 00:12:09,448 So if I convert that down, 358 00:12:09,449 --> 00:12:18,496 that's 130.75.-- 359 00:12:18,496 --> 00:12:33,136 which is 130.75.8.0/16 plus 5, 21 360 00:12:33,136 --> 00:12:34,410 So there is my single 361 00:12:34,411 --> 00:12:37,977 summarized route for 362 00:12:37,977 --> 00:12:40,343 these three. 363 00:12:40,343 --> 00:12:41,928 So I've got one quiz question 364 00:12:41,929 --> 00:12:44,220 here to give you, guys 365 00:12:44,221 --> 00:12:46,681 practice on this yourself. 366 00:12:46,706 --> 00:12:47,725 There you go. 367 00:12:47,726 --> 00:12:48,636 So do the same thing. 368 00:12:48,637 --> 00:12:49,837 See if you can come up with the 369 00:12:49,838 --> 00:12:52,945 most specific summarized route 370 00:12:53,802 --> 00:12:55,458 that will collapse all three of 371 00:12:55,459 --> 00:12:57,652 those subnets down into one 372 00:12:57,677 --> 00:12:59,053 summarized route. 373 00:12:59,053 --> 00:13:00,227 I'll give you 30 seconds 374 00:13:00,228 --> 00:13:00,895 for this. 375 00:13:07,563 --> 00:13:09,460 Okay. Time's up. 376 00:13:09,461 --> 00:13:11,148 Here is our answer. 377 00:13:12,789 --> 00:13:15,352 So all three of these networks 378 00:13:16,850 --> 00:13:20,064 had the first 27 bits in 379 00:13:20,064 --> 00:13:23,326 common, 135.75.42, 380 00:13:23,326 --> 00:13:25,099 and then on the fourth octet, 381 00:13:25,124 --> 00:13:28,446 they all had 011 in common, 382 00:13:30,350 --> 00:13:37,742 which gives us 135.75.42.96 383 00:13:37,767 --> 00:13:40,054 with a /27 subnet mask. 384 00:13:41,328 --> 00:13:41,771 All right. 385 00:13:41,771 --> 00:13:44,465 We have one topic left to go, 386 00:13:44,465 --> 00:13:45,247 which we'll actually get 387 00:13:45,248 --> 00:13:46,246 through pretty quickly. 388 00:13:46,246 --> 00:13:48,084 One last topic 389 00:13:50,377 --> 00:13:52,686 that's called supernetting. 390 00:13:55,480 --> 00:13:59,642 So, supernetting is essentially 391 00:13:59,643 --> 00:14:03,378 exactly the same thing as route 392 00:14:03,378 --> 00:14:04,980 summarization that we just 393 00:14:04,981 --> 00:14:05,962 looked at. 394 00:14:05,963 --> 00:14:07,487 The logic that you used to do 395 00:14:07,488 --> 00:14:09,284 supernetting is exactly the 396 00:14:09,285 --> 00:14:10,546 same logic you use to 397 00:14:10,547 --> 00:14:12,319 do summarization. 398 00:14:12,320 --> 00:14:13,022 There's only one 399 00:14:13,023 --> 00:14:15,837 main differentiator. 400 00:14:15,838 --> 00:14:16,785 With summarization, 401 00:14:16,785 --> 00:14:17,419 look at that last 402 00:14:17,420 --> 00:14:18,760 bullet point there. 403 00:14:18,761 --> 00:14:19,768 Whatever the summarized 404 00:14:19,768 --> 00:14:20,903 route is, 405 00:14:20,904 --> 00:14:22,694 it does not break the 406 00:14:22,695 --> 00:14:24,985 classful boundaries. 407 00:14:24,986 --> 00:14:25,824 What do I mean? 408 00:14:25,825 --> 00:14:26,279 Let's go back to 409 00:14:26,279 --> 00:14:31,024 this here, 135. 410 00:14:31,049 --> 00:14:32,165 Technically, if we were talking 411 00:14:32,166 --> 00:14:33,908 about classful addresses, 412 00:14:33,933 --> 00:14:35,777 what class of address would 135 413 00:14:35,778 --> 00:14:37,737 fall into? 414 00:14:39,808 --> 00:14:42,461 Hopefully you said Class B. 415 00:14:42,462 --> 00:14:44,725 135 is Class B. 416 00:14:44,750 --> 00:14:45,688 Which means that if I'm 417 00:14:45,688 --> 00:14:47,762 doing summarization, 418 00:14:47,787 --> 00:14:49,283 whatever subnet mask 419 00:14:49,283 --> 00:14:49,930 I come up with, 420 00:14:49,931 --> 00:14:52,470 one of my summarized route, 421 00:14:52,495 --> 00:14:56,092 it has to be /16 or bigger. 422 00:14:56,093 --> 00:14:56,760 Like in this case, 423 00:14:56,760 --> 00:15:00,228 it would be /27, /16 or bigger. 424 00:15:01,498 --> 00:15:04,888 Well, supernetting is coming up 425 00:15:04,889 --> 00:15:05,290 with the mask. 426 00:15:05,290 --> 00:15:07,807 It's actually smaller than your 427 00:15:07,808 --> 00:15:09,961 classful address. 428 00:15:09,962 --> 00:15:11,717 For example, 429 00:15:13,760 --> 00:15:15,297 take a look at this. 430 00:15:16,638 --> 00:15:18,302 Let's say that my router knew 431 00:15:18,303 --> 00:15:21,212 about these two Class C 432 00:15:21,213 --> 00:15:25,590 networks - 192.168.1 and 433 00:15:25,591 --> 00:15:29,324 192.168.2 434 00:15:29,325 --> 00:15:30,530 There's no way I could 435 00:15:30,531 --> 00:15:31,464 summarize this. 436 00:15:31,464 --> 00:15:33,301 If I want to shrink this down 437 00:15:33,301 --> 00:15:35,307 into just one advertisement and 438 00:15:35,308 --> 00:15:36,846 send it as a summarized route, 439 00:15:36,847 --> 00:15:37,973 I couldn't. 440 00:15:37,998 --> 00:15:39,314 Why not? 441 00:15:39,339 --> 00:15:41,345 Well, because the mask is 442 00:15:41,346 --> 00:15:43,334 already at the classful 443 00:15:43,335 --> 00:15:46,032 boundary of /24. 444 00:15:46,032 --> 00:15:47,422 Summarization means I can't go 445 00:15:47,423 --> 00:15:49,282 any less than a /24 if what I'm 446 00:15:49,283 --> 00:15:51,364 starting with is essentially a 447 00:15:51,365 --> 00:15:53,075 Class C. 448 00:15:53,100 --> 00:15:54,451 This is where supernetting 449 00:15:54,452 --> 00:15:55,393 comes into play. 450 00:15:55,394 --> 00:15:56,859 So use the exact same logic. 451 00:15:56,860 --> 00:15:57,757 Let's look at this and say for 452 00:15:57,757 --> 00:15:58,873 a second, Okay, well, 453 00:15:58,898 --> 00:15:59,680 from left to right, 454 00:15:59,681 --> 00:16:00,879 if I was to convert this into 455 00:16:00,880 --> 00:16:03,557 binary, from left to right, 456 00:16:03,582 --> 00:16:04,977 what do these two networks have 457 00:16:04,978 --> 00:16:06,172 in common? 458 00:16:07,830 --> 00:16:09,011 The first two octets 459 00:16:09,012 --> 00:16:10,658 were the same. 460 00:16:10,683 --> 00:16:13,807 And then in the third octet-- 461 00:16:17,085 --> 00:16:18,724 in the third octet, 462 00:16:18,749 --> 00:16:24,863 they're the same up to here. 463 00:16:24,864 --> 00:16:26,360 So really this first-- 464 00:16:26,361 --> 00:16:27,960 these two networks both have in 465 00:16:27,961 --> 00:16:31,671 common the first 22-bits. 466 00:16:33,600 --> 00:16:35,122 So I could collapse them down 467 00:16:35,123 --> 00:16:36,802 into one route, 468 00:16:36,803 --> 00:16:42,030 192.168.0.0/22 and this is 469 00:16:42,055 --> 00:16:44,566 called a supernet. 470 00:16:44,566 --> 00:16:45,877 Because even though if you take 471 00:16:45,878 --> 00:16:47,991 a look at that first byte, 472 00:16:48,016 --> 00:16:49,942 you'd say, Oh 192. 473 00:16:49,943 --> 00:16:52,094 Well in binary that's 110, 474 00:16:52,094 --> 00:16:54,255 that's Class C. 475 00:16:54,256 --> 00:16:56,407 But Class C means /24 and here 476 00:16:56,407 --> 00:16:59,715 I'm doing a /22. 477 00:16:59,715 --> 00:17:00,765 That's what makes it 478 00:17:00,766 --> 00:17:03,944 a supernet. 479 00:17:03,945 --> 00:17:04,755 That's what makes it 480 00:17:04,755 --> 00:17:06,355 a supernet. 481 00:17:06,355 --> 00:17:07,618 Now as far as summarization 482 00:17:07,619 --> 00:17:09,453 is concerned. 483 00:17:09,454 --> 00:17:12,735 Some routing protocols, 484 00:17:12,736 --> 00:17:13,961 when you turn them on, 485 00:17:13,961 --> 00:17:14,916 and it depends on the version 486 00:17:14,916 --> 00:17:15,993 of software you're dealing with 487 00:17:15,994 --> 00:17:17,087 in the code, 488 00:17:17,112 --> 00:17:18,315 some routers perform route 489 00:17:18,316 --> 00:17:20,666 summarization by default. 490 00:17:20,666 --> 00:17:22,293 They will take some subnets, 491 00:17:22,318 --> 00:17:23,589 shrink them down into a single 492 00:17:23,589 --> 00:17:25,345 route, advertise it out, 493 00:17:25,370 --> 00:17:26,480 and the subnet mask-- 494 00:17:26,481 --> 00:17:27,833 the mask, I should say. 495 00:17:27,834 --> 00:17:28,897 I shouldn't say subnet mask. 496 00:17:28,897 --> 00:17:30,846 The mask associated with that 497 00:17:30,847 --> 00:17:34,027 summarized route does not break 498 00:17:34,028 --> 00:17:34,637 the rules of 499 00:17:34,638 --> 00:17:36,891 classful addressing. 500 00:17:38,132 --> 00:17:39,621 Supernetting can only be 501 00:17:39,622 --> 00:17:41,485 done manually. 502 00:17:41,486 --> 00:17:42,546 Typically this is something you 503 00:17:42,547 --> 00:17:44,487 would see done in BGP. 504 00:17:44,512 --> 00:17:45,787 You wouldn't normally see it 505 00:17:45,788 --> 00:17:47,422 done in your interior gateway 506 00:17:47,422 --> 00:17:49,594 protocols, although you can. 507 00:17:49,595 --> 00:17:50,635 But this is usually something 508 00:17:50,635 --> 00:17:51,848 that ISPs would do to 509 00:17:51,849 --> 00:17:52,742 each other. 510 00:17:52,743 --> 00:17:53,689 For example, 511 00:17:53,689 --> 00:17:56,350 if I'm Time Warner Cable, 512 00:17:56,375 --> 00:17:57,761 I might say, well-- 513 00:17:57,786 --> 00:18:00,021 let's do an example of that. 514 00:18:00,046 --> 00:18:01,138 Let's say that we have here 515 00:18:01,139 --> 00:18:02,872 two routers. 516 00:18:05,045 --> 00:18:06,750 This router here is owned by 517 00:18:06,750 --> 00:18:08,062 Time Warner Cable. 518 00:18:08,087 --> 00:18:09,608 This router here is owned 519 00:18:09,609 --> 00:18:12,177 by Sprint. 520 00:18:12,178 --> 00:18:14,427 Two different routing domains. 521 00:18:14,428 --> 00:18:15,612 Now, Time Warner Cable, 522 00:18:15,613 --> 00:18:17,462 as a service provider, 523 00:18:17,487 --> 00:18:19,378 own thousands and thousands, 524 00:18:19,379 --> 00:18:21,124 tens, probably even hundreds of 525 00:18:21,125 --> 00:18:23,095 thousands of subnets. 526 00:18:23,096 --> 00:18:23,686 Let's say they say, 527 00:18:23,687 --> 00:18:24,550 okay, well, 528 00:18:24,551 --> 00:18:26,116 I own every subnet from 529 00:18:26,117 --> 00:18:28,426 1.anything, 530 00:18:29,751 --> 00:18:34,709 2.anything, 3.anything. 531 00:18:34,710 --> 00:18:35,951 Let's see if I can figure out a 532 00:18:35,952 --> 00:18:40,718 nice, easy way to do this. 533 00:18:43,303 --> 00:18:45,025 Let's do Class B instead of 534 00:18:45,025 --> 00:18:46,873 Class A. 535 00:18:46,898 --> 00:18:55,501 Let's say 130.1.0.0, 130.2.0.0, 536 00:18:57,068 --> 00:19:01,871 130.3.0.0. 537 00:19:05,196 --> 00:19:06,419 Let's stick up here at the top 538 00:19:06,420 --> 00:19:08,917 130.0.0.0 539 00:19:10,661 --> 00:19:12,054 So Time Warner Cable actually 540 00:19:12,055 --> 00:19:12,721 owns the-- 541 00:19:12,722 --> 00:19:13,854 I'm just making this up here. 542 00:19:13,855 --> 00:19:15,091 Time Warner Cable, 543 00:19:15,092 --> 00:19:15,673 let's assume, 544 00:19:15,673 --> 00:19:19,906 owns these four full Class Bs. 545 00:19:19,931 --> 00:19:20,629 Now, chances are, 546 00:19:20,630 --> 00:19:21,517 they're probably not going to 547 00:19:21,518 --> 00:19:22,635 hand out these Class Bs to 548 00:19:22,636 --> 00:19:24,686 their customers because each 549 00:19:24,686 --> 00:19:27,588 one of those Class Bs supports 550 00:19:27,588 --> 00:19:30,248 over 65,000 hosts. 551 00:19:30,249 --> 00:19:31,955 So if a customer goes to Time 552 00:19:31,956 --> 00:19:32,924 Warner Cable and they say, 553 00:19:32,925 --> 00:19:34,655 I need a network from you. 554 00:19:34,680 --> 00:19:35,797 Time Warner Cable might say, 555 00:19:35,798 --> 00:19:37,148 okay, well let's see here. 556 00:19:37,173 --> 00:19:39,271 How many hosts does your 557 00:19:39,271 --> 00:19:40,573 network support? 558 00:19:40,574 --> 00:19:42,119 And if the customer says, 559 00:19:42,119 --> 00:19:45,446 my network supports 300 hosts, 560 00:19:45,471 --> 00:19:46,679 Time Warner Cable is not going 561 00:19:46,680 --> 00:19:47,431 to give them this entire 562 00:19:47,432 --> 00:19:48,445 Class B. 563 00:19:48,470 --> 00:19:49,984 They'll probably carve out a 564 00:19:49,985 --> 00:19:52,482 subnet of that Class B and sell 565 00:19:52,483 --> 00:19:54,044 that to the customer. 566 00:19:54,044 --> 00:19:55,127 But Time Warner Cable, 567 00:19:55,128 --> 00:19:56,180 as a whole, as a company, 568 00:19:56,180 --> 00:19:58,510 is responsible for these four 569 00:19:58,510 --> 00:19:59,075 Class Bs. 570 00:19:59,076 --> 00:20:00,869 They've been allocated these 571 00:20:00,894 --> 00:20:01,461 from the Regional 572 00:20:01,462 --> 00:20:03,730 Internet Registry. 573 00:20:03,755 --> 00:20:08,353 Well, using BGP or something, 574 00:20:08,378 --> 00:20:11,210 They could send all four of 575 00:20:11,211 --> 00:20:14,430 these to Sprint, 576 00:20:14,455 --> 00:20:15,253 or they could say, 577 00:20:15,254 --> 00:20:16,793 Let's do supernetting here. 578 00:20:16,793 --> 00:20:17,656 What do these guys have 579 00:20:17,656 --> 00:20:18,397 in common? 580 00:20:18,398 --> 00:20:19,227 Well, they all start out 581 00:20:19,227 --> 00:20:21,861 with 130, 582 00:20:21,862 --> 00:20:24,410 and then in the second octet, 583 00:20:24,435 --> 00:20:32,210 128, 64, 32, 16, 8, and 4, 584 00:20:32,210 --> 00:20:34,518 those bits are all zeroed out, 585 00:20:36,153 --> 00:20:37,256 and the last two bits have 586 00:20:37,257 --> 00:20:39,027 various combinations. 587 00:20:44,542 --> 00:20:45,573 So Time Warner Cable could 588 00:20:45,574 --> 00:20:47,372 instead send a supernet, 589 00:20:47,372 --> 00:20:48,423 which looks like this: 590 00:20:48,423 --> 00:20:55,736 130.0.0.0/14. 591 00:20:55,737 --> 00:20:56,956 All four of these networks have 592 00:20:56,957 --> 00:20:59,692 the first 14 bits in common - 593 00:20:59,693 --> 00:21:02,389 130 and then 6 bits of 0. 594 00:21:02,390 --> 00:21:03,793 This is a supernet. 595 00:21:09,761 --> 00:21:10,514 So when performing 596 00:21:10,515 --> 00:21:12,357 summarization or supernetting, 597 00:21:12,358 --> 00:21:12,968 like I said, 598 00:21:12,969 --> 00:21:14,489 the logic you work through is 599 00:21:14,490 --> 00:21:15,998 exactly the same. 600 00:21:16,023 --> 00:21:17,711 Simply ask yourself, 601 00:21:17,736 --> 00:21:20,960 what bits from left to right do 602 00:21:20,961 --> 00:21:22,306 all of these networks have 603 00:21:22,307 --> 00:21:23,293 in common? 604 00:21:23,318 --> 00:21:27,992 [music]