Skip to content

softswitch v0.4.0

Choose a tag to compare

@github-actions github-actions released this 07 Nov 22:41
· 22 commits to main since this release
eb8dd5c

Added

  • Reduced Rapid Spanning Tree state machine (stp::Rstp): priority-vector role selection,
    proposal/agreement with sync, instant alternate-to-root failover, forward-delay fallback,
    received-information expiry, edge ports and topology-change flushing/propagation. Agreements
    from root ports are only accepted from bridges that are really downstream, which closes the
    forwarding loop RSTP's count-to-infinity can otherwise open after a root bridge is lost.
  • RSTP simulation tests (triangle convergence, failover, silent failure, root loss, priority
    change, edge, fallback, backup port) and a property test over 500 random meshes asserting a
    loop-free spanning tree after convergence and after link failures; fuzz_rstp fuzz target.
  • rtnetlink link monitoring in softswitchd: an initial RTM_GETLINK dump plus RTMGRP_LINK
    events set each port's operational state (admin up and carrier); a port going down flushes the
    MACs learned on it. Re-dumps after a netlink overrun. Bounds-checked parser with tests and a
    fuzz_netlink target.
  • RSTP runs in every switch: the data plane punts BPDUs (before VLAN and STP-state filtering);
    softswitchd feeds them to stp::Rstp, injects its BPDUs raw on the egress port, publishes
    port states, flushes the FDB on topology changes and drives port enablement from link state.
  • Spanning-tree configuration: [no] spanning-tree, spanning-tree priority|hello-time|max-age| forward-time, interface PORT spanning-tree portfast|cost|port-priority; show spanning-tree.
  • The test configs make sw1 the root and host ports portfast; test_stp.sh runs the looped
    triangle: one alternate port, no storm, and failover under traffic without lost pings.

Changed

  • Outstanding RSTP proposals are retried every 500 ms, and a proposing port re-proposes at once
    when the neighbour shows up, so BPDUs lost while a link comes up cost < 1 s instead of a hello.
  • Config and link changes publish tables before RSTP reacts, so BPDUs on a port that just came
    up are not dropped by the data plane.

Install on Raspberry Pi OS / Debian bookworm (arm64)

sudo apt install ./softswitch_0.4.0_arm64.deb

Verify downloads with sha256sum -c SHA256SUMS.