From: Stephen Hemminger <shemminger@vyatta.com>
To: "richardvoigt@gmail.com" <richardvoigt@gmail.com>
Cc: Bridge@lists.linux-foundation.org, joakim.tjernlund@transmode.se
Subject: Re: [Bridge] STP bug, loop not detetcted
Date: Tue, 13 May 2008 10:28:06 -0700 [thread overview]
Message-ID: <20080513102806.55f16b36@extreme> (raw)
In-Reply-To: <2e59e6970805122010v50dcd5al101ae3466b897ad6@mail.gmail.com>
On Tue, 13 May 2008 03:10:09 +0000
"richardvoigt@gmail.com" <richardvoigt@gmail.com> wrote:
> On Thu, May 8, 2008 at 8:01 AM, Joakim Tjernlund
> <joakim.tjernlund@transmode.se> wrote:
> >
> > On Thu, 2008-05-08 at 02:16 +0000, richardvoigt@gmail.com wrote:
> > > On Wed, May 7, 2008 at 9:22 AM, Joakim Tjernlund
> > > <joakim.tjernlund@transmode.se> wrote:
> > > > Got a bridge with 4 optical VLAN interfaces, eth1.1, eth1.2, eth1.3 and
> > > > eth1.4, attached and the builtin STP enabled. eth1 is connected to
> > > > a "switch" with 4 real interfaces, each real interface maps to one of
> > > > the above mentioned VLANs.
> > > >
> > > > If I loop two or more interfaces by connecting each interface's output
> > > > to its own input, I get a loop that STP doesn't detect.
> > > > Looping by connecting an output from one interface to another interface
> > > > input works fine.
> > > >
> > > > Bug or limitation in STP? If limitation, would RSTP help here?
> > >
> > > Limitation in STP.
> > >
> > > If a bridge receives one of its own STP packets on the same interface
> > > from which it was sent, that indicates a loop elsewhere in the network
> > > that disabling an interface locally will not fix, therefore STP takes
> > > no action.
> >
> > I see, would it hurt something else if STP did turn off it interface in
> > this case? Optical i/f's is getting more common so these types of loops
> > will increase so I think this needs to be addressed.
>
> Yes, it would hurt.
>
> For example, this topology:
>
> br0 - br1 - br2 - br3 - br1
>
> There is a loop in br1-br2-br3-br1, so br0 sees its packet come back
> on the same interface. If br0 shuts down the interface, it breaks
> connectivity. The br0-br1 link is part of a minimal spanning tree so
> STP cannot shut it down. There is no way for STP to distinguish your
> case, which is misconfigured, from this example, which is a valid use
> of redundant links.
Spanning Tree absolutely has to follow the standard. What ever the standard
says, that is what it should do. No special cases, no changes. Get the standard
for free from IEEE (get 802) and read it.
That said, we really need to get the STP updated to RSTP. There are currently
four options:
1) Existing userlevel RSTP daemon based on rstplib.
2) New RSTP code (from EMC) as daemon
3) Update of old STP kernel code to RSTP, this was done on ancient 2.4
for embedded system
4) Port EMC RSTP code to kernel
There doesn't appear to be lots of advantages to user space RSTP long term
and the conversion process would be more painful.
EMC code is slightly uglier (sorry) but has advantage of being recently
interop tested.
I don't have an easy answer, otherwise I would have just chosen one and gone
with it.
next prev parent reply other threads:[~2008-05-13 17:28 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-07 9:22 [Bridge] STP bug, loop not detetcted Joakim Tjernlund
2008-05-07 9:33 ` Jaime Nebrera
2008-05-07 10:40 ` Benny Amorsen
2008-05-07 10:42 ` Benny Amorsen
2008-05-08 2:16 ` richardvoigt
2008-05-08 8:01 ` Joakim Tjernlund
2008-05-08 9:04 ` Francesco Dolcini
2008-05-08 10:01 ` Joakim Tjernlund
2008-05-08 12:13 ` Francesco Dolcini
2008-05-08 12:58 ` Joakim Tjernlund
2008-05-12 9:37 ` Joakim Tjernlund
2008-05-12 17:50 ` Stephen Hemminger
2008-05-12 17:54 ` Joakim Tjernlund
2008-05-13 3:10 ` richardvoigt
2008-05-13 7:35 ` Joakim Tjernlund
2008-05-13 8:41 ` Benny Amorsen
2008-05-13 22:29 ` Dylan Hall
2008-05-13 23:09 ` richardvoigt
2008-05-13 23:56 ` Dylan Hall
2008-05-14 0:55 ` Brad Dameron
2008-05-14 7:27 ` Francesco Dolcini
2008-05-13 17:28 ` Stephen Hemminger [this message]
2008-05-13 19:24 ` [Bridge] RSTP implementation choice Benoit PAPILLAULT
2008-05-14 7:51 ` [Bridge] STP bug, loop not detetcted Francesco Dolcini
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=20080513102806.55f16b36@extreme \
--to=shemminger@vyatta.com \
--cc=Bridge@lists.linux-foundation.org \
--cc=joakim.tjernlund@transmode.se \
--cc=richardvoigt@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.