Skip to content

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

Description

@duncangreene

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.

Activity

  1. added
    testA new test case or issue identified with a test
    and removed on Nov 7, 2024
  2. jboddey commented on Jan 13, 2025

    @jboddey
    Contributor

    This is out of scope for our testing within Testrun at this stage and so we will not implement it ourselves. We encourage open source contributions and would accept this into the code base provided that a new test module is added and a new test pack is added.

  3. KrystsinaT commented on Aug 31, 2026

    @KrystsinaT
    Collaborator

    Reopened. The issue and solution will be processed in 555138956.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    testA new test case or issue identified with a test

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions