Hello and welcome back to Ice and the one interconnecting Cisco networking devices. Part one. This is Episode 2 to 2. Switching logic and concepts. I'm Trenton, Karen. I'll be restructured for this course in the last video would win over the Lesson 2.2 overview and did a few pre assessment questions
this episode of recovering the layer to switch fording logic.
All right, so learning objectives for this we're gonna go over the 40 logics. We're gonna look at how the switches determine where to send the frames and just do a few quick examples.
So quick pre assessment here before begin.
Where do you think a switch or what do you think of switch uses to determine where to send a frame? Hopefully remember this from the pre assessment. Give you just a second.
All right, remember, uses that destination back address.
All right, so switches remember, they are primarily layer two devices. Sometimes later. Three will go over that later. But for now, think of them as Larry two devices. The primary role is to Ford Frames to the correct destination Mac address, right? You want to go from point A to point B and What it does is uses that Ethan a header. The Layer two header,
which has the destination Mac address.
so in case you don't know, I'll draw out. Kind off.
What? My devices are here.
All right, so here
are my routers.
I have a couple access points.
Maybe that's a look. That was up. I haven't played with him yet.
I have my essay are addictive security appliance.
This is actually my raspberry pi d n a server
used from a main rotor. And this bunch here is my switches
these up to is actually some p o. He switches
get curious the power over Ethan, so they'll power up those access points and
things like that.
It's a little bit to switch for 40 logic. So when when it comes in and wants to decide if it wants that Ford or not afford by not fording is actually gonna be filtering that Mac
filtering that frame
that's based on the destination Mac address. So it afford. It looked at the Mac address table determines if it has entries. If it doesn't have an entry, what it's gonna do is just flood that frame out so it sends out all ports except for the one that it came in on. Right?
So if it doesn't have an entering the Mac table, floods out all ports except for the one that came in.
If it goes seven entry, it'll go out. That interface that's in the Mac address table,
if by filtering which would be not afford, would mean that
the frame comes in on fast Ethernet 0 24
and it looks in the Mac address today. One says, Okay for this Mac, I need to go out fast. Ethernet 0 24 So it'll just discard that frame
because it knows that it already came in on that interface.
So that's what happens if you know, for some reason that the switch that afford it from, or maybe if you have a hab over on that side that is connected to
that, you know that Hubble broadcast out off frames
and the switch will say Okay, well, this device should have gotten it already. So
then another way that we switches will use ah, spanning tree protocol, and that's to avoid loops. So we'll go over that little bit. The next episode.
We'll see it a little later.
All rights affording unit cast for him. So, you know, cast remember is a 1 to 1
frame. So point a to point B. That's it.
So what happens here is after the switches place the computer into the Mac address table like officer right there.
and then a packet comes in destined for an R P. C. The switch is gonna consult that Mac table or Mac addressed it will see where that destination Mac is. And like I said, if it doesn't know where to send it,
it's gonna flood that frame out. All pours except for the one that it came in on.
What if it does have that entry in the Mac address date? What's on Lee gonna send out that one interface and on Lee, that one interface.
So here we'll go over a quick example Here, I'm gonna go over a few examples,
so let's say we have
We want to go from here to here. We're gonna send these to it
So you see that these are already in the Mac address table here,
so it just goes out,
you know, it comes in F A 01 says Okay, I have an entry for a B B B. I'm gonna send it out F a zero to
So let's say he,
uh let's say computer one here at a A wants to send it over to the far right computer over here to D d d.
frame is gonna come in. He's gonna look at the table and say, OK, we need to go out F 80 23 here.
I'm gonna go out here. He's going to see the frame destined for Dee Dee Dee
and say, OK, where do I need to go? I need to go to F A 01
Send it out here
and let's say we go from D D d. He says, Okay, I need to send something to the bottom computer. Don't on CCC.
So it's gonna happen as he sends it down here. It says, Okay, got f a 0 23
and what this one is actually going to do is it's gonna fill in this
anchor filling this Mac table entry
entry because it doesn't have one for DDD yet,
so it actually will know where to send it.
It was like. Okay, cool. We have in our entry,
so that one will get replied. There.
Now, let's say this computer CCC wants to send a frame to computer. Eh, Eh?
What's gonna happen is gonna come into here.
He's not gonna know where to send it, because, Okay, we have no entry over here for a A.
So he's just gonna say, OK, go every port,
he's got every port here,
and he's just gonna say Okay,
well, I went for a come back over here.
Go this way. He's gonna come over here. We're going for a And now we have two friend to the exact same frames
coming in or a
what? If you have computers that don't know, we're gonna go here, then here, here, in back over here. Just gonna create a huge loops. So that's where spanning tree actually comes in. And again, we're gonna go that in the next episode, I'll show you why we use banditry and how that's useful. What? It actually does a little bit.
All right, so quick. Post assessment here.
What happens if a friend comes into a switch and the destination Mac is not in the camp table?
So what happens to it? Think about it. We just went over there for a second.
All right? It's gonna flood out. All the interface is, except for the one that came in on
are in the next episode. We're gonna look at the learning Mac addresses and what it doesn't flooding the frames.
And as always, if you guys have questions, wanna say How are you going to shoot me? A message? Otherwise, thank you for watching this episode. And I look forward to teaching. Interested? Thank you.