!! THE PROJECT HAS MOVED: https://github.com/mstpd/mstpd !!
!! THIS REPOSITORY HAS HISTORICAL VALUE ONLY !!
MSTPD is open source user-space daemon licensed under GPLv2.
At the moment the latest version 0.03 is reported to be compliant with IXIA ANVL RSTP test suite, with the notable exception of looped-back BPDUs (see discussion on the matter on the Implementation Features wiki page).
Important note! MSTP part of the code (as opposed to STP/RSTP part) is mainly untested, so I believe it will behave unexpectedly in many situations. Don't use it in production!
Also MSTPD includes a number of useful features which are not defined in 802.1Q-2005 standard, but are found on many commercial switches. Namely:
Create reliable and well-tested MSTP code.
Get some user base - the more users of this code, the more test coverage is.
Replace rstpd.
I'm in a great despair: the project seriously lacks testing. There are two excellent test suits out there: UNH MSTP Interoperability and UNH MSTP Operational Test Suites. But I can't imagine how I can get test frames used in these suites. It seems like those frame tables are covered by some sort of non-disclosure agreement. And in the same time UNH test suites are considered as industry standard. So, the mstpd should pass those tests. But I can not get frames used in the tests :(
Does anybody have any thoughts how can I get those frames? Maybe somebody already have test setup and can help me by testing and reporting results?
The mstpd is reported to be successfully integrated in the following distributions:
Note: above distributions use only STP/RSTP protocols and are not using multiple tree instances.
The mstpd is reported to be successfully integrated in the product on the following arches:
<unix_router ? yahoo DOT com>
) - only in STP/RSTP mode, not using multiple tree instancesThe daemon depends on the bridge Linux kernel code to gather basic info about bridge, such as bridge state (up/down, STP on/off), slave interfaces for the bridge and their state (up/down). Also daemon translates CIST states to the kernel bridge slaves, so mstpd in (r)stp mode can be used as replacement for the current rstpd (and even for the in-kernel stp!).
MSTP standard (802.1Q-2005) requires from the bridge to be heavily interconnected with the VLANs infrastructure, namely:
This is a big flaw in Linux. Actually, in Linux bridge code is totally independent from VLAN code and given wide deployment of the 802.1Q-2005 compatible bridges this is wrong approach. Bridge and VLAN code should be merged together.
Anyway, this is not true for now, so MSTP daemon is not as useful for the bare Linux box (except for the (R)STP case - as stated above it works with the kernel bridge well enough in this case). But there are plenty embedded cases where bridging functions are implemented by specialized hardware with support of custom drivers. For such cases MSTP daemon can be successfully utilized. The daemon code has a few hooks where driver-specific code should be inserted to control the bridge hardware.
Initial code was written by looking at (and shamelessly stealing some parts from):
<Aji_Srinivas ? emc DOT com>
<alexr ? nbase DOT co DOT il>
and Michael Rozhavsky <mike ? nbase DOT co DOT il>
Commit: [r42]
Commit: [r46]
Commit: [r51]
Commit: [r59]
Tickets: #4
Wiki: ImplementationFeatures