Page 1 of 1

Rate limiting subnet with fixed per user bandwidth

Posted: Tue Oct 02, 2007 1:07 am
by ngaleyev
Hi all,
I'm trying to rate limit my customers to 512k/128k no more or less.
I tried different setups for queues including pcq's for uploads and downloads separately.
If I apply queue to a subnet address, 192.168.0.0/24, it shares bandwidth evenly between all users in that subnet, e.g. if i rate limit subnet to 512kbps, and i got 10 users, i will get ~50kbps per user, but I want to rate limit that subnet to 512kbps and get 512kbps for each user.
I know there is a way to do it by writing individual queues for every user, but i've got around 600 users on that subnet (/22 actually), and even if i create these queues with a script, it may create a excessive cpu load (running mikrotik on 700mhz amd)

My question is: is there a way to create rate limiting rules applied to a subnet, that specify bandwith limit per user individually?
Thanks

Re: Rate limiting subnet with fixed per user bandwidth

Posted: Tue Oct 02, 2007 2:03 am
by Chupaka
revert to queue type = pcq, but do not limit overall queue, set limits only in queue type definition

Re: Rate limiting subnet with fixed per user bandwidth

Posted: Tue Oct 02, 2007 2:22 am
by sariao
PCQ is used exactly to achieve what you want.

Follow the steps:
http://wiki.mikrotik.com/wiki/PCQ_Examples

Re: Rate limiting subnet with fixed per user bandwidth

Posted: Tue Oct 02, 2007 3:30 am
by digicomtech
Could it be a NAT issue ?

Reading manual packet flow:

Global Out-Queue is before Source NAT

is it right ?

local
|
mangle
|
pcq queue
|
NAT
|
public

Re: Rate limiting subnet with fixed per user bandwidth

Posted: Tue Oct 02, 2007 4:57 pm
by fatonk
your question:
My question is: is there a way to create rate limiting rules applied to a subnet, that specify bandwidth limit per user individually?

Has been answered, just check the wiki example for PCQ:
http://wiki.mikrotik.com/wiki/PCQ_Examples

I have used since a long time this queuing technique and have no problem, when you setup this just post your configuration here and someone can check for any mistake.

Regards.

Faton

Re: Rate limiting subnet with fixed per user bandwidth

Posted: Thu Oct 04, 2007 5:00 pm
by Caci99
Pershendetje Faton, mund te me kalosh adresen tende te email?

Re: Rate limiting subnet with fixed per user bandwidth

Posted: Thu Oct 04, 2007 5:23 pm
by fatonk
tung,

adresa ime eshte:

fatonkurteshi@yahoo.com

pershendetje

fatoni

Re: Rate limiting subnet with fixed per user bandwidth

Posted: Sun Oct 07, 2007 11:04 pm
by oscarBravo
Is it possible to apply bursting using this technique?

Re: Rate limiting subnet with fixed per user bandwidth

Posted: Tue Oct 09, 2007 1:14 pm
by oscarBravo
Apologies for bumping this, but it's something I'd really like to figure out.

I've set up PCQ shaping using simple queues, but the capability to burst to a higher speed is important. I'm wondering if I can create a bursting queue type, and use a PCQ queue type as its parent in queue trees? Am I even heading in the right direction with this?

Re: Rate limiting subnet with fixed per user bandwidth

Posted: Wed Oct 10, 2007 9:22 am
by chvdr
Hi all,
I'm trying to rate limit my customers to 512k/128k no more or less.
I tried different setups for queues including pcq's for uploads and downloads separately.
If I apply queue to a subnet address, 192.168.0.0/24, it shares bandwidth evenly between all users in that subnet, e.g. if i rate limit subnet to 512kbps, and i got 10 users, i will get ~50kbps per user, but I want to rate limit that subnet to 512kbps and get 512kbps for each user.
I know there is a way to do it by writing individual queues for every user, but i've got around 600 users on that subnet (/22 actually), and even if i create these queues with a script, it may create a excessive cpu load (running mikrotik on 700mhz amd)

My question is: is there a way to create rate limiting rules applied to a subnet, that specify bandwith limit per user individually?
Thanks


Actually this is not an easy question. You need maybe several days to read all in this forum. It's a tone of posts here. The main problem with bursts is that if somebody reaches the burst, it's difficult and slow to take from it over traffic. Shapers works slow and not absolutely correct. Some peoples uses adv. techniques such as bridge with one queue tree and router with simple queues after that... Read closely all posts you reach in the forum. That will help you to find out some good decision.


Re,
C. G.

Re: Rate limiting subnet with fixed per user bandwidth

Posted: Wed Oct 10, 2007 9:32 am
by chvdr
tung,

adresa ime eshte:

fatonkurteshi@yahoo.com

pershendetje

fatoni

Dear fatonk,
I personally prefer french. But everybody in this forum uses english. Is it possible to repeat your post, in english this time.
apolog., it's in principle, nothing person. in that message.
C. G.

Re: Rate limiting subnet with fixed per user bandwidth

Posted: Wed Oct 10, 2007 12:03 pm
by jorj
/22 queue for each individual address is not that much for a 700 hmz x86.

I have queues for 3 /24 net, each with burst and band limit, on a 500 mhz pII. Doing just fine. cpu 15-30% at all times. ( for about 300 users. Different limits, from 256 to 768k.)