Spanning Tree
aljugan
Member Posts: 36 ■■□□□□□□□□
in CCNA & CCENT
Hellow friends
i have one question about the spanning tree...as it mentioned in cisco book(ccna-icnd2..page 62 figure 2-1) that for example we have 3 switches and they are connected ....
my question is this this that when the packet is received by the destination switch-computer after that why loop does not ends because the packet is reached to his destination..for first time its ok this one is mentioned in icnd 1 book how mac table is created learning and flooding.......but i just want to know this that when a packet is flooded in the network it goes to his destination as well so after that loop should be finished....
Thanks
i have one question about the spanning tree...as it mentioned in cisco book(ccna-icnd2..page 62 figure 2-1) that for example we have 3 switches and they are connected ....
my question is this this that when the packet is received by the destination switch-computer after that why loop does not ends because the packet is reached to his destination..for first time its ok this one is mentioned in icnd 1 book how mac table is created learning and flooding.......but i just want to know this that when a packet is flooded in the network it goes to his destination as well so after that loop should be finished....
Thanks
Comments
-
iamme4eva Member Posts: 272In a stable network where MAC tables are fully populated, then unicast traffic would go directly to the destination.
However, broadcast traffic, ARP request, etc all broadcast out of all ports. This means that the frame exists in multiple locations, and will go round and round the network.Current objective: CCNA Security
My blog: mybraindump.co.uk -
pamccabe Member Posts: 315 ■■■□□□□□□□In a stable network where MAC tables are fully populated, then unicast traffic would go directly to the destination.
However, broadcast traffic, ARP request, etc all broadcast out of all ports. This means that the frame exists in multiple locations, and will go round and round the network. -
NetworkVeteran Member Posts: 2,338 ■■■■■■■■□□i just want to know this that when a packet is flooded in the network it goes to his destination as well so after that loop should be finished....
-
blatini Member Posts: 285I also have a quick question on this topic, but a little unrelated.
Can you manually configure the root switch, or is that always determined by the Bridge ID -> MAC address deduction?
Also a lot of diagrams I've been viewing with STP have the Designated Ports always on the root switch. Which makes sense. Is there a scenario where the designated ports wouldn't be there?
Any help is appreciated! -
iamme4eva Member Posts: 272A bridge ID is a priority + MAC address (for example 32768.aaaa.aaaa.aaaa, where 32768 is the priority).
So, what you should do is set the switch which you desire to be the root to a lower priority than the other switches.
EDIT:
Oops, I missed the second half of your question.
Yes, every port on a root bridge is a designated port. It doesn't need a root port, as it doesn't need a best path to get to the root...it is the root! And if there was a blocked link, the other end would do the blocking, as the other end would have a higher (or worse) priority. Every single segment has a designated port...on a segment that gets blocked, one end is a blocked port and the other is designated. The end that gets the designated port is the end with the lower priority, which would always be the root bridge...that's why it was elected in the first place!Current objective: CCNA Security
My blog: mybraindump.co.uk -
NetworkVeteran Member Posts: 2,338 ■■■■■■■■□□Can you manually configure the root switch, or is that always determined by the Bridge ID -> MAC address deduction?Also a lot of diagrams I've been viewing with STP have the Designated Ports always on the root switch. Which makes sense. Is there a scenario where the designated ports wouldn't be there?
-
MickQ Member Posts: 628 ■■■■□□□□□□For security reasons, you could program the desired root bridge to have a priority of 0.
Assuming that no other switches will have a lower MAC address and same priority, it will win out.
There's also BPDU guard and root guard which you'll learn about later -
iamme4eva Member Posts: 272NetworkVeteran wrote: »Just about every switch in your network should have designated ports!
Ah, I misread that and didn't realise he meant designated ONLY on the root!Current objective: CCNA Security
My blog: mybraindump.co.uk -
blatini Member Posts: 285NetworkVeteran wrote: »As imme4eva says, you can choose the root by setting the priority, and often you want to do so.
Just about every switch in your network should have designated ports! At this point, you'd be well-served by either reading a chapter on spanning tree or attempting to setup a simple lab topology with a few hosts.
Well, yeah... I am aware each switch has one port that is set to forwarding. I was getting confused in the terminology. It appears designated ports are on the root switch and the non-root switches each have one root port. Or maybe it is the other way around. Just different ways of saying the same thing it seems... -
NetworkVeteran Member Posts: 2,338 ■■■■■■■■□□Well, yeah... I am aware each switch has one port that is set to forwarding. I was getting confused in the terminology. It appears designated ports are on the root switch and the non-root switches each have one root port. Or maybe it is the other way around. Just different ways of saying the same thing it seems...
-
theodoxa Member Posts: 1,340 ■■■■□□□□□□Can you manually configure the root switch, or is that always determined by the Bridge ID -> MAC address deduction?
Sort of. There is a command:
spanning-tree root primary
But, all it does is calculate and set the appropriate priority to ensure that the switch it is issued on becomes the root bridge.R&S: CCENT → CCNA → CCNP → CCIE [ ]
Security: CCNA [ ]
Virtualization: VCA-DCV [ ]