* [LARTC] Commited b/w question
@ 2003-03-21 8:55 hare ram
2003-03-21 10:26 ` Abraham van der Merwe
0 siblings, 1 reply; 2+ messages in thread
From: hare ram @ 2003-03-21 8:55 UTC (permalink / raw)
To: lartc
Hi
i been working tc and htb, its good and iam able to achieve some of the
things what i required for me in my office
i have question here like this
i have total bandwidth 256kbps
we have a department finace and admin
i want to give a b/w of 64 both, either up or down to finance
and admin 128kbps up or down..
when i setup a config of my own, they able to get 128up and 128down also
same.
so fiannce dept is consuming all the b/w, so i will be problem with my admin
how do i control aggregate b/w of 128kbps either up or down
any sample config provided will be great
advance thanks for helping
hare
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [LARTC] Commited b/w question
2003-03-21 8:55 [LARTC] Commited b/w question hare ram
@ 2003-03-21 10:26 ` Abraham van der Merwe
0 siblings, 0 replies; 2+ messages in thread
From: Abraham van der Merwe @ 2003-03-21 10:26 UTC (permalink / raw)
To: lartc
[-- Attachment #1: Type: text/plain, Size: 2184 bytes --]
Hi hare!
tc qdisc add dev eth0 root handle 1: htb default 2 r2q 10
tc class add dev eth0 parent 1: classid 1:1 htb rate 256kbps
tc class add dev eth0 parent 1:1 classid 1:2 htb rate 64kbps ceil 64kbps
tc qdisc add dev eth0 handle 2: parent 1:2 sfq perturb 10 limit 178
tc class add dev eth0 parent 1:1 classid 1:3 htb rate 128kbps ceil 128kbps
tc qdisc add dev eth0 handle 3: parent 1:3 sfq perturb 10 limit 357
Of course, you have to add a filter for the admin class (1:3) and above
assumes that you're using eth0 for egress. You probably want to do this in
both directions.
The sfq's above will limit the latency to 4secs (although with sfq this is
effectively much lower) - you might want to make it lower/higher.
Also note that with the setup above you're obviously not using all your
bandwidth (64+128<256). You might want to change the setup so that finance
and admin can both use up to 256kbps, but are guaranteed 64kbps and 128kbps
respectively.
> i been working tc and htb, its good and iam able to achieve some of the
> things what i required for me in my office
>
> i have question here like this
>
> i have total bandwidth 256kbps
> we have a department finace and admin
>
> i want to give a b/w of 64 both, either up or down to finance
> and admin 128kbps up or down..
>
> when i setup a config of my own, they able to get 128up and 128down also
> same.
> so fiannce dept is consuming all the b/w, so i will be problem with my admin
>
> how do i control aggregate b/w of 128kbps either up or down
>
> any sample config provided will be great
>
> advance thanks for helping
> hare
>
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
--
Regards
Abraham
If life is merely a joke, the question still remains: for whose amusement?
___________________________________________________
Abraham vd Merwe - Frogfoot Networks CC
9 Kinnaird Court, 33 Main Street, Newlands, 7700
Phone: +27 21 686 1674 Cell: +27 82 565 4451
Http: http://www.frogfoot.net/ Email: abz@frogfoot.net
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-03-21 10:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-21 8:55 [LARTC] Commited b/w question hare ram
2003-03-21 10:26 ` Abraham van der Merwe
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.