From: Stephen Hemminger <shemminger@linux-foundation.org>
To: joakim.tjernlund@transmode.se
Cc: Bridge@lists.linux-foundation.org
Subject: Re: [Bridge] RSTP in http://git.kernel.org/?p=linux/kernel/git/shemminger/rstp.git; a=summary problems
Date: Tue, 01 Apr 2008 07:40:03 -0700 [thread overview]
Message-ID: <47F24943.3050307@linux-foundation.org> (raw)
In-Reply-To: <1207049456.9675.37.camel@gentoo-jocke.transmode.se>
Joakim Tjernlund wrote:
> On Tue, 2008-04-01 at 15:27 +0530, Srinivas M.A. wrote:
>
>>> Curious, why is RSTP in user space? Lots of protocols are in the kernel,
>>> why not RSTP too?
>>>
>> For one thing it is easier from a development standpoint. The kernel
>> just needs to provide hooks for allowing userspace programs to send
>> and receive BPDUs and to change port states. The STP logic can then be
>> moved to userspace and it is easier to develop and debug.
>>
>
> Yes, but this cannot the only reason to move xSTP to user space? I bet
> that is true for lots of stuff currently in kernel, i.e one could move
> ARP to user space too. You can probably get better performance with
> an in kernel xSTP and possible more robust as you don't depend on a
> external process that could get killed by OOM or by user mistake.
>
>
>>> Are any known issues with the in kernel STP?
>>>
>>> I haven't read 802.1D-2004 but I know RSTP is in there, does RSTP
>>> replace the old STP protocol? If not, is there any reason to prefer STP
>>> before RSTP in some cases?
>>>
>> In 802.1D-2004, RSTP replaces the old STP. RSTP provides additional
>> mechanisms to give faster convergence when the network involves only
>> point-to-point links. It is backward compatible with STP, i.e., it
>> will interoperate correctly when there are other STP bridges, though
>> you lose the fast convergence then. So, in general, there is no reason
>> to prefer STP to RSTP. Currently, the main reason would be that the
>> STP implementation has been around much longer and that this RSTP
>> implementation is new.
>>
>
> Thanks you for the info, much appreciated. I guess the reason why
> in kernel STP hasn't been converted to RSTP is the user space approach?
>
> Sorry for all the questions/criticism, this is all fairly new to me and
> I wanted share my initial feelings about RSTP and how it works. Once I
> get used to how it all works I generally stop asking myself why/how
> things work and just get on with it.
>
> Jocke
>
> PS.
> I really think you need publish the RSTP work somewhere on the bride
> home page, I had a hard time finding this and I am sure others too
> have problems finding it.
>
There are several motivations for moving it to user space:
1. As a userspace application it is less vulnerable to being used for
remote exploits. Buffer overflows etc
in kernel are more damaging.
2. Rstplib is pre-existing code, and can be incorporated easier into
user application
3. The real reason is that there are many flavors of STP and and
configuration and research are more
easily managed in userspace.
Note: performance is not an issue for STP.
But:
1. Robustness is harder in userspace
2. Close coupling of kernel and daemons is maintance pain
3. Backwards compatibility problems.
Maybe RSTP in userspace is a bad idea, it is possible to go back.
next prev parent reply other threads:[~2008-04-01 14:40 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <8571495929364495836@unknownmsgid>
2008-03-30 9:32 ` [Bridge] RSTP in http://git.kernel.org/?p=linux/kernel/git/shemminger/rstp.git; a=summary problems Srinivas M.A.
2008-03-30 10:43 ` Joakim Tjernlund
2008-03-30 11:35 ` Srinivas M.A.
2008-03-30 12:03 ` Joakim Tjernlund
2008-03-30 12:19 ` Joakim Tjernlund
2008-03-30 15:06 ` Joakim Tjernlund
2008-03-30 11:59 ` Joakim Tjernlund
[not found] ` <7423344835968003573@unknownmsgid>
2008-03-30 19:13 ` Srinivas M.A.
2008-03-30 21:18 ` Joakim Tjernlund
2008-03-31 7:25 ` Srinivas M.A.
2008-03-31 7:44 ` Joakim Tjernlund
2008-03-31 16:59 ` Srinivas M.A.
2008-03-31 17:54 ` Joakim Tjernlund
[not found] ` <-2617425004832712825@unknownmsgid>
2008-03-31 20:09 ` Srinivas M.A.
2008-04-01 6:57 ` Joakim Tjernlund
2008-04-01 9:57 ` Srinivas M.A.
2008-04-01 11:30 ` Joakim Tjernlund
2008-04-01 14:40 ` Stephen Hemminger [this message]
2008-03-31 11:48 ` Joakim Tjernlund
2008-03-31 17:10 ` Srinivas M.A.
2008-03-31 18:05 ` Joakim Tjernlund
2008-03-29 17:10 Joakim Tjernlund
2008-03-31 16:06 ` Stephen Hemminger
2008-03-31 17:06 ` Joakim Tjernlund
2008-03-31 17:08 ` Stephen Hemminger
2008-03-31 17:59 ` Joakim Tjernlund
-- strict thread matches above, loose matches on Subject: below --
2008-03-29 16:21 Joakim Tjernlund
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47F24943.3050307@linux-foundation.org \
--to=shemminger@linux-foundation.org \
--cc=Bridge@lists.linux-foundation.org \
--cc=joakim.tjernlund@transmode.se \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox