Bluehost.com Web Hosting $6.95

Bridge & tc

This is a discussion on Bridge & tc within the Linux Networking forums, part of the Linux Forums category; I have to put a bridge for traffic shaping and traffic accounting. There's a way to make tc works ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-01-2005
mike
 
Posts: n/a
Default Bridge & tc

I have to put a bridge for traffic shaping and traffic accounting.
There's a way to make tc works on the bridge? is there a tool like
CBQinit that works on bridges?

Thanks
Mike
Reply With Quote
  #2 (permalink)  
Old 02-01-2005
prg
 
Posts: n/a
Default Re: Bridge & tc


mike wrote:
> I have to put a bridge for traffic shaping and traffic accounting.
> There's a way to make tc works on the bridge? is there a tool like
> CBQinit that works on bridges?
>
> Thanks
> Mike


http://bridge.sourceforge.net/
http://ebtables.sourceforge.net/

2.4 kernels -- need patch
2.6 kernels -- includes ebtables and bridge-nf
..
have fun ;-)
prg
email above disabled

Reply With Quote
  #3 (permalink)  
Old 02-01-2005
mike
 
Posts: n/a
Default Re: Bridge & tc

prg wrote:
> http://bridge.sourceforge.net/
> http://ebtables.sourceforge.net/
>

err.. i know ebtables and bridging stuff, i need to know if iproute2
"TC" works on a bridged connection.
And for mental sanity i was looking for a tool like CBQ.init but for
bridges :)

Mike

Reply With Quote
  #4 (permalink)  
Old 02-01-2005
prg
 
Posts: n/a
Default Re: Bridge & tc


mike wrote:
> prg wrote:
> > http://bridge.sourceforge.net/
> > http://ebtables.sourceforge.net/
> >

> err.. i know ebtables and bridging stuff, i need to know if iproute2
> "TC" works on a bridged connection.


It should, but may not depending on how kernel was compiled and whether
there are changes in netfilter code that effects this area. IIRC, some
of the 2.6 changes do effect how iptables rules should be written.

> And for mental sanity i was looking for a tool like CBQ.init but for
> bridges :)


Can't imagine that it would not, taking into account/making changes
with regard to above. It's just a script.

Try it and see -- no one can assure success ;-)

Personally, I don't like running the Linux stack as a bridge -- just
can't get over the willies of having the nics in promisc mode. Just a
personal foible and not recommended as advice.

Then I have the good fortune of having a few extra Ciscos around at
work to cope in the short run and $ to provide a long term solution.

I think you should be able to get what you need. Easy as flipping a
light switch? Doubt it.
..
good luck,
prg
email above disbled

Reply With Quote
  #5 (permalink)  
Old 02-02-2005
mike
 
Posts: n/a
Default Re: Bridge & tc

prg wrote:
> Personally, I don't like running the Linux stack as a bridge -- just
> can't get over the willies of having the nics in promisc mode. Just a
> personal foible and not recommended as advice.


Why you say that? i've seen many linux bridges running without troubles
for years.

> Then I have the good fortune of having a few extra Ciscos around at
> work to cope in the short run and $ to provide a long term solution.


Heh, i don't have money to afford a Cisco just for my interests.

> I think you should be able to get what you need. Easy as flipping a
> light switch? Doubt it.


Naww, i don't want a plug'n'play thing that does all for me.
I want only examples to make my own script, but before that i wanted to
be sure that tc worked ok on a bridge.

Mike
Reply With Quote
  #6 (permalink)  
Old 02-02-2005
prg
 
Posts: n/a
Default Re: Bridge & tc


mike wrote:
> prg wrote:
> > Personally, I don't like running the Linux stack as a bridge --

just
> > can't get over the willies of having the nics in promisc mode.

Just a
> > personal foible and not recommended as advice.

>
> Why you say that? i've seen many linux bridges running without

troubles
> for years.


As I said, just my personal feeling, not advice to anyone else. A nic
running full time in promiscuous mode is just too juicy a target for
someone sniffing packets.

> > Then I have the good fortune of having a few extra Ciscos around at
> > work to cope in the short run and $ to provide a long term

solution.
>
> Heh, i don't have money to afford a Cisco just for my interests.


My attitude is "easy" to live with since someone else is paying for the
switches;-)

> > I think you should be able to get what you need. Easy as flipping

a
> > light switch? Doubt it.

>
> Naww, i don't want a plug'n'play thing that does all for me.
> I want only examples to make my own script, but before that i wanted

to
> be sure that tc worked ok on a bridge.


It's been some time -- 2.4.14 kernel? -- since I played with the
bridging code, but it worked OK then. So far as I know, it still
works, but scripts and iptables rules may have to be brought up to date
for 2.6+ kernels. Should not be anything difficult or non-obvious.

IIRC, some of the "shaping" queues (IM?) never worked with bridge + tc
and one or two other approaches need a slight modification, I think.
The script should get you far down the road to success -- maybe a tweak
or two.

have fun :)
prg
email above disabled

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 01:33 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0