SoftPerfect Bandwidth Manager

Quotas and penalties

Started by thetechfirm

Quotas and penalties   06 June 2018, 08:04

I set up a quota/penalty rule for this situation: if a client downloads/uploads more than 2 GB in 1 hour, their bandwidth will be restricted to 3 Mb/s for an hour.

After reviewing the logs, it looks like they are being knocked down to 3 Mb/s, but then they are bumped back up within an hour.

1,"Rate limit changed for 2 GB then 3 MB [10.16.24.100] from Unlimited to 3 Mb/s","2018-05-25 22:46:21",2
2,"Rate limit changed for 2 GB then 3 MB [10.16.24.100] from 3 Mb/s to Unlimited","2018-05-25 23:00:25",2
3,"Rate limit changed for 2 GB then 3 MB [10.16.25.33] from Unlimited to 3 Mb/s","2018-05-26 13:58:08",2
4,"Rate limit changed for 2 GB then 3 MB [10.16.25.33] from 3 Mb/s to Unlimited","2018-05-26 14:00:09",2
5,"Rate limit changed for 2 GB then 3 MB [10.16.24.38] from Unlimited to 3 Mb/s","2018-05-26 16:57:02",2
6,"Rate limit changed for 2 GB then 3 MB [10.16.24.38] from 3 Mb/s to Unlimited","2018-05-26 17:00:03",2
7,"Rate limit changed for 2 GB then 3 MB [10.16.25.33] from Unlimited to 3 Mb/s","2018-05-26 17:59:51",2
8,"Rate limit changed for 2 GB then 3 MB [10.16.25.33] from 3 Mb/s to Unlimited","2018-05-26 18:00:21",2
9,"Rate limit changed for 2 GB then 3 MB [10.16.24.29] from Unlimited to 3 Mb/s","2018-05-27 11:52:35",2
10,"Rate limit changed for 2 GB then 3 MB [10.16.24.29] from 3 Mb/s to Unlimited","2018-05-27 12:00:08",2
11,"Rate limit changed for 2 GB then 3 MB [10.16.24.29] from Unlimited to 3 Mb/s","2018-05-27 12:41:20",2
12,"Rate limit changed for 2 GB then 3 MB [10.16.24.194] from Unlimited to 3 Mb/s","2018-05-27 12:41:51",2
13,"Rate limit changed for 2 GB then 3 MB [10.16.24.29] from 3 Mb/s to Unlimited","2018-05-27 13:00:27",2
14,"Rate limit changed for 2 GB then 3 MB [10.16.24.194] from 3 Mb/s to Unlimited","2018-05-27 13:00:27",2
15,"Rate limit changed for 2 GB then 3 MB [10.16.25.33] from Unlimited to 3 Mb/s","2018-05-27 14:56:32",2
16,"Rate limit changed for 2 GB then 3 MB [10.16.25.33] from 3 Mb/s to Unlimited","2018-05-27 15:00:03",2
17,"Rate limit changed for 2 GB then 3 MB [10.16.24.100] from Unlimited to 3 Mb/s","2018-05-27 20:59:23",2
18,"Rate limit changed for 2 GB then 3 MB [10.16.24.100] from 3 Mb/s to Unlimited","2018-05-27 21:00:23",2
19,"Rate limit changed for 2 GB then 3 MB [10.16.24.38] from Unlimited to 3 Mb/s","2018-05-28 18:54:42",2

Let me know what else you may need to help me figure it out.

Thanks in advance
SoftPerfect Support forum - Andrew avatar image

Re: Quotas and penalties   06 June 2018, 11:50

That's just how it works. For example here in your log:

1,"Rate limit changed for 2 GB then 3 MB [10.16.24.100] from Unlimited to 3 Mb/s","2018-05-25 22:46:21",2
2,"Rate limit changed for 2 GB then 3 MB [10.16.24.100] from 3 Mb/s to Unlimited","2018-05-25 23:00:25",2

The IP address 10.16.24.100 has used more than 2 GB at 22:46 and had its speed reduced to 3 Mb/s for the remainder of the hour. At 23:00 a new hour started and thus its speed was restored. Effectively it means no more than 2 GB can be used in each hour.

Considering your requirements, you may achieve a better outcome by allowing them to use 2 GB in 2 hours, in which case it will be rolling. If an IP address has used 2 GB in the first hour, then its speed will be reduced until one hour later.

Re: Quotas and penalties   08 June 2018, 21:40

thanks for the explanation. i figured i didnt quite understand it.

Re: Quotas and penalties   09 June 2018, 08:58

having a bit of an issue finding how to change the interval to 2 hours. i was looking in the Add/edit Qouta -> General -> Quota Condition and the only options is 1 hour, day, etc.. not 2 hours
SoftPerfect Support forum - Andrew avatar image

Re: Quotas and penalties   09 June 2018, 10:19

This can be changed at the Advanced tab when editing a quota as shown below:

SoftPerfect support forum

Re: Quotas and penalties   10 June 2018, 23:24

Thanks, don't know how I missed that.

Re: Quotas and penalties   12 June 2018, 08:21

made the change, and it didnt seem to work.
143,"Rate limit changed for 2 GB then 3 MB [10.16.25.3] from Unlimited to 3 Mb/s","2018-06-11 07:43:36",2
144,"Rate limit changed for 2 GB then 3 MB [10.16.25.3] from 3 Mb/s to Unlimited","2018-06-11 08:00:13",2

does the box need a reboot?
SoftPerfect Support forum - Andrew avatar image

Re: Quotas and penalties   12 June 2018, 12:49

How long has it been in the Unlimited state before 07:43? Say, if the user has used 2 GB starting at 6:00, it sounds about right as the quota is rolling and 2 GB were used in 1 hour and 43 minutes. Then at 8:00 it's a new hour, so a new quota allowance start to be used.

There is no way to make it work exactly as you describe, i.e. one hour of usage followed by one hour of reduced speed, I'm afraid. This is just how the software is implemented: it allows you to set a limited of X MB in Y hours, granular to an hour.

Reply to this topic

Sometimes you can find a solution faster if you try the forum search, have a look at the knowledge base, or check the software user manual to see if your question has already been answered.

Our forum rules are simple:

  • Be polite.
  • Do not spam.
  • Write in English. If possible, check your spelling and grammar.

Author:

Email:

Subject

A brief and informative title for your message, approximately 4–8 words:

     

Spam prevention: please enter the following code in the input field below.

       **  **     **  ********  **     **  ******** 
       **  **     **  **        ***   ***  **       
       **  **     **  **        **** ****  **       
       **  *********  ******    ** *** **  ******   
 **    **  **     **  **        **     **  **       
 **    **  **     **  **        **     **  **       
  ******   **     **  ********  **     **  **       

Message: