Skip to main content

STP

More
15 years 7 months ago #27672 by nk007
STP was created by nk007
If i have two switch A and B.

I have connect the switch like as below:

Switch A port1
>Switch B port1
Switch A port2
>Switch B port2 (redundancy)

Anyhow One of this port will be block.

I like to know how one of this port block and another one is allowing even though it has same MAC address and priority.


Kindly explain me.

Thanks in advance.
More
15 years 7 months ago #27680 by S0lo
Replied by S0lo on topic Re: STP
Hello nk007,

Before answering, may I ask how did you know that the two switches have same MAC addresses? :? Or did I misunderstand you. As far as I know, all interfaces (hence switches) have distinct MAC addresses, even if they come from different vendors. STP (and in-fact ethernet) is based on the concept of having differing MACs. It will not work as it should otherwise.

Studying CCNP...

Ammar Muqaddas
Forum Moderator
www.firewall.cx
More
15 years 7 months ago #27691 by ramhuliyar
Replied by ramhuliyar on topic Re: STP
I think the MAC nk007 is referring to is the Root Bridge ID. If so, then in the example given, let us assume switch A has lower bridgeID than switch B, then one port on switch B will be root port and the other will be blocking. The way the root port is decided is

1. Since the Root Bridge ID is same on both the BPDU recieved on both the ports, there is tie break and the next condition is, the lowest cost of the BPDU.
2. In this case the cost will be same since BPDU are recieved from the root directly. Now there is again a tie break, so this tie is broken by
3. Switch A will be sending the port information in the BPDU, in this case port1 for the BPDU sent on port 1 and port 2 for the BPDU sent on port2. So the switch B will select the port on which the lower port value BPDU is recieved.
More
15 years 7 months ago #27692 by S0lo
Replied by S0lo on topic Re: STP

I think the MAC nk007 is referring to is the Root Bridge ID


Even if we assume so, Bridge IDs still can't be the same on both switches since a Bridge ID is formed by combining the priority and the MAC (which is never the same).

1. Since the Root Bridge ID is same on both the BPDU recieved on both the ports, there is tie break and the next condition is, the lowest cost of the BPDU.
2. In this case the cost will be same since BPDU are recieved from the root directly. Now there is again a tie break, so this tie is broken by
3. Switch A will be sending the port information in the BPDU, in this case port1 for the BPDU sent on port 1 and port 2 for the BPDU sent on port2. So the switch B will select the port on which the lower port value BPDU is recieved.


I agree with you. And I did not know that 3rd tie breaker so thanks :). It seams also there is a per port configurable priority on some switches that can be used to tie break before the ports own MAC or identifier is used.

Studying CCNP...

Ammar Muqaddas
Forum Moderator
www.firewall.cx
More
15 years 7 months ago #27693 by Patiot
Replied by Patiot on topic Re: STP
Yes SOLO, when the first two tie breakers fail to break the tie the third tie breaker will try its shot .

In the third tie breaker info, actually the port priority of the connected switch (in this case SWITCH-A`s sending port priority) will influence the port selection criteria of the concerned switch ( in this case switch-B ). This is actually done with the downstream concept with the core being the root bridge in mind .

Thanks
Patiot
Time to create page: 0.136 seconds