Shaping
Hi all
I am trying to shape the e-mail going out on my network. When i send some outgoing mail it just eats up all bandwidth available. I would appreciate some help. I have a 128kbit link to my provider.
tc qdisc add dev eth0 root handle 10: cbq bandwidth 10mbit avpkt 1000 tc class add dev eth0 parent 10:0 classid 10:2 cbq bandwidth 10mbit rate 128kbit allot 1514 maxburst 20 avpkt 1000 isolated bounded prio 3 tc qdisc add dev eth0 parent 10:2 handle 20: cbq bandwidth 128kbit allot 1514 avpkt 1000
tc class add dev eth0 parent 20: classid 20:10 cbq bandwidth 128kbit rate 16kbit weight 4 allot 1514 maxburst 20 avpkt 1000
tc class add dev eth0 parent 20: classid 20:20 cbq bandwidth 128kbit rate 112kbit weight 12 allot 1514 maxburst 20 avpkt 1000
tc filter add dev eth0 parent 10: protocol ip prio 3 u32 match ip src 0.0.0.0/32 flowid 10:2
tc filter add dev eth0 parent 20: protocol ip prio 3 u32 match ip dport 25 0xffff flowid 20:10
tc filter add dev eth0 parent 20: protocol ip prio 3 u32 match ip src 0.0.0.0/32 flowid 20:20
Any help would be appreciated.
Thanks
Isak
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 17 lines · Isak Badenhorst
Hi all
I am trying to shape the e-mail going out on my network. When i send some outgoing mail it just eats up all bandwidth available. I would appreciate some help. I have a 128kbit link to my provider.
tc qdisc add dev eth0 root handle 10: cbq bandwidth 10mbit avpkt 1000 tc class add dev eth0 parent 10:0 classid 10:2 cbq bandwidth 10mbit rate 128kbit allot 1514 maxburst 20 avpkt 1000 isolated bounded prio 3 tc qdisc add dev eth0 parent 10:2 handle 20: cbq bandwidth 128kbit allot 1514 avpkt 1000
tc class add dev eth0 parent 20: classid 20:10 cbq bandwidth 128kbit rate 16kbit weight 4 allot 1514 maxburst 20 avpkt 1000
tc class add dev eth0 parent 20: classid 20:20 cbq bandwidth 128kbit rate 112kbit weight 12 allot 1514 maxburst 20 avpkt 1000
Quoted 8 lines
tc filter add dev eth0 parent 10: protocol ip prio 3 u32 match ip src 0.0.0.0/32 flowid 10:2
tc filter add dev eth0 parent 20: protocol ip prio 3 u32 match ip dport 250xffffflowid 20:10
tc filter add dev eth0 parent 20: protocol ip prio 3 u32 match ip src 0.0.0.0/32 flowid 20:20Any help would be appreciated.
I suppose the setup is not working ? :)
Change 128kbit in 120kbit. Rule 1 for shaping : "Make sure YOU are the bottleneck".
Stef
Quoted 8 lines
Thanks
Isak
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Signature · 7 lines
[email protected] "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.openprojects.net _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
[LARTC] shaping
In reply to Isak BadenhorstHi!
Is there any way to do just plain vanilla TBF (Token Buck Filter) type shaping on a group of ips/networks, not an entire interface.
Currently the only way I know how to shape in Linux is to use HTB or CBQ, but both of these need a total rate and then you need to subdivide that into classes. That is not what I want. All I want is Cisco generic traffic shaping style shaping (or similar to how the old shaper module worked), iow I don't want to specify how much bandwidth I have, I just want to make sure that any particular group never exceeds a given rate.
Signature · 16 lines
Regards
Abraham
TODAY the Pond!
TOMORROW the World!
-- Frogs (1972)
___________________________________________________
Abraham vd Merwe - Frogfoot Networks CC
1st Floor, Albion Springs, 183 Main Road, Newlands
Phone: +27 21 689 3873 Cell: +27 82 565 4451
Http: http://www.frogfoot.net/ Email: [email protected]
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/RE: [LARTC] shaping
In reply to Isak BadenhorstNot the answer you're looking for, but why not just specify your total bandwidth being much larger than your interface actually is and then subdividing into your groups?
Mike.
Quoted 6 lines
-----Original Message-----
From: Abraham van der Merwe [mailto:[email protected]]
Sent: Monday, May 31, 2004 8:58 AM
To: Linux Advanced Routing & Traffic Control
Subject: [LARTC] shaping
Quoted 6 lines
Hi!
Is there any way to do just plain vanilla TBF (Token Buck Filter) type shaping on a group of ips/networks, not an entire interface.
Currently the only way I know how to shape in Linux is to use HTB or
CBQ,
Quoted 1 line
but both of these need a total rate and then you need to subdivide
that
Quoted 1 line
into classes. That is not what I want. All I want is Cisco generic
traffic
Quoted 1 line
shaping style shaping (or similar to how the old shaper module
worked),
Quoted 20 lines
iow
I don't want to specify how much bandwidth I have, I just want to make sure
that any particular group never exceeds a given rate.--
Regards
AbrahamTODAY the Pond!
TOMORROW the World!-- Frogs (1972)___________________________________________________
Abraham vd Merwe - Frogfoot Networks CC
1st Floor, Albion Springs, 183 Main Road, Newlands
Phone: +27 21 689 3873 Cell: +27 82 565 4451
Http: http://www.frogfoot.net/ Email: [email protected]
Quoted 3 lines
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Re: [LARTC] shaping
In reply to Isak BadenhorstHi Mike >@2004.05.31_15:17:21_+0200
I have thought of that, but that is not ideal for a couple of reasons, the two most important being:
(a) You can't add 1 leaf node at a time with HTB or CBQ which makes it rather messy to add large numbers of rules.
(b) I'm not sure what HTB will do if you lie about the total rate. We have tried this on various occassions and in all cases HTB just didn't work if you did this - not even the guaranteed rates worked properly.
Quoted 34 lines
Not the answer you're looking for, but why not just specify your total bandwidth being much larger than your interface actually is and then subdividing into your groups?
Mike.
Quoted 6 lines
-----Original Message-----
From: Abraham van der Merwe [mailto:[email protected]]
Sent: Monday, May 31, 2004 8:58 AM
To: Linux Advanced Routing & Traffic Control
Subject: [LARTC] shapingQuoted 6 lines
Hi!
Is there any way to do just plain vanilla TBF (Token Buck Filter) type shaping on a group of ips/networks, not an entire interface.
Currently the only way I know how to shape in Linux is to use HTB or
CBQ,
Quoted 1 line
but both of these need a total rate and then you need to subdivide
that
Quoted 1 line
into classes. That is not what I want. All I want is Cisco generic
traffic
Quoted 1 line
shaping style shaping (or similar to how the old shaper module
worked),
Quoted 4 lines
iow
I don't want to specify how much bandwidth I have, I just want to make sure
that any particular group never exceeds a given rate._______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Signature · 16 lines
Regards
Abraham
TODAY the Pond!
TOMORROW the World!
-- Frogs (1972)
___________________________________________________
Abraham vd Merwe - Frogfoot Networks CC
1st Floor, Albion Springs, 183 Main Road, Newlands
Phone: +27 21 689 3873 Cell: +27 82 565 4451
Http: http://www.frogfoot.net/ Email: [email protected]
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/