Community discussions

MikroTik App
 
hel
Member Candidate
Member Candidate
Topic Author
Posts: 199
Joined: Sun Jun 12, 2011 6:31 am
Location: Kirov, Russia

how to limit total (in+out) user speed to 256kb/s using pcq?

Fri Sep 30, 2011 2:18 pm

I want to give user a 256 kbit/sec speed, but 256 must be a total of download and upload speed. Is it possible?
 
hel
Member Candidate
Member Candidate
Topic Author
Posts: 199
Joined: Sun Jun 12, 2011 6:31 am
Location: Kirov, Russia

Re: how to limit total (in+out) user speed to 256kb/s using

Fri Sep 30, 2011 4:31 pm

up :(
 
hel
Member Candidate
Member Candidate
Topic Author
Posts: 199
Joined: Sun Jun 12, 2011 6:31 am
Location: Kirov, Russia

Re: how to limit total (in+out) user speed to 256kb/s using

Fri Sep 30, 2011 7:59 pm

Are nobody tried to implement this or what?
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: how to limit total (in+out) user speed to 256kb/s using

Tue Oct 04, 2011 11:45 pm

it's not possible due to nature of PCQ: you cannot dynamically change PCQ classifier per packet (in/out), you can only set it statically for the whole queue
 
CCDKP
Member Candidate
Member Candidate
Posts: 170
Joined: Fri Jan 28, 2011 11:24 pm
Location: Midwest, United States

Re: how to limit total (in+out) user speed to 256kb/s using

Wed Oct 05, 2011 4:29 pm

The easiest method (easy being relative) I can think of is making a simple queue for each user. Simple Queues let you specify total bandwidth as an option.
 
hel
Member Candidate
Member Candidate
Topic Author
Posts: 199
Joined: Sun Jun 12, 2011 6:31 am
Location: Kirov, Russia

Re: how to limit total (in+out) user speed to 256kb/s using

Wed Oct 05, 2011 6:17 pm

I moved from simple queues, and don't want to go back. I thought it's possible with queue tree too.
This is bad.. I haven't so much speed that I may divide between my users...

This feature (combined in+out limitation) would be nice in future ROS versions.

Thanks anyway.
 
CCDKP
Member Candidate
Member Candidate
Posts: 170
Joined: Fri Jan 28, 2011 11:24 pm
Location: Midwest, United States

Re: how to limit total (in+out) user speed to 256kb/s using

Thu Oct 06, 2011 4:21 pm

I moved from simple queues, and don't want to go back. I thought it's possible with queue tree too.
This is bad.. I haven't so much speed that I may divide between my users...

This feature (combined in+out limitation) would be nice in future ROS versions.

Thanks anyway.
Thinking about the question a little more I realized you could do it without simple queues, but again not with PCQ. If you make a regular queue in the tree for each user, apply the tree to Global-out, then you can just put both upload and download packets into the same queue. I forgot I have accidentally done this a time or two by mis-marking packets during a queue tree setup. This would still require a single queue for each user, though.
 
hel
Member Candidate
Member Candidate
Topic Author
Posts: 199
Joined: Sun Jun 12, 2011 6:31 am
Location: Kirov, Russia

Re: how to limit total (in+out) user speed to 256kb/s using

Thu Oct 06, 2011 6:26 pm

Thinking about the question a little more I realized you could do it without simple queues, but again not with PCQ. If you make a regular queue in the tree for each user, apply the tree to Global-out, then you can just put both upload and download packets into the same queue. I forgot I have accidentally done this a time or two by mis-marking packets during a queue tree setup. This would still require a single queue for each user, though.
Yeah, I thought about that way. A problem is in correct bandwidth control. default queues can't do equal bandwidth limiting between users.

Who is online

Users browsing this forum: benw, Bing [Bot], DanMos79 and 76 guests