KB-6054209

Verify accounting before enforcing a quota

Trace a pilot session's Start, Interim-Update, and Stop to diagnose stale data and time counters.

11 views

Establish a controlled accounting test

Authentication and accounting provide different evidence. An Access-Accept proves the NAS got a decision; it does not prove the NAS reports usage. In the service tenant, choose one existing pilot and note its exact username or MAC, NAS, and connection time. Confirm the NAS has accounting configured for the same deployment and supports interim updates for the selected service.[1][4][5]

Observe a complete session

  1. If needed on a supported NAS, edit a pilot profile and add the Acct-Interim-Interval reply with value 300 seconds. Save, assign it to the pilot, and establish a fresh session. Check the NAS's own interval settings too; the standards guidance allows a locally configured NAS interval to override the supplied reply.[2][5]
  2. In Accounting, filter by the pilot identity, NAS client and time range, then open Session Details. Look for the session from the new login. Generate modest test traffic and check whether its input, output and duration change after the expected update interval.[1][3]
  3. End the pilot session cleanly and confirm its accounting row closes and final counters are recorded. Match the session identifier when several rows look similar. For quota troubleshooting, compare the session data with the identity's plan usage, not just the aggregate tenant report.

Localize missing or stale measurements

No accounting row after a successful login points toward the NAS accounting destination or delivery path. A row that opens but never updates points toward missing or ignored interim reporting; inspect the NAS's counters and accounting events before shortening the interval. A row remaining open after the client leaves may be missing a Stop. Check the current NAS session table before assuming the client is still online.[3][4][5]

Do not purge historical rows to make quota numbers look normal. Short interim intervals increase accounting load, so test the pilot setting first and agree on the rate with the NAS owner. Record the three observations separately: presence of a row, movement of counters, and closure after disconnect.

References

  1. RadiusStack Wiki: Reporting and analytics
  2. RadiusStack Profiles API: NAS restriction and reply attributes
  3. RadiusStack FreeRADIUS SQL: accounting queries
  4. RFC 2866 §4: RADIUS Accounting packet types
  5. RFC 2869 §5.16: Acct-Interim-Interval