* [Bridge] RSTP user mode implementation
@ 2008-05-07 11:06 Benoit PAPILLAULT
2008-05-08 16:17 ` Srinivas M.A.
2008-05-08 16:27 ` Srinivas M.A.
0 siblings, 2 replies; 6+ messages in thread
From: Benoit PAPILLAULT @ 2008-05-07 11:06 UTC (permalink / raw)
To: Bridge
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
I'm new to STP and RSTP. I'm however trying to implement a new bridge
protocol. I'm trying the RSTP code available at :
git clone git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/rstp.git
It compiles fine. However, it segfaults using a 2.6.22 kernel from
Ubuntu. Since the documentation is pretty scare, are there requirements
on the kernel version or kernel features?
Moreover, it seems the last commit was done in May 2007. Are new
developments taking place at some other location? Or is the project
dead? I really like the idea of implementing bridging at user level, it
should allow me to try a new bridge protocol pretty easily.
Regards,
Benoit
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIIY1MOR6EySwP7oIRAsULAKDuR3667Gsmc9hTulKrlXZeuXYb5ACgyGnA
R8cRMbR98E06PK0kEn6Nlms=
=x0MY
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Bridge] RSTP user mode implementation
2008-05-07 11:06 Benoit PAPILLAULT
@ 2008-05-08 16:17 ` Srinivas M.A.
2008-05-08 16:27 ` Srinivas M.A.
1 sibling, 0 replies; 6+ messages in thread
From: Srinivas M.A. @ 2008-05-08 16:17 UTC (permalink / raw)
To: Benoit PAPILLAULT; +Cc: Bridge
[-- Attachment #1: Type: text/plain, Size: 3331 bytes --]
Hi,
I am attaching a newer version that I have (Tarball includes .git/).
Stephen Hemminger has not put the newer version in his git. I rewrote
the RSTP logic, replacing RSTPLIB, based on the 802.1D-2004 standard.
The RSTP logic is in the files rstp.[ch] and the rest interfaces this to work
on a Linux bridge.
There was some discussion about this on the Linux bridge mailing list
(https://lists.linux-foundation.org/mailman/listinfo/bridge).
You can look at last month's archives. There a thread of discussions
with Joakim Tjernlund trying this out.
If you are trying to run RSTP for Linux bridging, what you get out of
this tarball I am sending will work, with some caveats about startup.
Let me write some notes on how this works, which may avoid initial
confusion. One of the complications in the currnet Linux bridge STP is
that we have an STP implementation in the kernel, as well as a
framework to let userspace do STP (which is how this RSTP
implementation works.). In relatively new kernels (2.6.21+), the way
the STP implementation is chosen is this. When you do
"brctl stp <br> on", the kernel tries to run "/sbin/bridge-stp <br> start".
If this program can be run and its exit status is 0, userspace is
assumed to handle STP for this bridge, else kernel STP is used.
The sample bridge-stp in the tarball just exits with status 0 if the
bridge name is one of those listen in the variable RSTP_BRIDGES in the
script.
So to get this working, follow these steps:
1. Put the file bridge-stp in the tarball at /sbin/bridge-stp, with
execute permission.
2. Edit RSTP_BRIDGES in that file to the list of bridges on which you
want RSTP rather than kernel STP.
3. Start rstpd before bringing up any bridges (from an init script,
perhaps.)
4. Enable stp on the bridge before bringing it up. (There is currently
no notification from kernel to rstpd for STP state change, but there
is for bridge up/down. So if STP state is set before the bridge is
brought up, things work fine.)
In any case, let me know how it goes.
Srinivas
On Wed, May 7, 2008 at 4:36 PM, Benoit PAPILLAULT
<benoit.papillault@free.fr> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello,
>
> I'm new to STP and RSTP. I'm however trying to implement a new bridge
> protocol. I'm trying the RSTP code available at :
>
> git clone git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/rstp.git
>
> It compiles fine. However, it segfaults using a 2.6.22 kernel from
> Ubuntu. Since the documentation is pretty scare, are there requirements
> on the kernel version or kernel features?
>
> Moreover, it seems the last commit was done in May 2007. Are new
> developments taking place at some other location? Or is the project
> dead? I really like the idea of implementing bridging at user level, it
> should allow me to try a new bridge protocol pretty easily.
>
> Regards,
> Benoit
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFIIY1MOR6EySwP7oIRAsULAKDuR3667Gsmc9hTulKrlXZeuXYb5ACgyGnA
> R8cRMbR98E06PK0kEn6Nlms=
> =x0MY
> -----END PGP SIGNATURE-----
> _______________________________________________
> Bridge mailing list
> Bridge@lists.linux-foundation.org
> https://lists.linux-foundation.org/mailman/listinfo/bridge
>
[-- Attachment #2: rstp.tgz --]
[-- Type: application/x-gzip, Size: 424605 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Bridge] RSTP user mode implementation
2008-05-07 11:06 Benoit PAPILLAULT
2008-05-08 16:17 ` Srinivas M.A.
@ 2008-05-08 16:27 ` Srinivas M.A.
1 sibling, 0 replies; 6+ messages in thread
From: Srinivas M.A. @ 2008-05-08 16:27 UTC (permalink / raw)
To: Benoit PAPILLAULT; +Cc: Bridge
Hi,
Independent of my plug for the newer version, could you send more
information from your segfault, like a stack trace? I could help with
debugging the crash.
Kernels later than 2.6.21 should be good enough.
On Wed, May 7, 2008 at 4:36 PM, Benoit PAPILLAULT
<benoit.papillault@free.fr> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello,
>
> I'm new to STP and RSTP. I'm however trying to implement a new bridge
> protocol. I'm trying the RSTP code available at :
>
> git clone git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/rstp.git
>
> It compiles fine. However, it segfaults using a 2.6.22 kernel from
> Ubuntu. Since the documentation is pretty scare, are there requirements
> on the kernel version or kernel features?
>
> Moreover, it seems the last commit was done in May 2007. Are new
> developments taking place at some other location? Or is the project
> dead? I really like the idea of implementing bridging at user level, it
> should allow me to try a new bridge protocol pretty easily.
>
> Regards,
> Benoit
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFIIY1MOR6EySwP7oIRAsULAKDuR3667Gsmc9hTulKrlXZeuXYb5ACgyGnA
> R8cRMbR98E06PK0kEn6Nlms=
> =x0MY
> -----END PGP SIGNATURE-----
> _______________________________________________
> Bridge mailing list
> Bridge@lists.linux-foundation.org
> https://lists.linux-foundation.org/mailman/listinfo/bridge
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bridge] RSTP user mode implementation
@ 2009-01-23 6:12 Abhishek Mathur
0 siblings, 0 replies; 6+ messages in thread
From: Abhishek Mathur @ 2009-01-23 6:12 UTC (permalink / raw)
To: bridge
[-- Attachment #1: Type: text/plain, Size: 1363 bytes --]
Hi,
I am working on implementations of RSTP and MSTP.
It would be of great help of me if you could provide me with a robust
open source implementation of RSTP and MSTP which I can have a look upon
and some guidelines on how to implement/configure on Linux.
Looking for a positive response soon.
Regards,
Abhishek.
DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.
-----------------------------------------------------------------------------------------------------------------------
[-- Attachment #2: Type: text/html, Size: 3946 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bridge] RSTP user mode implementation
@ 2009-01-23 6:17 Abhishek Mathur
2009-01-26 3:32 ` Stephen Hemminger
0 siblings, 1 reply; 6+ messages in thread
From: Abhishek Mathur @ 2009-01-23 6:17 UTC (permalink / raw)
To: bridge
[-- Attachment #1: Type: text/plain, Size: 1220 bytes --]
Hi
git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/rstp.git
I was not able to access the link, probably the info has been removed.
Kindly help me out.
Regards,
Abhishek.
DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.
-----------------------------------------------------------------------------------------------------------------------
[-- Attachment #2: Type: text/html, Size: 3556 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Bridge] RSTP user mode implementation
2009-01-23 6:17 [Bridge] RSTP user mode implementation Abhishek Mathur
@ 2009-01-26 3:32 ` Stephen Hemminger
0 siblings, 0 replies; 6+ messages in thread
From: Stephen Hemminger @ 2009-01-26 3:32 UTC (permalink / raw)
To: Abhishek Mathur; +Cc: bridge
On Fri, 23 Jan 2009 11:47:28 +0530
"Abhishek Mathur" <abhishek_mathur@hcl.in> wrote:
>
> Hi
>
>
>
> git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/rstp.git
>
>
>
> I was not able to access the link, probably the info has been removed.
On Linux
$ git clone git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/rstp.git
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-01-26 3:32 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-23 6:17 [Bridge] RSTP user mode implementation Abhishek Mathur
2009-01-26 3:32 ` Stephen Hemminger
-- strict thread matches above, loose matches on Subject: below --
2009-01-23 6:12 Abhishek Mathur
2008-05-07 11:06 Benoit PAPILLAULT
2008-05-08 16:17 ` Srinivas M.A.
2008-05-08 16:27 ` Srinivas M.A.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox