1 00:00:00,000 --> 00:00:00,500 2 00:00:00,500 --> 00:00:02,240 Oftentimes, we're going to want to have 3 00:00:02,240 --> 00:00:04,340 redundancy inside of our networks, 4 00:00:04,340 --> 00:00:06,260 and in the world of switching that 5 00:00:06,260 --> 00:00:09,150 might equate to having more than just one path. 6 00:00:09,150 --> 00:00:12,500 So if PC-1 wants to talk to PC-4, well, 7 00:00:12,500 --> 00:00:15,590 if this link goes out, by having a redundant path already 8 00:00:15,590 --> 00:00:18,410 in place, that redundant path can still be used. 9 00:00:18,410 --> 00:00:19,910 However, in the world of switching, 10 00:00:19,910 --> 00:00:23,060 if we do have parallel paths consider a broadcast, 11 00:00:23,060 --> 00:00:25,970 a broadcast, maybe an ARP request that PC-1 12 00:00:25,970 --> 00:00:27,200 sends into the switch. 13 00:00:27,200 --> 00:00:29,900 That broadcast is forwarded out the trunk, 14 00:00:29,900 --> 00:00:32,330 received by Switch-2, forwarded out the trunk, 15 00:00:32,330 --> 00:00:34,720 received by Switch-3, forwarded out the trunk, 16 00:00:34,720 --> 00:00:37,220 we see by Switch-1 again, who then forwards it, 17 00:00:37,220 --> 00:00:40,640 and that could cause a switching loop, a layer 2 18 00:00:40,640 --> 00:00:43,670 loop caused by a single broadcast initiated 19 00:00:43,670 --> 00:00:45,740 by a PC on a VLAN. 20 00:00:45,740 --> 00:00:48,800 Well, because it's not desirable to have frames that just loop 21 00:00:48,800 --> 00:00:52,520 forever on the network, we have a protocol named Spanning Tree 22 00:00:52,520 --> 00:00:55,130 Protocol, whose job it is to identify 23 00:00:55,130 --> 00:00:57,470 parallel paths on the layer 2 network, 24 00:00:57,470 --> 00:00:59,810 and then wherever there are redundant paths 25 00:00:59,810 --> 00:01:02,120 to go ahead and logically block on ports, 26 00:01:02,120 --> 00:01:05,810 so there's only one path through that network at any given time. 27 00:01:05,810 --> 00:01:07,700 And to perform this quote unquote 28 00:01:07,700 --> 00:01:11,570 magic of identifying parallel paths and blocking them, 29 00:01:11,570 --> 00:01:15,600 the Spanning Tree Protocol sends and receives little BPDUs. 30 00:01:15,600 --> 00:01:18,560 That stands for a bridge protocol data 31 00:01:18,560 --> 00:01:20,990 unit, which in the world of the Spanning Tree 32 00:01:20,990 --> 00:01:22,310 is the language of love. 33 00:01:22,310 --> 00:01:24,620 It's how these switches can communicate and talk 34 00:01:24,620 --> 00:01:26,720 to each other regarding the Spanning Tree, 35 00:01:26,720 --> 00:01:28,220 and which ports should be forwarding 36 00:01:28,220 --> 00:01:29,840 and which ports should be blocked. 37 00:01:29,840 --> 00:01:32,120 And during that process, one of the switches 38 00:01:32,120 --> 00:01:34,850 is going to be identified as the root. 39 00:01:34,850 --> 00:01:38,570 Think of it as the King Kong of the Spanning Tree topology, 40 00:01:38,570 --> 00:01:40,820 and it's referred to as the Root Bridge. 41 00:01:40,820 --> 00:01:42,580 And the reason is called a Root Bridge, 42 00:01:42,580 --> 00:01:44,990 is because when this was implemented or developed 43 00:01:44,990 --> 00:01:47,240 many, many years ago we had bridges, 44 00:01:47,240 --> 00:01:49,520 layer 2 switching devices called bridges. 45 00:01:49,520 --> 00:01:51,950 Now we use switches instead of bridges, however, 46 00:01:51,950 --> 00:01:53,810 the term is still referred to as the Root 47 00:01:53,810 --> 00:01:56,870 Bridge for the King Kong of the Spanning Tree topology. 48 00:01:56,870 --> 00:01:59,270 You can think of the Root Bridge as the winner, 49 00:01:59,270 --> 00:02:01,550 and as a result of winning, the Root Bridge 50 00:02:01,550 --> 00:02:04,220 is given the opportunity of forwarding 51 00:02:04,220 --> 00:02:06,650 on all ports for that VLAN. 52 00:02:06,650 --> 00:02:08,900 In this case, we're looking at the VLAN 100. 53 00:02:08,900 --> 00:02:11,100 So if Switch-1 is the Root Bridge, 54 00:02:11,100 --> 00:02:14,120 the winner of the Spanning Tree, who are the losers? 55 00:02:14,120 --> 00:02:16,700 Well, they're not quite losers, but they're simply 56 00:02:16,700 --> 00:02:20,590 switches, others switches, that didn't become the Root Bridge. 57 00:02:20,590 --> 00:02:23,660 And in our topology here, that would be Switch-3 and Switch-2, 58 00:02:23,660 --> 00:02:25,880 which are the non-root bridges. 59 00:02:25,880 --> 00:02:28,340 And by using BPDUs, Switch-2 and Switch-3 60 00:02:28,340 --> 00:02:32,270 can identify what is the optimal or fastest path 61 00:02:32,270 --> 00:02:33,680 to reach the root. 62 00:02:33,680 --> 00:02:37,490 And in this topology, it would be Switch-2's gig 1 slash 0, 63 00:02:37,490 --> 00:02:39,560 so that would be put in a forwarding state, 64 00:02:39,560 --> 00:02:42,650 and Switch-3's gig 0 slash 1, and it would 65 00:02:42,650 --> 00:02:44,210 be put in a forwarding state. 66 00:02:44,210 --> 00:02:46,250 And also those ports that are the fastest 67 00:02:46,250 --> 00:02:50,291 path to get to the root, those are referred to as root ports. 68 00:02:50,291 --> 00:02:52,790 And then when it comes down to this segment between Switch-3 69 00:02:52,790 --> 00:02:55,475 and Switch-2, if both these ports are forwarding, 70 00:02:55,475 --> 00:02:56,600 we're going to have a loop. 71 00:02:56,600 --> 00:02:58,190 So Switch-2 and Switch-3 are also 72 00:02:58,190 --> 00:03:00,410 going to have a little face off and duke it out. 73 00:03:00,410 --> 00:03:03,290 They're going to be sending BPUs back and forth to determine 74 00:03:03,290 --> 00:03:06,230 which of these two switch's ports should be forwarding 75 00:03:06,230 --> 00:03:07,670 and which should be blocking. 76 00:03:07,670 --> 00:03:11,210 And as Switch-2 wins, it's going to go ahead and be forwarding 77 00:03:11,210 --> 00:03:14,990 on its port, and Switch-3, if it lost for this segment, 78 00:03:14,990 --> 00:03:17,270 we'd go ahead and block from a Spanning Tree 79 00:03:17,270 --> 00:03:18,780 perspective on that port. 80 00:03:18,780 --> 00:03:22,430 So any frames that do come in to gig 0 slash 2 from Switch-2 81 00:03:22,430 --> 00:03:24,830 would simply be dropped, put in the bitbucket, 82 00:03:24,830 --> 00:03:26,420 and also if this port is blocked, 83 00:03:26,420 --> 00:03:29,030 Switch-3 is not going to be forwarding any data frames out 84 00:03:29,030 --> 00:03:30,920 that port up to Switch-2. 85 00:03:30,920 --> 00:03:33,230 And Spanning Tree is going to keep that block in place 86 00:03:33,230 --> 00:03:35,521 until there's some kind of other change in the network. 87 00:03:35,521 --> 00:03:38,360 An example would be this path between Switch-1 and Switch-2 88 00:03:38,360 --> 00:03:41,990 fails, or the cables cut, which would also cause that path 89 00:03:41,990 --> 00:03:45,440 to fail, and then Spanning Tree could reconfigure the topology 90 00:03:45,440 --> 00:03:47,150 and then start forwarding on this port 91 00:03:47,150 --> 00:03:49,430 and take advantage of the additional links that 92 00:03:49,430 --> 00:03:51,395 are in the network to forward traffic. 93 00:03:51,395 --> 00:03:53,270 So that's the basic concept of Spanning Tree, 94 00:03:53,270 --> 00:03:56,270 to identify parallel paths in the layer 2 network, 95 00:03:56,270 --> 00:03:58,430 and then block on one or more ports 96 00:03:58,430 --> 00:04:01,110 so that we don't have the possibility for a layer 2 loop 97 00:04:01,110 --> 00:04:03,389 to happen inside of our switch network. 98 00:04:03,389 --> 00:04:05,180 In this Nugget, we've identified that if we 99 00:04:05,180 --> 00:04:08,180 have parallel paths in our layer 2 network, 100 00:04:08,180 --> 00:04:11,180 we could have a switching loop, and to help identify 101 00:04:11,180 --> 00:04:13,450 parallel paths and to block on one or more ports 102 00:04:13,450 --> 00:04:15,620 so we don't have a loop, we have the protocol 103 00:04:15,620 --> 00:04:18,050 of Spanning Tree, the Spanning Tree Protocol, that 104 00:04:18,050 --> 00:04:20,240 can dynamically identify those parallel paths 105 00:04:20,240 --> 00:04:23,450 and block on one or more ports to prevent a loop. 106 00:04:23,450 --> 00:04:25,700 I hope this has been informative for you, 107 00:04:25,700 --> 00:04:29,350 and I'd like to thank you for viewing.