[Bridge] RE: [PATCH] (3/4) bridge linkstate handling
hadi at cyberus.ca
Thu Jul 29 12:40:09 PDT 2004
On Thu, 2004-07-29 at 12:36, Eble, Dan wrote:
> His patch ensures that when a port regains carrier, it is Blocked.
> Before the patch, a Forwarding port would remain Forwarding if the other
> end of the cable were unplugged and then plugged into some other place.
Ok, this is sensible. With a user space control you could probably do
more interesting things with that link info.
> I think I see. So then when an event happens that might affect the port
> state, the bridge should temporarily block traffic on the port (in case
> the policy daemon will tell it to start blocking) and wait for the
> daemon to respond with a "start blocking" or "continue forwarding"
> decision. Is that the idea, or have I completely misunderstood?
Everything is still driven by the STP state machine. So no smartness on
the bridge itself; it is just told what to do and it transitions state.
On startup, the port is in blocked state. Only passes BPDUs to user
space. Based on BPDUs and other input (like link info of say unrelated
port) the port state is transitioned. Since all state control is in user
space i.e at one location, no loops should happen. Not sure if it makese
More information about the Bridge