Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider adding test for detection of Spanning Tree Protocol and variants #932

Open
duncangreene opened this issue Oct 30, 2024 · 0 comments
Labels
test A new test case or issue identified with a test

Comments

@duncangreene
Copy link

What is the problem your feature is trying to solve?
Advanced (IoT) devices that can lend themselves to a ring Ethernet topology (should) additionally implement Spanning Tree Protocol. Whether the devices are actually used in a ring topology is entirely down to the system design, but irrespectively, a device capable of such a topology should (or may) send BPDUs to detect the presence of a loop in order to implement a suitable tree topology.

Access layer switchports may be configured with BPDU guard to prevent unintended STP topology changes being triggered by unexpected devices. Receipt of a BPDU on a switchport configured with BPDU guard will cause the port to go error disabled/down and require some level of intervention from the active network team to resolve the downtime. Alternative methods such as BPDU filter can be used if it's not possible to disable STP in the end device, but this comes with its own caveats.

Describe the solution you think would solve the problem
Testrun should monitor the DUT to see whether it sends BPDUs, and report accordingly. This should be captured within the first 30 seconds of the DUT being powered on, which is when an access layer switchport configured without portfast would be in the listening and learning states.

Additional context
As far as I'm aware a Wireshark filter of stp will work for STP, RSTP, MSTP, PVST, etc.

I'm not sure whether there's appetite to cater for Industrial IoT devices, but some of these may even implement the far faster topology convergence protocols such as MRP, PRP, HSR. A Wireshark filter of prp I believe will hit most.

@jboddey jboddey added test A new test case or issue identified with a test and removed request labels Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test A new test case or issue identified with a test
Projects
None yet
Development

No branches or pull requests

2 participants