Community discussions

MikroTik App
 
ngaleyev
newbie
Topic Author
Posts: 33
Joined: Sat Sep 29, 2007 4:48 pm

Rate limiting subnet with fixed per user bandwidth

Tue Oct 02, 2007 1:07 am

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
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Rate limiting subnet with fixed per user bandwidth

Tue Oct 02, 2007 2:03 am

revert to queue type = pcq, but do not limit overall queue, set limits only in queue type definition
 
User avatar
sariao
Frequent Visitor
Frequent Visitor
Posts: 92
Joined: Thu Jul 08, 2004 10:55 am
Location: Saudi Arabia

Re: Rate limiting subnet with fixed per user bandwidth

Tue Oct 02, 2007 2:22 am

PCQ is used exactly to achieve what you want.

Follow the steps:
http://wiki.mikrotik.com/wiki/PCQ_Examples
 
digicomtech
Frequent Visitor
Frequent Visitor
Posts: 77
Joined: Fri Apr 20, 2007 5:03 pm
Location: Alma, Qc, Canada
Contact:

Re: Rate limiting subnet with fixed per user bandwidth

Tue Oct 02, 2007 3:30 am

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
 
User avatar
fatonk
Member
Member
Posts: 438
Joined: Tue Feb 22, 2005 11:06 am
Location: Mitrovica/Kosova

Re: Rate limiting subnet with fixed per user bandwidth

Tue Oct 02, 2007 4:57 pm

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
 
User avatar
Caci99
Forum Guru
Forum Guru
Posts: 1075
Joined: Wed Feb 21, 2007 2:26 pm
Location: Tirane
Contact:

Re: Rate limiting subnet with fixed per user bandwidth

Thu Oct 04, 2007 5:00 pm

Pershendetje Faton, mund te me kalosh adresen tende te email?
 
User avatar
fatonk
Member
Member
Posts: 438
Joined: Tue Feb 22, 2005 11:06 am
Location: Mitrovica/Kosova

Re: Rate limiting subnet with fixed per user bandwidth

Thu Oct 04, 2007 5:23 pm

tung,

adresa ime eshte:

fatonkurteshi@yahoo.com

pershendetje

fatoni
 
oscarBravo
newbie
Posts: 34
Joined: Wed Aug 29, 2007 8:31 pm

Re: Rate limiting subnet with fixed per user bandwidth

Sun Oct 07, 2007 11:04 pm

Is it possible to apply bursting using this technique?
 
oscarBravo
newbie
Posts: 34
Joined: Wed Aug 29, 2007 8:31 pm

Re: Rate limiting subnet with fixed per user bandwidth

Tue Oct 09, 2007 1:14 pm

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?
 
User avatar
chvdr
Member
Member
Posts: 403
Joined: Thu Sep 22, 2005 8:53 pm

Re: Rate limiting subnet with fixed per user bandwidth

Wed Oct 10, 2007 9:22 am

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.
 
User avatar
chvdr
Member
Member
Posts: 403
Joined: Thu Sep 22, 2005 8:53 pm

Re: Rate limiting subnet with fixed per user bandwidth

Wed Oct 10, 2007 9:32 am

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.
 
User avatar
jorj
Member
Member
Posts: 397
Joined: Mon Mar 12, 2007 4:34 pm
Location: /dev/null

Re: Rate limiting subnet with fixed per user bandwidth

Wed Oct 10, 2007 12:03 pm

/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.)

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], GoogleOther [Bot] and 129 guests