KB-7591160

Verify how usage quotas reject new logins

Test a measured cap, reconcile the cycle baseline and accounting totals, and distinguish quota rejection from bandwidth shaping.

9 views

Know the comparison

RadiusStack compares recorded input plus output octets against the data allowance and recorded connection seconds against the time allowance. It uses usage relative to the identity's baseline; an enabled dimension depletes at or above its threshold. A zero limit does not deplete that dimension. Either positive limit can cause rejection by itself.[2][3][4] The test should not rely on a speed measurement or the apparent elapsed time on a client screen.

Produce an attributable quota reject

  1. Create a pilot plan such as lab-32mb-cap with Data Limit (MB) 32, Time Limit (Hours) 0, Never Reset, and automatic PoD disabled. Assign it to one test user. Confirm an under-limit login succeeds so that credentials and profile are not already blocking the test.[1][3]
  2. Run approved test traffic through the pilot NAS. Inspect Accounting for that identity and session. Allow a reported update or clean disconnect so the counters reach RadiusStack; compare recorded upload plus download with the plan's measured usage. A client transfer counter need not match the NAS's accounting counter exactly.
  3. Try a fresh authentication from the same NAS. At or above the threshold, expect an Access-Reject; the local policy sets Access Denied: Plan limits exceeded. Compare the timestamp in Auth Log with the latest Accounting update. With PoD off, an already-open session is not proof of failed new-login enforcement.[1][2]

Explain unexpected numbers

If the plan says Depleted but a session is still passing traffic, find out whether that test reused the existing session. If the new request is accepted, check the active plan, recent reset or reassignment, tenant, and actual accounting feed. If logs report a different rejection, fix that precondition and repeat the test. For a time-only policy, use the reported session time rather than wall-clock time since account creation.

Use an isolated identity and avoid quota resets until the evidence is recorded. If you need a time-only follow-up, start a separate test with zero data limit and a positive time limit so either result has an unambiguous cause.

References

  1. RadiusStack Wiki: Usage Plans
  2. RadiusStack FreeRADIUS image: reply forwarding, limits, NAS check and TOTP
  3. RadiusStack Plans API: limits, usage and reset configuration
  4. RadiusStack API: plan usage snapshot