Time
15 hours 34 minutes
Difficulty
Intermediate
CEU/CPE
16

Video Description

Spanning Tree Protocol (part 2) Frame Behavior and BPU's For the second part of our Spanning Tree Protocol lesson, we look at frame behavior and introduce you to BPUs fields and define why they are important. We'll diagram and explain what a Bridge ID is, how it correlates to a MAC address and explain what a priority field is on a switch, and what function the lowest bridge ID has.

Video Transcription

00:04
when each of these switches powers up or when Cisco switches power up the immediately start sending out frames to each other out off all ports called bpd. Use or bridge protocol data units. Now, these bpd use have four field in in them. That our off importance to us S C. CNN candidates,
00:23
these fields
00:24
our route bridge I d.
00:26
Route, path cost. Send a bridge. I D. And center port I d.
00:31
This these fields, I will explain as we go along through the spanning tree process. But if you notice these fields are quite similar to the spanning tree decision process, the only pretty much difference being that the word lowest is in front.
00:44
Now, before I move on, I have to explain what a bridge I d actually is. A bridge. I d for a switch is a combination of a priority field plus your Mac address.
00:56
So you're Mac. Address is 48 bits, and your priority is 16 bits 16 to the power to
01:04
so 16 to the power to is 65 5 30
01:11
six.
01:14
Okay. The priority field can range between
01:18
zero and 65 5 35 which zero inclusive makes 65 5 36
01:29
The priority feel for each to school device. Each Cisco switch. It's set to
01:36
32 768
01:40
So every switch has a bridge i d. With the priority feel set to 32 768 How did they come up with? 32 768 Simple. 65 5 36 Divided by two smack in the middle,
01:53
a rude bridge is elected according to the Louis Bridge I. D. So the switch with the Louis Bridge I D becomes route.
02:02
So now, if every switches
02:05
priority field is set to 32 768
02:08
and that is sane, the switch as a tiebreaker with the Louis Mac address becomes the route.
02:16
So now, as I said previously, that when each switch powers up, they start sending people used to each other every two seconds.
02:24
Now it's which initially announces that it's the route it's announces itself as the route. By setting the route Bridge I D field in the bpd, you equal to the sender bridge. I d feel so the
02:38
Each switch is basically saying the route bridge, for example, Swiss air saying the route bridge is a and I am a hence I am the route.
02:49
Now when a switch receives a B p. D. You from another switch with a lower bridge i d or a better bridge I d in spanning tree. A lower number is always better. So when a switch receives a BP do from another switch with the lower bridge, i d. It stops sending its own BP to use
03:07
and start relaying those superior bpd use.
03:14
Given enough time,
03:15
the switch with the Louis Bridge i D. Or in this case since the Bridge I. D Field is Priority and Mac address and the priority field is set to 32 768 for all switches, the switch with the lowest Mac address becomes the Route bridge.
03:31
So all other switches in a layer to topology will relay the root bridges bpd use
03:38
and not produce their own BP dues.
03:40
So in this case, which has a Mac address off a switch, B has a touch, too. Has a Mac address of B B B B. So it's three has a Mac address off CC CC, and Switch four has a Mac address of dddd.
03:54
In this case, everybody starts off announcing themselves as rude bridge by sending B p to use with the Route Bridge I. D Field equal to the sender Bridge I D Field.
04:04
Eventually, as you see in hacks, is a lower number than see, then be and then be
04:14
eventually in this topology switch, A will become route and continue sending bpd use,
04:19
and everybody else will be relaying the bpd. You switch one sentence.
04:25
So in the fourth step decision process, the first step is the Louis Bridge I D.
04:30
And using just the first step, we have elected the Route Bridge, so the route Bridge election occurs. According to the Louis Bridge I d. Now
04:41
again, in this case since the Bridge I. D Field consists of Priority and Mac address and everybody's priority is the same, which is 32 768 The tiebreaker becomes the Louis Mac address, and the switch with the Louis Mac address becomes the Route bridge.
04:57
In this case, it's which one becomes the Route bridge.
05:01
The next step.
05:03
Step two in the spanning tree conversions process
05:09
from spanning tree to go from beginning to end. That's what conversions is
05:15
is a root port election per non route switch,
05:20
so I'm going to erase this.
05:24
The route port election on Lee happens on non route switches,
05:30
which one of these in anthropology are non roots, which is switched to switch four and switch three.
05:35
Which one is your route? Bridge?
05:39
No
05:40
route toward election happens according to route path cost and what is root path costs
05:46
Well spanning tree designates
05:49
path costs. You can think of it as distance for each link speed. For Lynn speeds of 10 megabits per second, the cost is 100 for ling speeds of 100 megabits per second. The cost is 19 and fooling speeds of 1000
06:08
megabits per second.
06:10
The cost is four in Oct Apology.
06:15
If you look all these links a f f f f f, which means all these links are fast eat in it.
06:24
So the path costs for all these links is 19.
06:30
Now, remember, at this point, switch a switch. One with Mac address is your route bridge. So switch one is the only one sending bpd use.
06:42
So
06:43
remember this rule
06:44
the path costs inside off a bpd you the route path costs inside off a BP do is implemented when a VP Du enters a switch.
06:55
Not when it leaves the switch.
06:58
Now, if you think of this cost as distance,
07:00
when a B P D you leave, switch one port F 01 The route path cost inside of that BP do, and the route path cost is the distance or the cost from a local switch. Let's say switch for to the route bridge
07:15
so the distance from the root to the root has to be zero. Correct
07:20
the distance to yourself from yourself
07:24
is zero.
07:26
So a BBDO leaves
07:28
switch one port as zero slash one, heading out to switch to and another bebe do leaves switch 10 slash two heading out to switch. Three.
07:42
Now these be produced. When they leave switch one. Have a cost of zero. A route path cost off. Zero.
07:49
When this BB do leaving switch one port F zero slash one
07:54
enters switched to F zeros last won. The cost is implemented to 19.
08:03
Now we're looking at switch to At this point, we're just looking from the point of view of sweets, too.
08:09
The other baby do that left switch one F zero slash to as its cost implemented to 19 0 plus 19 is 19
08:18
at 33 zeros. Last two.
08:24
Now that BP do transfers a Swiss tree and leave switched three as heroes, last one still, with the cost of 19 remember the only increments route path costs when a BP do you enters the switch, not when it exits the switch. Then the BBDO enters switch for F zero slashed one,
08:43
and another 19 is added to the route path cost. Since this is a fascinating it late
08:48
and 19 plus 19 is 38
08:52
so the cost at zero slash one switch for F zero slash one is 30.
08:58
The same people do
09:00
leaves switch for F zero slash to an F zeros last three with
09:05
a different centre port i d. So the sender port on switch for zeros. Last two is as it was last two and the center port over here, the last three. So it's the same Bebe, do you? Nothing else has changed except the center port I D Field
09:22
inside of the baby. Do you
09:24
this b B D u transfers is this link and enter switched to poor F zero slash two and switch to port of zeros last three and the cost is implemented by 19 again. So 38 plus 1957
09:39
57 here on 57 away here
09:43
switch to now looks at the cost,
09:46
which is 19 on port at zero slash one
09:50
and looks at the cost at Zito's last two and half years Last three, which is 57 the Louis route path cost on Swiss to is on port as heroes Last one hence f zero slash one on switch to
10:05
is elected. I'm gonna race that 19 as Route
10:09
port.
10:13
So I'm gonna go ahead and raise Thies numbers because we're gonna work through the rest of the switches.
10:20
Now, once again,
10:20
let's look at Swiss Street. A similar process gonna happen. That happened for switch to
10:26
a B P. D. You leave stretch one F zero slashed to with the cost of zero with the root path cost of zero
10:33
when it enters Swiss three f zero slash to the root path, cost is incremental. Goodbye path cost, which is 19 and the BP do now has a cost of 19 as it sits here on sweets too. Yeah, zero slash, too.
10:50
Now again another BP do leave switch one F zero slash one with the cost of zero with the root path. Cost of zero and enter switched to zero slash won, and the cost is implemented to 19.
11:03
The same BBDO transfers to switch to and the cost is not implemented when it leaves. Switch to F zero slash two and zeros last three.
11:16
The BB do enters switch for F zero slash to an F zero slash three with the different center port idea because the center Port I d from switch to will be at zero slash two and after his last three.
11:28
And the cost on that BP do is implemented once again
11:33
through 38
11:37
on poor, too, and poor tree off switch for
11:43
then that BP do leaves switch for heading up two word switch three leave switch for zero slash one
11:54
and enter switch 30 slash won, and the cost is implemented to 57.
12:01
Switch three compares to cost at zero slash two, which is 19 and F zero slash one, which is 57 since switch trees costs at zero slash two. Is lore remember the decision process? The second step, says Lewis, Route path costs
12:18
switch three F zero slashed to becomes your
12:22
route
12:24
port.
12:26
Once again, I am going to erase
12:31
the cost
12:33
and then we're going to work through switch for looking at switch for now.
12:41
Ah, BP do leaves
12:43
switch one poor to zero slash two with the root pat Cost of zero and enter. Switched to be, as you know, slashed too. And the cost is implemented by path cost,
12:52
which is 19.
12:54
So the cost is 19 over here.
12:58
And then the bpd you transfers his switch three leaves, Swiss three of zero slash one and the BP do you enter? Switch for zero slash won and the cost is implemented to 38.
13:09
The other baby do the route sent out
13:13
left port port F zero slash one with the root pat cost of zero and enter switched to zero slash won, and the cost is implemented to 19.
13:24
Then this
13:24
BP do transfers his switch to and it is converted to two separate bpd use. It's actually the same BP. Do you the only difference being that the sender port I d field, in fact, of the BP do you now stays port to for the bpd, leaving poor too. And port three for the bpd. You leaving port three.
13:45
These two bbd use enter switch four poor too. And port three. And the cost for both of these is implemented to 38.
13:54
At this point, Switch four compares to cost at port one port to and port three and discovers that the costs are the same. So it cannot elect the report yet.
14:05
Hence, switch four has no other choice but to move to the Turks. Step in the spanning three decision process. Which, being Louis Centerbridge I d
14:16
no.
14:16
The sender bridge I d. That switch for is receiving on port F zero slash one is the bridge i d off switch three
14:24
with the Mac address C C C c and the priority being the same 32 768 And the bridge I d French four is receiving on poor too. And port three is B B B B from switch to
14:37
so the center port I d is the i d or the sender bridge. I d is the i d off the sending switch,
14:46
which is with the priority 32 768 on switch to and Mac address B B B B.
14:52
So
14:54
Switch four compares the sender ridge I d on port to port three and port four. I mean, import one
15:01
since the center bridge i d is lore. Since B B B B is lower than C C C C switch four now starts looking at port to and port three to elect a route port.
15:15
Now the sender bridge i d on port to is B B B B is the bridge I d off switch to
15:22
and the sender bridge I d on poor tree is also B B B B.
15:26
So switch for now still can't decide whether poor to or port three is going to be the root port.
15:33
Hence switch four has to move to the last step in the spanning tree decision process, which is the Louis Sender port I d.
15:41
So the sender Port i D, which is the idea of descending switch on port to a switch
15:48
switch. Four is too.
15:50
And the center port I d on port three off switch four is three since two is lower than three
16:00
f zero slash too.
16:03
On switch four becomes your
16:07
route
16:08
port.
16:11
So at this point, we have concluded the second step in the spanning tree conversions process, which was elect a route board per non route switch. So which two has a route port, which is F zero slash one which four has a route port, which is F zero slash two and switch tree has the report, which is F zero slash, too.
16:30
The last step in the spanning tree convergence process is to elect one designated port per segment.
16:38
So, as I mentioned earlier, there are five segments in this topology between switch one and switch to between switch one and switch three between switch three and switch for this link between Swiss story and switch for and the two links between
16:52
switch four and switch to
16:55
so 12345
16:59
At this time,
17:00
when we were electing
17:03
the route port, our view of the topology was based on. We were sitting on each switch and looking at how BP to use enter our switch.
17:11
Now, we're gonna take a view of the apology by sitting on this segment.
17:17
So there are two ports in the on the segment between switch one and switch to which being switched one port one and switch to Port one.
17:26
The designated port on each segment is also elected according to the lowest route path cost.
17:33
So let's look at switch one first
17:37
on the segment between switch one and switch to
17:40
the route path. Cost on switch one is zero
17:44
F zero slash one is zero since the distance fronts which one to switch one is zero
17:49
and then the BBD leaves at zero slash one. Switch one and enter switch to at zero slash won, and the cost is implemented to 19.
17:59
So between zero and 19 0 wins since
18:03
the
18:04
newest
18:07
since the Lewis route path cost wins.
18:11
Port one switch one becomes the designated port.
18:18
So I'm going to put
18:21
a D on port one for switch one
18:26
now on the segment between switch one and switched three. The route path cost at switch one as yours. Last two is zero and the route path cost at switch three. Ab zero slash two is 19. So between zero at switch one and 19 at switched three, switch one as heroes last two becomes your designated port.
18:47
Always remember, all ports on a rude bridge will become designated port, no matter what segment, no matter who they're connected to on every segment, the cost from the root to itself is zero. So all ports on a rude bridge will become designated ports.
19:04
Now let's look at the segment between switch three and switch for
19:10
the cost
19:11
in the BP. Do the route pot costs inside of the bpd you as it leaves Which one and transfer sir. Switch three and then leaves 33 f zero slash one is still 19.
19:22
When this BB do you enter switch 40 slash one. The cost is implemented to 38 so 19 had switched three of zero slash one and 38 at switch 40 slash one.
19:33
So between 19 and 38 switch three F zero slash one Becomes your designated pork.
19:42
Now let's look at the last two segments
19:45
between switch for and switch. Switch to and switch for
19:51
the route path. Cost at switch to F zero slash two and zero slash three is still 19. It was zero as a BB. Do you left as you go slash one switch one. The route it got implemented to 19. It's switched to zero slash one, and when the BB do leaves which two,
20:10
as you know slash two and zero slash three.
20:11
The cost is still 19. Remember, the cost is only implemented when a BP do enters a switch.
20:19
So when this VP Du travels, when these two bpd use travel and enter switch four zeros last two and zero slash three, the cost is implemented from 19 to 38. So the cost is 19 at zero slash to an F zero slash three off sweets, too.
20:37
And the cost is 38 at zero slash two and zeros last three off switch for
20:42
so as zero slash too,
20:45
and F zeros last three off switch to becomes
20:49
designated.
20:52
Now are we done with the spanning tree convergence process? Yes, we are.
20:56
At this point. We got to see what happens to the sports. Are they put in blocking out? They put in forging now can before traffic. So let's get to that

Up Next

Cisco CCNA

Our free, online, self-paced CCNA training teaches students to install, configure, troubleshoot and operate LAN, WAN and dial access services for medium-sized networks. You'll also learn how to describe the operation of data networks.

Instructed By

Instructor Profile Image
Junaid Memon
Instructor