KB-8872209

Create a data or time usage plan

Define billing-plan limits and reset behavior, then pilot the plan without disconnecting active users.

9 views

Translate the allowance into the form

In RadiusStack, Plans opens Billing Plans & Limits. This form accepts data in MB and connection time in hours, plus an Automatic Reset Period. Zero means unlimited for the corresponding dimension; it does not mean that dimension denies all use. Internally the data comparison uses 1,048,576 bytes per displayed MB, and time is stored in seconds.[2][3] Decide whether the request calls for a data cap, a connection-time cap, or both before creating the object.

Create and check the pilot plan

  1. Select the service tenant where the user or MAC device lives. In Plans, choose Create Plan and set Plan Name to lab-weekly-usage. For a pilot with bounded data usage and no connection-time cap, set Data Limit (MB) to 250 and Time Limit (Hours) to 0.
  2. Set Automatic Reset Period to Weekly (Monday). Leave both depletion disconnect options off for this initial test, then save. This lets you test the authentication threshold separately from session disconnection behavior.[1][3]
  3. Reopen the plan and check the name, limits and reset period. Assign it to exactly one pilot using Billing Plan in the relevant identity editor. Check that the assignment shows on that identity and that a fresh authentication succeeds before depletion when the other policies permit it.

Check the result you actually care about

With this example, elapsed connection time alone should not deplete the allocation. The plan should deplete when recorded data reaches the configured amount. Use controlled traffic and wait for accounting before testing another authentication. If the plan does not appear in the identity's selector, compare tenant context and confirm it was saved. If the observed threshold differs from the intended one, check binary versus decimal data units and whether existing usage is included in the cycle you are checking.[2]

Do not edit an existing shared plan just to run this trial. Create a separate plan and record the pilot's original assignment first. If you decide to enable automatic disconnect later, schedule a separate validation with a NAS that supports it rather than treating it as an automatic result of creating the plan.

References

  1. RadiusStack Wiki: Usage Plans
  2. RadiusStack Plans API: limits, usage and reset configuration
  3. RadiusStack Plans interface: fields and period options