Skip to content

softswitch v1.1.0

Latest

Choose a tag to compare

@github-actions github-actions released this 08 Nov 13:47
· 6 commits to main since this release
12e0402

Added

  • An 8-switch demo topology, a ring with two chords (TOPOLOGY=large for scripts/topo.sh
    and scripts/switches.sh, configs in configs/large/), and test_large: three loops for RSTP,
    two data planes per CPU, and a two-step failure that every flow must survive.
  • The GUI lays out any number of switches: names sort naturally (sw2 before sw10), larger
    networks get an elliptical layout, and the view grows to fit.
  • A second GUI recording in the README, with eight switches and two link failures.

Security

  • Frames with stacked 802.1Q tags are dropped (new drop reason stacked-tag). A host on an
    access port could send a priority tag (VID 0) with a second tag behind it; the switch removed
    the first and forwarded the frame with the inner tag still in front, so out of an untagged
    (native) trunk port the next switch classified it by that tag: double-tagging VLAN hopping.
    Found by fuzz_pipeline; the input is kept in fuzz/corpus/pipeline/. Region layout version 4.

Fixed

  • The data plane spun at 100 % CPU after any of its links went down: the link loss leaves an
    error pending on the port's AF_PACKET socket, poll() reported POLLERR until it was read, and
    nothing read it. At SCHED_FIFO this starved any other data plane pinned to the same CPU; on an
    8-switch ring the starved bridge stopped hearing BPDUs, declared itself root and cut off its
    hosts. The idle loop now reads (clears) the error.
  • RSTP ignored a received topology change if it had handled one in the last 2 x hello, whatever
    port it arrived on. During a multi-step reconvergence the change that mattered was dropped and
    MACs kept pointing into a dead end until the next change (29 of 135 pings lost in the 8-switch
    test). Every received TC now flushes and propagates, as in 802.1D-2004; only the topology-change
    counter is deduplicated.

Install on Raspberry Pi OS / Debian bookworm (arm64)

sudo apt install ./softswitch_1.1.0_arm64.deb

Verify downloads with sha256sum -c SHA256SUMS.