From: Abraham van der Merwe <abz@frogfoot.net>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Commited b/w question
Date: Fri, 21 Mar 2003 10:26:03 +0000 [thread overview]
Message-ID: <marc-lartc-104824252907286@msgid-missing> (raw)
In-Reply-To: <marc-lartc-104823568302061@msgid-missing>
[-- 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 --]
prev parent reply other threads:[~2003-03-21 10:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-21 8:55 [LARTC] Commited b/w question hare ram
2003-03-21 10:26 ` Abraham van der Merwe [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-lartc-104824252907286@msgid-missing \
--to=abz@frogfoot.net \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.