WEBVTT 0:00:03.120000 --> 0:00:08.080000 Okay, so let's review RSTP functionality and start looking into the details 0:00:08.080000 --> 0:00:14.220000 of how rapid spanning to creates a loop-free tree. 0:00:14.220000 --> 0:00:16.700000 How does it work? 0:00:16.700000 --> 0:00:21.600000 All right, so the first step is that any tree that's created by Span Tree 0:00:21.600000 --> 0:00:24.520000 has to start with the election of a root bridge. 0:00:24.520000 --> 0:00:29.320000 Only one switch for the tree can be elected to this very special role. 0:00:29.320000 --> 0:00:34.760000 Once the root bridge is elected, all of its ports become what's called 0:00:34.760000 --> 0:00:36.560000 designated ports. 0:00:36.560000 --> 0:00:43.580000 On all the other switches that were not the root bridge, each one of them 0:00:43.580000 --> 0:00:46.920000 has to elect a root port. 0:00:46.920000 --> 0:00:51.640000 Then they have to figure out designated ports between themselves and then 0:00:51.640000 --> 0:00:53.480000 we end up blocking non -designated ports. 0:00:53.480000 --> 0:00:57.800000 Now there's a lot to that which we're going to dig into a little bit here. 0:00:57.800000 --> 0:01:00.860000 So let's start with the root bridge election. 0:01:00.860000 --> 0:01:01.600000 This is step one. 0:01:01.600000 --> 0:01:03.020000 This is what has to happen. 0:01:03.020000 --> 0:01:07.380000 So in Span Tree and all the flavors of Span Tree but focusing in on rapid 0:01:07.380000 --> 0:01:11.440000 spanning tree, a switch will start sending out a special Ethernet frame 0:01:11.440000 --> 0:01:16.640000 which we call a bridge protocol data unit, a BPDU. 0:01:16.640000 --> 0:01:20.200000 This is the fundamental data structure that Span Tree uses to discover 0:01:20.200000 --> 0:01:24.440000 other switches and discover who's going to be the root bridge and what 0:01:24.440000 --> 0:01:28.380000 the status of all the interfaces are going to be by transmitting and receiving 0:01:28.380000 --> 0:01:32.020000 BPDUs. All right. 0:01:32.020000 --> 0:01:37.080000 So inside that BPDU, every switch is going to advertise itself with a 0:01:37.080000 --> 0:01:38.880000 unique identifier. 0:01:38.880000 --> 0:01:41.020000 We call it a bridge ID, a bridge identifier. 0:01:41.020000 --> 0:01:44.500000 So every switch comes up with a unique bridge ID and the switch with the 0:01:44.500000 --> 0:01:49.660000 numerically lowest bridge ID ends up becoming the root bridge. 0:01:49.660000 --> 0:01:52.280000 Now what does that bridge ID actually composed of? 0:01:52.280000 --> 0:01:57.340000 It's composed of two pieces of information, a bridge priority which is 0:01:57.340000 --> 0:02:07.040000 a 16-bit field so that can go from 1 to 61, 440 in increments of 4096 0:02:07.040000 --> 0:02:11.720000 and a system ID extension. 0:02:11.720000 --> 0:02:17.840000 That's actually all part of the priority field as well as a MAC address. 0:02:17.840000 --> 0:02:23.600000 Now in the original days, just as a quick review here, if this was your 0:02:23.600000 --> 0:02:32.720000 BPDU and this portion right here was your ID, the way it was structured 0:02:32.720000 --> 0:02:39.220000 was that part of it would be your MAC. 0:02:39.220000 --> 0:02:43.860000 So a switch or a bridge back in those days would dynamically determine 0:02:43.860000 --> 0:02:47.400000 that one of its MAC addresses, usually the lowest one it had, would be 0:02:47.400000 --> 0:02:52.020000 the MAC address of its bridge ID and then this portion right here would 0:02:52.020000 --> 0:02:53.740000 be your priority field. 0:02:53.740000 --> 0:03:00.780000 Now with what's called extended system IDs, if we take our priority field 0:03:00.780000 --> 0:03:06.200000 and we expand it a little bit, only the first four bits of the priority 0:03:06.200000 --> 0:03:09.060000 field are actually used for the priority. 0:03:09.060000 --> 0:03:14.700000 So if you're modifying the bridge priority in a spanning tree command, 0:03:14.700000 --> 0:03:18.020000 only these four bits are the bits that you can actually change. 0:03:18.020000 --> 0:03:23.800000 The rest of the bits after that are what we call, well what the slide 0:03:23.800000 --> 0:03:32.040000 called, a system dash ID extension in reality, that's your VLAN. 0:03:32.040000 --> 0:03:41.600000 So for example, if this BPDU is reflecting the tree for VLAN 7, then all 0:03:41.600000 --> 0:03:46.080000 these bits here are going to be zeroed out except 111 at the end. 0:03:46.080000 --> 0:03:49.360000 We're going to encode the number 7 in there and then these bits will be 0:03:49.360000 --> 0:03:52.940000 whatever the priority is that was configured. 0:03:52.940000 --> 0:03:58.600000 Now when I give this BPDU to you, you're going to interpret this whole 0:03:58.600000 --> 0:04:03.860000 thing, which is this portion right here, as my priority value. 0:04:03.860000 --> 0:04:07.960000 So let's dig into that a little bit more. 0:04:07.960000 --> 0:04:17.820000 So there it is, two bit, two byte priority, six byte MAC address. 0:04:17.820000 --> 0:04:23.280000 You should also remember what the default value is for spanning tree bridge 0:04:23.280000 --> 0:04:31.540000 priority. That default value being 3278. 0:04:31.540000 --> 0:04:33.800000 So that is the default bridge priority. 0:04:33.800000 --> 0:04:40.540000 So if I'm sending you a BPDU and this BPDU represents VLAN 1, you will 0:04:40.540000 --> 0:04:49.440000 actually see my BPDU is VLAN 1 because remember it's 4 bits of priority 0:04:49.440000 --> 0:04:51.660000 plus a whole bunch of bits of VLAN. 0:04:51.660000 --> 0:04:56.860000 If I'm sending you a BPDU for VLAN 10, you'll see my priority. 0:04:56.860000 --> 0:05:03.680000 If I don't change it, if I'm leaving the default as 32778, 768 plus VLAN 0:05:03.680000 --> 0:05:09.760000 10. Now, if you do modify this value via configuration, recall like the 0:05:09.760000 --> 0:05:16.140000 last slide said, this has to be an increments or multiples of 4096. 0:05:16.140000 --> 0:05:18.840000 Now you could knock this all the way down to zero. 0:05:18.840000 --> 0:05:21.280000 Remember, in spanning tree, lower is better. 0:05:21.280000 --> 0:05:24.560000 So you could give yourself a bridge priority of zero. 0:05:24.560000 --> 0:05:27.220000 After that would be 4096. 0:05:27.220000 --> 0:05:31.720000 After that would be 8192 and so on and so forth. 0:05:31.720000 --> 0:05:40.780000 You'll see that 3278 is actually an increment or a multiple of 4096. 0:05:40.780000 --> 0:05:45.260000 All right, real quickly, let's just review the port roles and port states 0:05:45.260000 --> 0:05:47.400000 that rapid spanning tree has. 0:05:47.400000 --> 0:05:54.200000 So a port role is what is the job or purpose of this port as it relates 0:05:54.200000 --> 0:05:59.800000 to the tree. Is it's is it's job to transmit BPDUs into the tree? 0:05:59.800000 --> 0:06:04.100000 Is it's job to be listening and receiving BPDUs from other switches upstream 0:06:04.100000 --> 0:06:06.520000 in the tree? What's its purpose? 0:06:06.520000 --> 0:06:10.680000 Is it's job just a block and make sure there's no loops here? 0:06:10.680000 --> 0:06:16.400000 And the port state is what is this what is this port's purpose as far 0:06:16.400000 --> 0:06:17.920000 as data is concerned? 0:06:17.920000 --> 0:06:19.500000 Is it allowed to forward data? 0:06:19.500000 --> 0:06:20.980000 Should it block data? 0:06:20.980000 --> 0:06:24.000000 What should it do as far as your actual user data is concerned? 0:06:24.000000 --> 0:06:29.160000 First one we want to talk about is the designated port. 0:06:29.160000 --> 0:06:32.880000 Now, once the root bridge is elected, once again, that was the bridge 0:06:32.880000 --> 0:06:34.580000 with the lowest bridge ID. 0:06:34.580000 --> 0:06:38.120000 So all the switches first look at their priorities. 0:06:38.120000 --> 0:06:41.300000 If everybody if somebody has a lower priority than everybody else, we're 0:06:41.300000 --> 0:06:43.920000 done. They win lowest priority wins. 0:06:43.920000 --> 0:06:47.860000 But if you haven't changed that, everybody's priority will be the same. 0:06:47.860000 --> 0:06:51.640000 So then I'll be the switch with the lowest MAC address that will win. 0:06:51.640000 --> 0:06:54.460000 So there will be some winner, which is the root bridge. 0:06:54.460000 --> 0:06:58.820000 Once the root bridge is elected, now he will place all of his ports in 0:06:58.820000 --> 0:07:02.000000 that B land as designated ports. 0:07:02.000000 --> 0:07:05.180000 And those the designated ports are in the forwarding state. 0:07:05.180000 --> 0:07:08.880000 They are wide open for receiving and transmitting traffic. 0:07:08.880000 --> 0:07:15.300000 Now other switches downstream who did not win, who are not the root bridge, 0:07:15.300000 --> 0:07:18.360000 they have to figure out what interface they have that goes back to the 0:07:18.360000 --> 0:07:22.240000 root bridge that's the fastest path back to the root bridge. 0:07:22.240000 --> 0:07:25.120000 And those here the designated ports, what do they do? 0:07:25.120000 --> 0:07:26.800000 What are they responsible for? 0:07:26.800000 --> 0:07:28.280000 Transmitting BPDUs. 0:07:28.280000 --> 0:07:32.840000 A designated port always has to transmit a BPDU. 0:07:32.840000 --> 0:07:37.940000 Now downstream switch, he will elect a root port, only one. 0:07:37.940000 --> 0:07:42.620000 So if I'm a switch, I might be, you know, the root bridge might be three, 0:07:42.620000 --> 0:07:47.460000 four, five hops away from me and I might be receiving BPDUs from him on 0:07:47.460000 --> 0:07:49.800000 like 25 different interfaces. 0:07:49.800000 --> 0:07:53.460000 I'm going to elect one of those interfaces as my root port. 0:07:53.460000 --> 0:07:56.740000 The root port that will get me back to that root bridge, the fastest. 0:07:56.740000 --> 0:07:59.380000 And we'll talk about in just a moment, well, what if there's a tie? 0:07:59.380000 --> 0:08:02.100000 We'll talk about what the tie breakers are. 0:08:02.100000 --> 0:08:05.760000 But a root port, as you can see, is receiving BPDUs. 0:08:05.760000 --> 0:08:09.560000 I sometimes say root port receives, right? 0:08:09.560000 --> 0:08:11.280000 R-R, root receives. 0:08:11.280000 --> 0:08:13.640000 So root port receives BPDUs. 0:08:13.640000 --> 0:08:19.880000 Now, if he has a port that's leading further downstream, that will become 0:08:19.880000 --> 0:08:25.440000 a designated port and he will be forwarding those BPDUs on further downstream. 0:08:25.440000 --> 0:08:31.040000 So bridge C here, on bridge C, his connection leading back to bridge B, 0:08:31.040000 --> 0:08:34.540000 that will be his root port that's receiving BPDUs. 0:08:34.540000 --> 0:08:39.540000 Now, rapid spanning tree also has the concept of something called an edge 0:08:39.540000 --> 0:08:44.260000 port. An edge port is a port that's typically leading to a host, like 0:08:44.260000 --> 0:08:49.060000 a laptop, a PC, a server, even a router, something where the broadcast 0:08:49.060000 --> 0:08:51.840000 domain ends at that host. 0:08:51.840000 --> 0:08:55.100000 So an edge port is a port where you know, as a network administrator, 0:08:55.100000 --> 0:08:59.620000 that if a broadcast goes out that port, it's going to stop on whatever's 0:08:59.620000 --> 0:09:00.500000 connected to that port. 0:09:00.500000 --> 0:09:04.080000 There's no way that broadcast is circled back around and hit you again 0:09:04.080000 --> 0:09:05.960000 somewhere else in the network. 0:09:05.960000 --> 0:09:10.780000 So once you're confident that a port on your switch leads to an edge device, 0:09:10.780000 --> 0:09:14.380000 you can configure it with the port fast feature. 0:09:14.380000 --> 0:09:18.920000 And a port configured with a port fast feature is seen by rapid spanning 0:09:18.920000 --> 0:09:21.360000 tree as an edge port. 0:09:21.360000 --> 0:09:26.360000 Now, that is also a designated port, like we see right here. 0:09:26.360000 --> 0:09:36.800000 The remaining ports that are not designated ports and not root ports become 0:09:36.800000 --> 0:09:41.680000 blocking. What we used to call blocking now in rapid spanning tree, the 0:09:41.680000 --> 0:09:47.180000 terminology has changed, and we call it discarding means exactly the same 0:09:47.180000 --> 0:09:49.660000 thing. We are discarding user data. 0:09:49.660000 --> 0:09:55.780000 So those will be either alternate ports or backup ports. 0:09:55.780000 --> 0:10:00.960000 So that completes this quick review and refresher of the rapid spanning 0:10:00.960000 --> 0:10:04.040000 tree. In the next video, we're going to look at what are some essential 0:10:04.040000 --> 0:10:08.740000 iOS commands just to get this running and maybe deterministically set 0:10:08.740000 --> 0:10:11.380000 who the root bridge is actually going to be.