Community discussions

MikroTik App
 
hajde
newbie
Topic Author
Posts: 26
Joined: Sat Apr 26, 2008 12:55 am
Contact:

QueueTree in %

Sun Jun 06, 2010 8:10 pm

Before min or two i have finish with l7 qos. On the tree I belive is bether to have limit at. and max limit in % insted in kbps. For exapmle write now I have 50mbps/50mbps but in future I will have more. than I must change all speeds on every QueueTree.
 
Muqatil
Trainer
Trainer
Posts: 574
Joined: Mon Mar 03, 2008 1:03 pm
Location: London - UK
Contact:

Re: QueueTree in %

Mon Jun 07, 2010 12:28 am

You can make a script to set your limits as %
You can adapt my script to your needs..
{
#Those Variables are the % of the total limit
:local TOTAL 50000000;
:local P2P 40;
:local MAIL 24;
:local GAMES 15;
:local VOIP 30;
:local WWW 70;
# Sets Limits To the Queues

	/queue tree set "Download Total" max-limit=($TOTAL ); 
	/queue tree set "P2P d" max-limit=($TOTAL * $P2P / 100);
	/queue tree set "WWW d" max-limit=($TOTAL * $WWW / 100);
	/queue tree set "Mail d" max-limit=($TOTAL * $MAIL / 100);
	/queue tree set "VoIP d" max-limit=($TOTAL * $VOIP / 100);
	/queue tree set "Games d" max-limit=($TOTAL * $GAMES / 100);
}
Renato Bernardi

skype: medtech5
 
hajde
newbie
Topic Author
Posts: 26
Joined: Sat Apr 26, 2008 12:55 am
Contact:

Re: QueueTree in %

Mon Jun 07, 2010 12:41 am

Thank you very much for a good idea, and also for example.

Who is online

Users browsing this forum: No registered users and 65 guests