On Sun, 2011-02-06 at 17:11 +0000, Andrew Beverley wrote: > 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. How would the filtering be done here? Filter by type of service and attach to one of the leafs? > > > > > 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 > > > -- > To unsubscribe from this list: send the line "unsubscribe netfilter" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe netfilter" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html