All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bridge] bridge problem when one interface is in blocking mode
@ 2007-08-22 22:36 wang dengyi
  2007-08-23 17:08 ` Stephen Hemminger
  0 siblings, 1 reply; 14+ messages in thread
From: wang dengyi @ 2007-08-22 22:36 UTC (permalink / raw)
  To: bridge

Hi,

We have a simple bridge setup but the ping (and other
network traffic) does not work reliably. After tracing
the code, it looks like a software bug. Since bridge
software is been running by thousands of people. I
guess I am wrong.  Anyway, here is the problem.

There are 2 boxes and each one has 2 interfaces, 1
ethernet and 1 wifi. STP is enabled for the bridge to
avoid the loop. So the box 1 has wifi in the blocking
mode. When we ping from box 1 to box 2, lots of
packages lost. Ping from box 2 to box 1 does not has
this problem. 

After we tracing the code, we noticed that the box try
to using wifi to send the packages which is in
blocking mode. This happens because the ath0 is
returned from the forwarding database. It's
implemented in __br_fdb_get(br, dest). 

From the etherreal, I noticed, that the STP package is
broadcast from the box 2. From the function
br_handle_frame(), if a stp package is received, it
will update the forwarding database. Since the STP
package is sent/received by both interfaces, the wifi
(blocking) received the package and update the
forwarding database too. So, __br_fdb_get() will
returns the wifi card sometimes. And then, the package
is lost. 

Regards,

Dengyi Wang







       
____________________________________________________________________________________
Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games.
http://sims.yahoo.com/  

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2007-08-31  5:15 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-22 22:36 [Bridge] bridge problem when one interface is in blocking mode wang dengyi
2007-08-23 17:08 ` Stephen Hemminger
2007-08-23 18:17   ` wang dengyi
2007-08-23 18:23     ` Stephen Hemminger
2007-08-29 21:27       ` wang dengyi
2007-08-29 22:05         ` Stephen Hemminger
2007-08-30 15:28           ` wang dengyi
2007-08-30 19:09             ` Srinivas M.A.
2007-08-30 19:22             ` [Bridge] [PATCH] bridge: packets leaking out of disabled/blocked ports Stephen Hemminger
2007-08-30 19:22               ` Stephen Hemminger
2007-08-30 20:03               ` [Bridge] " John W. Linville
2007-08-30 20:03                 ` John W. Linville
2007-08-31  5:15                 ` [Bridge] " David Miller
2007-08-31  5:15                   ` David Miller

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.