Correctly configuring STP Priority

jx3000

Ars Tribunus Militum
2,571
Hi everyone,

I have a few issues I am observing, but I am hoping an STP configuration solves this issue.

Core switch = HP ARUBA. It has some trunks to the Hyper V server and another two sets of trunks going to two DELL switches. It appears RSTP is off on this switch.

DELL SW1 = Receiving end of above mentioned trunks. Has RSTP with priority 32768.
DELL SW2 = Also is receiving end of above mentioned trunks. Has RSTP with priority 32768.

I am looking at RSTP because I recently introduced Ubiquiti Switches and many AP's. Original problem was that Ubiquiti switch would get in a state where it wasn't working. I solved it by giving the primary Ubiquiti Switch an RSTP priority of 32768, because the primary Ubiquiti was connected to ARUBA core switch. The other two Ubiquiti switches were giving RSTP priority of 40960.

With only that change made I notice are around 20 to 30 days the LAN on DELL SW2 suffers slowness issues even though pings aren't dropping. The only other issue is Ubiquiti AP's not getting DHCP and defaulting to 192.168.1.20 which is the IP they receive outside of DHCP range. Interestingly I unadopted one of the AP's that fails daily and was fine with pings and an active SSH session over the weekend.

It might be that the DELL switches are old 2012, 2014. But might be a configuration issue also.

Simple layout of wiring below is, calling "Level1" and "Level 2" as I don't know correct terminology.

HP ARUBA (Core)
DELL SW1 (Level 1) (RSTP 32768)
DELL SW1 (Level 1) (RSTP 32768)
Ubiquiti SW1 (Level 1) (RSTP 32768)
Ubiquiti SW2 (Level 2) (RSTP 40960)
Ubiquiti SW2 (Level 2) (RSTP 40960)
 
I usually wouldn't attribute slowness to STP misconfiguration. Unless you're causing a flood. Self induced DDOS.

If we're gonna debug STP (ugh, sorry, wanna help, but UGH)
Then step one:

Was specific switch models.
In particular the HPE/Aruba switch. CX or AOS-S(PVOS)

Step 2:
Give me a networking diagram here.

Step 3:
Also, on the Aruba, the output of show spanning-tree is step one if you think this is a spanning tree issue.
Who is root?


Assuming we're talking AOS-S or AOS-CX. IF this is Instant on, then no CLI, so need to check the cloud GUI.
 

Frennzy

Ars Legatus Legionis
85,841
The real purpose of spanning tree is to prevent loops/storms in meshed topologies; so if you've got a flat hierarchical topology where L1 plugs into L2 plugs into L3, without interconnects between layer members, you shouldn't have to worry about it.

Except for that whole virtualization thing...where bridging can be had for fun and profit!

It has some trunks to the Hyper V server and another two sets of trunks going to two DELL switches. It appears RSTP is off on this switch.


But yeah, without an actual topology, this will all be guess work.

Side note, in this day and age, STP is an abomination.
 

jx3000

Ars Tribunus Militum
2,571
This is what the network looks like. I did an isolation test of the Ubiquiti hardware with a 4g router and it worked fine and no drop out or "re-adoption" of device. Only when I plug in to existing hardware is there problems on the LAN and some AP's not having connectivity.


EDIT: I just noticed a mistake in the diagram. ubiquiti warehouse2 should be RSTP 40960 in the diagram.

 

gusgizmo

Ars Praefectus
3,057
Subscriptor
If you aren't deeply familiar with STP vs MSTP vs PVST the mapping from PVST to MSTP is somewhat hard to understand. It's awkward enough in best case and the specifics vary from vendor to vendor and model to model.

My suggestion is to just dumb it down to a reasonable common denominator between switches. Seems like everything listed should talk RSTP and that's generally "good enough" for most applications of this scale. From your diagram, setting the timers and root bridge should be enough. Your diameter is low, so I expect convergence shouldn't be an issue even if you have a less than optimal config. RSTP can converge faster than the configured timers, so don't feel you need to tune them beyond harmonizing between brands and models. More is less, in that being too aggressive can cause breakage.

Another thing to note about single instance stp is that you need to double check that all interswitch links carry all relevant vlans. STP/RSTP operate on link state and don't consider the vlan configurations at all, so they'll chop off a link carrying the vlan you need potentially causing an outage if you have a trunk misconfigured like that. PVST handles this like magic. MSTP is somewhere in between which makes it a more stylish and elaborate footgun, doing cool stuff like only sometimes bifurcating a vlan depending on if it's odd or even (a common mstp config).
 
All switches need to be running the same version of STP.


Again, you haven't given us the version of Aruba switch yet. There are 3 OSs that "Aruba" switch could refer to. 2 of which are in current production.

So you have HyperV servers that have uplinks to the Dell switches.
If you do a show spanning-tree on the dell switches what do they say?


The drawing you provided, that network could only use STP for basic loop protection. There is no built in multi-path redundancy that is maintained by STP.
 

malor

Ars Legatus Legionis
16,093
Sarcasm isn't especially useful in a technical context, at least here: there's a bunch of implicit knowledge in the jeers about bad design, but none of it is being made explicit, so it doesn't help anyone. If you don't take the time to explain what it should look like, instead just throwing shade at what it does look like, everyone's time is wasted.

If your designs are all so good that you can sneer at others, sharing some of those ideas instead would do a lot more good for both OP and drive-by readers. Snark's only purpose is to make you feel superior in public.
 
Sarcasm isn't especially useful in a technical context, at least here: there's a bunch of implicit knowledge in the jeers about bad design, but none of it is being made explicit, so it doesn't help anyone. If you don't take the time to explain what it should look like, instead just throwing shade at what it does look like, everyone's time is wasted.

If your designs are all so good that you can sneer at others, sharing some of those ideas instead would do a lot more good for both OP and drive-by readers. Snark's only purpose is to make you feel superior in public.

What I think people are maybe trying to say is that:
1. All switches need to be running STP, or all switches need to have STP disabled
2. All switches need to be running the same version of STP
3. The purpose of STP is to prevent loops between switches, not loops on an individual switch, although it may help a little with loops on an individual switch.
4. Switches from 2012 may not implement any operable version of STP correctly.
5. Trunkports that connect to virtual (Hyper-V) bridge ports can have unintended consequences.

Personally, I'd start with disabling STP.
 

jx3000

Ars Tribunus Militum
2,571
Hi guys,

Sorry haven't been around. I did laugh just now with the Unicorn and other solutions :)

Indeed there isn't a physical loop that I can see. I have about 80% audited every switch on the premises and there is one more I got to check out that isn't in the diagram above..

This was an inherited setup and a friend of mine who knows a little bit more about Aruba's helped me find some interesting things going wrong with the network by simply typing, show mac-address (insert a device Mac address).

I put the Mac address of a an AP that was failing and the path was flip flopping between the two trunks to the dell switches, the below two commands were done within 5 seconds. You can see how bad it is the path was wrong and the AP never got a DHCP.

NOTE: the Aruba switch model for those who asked in the output below. Not sure which Aruba OS that is.

With the below the output should have been Port 2, VLAN 1.

Code:
HP-2530-48G-PoEP# show mac-address f4:92:bf:cc:6f:ef

 Status and Counters - Address Table - f492bf-cc6fef

 Port    VLAN
 ------- ----
 Trk5    1

HP-2530-48G-PoEP# show mac-address f4:92:bf:cc:6f:ef

 Status and Counters - Address Table - f492bf-cc6fef

 Port    VLAN
 ------- ----
 Trk4    1

HP-2530-48G-PoEP#


Now I think I fixed my issue by making the priority for DELL sw1 = 36864, and DELL sw2 = 32768

This made DELL sw2 identify itself as the root bridge.

I also gave each Ubiquiti Switch higher priorities.

When I did this all AP's that weren't working, when into a good state and started working.

I still don't know if I have done the right thing not being a network engineer. But the WIFI gear seems stable since Friday night when I made the change. It might be worth it as some said to turn off RSTP.
 
Again, I desperately want to know what all the switches are saying is happening with STP.

Changing root bridges shouldn't matter. And if it does then that suggests to me that there's a mismatch in STP configuration.


What you described with the AP is the classic sign of a looped port. your HyperV servers are misconfigured.

If I had to guess, when you changed the root bridge, that caused the switch to take down one of the trunk ports. Thus clearing up the loop.
 

Paladin

Ars Legatus Legionis
33,855
Subscriptor
Yeah, I am guessing that the change of priority allowed a new root to properly disable a path that was causing issues so it is 'good' but not a proper fix really. It might come back if something is rebooted or the network changes later.

"trunks to the Hyper V server and another two sets of trunks going to two DELL switches"

Those 2 need some explaining. Trunks can mean a lot of things to a lot of people: VLAN (802.1q), Cisco VTP, or 802.3ad link aggregation (with various other interpretations from different vendors). Do you simply mean you have more than one cable between the switch and physical server/device in question? Or are you using the term to mean VLAN trunk (multiple tagged VLANs for various networks on one cable)? Or do you use a link aggregation protocol such as LACP with multiple cables between the switch and host/device?

Depending on what you mean there, it could definitely be related to this issue and could pop up as a problem later.