04-14-2012 02:37 AM - edited 03-07-2019 06:07 AM
hi,
just wanna know whether stp or pvstp is enabled by default on switch...
whats the difference between two?
04-14-2012 03:47 AM
Hi Vishal,
According to my experience with Catalyst 2950,2960,3560 and the Cisco CCNA curriculum the default spanning-tree mode is actually PVST+.
Main difference is that STP does not support trunking and VLANs, PVST+ does. PVST+ is actually running one STP instance for one VLAN.
The next difference is that STP is IEEE standard and PVST+ is cisco proprietary.
In addition - PVST+ supports both ISL and 802.1q trunking. That's why it's called Per-VLAN spanning tree plus anyway.
Best regards,
Jan
04-14-2012 05:41 AM
Hello Jan,
A very nice answer indeed! Allow me to correct one slight inaccuracy, though.
In addition - PVST+ supports both ISL and 802.1q trunking. That's why it's called Per-VLAN spanning tree plus anyway.
There actually is a difference between PVST and PVST+. The PVST is historically older, and was the mode of running several STP instances - one for each VLAN - over an ISL trunk in particular. Because ISL encapsulates the entire original frame and has no concept of native VLAN, PVST merely dealt with encapsulating individual BPDUs using ordinary ISL framing, and setting the 'BPDU' flag in the ISL header to signify that this frame is to be processed by the CPU of the receiving switch.
PVST+ came later with running several STP instances over 802.1Q trunk in particular. Things are more complicated here. First, because there is a concept of a native VLAN on 802.1Q trunks, you can also have a native VLAN mismatch, which could, among other things, cause the STP in the two mismatched VLANs to misbehave. Therefore, PVST+ has to somehow be able to detect native VLAN mismatches and prevent them from wreaking havoc. This is performed by adding a special TLV record at the very end of each PVST+ BPDU that contains the VLAN ID where this BPDU was first originated. If this BPDU is received on a different VLAN (thanks to mismatched, removed or rewritten 802.1Q tags) than the VLAN recorded in this TLV, the receiving switch will declare a PVID Inconsistency and block the port, thereby preventing possible switching loops. See the following document for details:
http://www.cisco.com/en/US/tech/tk389/tk621/technologies_tech_note09186a00801d11a0.shtml
Second, the switch behind the 802.1Q trunk may not be aware of per-VLAN STP but it still may be running a single instance of IEEE-compliant STP, creating a so-called Common Spanning Tree, i.e. a single instance of ordinary STP which enforces a common shared spanning tree for all VLANs outside. The PVST+ has to somehow work together with the pure STP running outside. The PVST+ does this by always sending ordinary STP BPDUs for VLAN 1 untagged (regardlessly of the native VLAN on the trunk), and sending PVST+ BPDUs for all VLANs accordingly tagged and SNAP-encapsulated, thereby tunneling them through the CST cloud.
So the PVST was the former way of running several STP instances over an ISL trunk (note no interworking or consistency checking was necessary here: the only vendor that spoke ISL was Cisco), PVST+ is the method of running several STP instances over an 802.1Q trunk including consistency checks and possible interworking with plain STP.
Best regards,
Peter
04-14-2012 05:50 AM
Hi Peter,
Thank you very much for sharing such information and correcting me. I was aware of difference between PVST and PVST+ but not in such comprehensive manner. Thank you once more!
Best regards,
Jan
04-14-2012 07:08 AM
thank you all for this valuable explanation..
I have one more doubt about PVST.
we normrally use stp when there is redundancy between switches.
suppose there are two switches connectef with each other with two links...
Those ports are configured as trunk, then wgy would we need pvst if the ports are in trunk mode(not assigned to particular vlan)
04-14-2012 08:15 AM
Hi Vishal,
Trunks won't solve problems with topology loops. That is because trunk ports are part of every VLAN that is allowed to be there. Let me explain in in the topology you depicted.
VLANs on trunk: 1,69
There is no PVST+ running.
If you would have two trunks, all vlans allowed then imagine what happens if user from PC1 sends broadcast.
SW1 will send the broadcast out of all ports except fa0/24. (ports fa0/1 and fa0/3 also)
Then the broadcast arrives to SW2.
Frame that arrives on port fa0/2 is then sent out from port fa0/4. Frame that arrives on port fa0/4 is sent out from port fa0/2.
Then the frames arrive back to SW1.
Frame received on port fa0/1 is sent out from fa0/3 back to SW2 and also to PC1.
Frame received on port fa0/3 is sent out from fa0/1 back to SW2 and also to PC1.
And the scenario goes on and on and on...
You see, we have just created an loop, the frames just keep on replicating...
You need to have PVST+ enabled if you want to get rid of the loops in the topology like this.
Best regards,
Jan
04-15-2012 08:51 PM
got it jan
thank you very much!!!!!!
can u provide me any link that can help me practice STP and its types???
I am struggling with this
04-16-2012 08:58 AM
Hi Vishal,
I am more than happy to hear that!
can u provide me any link that can help me practice STP and its types???
Please check out this link:
http://www.cisco.com/en/US/tech/tk389/tk621/tsd_technology_support_protocol_home.html
You can click on STP, RSTP, MSTP, PVST, PVST+ and you will find there guides for configuration(if implemented on switches) and also documentation, reccomendation and some additional information.
And this link - Understanding and configuration of STP on Catalyst Switches:
http://www.cisco.com/en/US/tech/tk389/tk621/technologies_configuration_example09186a008009467c.shtml
Basically you can configure:
PVST+ (running by default) = one STP instance per VLAN
Rapid-PVST+ (rapid version of PVST+) = one RSTP instance per VLAN
MST (multiple spanning tree) = one RSTP instance per group of VLANs
Best regards,
Jan
04-16-2012 02:38 PM
Hello Vishal,
It seems that Jan has covered your questions extensively. Would you kindly care to mark his appropriate answers as correct? This will help other readers to know that this thread actually offers the correct solution related to its topic, and importantly, it at least partially rewards Jan for generously investing his free time and effort into helping you.
Best regards,
Peter
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide