Skip to contentSkip to conversation

tc philosophy, will this work?

LARTC Jakub Głazik 2 participants 2 messages Oct 25, 2004 – Oct 26, 2004

lore
Share & tools
lore
#0 lore raw

Correct me if I'm wrong, I just want to help my friend who needs a tc solution with fairness to hosts on a 512K/s DSL line, but few of them should be restricted to 64K/s

I thought about htb + esfq (sfq with ip based fairness, not connection)

parent class with CEILP0Kbit (no RULE? see *1) and attached esfq to this parent class, now
child class with CEILdKbit and RULE.0.0.1
child class with CEILdKbit and RULE.0.0.2
child class with CEILdKbit and RULE.0.0.N
child class with CEILP0Kbit and RULE.0.0.0/24

is this correct? or:

*1 maybe here I will need RULE.0.0.0/24 ?
so the traffic would be directed to the parent and then 64Kbit for each shaped host, and rest (with fairness) to other hosts in the subnet? or the traffic would be shaped to 500Kbit and will never run thru child classes?

I would be thankful for any answer that would allow me to understand tc philosophy better ;)

Signature · 6 lines
.: Jakub G³azik (zytek)
.: email: [email protected]
.: JID: [email protected]
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#1 lore raw
Quoted 8 lines · Jakub G³azik

Correct me if I'm wrong, I just want to help my friend who needs a tc solution with fairness to hosts on a 512K/s DSL line, but few of them should be restricted to 64K/s

I thought about htb + esfq (sfq with ip based fairness, not connection)

parent class with CEILP0Kbit (no RULE? see *1) and attached esfq to this parent class, now

Attaching esfq is useless, it will removed as soon as you add a child class.

Quoted 11 lines

child class with CEILdKbit and RULE.0.0.1
child class with CEILdKbit and RULE.0.0.2
child class with CEILdKbit and RULE.0.0.N
child class with CEILP0Kbit and RULE.0.0.0/24

is this correct? or:

*1 maybe here I will need RULE.0.0.0/24 ?
so the traffic would be directed to the parent and then 64Kbit for each shaped host, and rest (with fairness) to other hosts in the subnet? or the traffic would be shaped to 500Kbit and will never run thru child classes?

You can use 1 filter to put all traffic in the child class.

Quoted 2 lines

I would be thankful for any answer that would allow me to understand tc philosophy better ;)

Try the faq pages on www.docum.org:
http://www.docum.org/docum.org/faq/cache/10.html

Stef

Signature · 6 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/