hello everyone welcome to PM networking guys today I am going to create one more playlist on my YouTube channel and name of this playlist is STP htps stands for a spanning tree protocol a spanning 3 protocol means in this playlist in this series we will discuss everything about a spanning tree protocol like types of STP as you know we have several types of spanning free protocol like CST first one is CST second one is pvst third one is pvst Plus fourth one is rpvst Plus fifth one is rstp one is MST so we will discuss
these six type of spanning tree protocol in this series we will also understand topology change in a spanning 3 protocol what are the Estates in STP what is the election process of root Breeze election process of designated port root Port everything in this series ok so this is day one today we will discuss very basic things about a spanning tree protocol like why we come up with a spanning tree protocol so FTP is a layer 2 protocol which is used to avoid layer 2 Loop which is used to prevent or you can say avoid layer
2 Loop so first of all we will discuss how layer 2 Loop can form in topology right then we will understand how STP Works after that today we will discuss what is the election criteria of root Bridge what is the election criteria of root port and designated Port okay so without wasting our time let's begin guys see here in this topology here in this topology as you can see we have three switch switch one switch two and switch three all switches are directly connected with each other so topology is in circular there is one redundant
link there is one backup link right so if computer C wants to communicate with computer B switch 3 have two path right switch three can forward but traffic to switch to also and switch 3 can forward traffic to switch one also means computer C can communicate via switch one also and they can communicate via switch 2 also right so we have to path so if this path will goes down they can communicate via this path if this link will go down or this link will go down they can communicate by using this link so there
is backup but whenever there is redundant path in your topology layer 2 Loop can be formed see how whenever any machine will generate broadcast message do you know how switch will treat broadcast message so rule is the function of switches whenever switch will receive broadcast message on any interface whenever switch will receive broadcast frame so when this machine will generate broadcast frame by the way suppose IP address of computer C is 10.0.0.3 and IP address of computer is 10.0.0.1 now if 10.1 wants to communicate with 10.3 10.1 need Mac address of 10.3 this computer have
to resolve Mac address of this computer so basic requirement for communication is Source IP destination IP source Mac and destination Mac right these four components are basic requirement for communication so to resolve Mac address what this machine will do this machine will generate ARP request ARP request address resolution protocol and as you know rpgn broadcast message or present broadcast frame so whenever any machine will generate ARP or any broadcast message what switch will do so function of switches whenever switch will receive broadcast message on any interface when switch will receive broadcast message on this interface
support on zero slash two or you can consider on this interface so whenever switch will receive any broadcast frame on any interface first of all switch will learn source Mac address first of all definitely switch will learn source Mac address as you know switch maintain Mac at this table to forward traffic Mac address table right in their table they will make one entry that on my zero slash zero zero slash two or device is connected with Mac addresses C sorry C and this port is member of which we learn VLAN one this is Mac at
this table of switch three after that switch will check destination and if destination is broadcast so switch will forward broadcast frame from all of its active interface accept the interface on which frame was received spots yes or no so whenever switch will receive any broadcast frame it will forward to its all interface except the interface on which frame was received so when switch 3 will receive any broadcast message from switch from PCC switch 3 will forward to switch one and switch 3 will forward to switch 2 also leave it for a for a minute let's
see let me discuss about this packet about this broadcast packet so whenever switch 3 will receive any broadcast frame so it will forward to switch one what switch one will do switch one will also forward from this interface and to this interface also it will forward from its all active interface interface except one interface on which frame was received so when switch 2 will receive that broadcast message switch 2 will also forward to switch 3 and again switch 3 will forward to switch one then again switch one will forward to switch to to switch switch
two wheel four bar two switch three and your broadcast message will be moving in this network for very long time for Lifetime and same thing will happen in opposite direction as well right when switch 3 will receive broadcast message it will forward to switch to also switch one also and switch two also switch 2 will forward to switch one switch one will forward to switch three then again switch 3 will forward to switch to yes or no so in both Direction broadcast frame will be moving for lifetime because there is no TTL in layer 2
header so this is known as Loop this is how Loop can form in topology when we have redundant path so if you want to avoid this Loop what you can do you can shut down this link you can remove this link from this port right or you can shut down any port this port or this port or you can shut down this port as well this port as well right any port so that Loop can be node form so Loop can be noted Loop foreign because if your topology is in linear then Loop can never
form because suppose if I will remove this link and now if the 3 will receive one broadcast frame on this interface switch will forward to switch 3 will forward to switch one switch one will forward to switch to how switch 2 can forward to switch 3 because link is not available to remove this link right because if you will remove this link and whenever this link will goes down or this link will go down there is no redundancy there is no backup so this user cannot communicate with each other yes or no this user cannot
communicate with each other so we need backup we need what backup link so whenever my primary link will goes down my traffic should go via backup link but if you will connect backup link if you will connect link between switch 2 and switch 3 there is problem of loop problem of layer 2 Loop so and see second problem this is first problem second problem is Mac flapping Mac flapping what will happen what is Mac flapping whenever switch receive the frame from two interface or from more than one interface with the same source Mac address that
is known as Mac flapping so when switched when PCC will forward when broadcast traffic to switch 3 switch 3 will run source Mac address on which interface on zero slash two Mac addresses see Mac address is C after that it will forward to switch one and switch to when switch 2 will receive this broadcast frame on this interface which one will also learn MAC address on zero slash one Mac addresses see right in the same way switch two wheel lamp address on which interface Mac at the C on this interface that on zero slash one
Mac address is C and after some time switch 2 will receive same broadcast message on this interface also right so it will run same MAC address on zero slash zero after some time it will remove previous entry but whenever switch will learn same MAC address on multiple port that is known as Mac flapping Mac flapping so switch will give you error of Mac flapping on interface F 0 or on interface zero slash one So to avoid these two problem we come up with STP with a spanning tree protocol because it is not possible to remove
this link again and again whenever these two link are up you have to remove this link and when any link from these two link will goes down you have to connect this link again right it is not possible so we have a spanning tree protocol Now understand what STP a spanning free Dodge so a spanning tree prevents Loop by placing each switch port in either a forwarding state or a blocking state so STP will [Music] STP will avoid this layer 2 Loop by placing switch Port either in forwarding state or in blocking a state so
what STP will do STP will put these all ports either in forwarding state or in blocking a state in blocking State and interface in forwarding a state act as normal interface act as normal Port so suppose the state of this port is forwarding right forwarding so this port will actualize like a normal Port this port can send traffic as well this and receive traffic as well so switch can forward and receive frame from the interface whose state is in forwarding and the port whose estate is blocking whose state is blocking right so interface in blocking
as they do not process any frame except STP message so blocking port can not process any frame blocking Port can only receive STP message like HTTP video fine so suppose this is my blocking Port so this port cannot receive frame any frame of user any broadcast message this port can only receive STP message so blocking Port will not use to forward or receive frame or you can say data right frame or data now sub suppose according to STP this port is in blocking a state if STP will block this port and STP will keep track
of renal net path as well right so whenever your active link will goes down STP will up this link STP will change the state of this port from blocking to forwarding from blocking to forwarding so now if a state of this port is forwarding so this port can forward frame or this port can receive frame as well yes or no yes so see what STP will do suppose STP will block this port now if computer c will generate broadcast message that broadcast message will receive by switch switch will learn source Mac address on this interface
after that switch will forward to switch 3 will forward to switch one only it will not forward to switch to because a state of the this port is blocking right and from blocking Port switch cannot send frame switch cannot send frame one switch one will receive broadcast frames which one will forward to switch to switch 2 will forward from this interface switch 2 will out from this interface but switch 3 will not receive switch 3 will ignore that broadcast message because a state of this port is blocking fine state of this port is blocking so
Loop cannot form here now right and switches cannot learn same MAC address on multiple port as well so there is no problem of Mac flapping there is no problem of loop now Loop cannot form in the stopology so my logical topology is what STP is doing STP is creating logical topological Loop free topology from physical Loop topology so according to STP topology is like this this is my switch one this is my switch 2 and this is my switch 3. like this this is my logical topology or topology can be like this also switch one
switch 2 and switch 3 topology can be like this also topology can be like this also switch one switch two and switch three right so STP can design three Loop free topology with the help of this physical topology look free logical topology from this physical topology right and suppose is this one switch one switch two and switch 3. uh like this right and whenever this link will goes down what STP will do STP will have track a blogging Port it will change the state of this port from blocking to forwarding now this port will use
to forward and receive frame so now logical topology is this one switch one like this yes or no Okay so now we are going to discuss how STP will block one port so to block redundant path or backup path what STP will do first of all sdp will elect one switch as root Bridge one switch has root Bridge STP will elect one switch as root bridge now question is what is root Bridge so root Bridge is a reference point in topology you can say root Bridge which is main switch in topology that will control the
entire topology that will control the entire layer 2 Network fine that will control layer 2 Network root Bridge which will decide that which port a state will be in forwarding and which Port state will be in blocking who will decide route Bridge switch so always keep in mind first step is to avoid Loop is enable STP and what HTTP will do STP will elect one switch as root Bridge one switch as root Bridge so now question is which switch will become root Bridge so switch which will have lowest Breeze ID lowest Breeze hiding now again
question is what is Breeze ID now again question is what is Breeze ID so suppose Mac address of this switch is 0 a MAC address of this switch is 0b and Mac address of this switch is 0 C Mac address of this which is these are base Mac address of switches right these are base Mac address of switches so every switch has one base Mac address okay so suppose base Mac address of switch 1 is 0 a base Mac address of switch 2 is 0b and Mac base Mac address of switch 3 0 C and
Bridge ID is an 8 byte value 8 bytes values right value Breeze ID and Breeze ID is combination of two things first one is priority and second one is base Mac address base Mac address priority plus base Mac address what is Breeze ID Breeze ID is combination of two things priority plus base Mac address and priority is two byte value two bytes value and as you know Mac address is 6 byte values so total size of root root of total size of Breeze ID will be 8 byte 2 byte priority plus six byte base Mac
address right so let me discuss some more about priority priority priority is 2 byte value two bytes value that means 16 bit 16 bits value so how many priority are there how many value are there in priority to the power 16 it will be six double five three six in range it will be 0 to 65535 right range of priority and by default priority on switches is by default priority is configured on switch is three two seven six eight three two seven six eight three two seven six eight so on average switches by default price
is three two seven six eight so what will be the price ID of switch one Breeze ID is combination of two things priority plus base Mac address and by default priority is three two seven six eight so please ID of switch one will be three two seven six eight plus base Mac address is 0 a this Mac address of six one is zero a base Mac address of switch 2 is 0 to B base Mac address of three is zero C what will be the breeze ID of switch 3 3 2 7 6 8 plus
0 C what will be the bridge ID of switch 2 3 2 7 6 8 plus 0 C now you tell me which switch has lowest Breeze ID which which has lowest Breeze ID switch one because here you can see base Mac address is 0 a priority is same priority is same on average switch so if priority is same then they will check base Mac address because Bridge ID is combination of two things right and which switch will become root Bridge so which which will have lowest Breeze ID and in one network only one switch
can be root Bridge in one network in one layered Lan Network only one switch can be root Bridge so you tell me which switch will become root Bridge switch one because switch one has lowest Breeze ID so switch one will become root bridge this is my root Bridge switch 0 a 0b and 0 C yes or no this switch is root bridge now Hall switch 3 and switch 2 will came to know that switch 1 is root Bridge for that STP will exchange some messages there are two types of message in HTTP first one is
configuration bpdu so STP message is called bpdu PP du bpdo stands for Bridge protocol data unit Bridge protocol data unit and we have two types of bpdu we have two types of bpdu and STP there are two types of message you can say there are two types of messages in HTTP first one is configuration bpdu configuration bpdu and second one is TC and bpdu TCN bpdu we will discuss about TC and bpdu later let me discuss about configuration bpdu right TCN use of this message TC and bpdu is whenever any change will occur in topology
right whenever any change will occur in topology then we will use tcnbpd we will discuss more about tcnbpdu later right now let me discuss configuration bpdo what is the use of configuration bpdo so configuration bpdu is used to elect root Bridge first use of configuration bpdu is to elect root Bridge so first of all at initial time average which will think that I am root Bridge a bridge which will think that I am root Bridge so switch 3 will forward their BP due to switch one switch 3 will forward their BP due to switch 2
also that hey my Breeze ID is three two seven six eight plus zero C and I am root bridge when switch 1 will receive bpdu of switch 3 switch 1 will came to know that no no no no no you are not rude to please I am root bees because I have lowest Breeze ID switch 1 will also send their BP due to switch 3 and in their bpdu Breeze ID will be what 32768 plus 0 a so switch 3 will came to know that yes I am not root Breeze who is root Bridge so
switch switch who have lowest Bridge ID so I am receiving one bpdu from a switch whose Breeze ID is three two seven six eight plus zero a which is lower than my bridge ID that means which one is root Breeze I am not root bridge and switch 3 will stop sending configuration bpdu right after election of root Breeze only root Bridge which will send configuration bpdu non-root brief switch will never send configuration bpdu right so first of all at initial average which will share their bpdu right average which will think that I am root bridge
but on switch 2 and switch 3 will receive ppdu of switch 1 this switch will came to know that I am not root Bridge which one is root bridge now non root Bridge switch switch 3 is non-root video switch and switch 2 is also non-root Bridge switch so non root Bridge switch will stop forwarding configuration bptu it will never send configuration bpdu again only root Bridge which builds will send configuration bpdu after every 2 seconds after every two seconds root Breeze switch will share configuration bpdu to manage the entire topology right to manage the entire
topology fine only route with ah after election only root bridge will share configuration bpdu what is the use of configuration bpdu to elect root Breeze and to maintain the topology to maintain the loop 3 logical topology which is created by a spanning tree protocol right so first step is election of Route bridge now hope it's clear to you that which switch will become root Bridge so here in this topology guys tell me which switch will become root Bridge so by default priority on average which is three two seven six eight right and base Mac address
this is this one propriety on average which is same so election will not happen on the basis of priority election will happen on the basis of Base Mac address so see Mac address of this switch is lower than switch 2 switch 3 and switch 4 so switch 1 will become what root Bridge switch one will become what root bridge and if you want to make switch 2 as root Breeze what you can do you cannot change base Mac address but you can change priority you will set priority lesser than three two seven six eight on
switch number two that switch 2 will become what root Bridge suppose if I will configure priority 0 here so what will be the breeze ID of the switch Breeze ID of this switch will be 0 plus base Mac address this one yes or no now switch two have lowest Breeze ID so switch 2 will become root Bridge so first of all switch will check priority if priority will tie then switch will check base Mac address right so switch if priority is default by default on average switches then root Bridge election will happen on the basis
of Base Mac address right after that ons root Bridge election will done also root Breeze election bill done router will elect what this is my root Bridge this one is my root Bridge yes or no so after that router will elect root Port so we have three types of port in STP port a roll in STP we have three types of Port rule in STP first one is DP second one is RP and third one is alternate right DPS stands for designated port designated port and RPA stands for root Port RPS stand for root port
and Alternate alt stands for alternate and State of BP and RP will be in forwarding forwarding and state of alternate Port will be in blocking right so alternate foreign now what is DP and what is RP right what is DP and RP so to discuss what is DP and RP you have to understand bpdu you have to understand bpdu Breeze protocol data unit because designated Port TP is the port which will transmit best bpdu or you can say Superior bpdu so we have two types of bpdu in STP right one is configuration bpdu and second
one is TC and bpdu and there are two types of configuration bpdu there are two types of configuration bpdu first one is superior and second one is inferior first one is best and second one is which is not best so how to identify Superior bpdu right also we learn how to identify Superior BP to you you will understand what is DP and what is RP because RP is a port which will receive Superior bpdu and BP is Port which will transmit Superior bpdu so you have to understand in this topology how many ports are sending
Superior bpdu how many ports are receiving Superior ppdu and the port who is not sending Superior PPU or who is not receiving Superior bpdu that Port will become what alternate and a state of alternate Port B blocking right so switch will not send any frame from alternate port or switch will not receive any frame on Alternate Port Port which is in blocking estate okay so first of all understand bpdu so Superior BPD how to identify Superior BPU bpdu so topic is how to add in T5 Superior bpdu fine how to identify Superior bptu and you
know what are the content in bpdu let me discuss what will be the content in bpdu first of all see suppose or you can search here as well content of configuration bpdu yeah this one copy image and let me paste it here I think it's not visible let me take another image [Music] leave it let me write here so content in configuration bpdube will be first one is protocol protocol after that version so protocol field will always zero protocol field will always zero version will also always zero after that there will be information of type
field type field identify that it is a which type of STP message either configuration bpdu or TC and bpdu then in bpdu there will be one flag field flag field we will discuss about flag field as well later okay then there will be information of root Bridge ID root Breeze ID after that there will be information of cost RPC RPC root path cost root path cost then there will be information of sender Breeze ID sender Breeze ID and after that there will be information of sender base ID then sender Port ID sender Port ID after
that Maxes time Max is time then there will be information of forward delay time forward delay time then there will be information of message Edge message age and there will be one more information that is known as hello timer hello timer by default hello timer is two seconds so after every two second daughter will send bpdu message right protocol field will be I'll be 0 which will identify the protocol that it is an STP so STP protocol number STP is using which protocol number zero right after that version version will always set to zero then
type fill will identify which message it is either it can be configuration BPD or there are two types of video configuration and TCN so type will identify that it is an tcnbpdu or configuration bpdu right flag field we will discuss later and in root Breeze ID [Music] root Breeze ID in this field there will be ID of Breeze ID of root Bridge right RPC root path cost will be total cost to reach root Bridge suppose this is my switch one and this is my switch 2 this one is my switch 3. suppose Mac address of
this switch is a MAC address of this switch is 0b Mac address of this which is zero see so switch one will become root Bridge right so switch one bill forward configuration BPU to switch to also and to switch three also so when root bridge will generate bpdu cost will be zero cost will be zero because it is total cost to reach root Bridge so who is generating this bpdu root Bridge so cost from root bridge to root to root bridge is zero cost from root bridge to root bridge is zero what will be the
cost from switch to to root Bridge so it will add the cost of receiving interface suppose cost of this interface is 19 right so cost will be 19 on switch 2. so this is RPC RPC sorry if RPC will be 19 means distance from switch 2 to read to which root breath is 19 this is distance right and it will always add the cost of receiving interface when switch 2 will forward this BP due to switch 3. so when switch 3 will receive bpdu on this interface switch 3 will also calculate RPC total cost to
reach root Bridge means total distance to reach root Bridge so when switch 2 will receive ppdu of switch 1 what will be the sender base ID sender Biz ID will be 32768 plus 0 a what will be the cost cost will be 0 what will be the sender which id center Biz ID will be three two seven six eight plus zero is same because this switch is root Breeze after that there will be information of Port ID sender Port ID right when switch 2 will receive this bpdu what switch 2 will do switch 2 will
add receiving interface cost and this code this cost is predefined this cost is predefined for fast ethernet link cost will be 19 for ethernet link cost will be 100. four ethernet link cost will be 100 you can check in Google as well see STP cost [Music] so see here guys so link [Music] whose speed is 10 Mbps cost will be 100 link whose speed is 100 Mbps for that cost will be 19 link of 1 gbps cost will be 4 and Link of 10 gbps cost will be 2. so this is predefined value so this
is predefined value STP never reveal formula to calculate cost but you can understand that cost is indirectly proportional to a speed more speed low least cost so cost is inversely proportional to a speed I don't know what is the formula to calculate cost here you can see these are cost cost for a link whose speed is 10 Mbps is 100 link of one sorry link whose SPD is 10 Mbps for that cost will be 100 and Link of 100 Mbps cost will be 19 right okay so this is methodology switch one switch to and switch
3. so switch 3 will receive configuration bpdu from two side actually this one is my root Bridge switch 2 will also forward configuration bpdu and switch 2 will also forward so it will receive from on this interface as well so it will compare that which bpdu is best which bpdu is superior right on switch 3 on which Port I am receiving Superior bpdu so first of all switch will check root Breeze ID this which will check cost RPC total cost to reach root Bridge these are cost of Port so by default suppose this is my
first ethernet link so cost will be 19 19 and 19. and whenever root release switch will generate bpdu it will add cost zero when switched non rotary switch will receive that BP due they will add their receiving interface cost so when switch 2 will receive this BPU cost will be what 19. when switch 2 will forward to switch 3 when switch 3 will receive this bpdu on this interface cost will be what 38 19 plus 19 total cost is 38 minutes distance from switch 3 to reach root Breeze via switch 2 is 38 and distance
from this link is 19. so definitely I am receiving Superior BPD switch 3 will think that I am receiving Superior BPD on this port yes or no yes or no yes and when switch 3 will send configuration be videos to switch when switch 2 will forward configuration be preview to switch 3 sender base ID will be changed because root release ID will be same three two seven six eight plus zero a root Bridge ID of root Breeze but sender base ID will be 32768 plus 0 B and cost will be 19. so you have to
understand here how switch will identify Superior bpto okay so these are content of bpdu configuration bpdu this these are content of configuration bpdu okay now let me discuss how to identify Superior bpdu to identify Superior bpdu first of all switch will check what first of all switch will check root Bridge ID so which will check what root Bridge ID then switch will check RPC root Port cost total cost to reach root Breeze then switch will check sender Breeze ID then four things which will check what sender port ID then switch will check what receiver receiver
Port ID and Port ID is also combination of two things Port ID what is Port ID Port ID is again combination of two things Port priority Plus Port ID Port priority Plus Port ID fourth ID is combination of two things let me discuss okay so you can take one a screenshot this is this is horse which will identify Superior bpdu so to identify Superior bpdo first of all switch will check root Bridge ID then switch will check RPC then switch will check sender page ID then switch will check center Port ID then switch will check
receiver Port ID fine now see STP Port ID STP Port ID STP Port ID is combination of two things first one is priority and second one is port number or you can support ID Port priority is by default 128 by default Port priority on average which is 128 and Port ID is port number suppose on a switch this is my zero slash zero so what will be the STP Port ID of this port 128.0 because this is port number okay so Port ID is completion of two things parity plus four title now suppose we have
three switch switch one switch to and switch three suppose Mac address of this switch is 0 a MAC address of this switch is 0 B Mac address of this which is zero C now you tell me which switch will become root Bridge switch number one this switch will become what root Bridge so this switch will send configuration bpdu after every two second in configuration bpdu what will be the breeze ID three two seven six eight plus zero a cost will be what RPC will be zero this is cost to reach root Bridge from root bridge
is 0 then sender base ID sender Biz ID will be three two seven six eight plus zero a same because this is who is generating this bpdu root Bridge after that after that there will be information of sender Port ADC suppose this is 0 0 center Port ID will be 128.1 fine and it will switch one will send to switch 2 when switch 2 will receive this bpdu what switch 2 will do switch 2 will forward to switch 3. when switch 3 will switch 2 will forward to switch 3 what will be root Bridge ID
same three two seven six eight plus zero a what will be the cost cost will be 19 right because switch 2 is telling to switch 3 that from me to reach root Bridge cost is 19. you can Calculate cost to reach root Breeze by adding your interface by adding your receiving interface cost right so switch 3 will add their receiving interface cost [Music] cost to calculate distance to reach root base now what will be the sender beside the center bizarre will be three two seven six eight plus zero B Because who is sending this BP
to switch number two and what will be the port ID suppose this one is 0 0 this one is zero slash one one Twenty Eight dot one fine one switch three will receive this bpdu and there is one more switch switch 4 it will forward to switch four it will forward to switch four so root Bridge ID will be same cost will be 38 and sender base ID will be 32768 and Port ID will be the port ID of exit interface again switch 4 will add their on receiving interface cost and then they will calculate
total cost to reach root bridge now question is how to identify Superior BPD you suppose a switch is receiving bpdu from to side right from two side so first of all switch will check what root Bridge ID so suppose this is 0 0 and this one is zero slash one this is 0 0 this is zero slash one suppose on this port on zero slash zeros which is receiving and BPD you where root Bridge ID is three two seven six eight plus zero a and switch 2 is receiving bpdu on zero slash one also but
here root Bridge ID is three two seven six eight plus zero B so which one is superior this one the switch one will came to know that I am receiving Superior bpdo on which interface on zero slash zero but suppose if Bridge ID is same on both interface switch is receiving bpdu where Bridge ID is same in both bpdu then switch will check what cost then switch will check cost suppose here cost is 19 and your cost is 38 so which ppdu is superior switch is receiving bpdu on zero slash zero that bpdu is superior
because here cost is list is because your cost is list if cost will be same on both side suppose cost is same then switch will check what sender base ID and suppose here sender base ID is three two seven six eight plus zero B and here sender bz ID is three two seven six eight plus zero C so Superior vpdu is recipient which interface one zero slash zero but again if sender base ID is if Center is ID is same 0b then switch will check what sender Port ID and if sender Port ID is also
same then switch will check receiving Port IDM receiving Port ID can never be same house which can receive 2bpdu on same interface right so definitely receiving Port ID will be different okay so this is how switch will identify Superior bpdo now come to my topology see this is my switch one this one is my switch 2 and this one is my switch three this is supposed 0 0 this one is suppose zero slash one this one is zero slash zero this one is zero slash one this one is zero slash zero and this one is
again zero slash one suppose base Mac address of this switch is 0 a base Mac address of this switch is 0b and base Mac address of this which is 0 C okay fine so which switch will become root Bridge switch number one this switch will become root bridge now this switch is root Bridge so this switch will send configuration bpdo to switch to also and to switch three also fine so who is sending Superior bpdo root Breeze first of all root be descending Superior pptu because let me talk about bpdu of switch 3 so switch
3 is non root Bridge right their bpdu is not Superior so always keep in mind that all ports of root Breeze will become designated Port will become DP because root Breeze will send Superior bpdu because root Breeze bill send Superior bpdu so this port will become DP this port will become DP am I right now let me talk about switch 2. let me talk about switch number two which Port will become RP root Port so root Port are is that port on which Superior bpdu Bill received this port by Superior BP do you receive hoga
so switch 2 will receive bpdu on how many port on two port on this port and on this port on zero slash zero also and on zero slash one also you tell me on which Port switch 2 is receiving Superior bpdu so switch 2 is receiving one bpdu on 0 0 in that bpdu Breeze ID will be what three two seven six eight plus zero a and cost will be what zero right so it will add receiving interface cost so here on switch 2 cost will be become 19. but when switch 2 will receive bpdu
on this interface on zero slash two on zero slash two what will be the cost what will be the breeze ID first of all Breeze ID will be three two seven six eight plus zero a and cost will be what 19 because switch 3 when switch 3 will receive BPD of switch 1 right it will add cost and then it will forward to switch to so switch 2 is receiving one bpdu on zero slash one where cost is 19 and it will add their own cost that is 19 so total cost will be 38 and
here total cost is 19. so switch 2 is receiving Superior BPD on which interface on 0 0 so this port will become what RP this port will become RP and always keep in mind that only one RP can be there on one non-root Bridge switch there can be no more than one RP on a single switch otherwise Loop can form because RP is the only port with the help of that ports which can reach to root Bridge right now tell me which Port will become RP on switch 3 so in the same way switch 3
is receiving bpdu on two port on zero slash one also and on zero slash zero also but on zero slash one it is receiving inferior bpdu and on zero slash zero it is receiving Superior bpdu so this port will become what RP this port will become RP yes or no now let me talk about this segment so which Port will become DP because on switch 2 and switch 3 there can be at least one RP and RP election is already done right so definitely this port will not become RP either this port can become DP
or alternate this port will become DP or alternate so you have to let that which Port is DP so what is DP designated Port both which is sending Superior bpdu so tell me which Port is sending Superior bpto this port or this port so when this port will send BP to you root Breeze ID will be 32768 plus zero a in the same move and switch 2 will forward bpdu from this interface root Bridge ID will be Bridge ID of switch one after that cost cost will be 19 here also and cost will be 19
here also then switch will check what sender B's ID so sender please ID of switch 2 is foreign [Music] six eight plus zero C so switch 2 is sending Superior BPD you switch 2 is transmitting Superior bpdu so this port will become DP and this port will become alternate because rule is there can be not 2 DP on same segment and there can be no two RP on same non-root Bridge switch rule is on one segment only one DP can be there right and on one non root Bridge switch only one RP can be there
fine so now in this topology you tell me which which will become root Bridge here this is my topology which will become root Bridge or let me design topology here so this is my switch one this is my switch to this is my switch three and this one is my switch four there are two link okay here also we have suppose to link okay and between switches again we have to link okay fine suppose this is my switch one Mac address of this switch is 0 a MAC address of this switch is 0b Mac address
of this switch is 0c and Mac address of this switch is 0 D now you tell me which switch will become root bridge this switch switch one switch whose Mac address is 0 a because his Bridge ID is three two seven six eight plus zero a his Breeze ID is three two seven six eight plus zero a bridge ID of switch two is three two seven six eight plus zero C Bridge ID of this switch is three two seven six eight plus zero D and please ID of this switch is three two seven six eight
plus zero C yes or no so definitely this switch will become root bridge this switch is my root Bridge so all Port of root Breeze will become DP because root bridge will always send Superior bpdo root Breeze will always transmit Superior bpdu and DP is Port which transmits Superior BPU opportunities right so all Port of this switch will become DP DP DP DP and DP right and let me give number Port ID as well suppose this is my zero slash zero link this one is my zero slash one link this one is my zero slash
two link this one is zero slash three link this is zero slash four and this one is zero slash Five in the same way on every switch this is zero slash zero this one is zero slash one this one is suppose zero slash two this one is zero slash three this one is zero slash four and this one is zero slash Five in the same way this one is zero slash one this one is zero slash two fine now on switch 2 on this switch which Port will become RP which Port will become RP there
can be only one RP yes or no there can be only one RP on a single non-root Bridge switch so you which Port will become RP so guys first of all understand switch B this switch will receive bpdu on this port as well on this port as well right on this port as well on this port as well right so on which Port switch to switch 0b is receiving Superior bpdu so see when this switch will receive bpdu on this port cost will be what cost will be 19. when switch 2 will receive bpdu on
these two port cost will be what cost will be 19 plus 1938 on switch 2 will receive BP video on these two Port what will be the cost cost will be 19 and plus 1938 so definitely switch 2 is receiving Superior bpdu on these two interface yes or no switch 2 is receiving Superior bpdu on these two interface so out of these two interface one interface one port will become what RP RP right so switch B is receiving PPD on this port also and this port also first of all they will check bridge ID Bridge
ID will be same on both Port then they will check cost cost will be same on both Port then they will check sender base ID so sender Biz ID will be same on both Port then they will check sender Port ID so sender Port ID will be listed on this interface so this port will become what this port will become RP this port will become RP and this port will become blocking alternate because on this segment there is one DP right there is one DP so this port will definitely become alternate and a state of
alternate Port will be blocking fine on switch C which Port will become RP on switch C which Port will become RP so switch 3 switch 3 will also receive bpdu on this port on this port and on this port right so here on this two Port it will receive with least cost cost 19. so out of these 2.1 Port will be will become RP which put this port 0 by 4 sender base ID will be lower on this port so this port will become RP and this port will become alternate because there is already DP
on this link right and there can be no more than one DP on same segment so on this segment there is already one DP so definitely this port will become alternate because RP is already available on the switch there can be not more than one RP on a single switch fine now we need to find RP on this switch so this switch will receive bpdu on these two Port also on these two Port also and on these two Port also on these two Port cost will be 38 because 19 here and 19 here total cost
will be 38 right in the same way on these two Port cost will be 38 and on these two Port cost will be 19 right so out of these 2.1 Port will become what RP so which Port will become RP this port02 this port will become RP and this port will become alternate yes or no because on zero Slash 2 it is receiving Superior bptu because of lowest sender Port ID because of lowest center Port ID fine is it clear so here move it this port will become RP and this port will become alternate fine
now RP election is done on average switches right yes or no now you have to select DP you have to select DP automatically alternate Port will block alternate Port will be block you don't need to elect alternate Port just you need to find DP definitely adjacent support will become alternate right so see here guys on this segment on this two segment which device which switch is sending Superior bpdu to find DP you have to identify that which Port is sending Superior bpdu so tell me these Port are sending Superior bpdu or this port are sending
uh Superior bpto so when switch 2 will send bpdu from this interface so when switch 4 will send bpdu from this interface so here rootbridge ID will be same in both ppdu after that cost will be same cost will be same because here you can see cost will be receiving interface cost this one is RP right so cost will be 19. then they will check what sender Biz ID so sender base ID is lower whose which switch have lower Center beside a switch too so these two Port will become what DP DP and definitely these
two Port will become what alternate on this segment on this segment which switch is sending Superior BP to use switch C switch 3 because of lowest sender base ID right so these two Port will become DP DP alternate alternate on this segment which switch is sending Superior bpdu this switch B right because of lowest freeze ID so this port will become DP DP these two Port will become alternate yes or no this is election criteria of root Bridge designated port and root Port fine so now suppose here is one user and here is also one
user want to communicate with each other suppose IP address of this machine is 10.1 IP address of this machine is 10.2 right so traffic will be go via Route Bridge which path will be used by these switches to format traffic of 10.1 to 10.2 so see which path will use this is block port roll off these Port are alternate right so this will be in blocking state right this is dpdp but these are block ports so switch will never learn any MAC address on DP port on this port yes or no switch will never learn
any MAC address on this port because switch switch 3 will never switch zero c will never receive any frame on these two interface because blocking Port cannot send or receive any frame yes or no so it will switch 3 will use this port to forward frame so traffic will be reached to switch one to root Bridge after that route bridge will forward to switch d right it will forward to switch d yes or no because definitely switch AP learn Mac address of this machine on this interface on zero slash two so it will forward to
switch D and switch D will forward to your machine right when this machine will generate reply in the same way reply will come like this yes or no my question is my requirement is whenever this user want to communicate with this user traffic should go like this go like this my traffic should go like this what will you do what will be you will you do you have to make this port as RP and this port as DP or this port has DP and this port as RP so if you are thinking that I will
make this switch as root Bridge do it guys do it first of all try to solve this question by yourself right but if you have any problem to solve this question please let me know in comment definitely I will make one video on it right definitely I will make one video on it that how this these two user will communicate like this from switch 3 to switch 4 or they can communicate like this also they can communicate like this also right so it's depends on requirement what is my requirement okay so if you have any
dot please let me know in comment if you don't have any dot and if you have learned something from this video please don't forget to like this video please hit on subscribe button we will meet soon in next video till then stay safe guys bye bye