From: Andrew Beverley <andy@andybev.com>
To: wilson@optimumwireless.com
Cc: netfilter@vger.kernel.org
Subject: Re: How can I test my tc script?
Date: Sun, 06 Feb 2011 17:11:06 +0000 [thread overview]
Message-ID: <1297012266.1613.59.camel@andybev> (raw)
In-Reply-To: <1297009712.3928.5.camel@debian-laptop.OptimumWireless>
On Sun, 2011-02-06 at 12:28 -0400, Optimum Wireless Services wrote:
> On Sun, 2011-02-06 at 15:54 +0000, Andrew Beverley wrote:
> > > Just wondering, I have a total of 15Mbps for our total bandwidth. If I
> > > devide that into 512kbps then I can only have about 29 users at that
> > > rate.
> >
> > You could use HTB's "ceil" parameter for each leaf class to specify the
> > max rate per user - that value can be anything up to and including the
> > maximum rate of the root qdisc. It's the total of all the "rate"
> > parameters of the leaf classes that should add up to the root's total.
> >
>
> If I have users on different packages then how would I accomplish that?
>
Something like:
tc qdisc add dev ... root handle 1: htb
tc class add dev ... parent 1: classid 1:1 htb rate 2000kbit
...
tc class add dev .... htb rate 200kbit ceil 2000kbit prio 1
tc class add dev .... htb rate 200kbit ceil 2000kbit prio 1
tc class add dev .... htb rate 200kbit ceil 1000kbit prio 2
tc class add dev .... htb rate 200kbit ceil 1000kbit prio 2
tc class add dev .... htb rate 200kbit ceil 500kbit prio 3
tc class add dev .... htb rate 200kbit ceil 500kbit prio 3
tc class add dev .... htb rate 200kbit ceil 500kbit prio 3
tc class add dev .... htb rate 200kbit ceil 500kbit prio 3
tc class add dev .... htb rate 200kbit ceil 500kbit prio 3
tc class add dev .... htb rate 200kbit ceil 500kbit prio 3
Note that all the rates add up to the root, but that each leaf class has
the ceil set at the top limit.
> > > Don't know if I'm doing the math correctly but, how many users
> > > should a 15Mbps line should serve without problems?
> >
> > Well obviously it depends on what your users are doing, but I think
> > 15Mbps should be fine for 2-300 users. I have a 4Mbps ADSL line shared
> > between 150 users. It's not the fastest, but it works for general use,
> > because bulk traffic gets classified at a lower priority than web
> > browsing.
> >
>
> I don't think we have a problem if all users use their connection for
> general use. But, I can't tell users what to do and not do, if you know
> what I mean. As mentioned earlier, I have user downloading p2p all day
> long, there are others using voip, there are others that use it for
> gaming, others chatting, etc... So, I thought if I limit users'
> bandwidth to a certain amount that I could just have them use whatever
> they're assigned and they can do whatever they want with that amount of
> bandwidth.
Try it, but you may find that your total aggregate bandwidth is not
enough to do it this way.
Andy
next prev parent reply other threads:[~2011-02-06 17:11 UTC|newest]
Thread overview: 52+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-03 2:17 How can I test my tc script? Optimum Wireless Services
2011-02-03 11:01 ` Marek Kierdelewicz
2011-02-03 14:13 ` Optimum Wireless Services
2011-02-03 15:06 ` Marek Kierdelewicz
2011-02-03 16:18 ` Optimum Wireless Services
2011-02-04 13:45 ` Optimum Wireless Services
2011-02-04 16:49 ` Optimum Wireless Services
2011-02-04 19:57 ` Optimum Wireless Services
2011-02-05 12:29 ` Andrew Beverley
2011-02-05 19:32 ` Marek Kierdelewicz
2011-02-05 19:29 ` Marek Kierdelewicz
2011-02-05 20:21 ` Marek Kierdelewicz
2011-02-06 0:05 ` Marek Kierdelewicz
2011-02-06 2:24 ` Optimum Wireless Services
2011-02-04 14:22 ` Michele Petrazzo - Unipex
2011-02-05 2:08 ` Andrew Beverley
2011-02-05 14:58 ` Marek Kierdelewicz
2011-02-05 16:37 ` Andrew Beverley
2011-02-05 16:48 ` good tutorial J Webster
2011-02-05 19:22 ` Andrew Beverley
2011-02-05 19:33 ` J Webster
2011-02-05 19:51 ` Bob Miller
2011-02-05 22:47 ` Andrew Beverley
2011-02-05 22:44 ` Andrew Beverley
2011-02-05 17:04 ` How can I test my tc script? Marek Kierdelewicz
2011-02-06 2:12 ` Optimum Wireless Services
2011-02-06 16:13 ` Andrew Beverley
2011-02-07 8:20 ` Michele Petrazzo - Unipex
2011-02-03 19:38 ` Andrew Beverley
2011-02-05 2:44 ` Optimum Wireless Services
2011-02-05 6:07 ` Optimum Wireless Services
2011-02-05 12:27 ` Andrew Beverley
2011-02-06 2:14 ` Optimum Wireless Services
2011-02-06 16:15 ` Andrew Beverley
2011-02-06 16:35 ` Optimum Wireless Services
2011-02-06 17:02 ` Andrew Beverley
2011-02-06 23:27 ` Optimum Wireless Services
2011-02-08 0:56 ` Andrew Beverley
2011-02-08 2:11 ` Optimum Wireless Services
2011-02-08 6:52 ` Andrew Beverley
2011-02-08 2:20 ` Optimum Wireless Services
2011-02-08 6:53 ` Andrew Beverley
2011-02-06 16:44 ` Marek Kierdelewicz
2011-02-06 23:31 ` Optimum Wireless Services
2011-02-08 0:58 ` Andrew Beverley
2011-02-05 12:35 ` Andrew Beverley
2011-02-06 2:17 ` Optimum Wireless Services
2011-02-06 15:54 ` Andrew Beverley
2011-02-06 16:28 ` Optimum Wireless Services
2011-02-06 17:11 ` Andrew Beverley [this message]
2011-02-06 23:33 ` Optimum Wireless Services
2011-02-08 1:01 ` Andrew Beverley
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=1297012266.1613.59.camel@andybev \
--to=andy@andybev.com \
--cc=netfilter@vger.kernel.org \
--cc=wilson@optimumwireless.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox