Repository navigation
Added
- An 8-switch demo topology, a ring with two chords (
TOPOLOGY=largeforscripts/topo.sh
andscripts/switches.sh, configs inconfigs/large/), andtest_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 (
sw2beforesw10), 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 byfuzz_pipeline; the input is kept infuzz/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.debVerify downloads with sha256sum -c SHA256SUMS.