All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Problem while using HTB bandwidth limitation
@ 2003-09-01 13:14 Nimit Gupta
  2003-09-01 17:41 ` Stef Coene
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Nimit Gupta @ 2003-09-01 13:14 UTC (permalink / raw)
  To: lartc

Hello everyone,

I am using htb to shape bandwidth but I can see heavy ups and downs from 
the specified limit. I have seen users with 24Kbit limitation can reach 
upto 36Kbit.

Can there be any problem if I set 10 classes each restricted to 24kbit 
under a class which has been restricted to 128Kbit.

My point is what happens if total of child classes, is more than the 
parent class itself. Does it distribute fairly ie equally to all 10 
classes or will there be a problem.

I want it to be this way because I know not all 10 people use it 
simultaneously there can be 7 people at max who will be browsing at same 
time.

Here are some rules:

#Creating root qdisc
tc qdisc add dev eth0 root handle 1: htb default 4000

tc c a dev eth0 parent 1: classid 1:1 htb rate 192Kbit burst 15Kbit

#Rules for default class
tc c a dev eth0 parent 1:1 classid 1:4000 htb rate 16Kbit burst 10Kbit
tc q a dev eth0 parent 1:4000 handle 4000: sfq perturb 10

# Rules for each of the 10 machines
tc c a dev eth0 parent 1:1 classid 1:$C_ID htb rate 24Kbit burst 10Kbit 

tc q a dev eth0 parent 1:$C_ID handle $C_ID: sfq perturb 10
tc f a dev eth0 protocol ip parent 1: prio 5 u32 match ip dst $IP 
classid 1:$C_ID


With regards,
Nimit

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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

end of thread, other threads:[~2003-09-08 16:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-01 13:14 [LARTC] Problem while using HTB bandwidth limitation Nimit Gupta
2003-09-01 17:41 ` Stef Coene
2003-09-02  4:46 ` Martin A. Brown
2003-09-02  4:47 ` Nimit Gupta
2003-09-02  5:51 ` Nimit Gupta
2003-09-02 16:52 ` Stef Coene
2003-09-03  4:56 ` Nimit Gupta
2003-09-08 16:48 ` Stef Coene

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.