Re: Ethernet Bridging Question

From: P Gentry (rdgentry1_at_cablelynx.com)
Date: 04/04/04


Date: 4 Apr 2004 10:27:59 -0700

mab_145@yahoo.com (Mark) wrote in message news:<d6934954.0404030425.7d8d29f6@posting.google.com>...
> What I have:
>
> I have a rather unique setup I am working on. My goal is to
> construct a transparent firewall using an ethernet bridge (Nothing
> unique here). However, in the setup I have, only part of the "normal"
> ethernet traffic flow arrives at my device. The rest is filtered at a
> higer level (in fact bypasses the filter - i.e. not interesting
> traffic). In the setup, I have two Gig-E interfaces on the transparent
> filter. They are connected to two known Gig-E interfaces. So the
> bridge really has nothing it needs to learn I know which device is
> connected to which interface.
>
> Question:
>
> Can I "stuff" the ethernet bridge tables to prevent the learning.
> Then set the timeout to some really long time to make the startup time
> reliable and quick?
>
> Thanks in advance.
> ----
> Mark

Since no one else has replied, I'll give you my 2 c's.

The "learning" is automatic and, afaik, cannot be avoided in Linux.
You would not gain much, if anything, because what is learned is just
the map of MACs -> ports which is derived from the sending of frames
to the switch. The switch does not generate any query or lookup
traffic on its own.

If you need to run STP, you couldn't "stuff" the tables anyway --
traffic filtering/forwarding to avoid loops on redundant links, etc.
require learning. STP has about the slowest convergence of any
"routing" protocol out there -- that is the main source of the slow
times in bringing up links or failing over to redundant links. But it
is "transparent" for whatever that may buy you.

Your biggest concern is going to be the interrupt processing required
by the GigaE flow rate, regardless of how you have your Linux box set
up. I suspect you might actually get higher throughput with the
proper setup of a forwarding host/router than a bridge in Linux due to
the extensive tweaking available (and needed at GigaE speeds). And
for the IP traffic that will be generated (and the arps) a bridge is
no use in and of itself -- it forwards all broadcasts to all ports.

I've never been that taken with the idea of running a Linux bridge --
I see it more as a crutch for implementing features "more easily" that
can also be implemented via policy routing. The _need_ to interface
with switches/VLANs changes the equation, but switch prices being what
they are today I still question the wisdom of a Linux bridge -- those
ethernet cards in promiscuous mode give me the willies.

There is nothing "magical" about switch _speeds_ -- they derive from
the simplistic forwarding algorithm, which in turn can be wired into
an ASIC, ie., the processing takes place _at_the_port_. You don't get
that with a Linux switch and the few "tests" we did in the high school
lab showed no significant speed advantage with 10Mbps or 100Mbps cards
compared to full duplex operation through a forwarding host. 1000Mbps
-- who knows, but I have my doubts (and you may end up with many
signaling problems).

hth,
prg
email above disabled



Relevant Pages

  • Re: How does netfilter work with ethernet bridge?
    ... > only be processed in the link layer without going through IP ... > to relay link layer packet between two ethernet cards on the ... kernel modules implements linux support to this specification. ... A bridge, "as is", does not deal with IP layer. ...
    (comp.os.linux.development.system)
  • Re: ADSL PPPoA using a bridged ADSL router?
    ... > to connect the linux box to the PPPoA ADSL line. ... > the linux box to receive and send packets from a router working in ... Traffic from the internet as ethernet if I understand your question ... two addresses the bridge uses one, ...
    (uk.comp.os.linux)
  • Re: Help getting online with DSL
    ... connect directly to the PC via either Ethernet or USB. ... It is not a router in that I can only connect one PC to it, then it connects to my phone line. ... It just lacks a switch. ... Then try it under Linux again. ...
    (alt.os.linux.suse)
  • Re: Wish to network my home computers but dont know Jack about it
    ... every computer need an ethernet network interface card and a cat5 network ... and then plug them into the switch. ... To get printing requires samba on the linux servers. ...
    (Debian-User)
  • cant get out of infinite while loop
    ... To get into the infinite loop, I write to a file the "on" status ... writing switch on ... ready to sleep for 10 seconds ... or die "Problem passing files to the bridge directory...$!"; ...
    (comp.lang.perl.misc)