Quota rule penalty resets before one hour

8 posts · Closed

thetechfirm
5 Jun 2018

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

Andrew SoftPerfect
6 Jun 2018

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.

thetechfirm
8 Jun 2018

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

thetechfirm
8 Jun 2018

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

Andrew SoftPerfect
9 Jun 2018

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

thetechfirm
10 Jun 2018

Thanks, don't know how I missed that.

thetechfirm
11 Jun 2018

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?

Andrew SoftPerfect
12 Jun 2018

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.

This topic is closed. It has had no new posts for over a year, so the software versions it talks about may be out of date. Start a new topic in Bandwidth Manager if you have a similar question.