For AI agents: this documentation is indexed for you in llms.txt, and all of it in /llms.txt. Every page is also available as markdown: append .md to its address.

You are reading Session Management Controller 3.15, an older release. The newest release is 3.17. Go to 3.17

RADIUS Charging Configuration

Overview

RADIUS Accounting provides offline charging for mobile networks using the RADIUS protocol specified in IETF RFC 2866Opens in a new tab. SMC sends Accounting-Request messages to a RADIUS server, which processes them for billing and monitoring.

RADIUS charging is simpler than Diameter but less feature-rich. It is commonly used in legacy deployments or for interoperability with existing RADIUS infrastructure.

References:

Basic Configuration

Enable RADIUS charging by enabling specific accounting phases:

yaml

See RADIUS Configuration for detailed server and transport configuration.

Accounting Phases

Accounting-Start

Sent when a user session is established. Contains initial session information:

  • User identity (IMSI as User-Name)
  • Session start time (Event-Timestamp)
  • Network context (NAS-Identifier, NAS-IP-Address)
  • Access technology (NAS-Port-Type)
  • IP address (Framed-IP-Address, Framed-IPv6-Prefix)

Enable with:

yaml

Automatically sent when a GTP Create Session or PFCP Session Establishment completes successfully.

Accounting-Interim

Sent periodically during an active session. Contains cumulative usage information:

  • Session duration (Acct-Session-Time)
  • Data volume (Acct-Input-Octets, Acct-Output-Octets)
  • Packet counts (Acct-Input-Packets, Acct-Output-Packets)
  • Current session state

Interim interval controlled by aaa.acctInterimInterval:

yaml

Caution

If RADIUS interim or stop accounting are enabled, acctInterimInterval cannot be null.

Accounting-Stop

Sent when a user session terminates. Contains final usage information:

  • Final session duration
  • Final data volume
  • Termination cause (Acct-Terminate-Cause)
  • Final packet counts

Enable with:

yaml

Automatically sent when a GTP Delete Session or PFCP Session Deletion completes.

Interim Interval Configuration

The interim interval applies to all accounting mechanisms (RADIUS, Rf, NASREQ):

yaml

Common values:

  • 300 - 5 minutes (frequent updates, higher load)
  • 1800 - 30 minutes (balanced)
  • 3600 - 1 hour (infrequent updates, lower load)
  • null - No interim records (RADIUS must have only Start/Stop enabled)

RADIUS vs Diameter Accounting

When to use RADIUS:

  • Legacy infrastructure requires it
  • Simple deployments
  • Interoperability with existing RADIUS servers

When to use Diameter:

  • Modern 3GPP deployments
  • Complex roaming scenarios
  • Rich CDR content required

PCC Rule Integration

RADIUS accounting is triggered by offline charging enablement in PCC rules:

yaml

Note

RADIUS accounting and Diameter Rf can be enabled simultaneously. Both will generate records for sessions with offlineEnabled: true.

Attribute Filtering

Filter specific RADIUS attributes from accounting messages:

yaml

Filtered attributes are excluded from all RADIUS messages (Start, Interim, Stop).

Common attributes to filter:

  • User-Password - Never send passwords in accounting
  • Calling-Station-Id - Source number (privacy)
  • Called-Station-Id - Destination number (privacy)
  • Class - Operator-specific data
  • State - Session state information

Example Configurations

RADIUS Accounting Only (No Authentication)

yaml

Start and Stop Only (No Interim)

yaml

Separate Authentication and Accounting Servers

yaml

With Attribute Filtering

yaml

Concurrent RADIUS and Diameter Accounting

yaml

Tip

Use concurrent RADIUS and Diameter accounting during migration from RADIUS to Diameter. Verify both systems produce consistent results before disabling RADIUS.

Troubleshooting

No Accounting Messages Received

Symptom: RADIUS server receives no accounting messages.

Possible causes:

  • Accounting phases not enabled
  • aaa.radius.enabled is false
  • No rules have offlineEnabled: true
  • RADIUS server address incorrect

Solution:

  1. Verify RADIUS is enabled:

    yaml
  2. Verify accounting phases are enabled:

    yaml
  3. Verify at least one rule has offline charging:

    yaml
  4. Check SMC logs for RADIUS errors

  5. Verify server address and shared secret

Interim Accounting Not Working

Symptom: Start and Stop messages received, but no Interim messages.

Possible causes:

  • interim.enabled is false
  • acctInterimInterval is null
  • Sessions shorter than interim interval

Solution:

  1. Enable interim accounting:

    yaml
  2. Set interim interval:

    yaml
  3. Verify sessions last longer than interval

  4. Test with short interval:

    yaml

Shared Secret Errors

Symptom: RADIUS server rejects messages with "Bad Authenticator" errors.

Cause: Shared secret mismatch between SMC and RADIUS server.

Solution:

  1. Verify shared secret in SMC matches server:

    yaml
  2. Check for trailing spaces or special characters

  3. Verify server configuration

  4. Test with simple secret first (for example, "test123")

Important

Shared secrets are case-sensitive and must match exactly on both sides.

UDP Packet Loss

Symptom: Some accounting messages not received by RADIUS server.

Cause: UDP is unreliable; packets can be lost in transit.

Solution:

  1. Check network quality between SMC and RADIUS server

  2. Monitor packet loss:

    bash
  3. Consider using Diameter Rf instead:

    yaml
  4. Verify RADIUS server has adequate capacity

Cannot Disable Interim

Symptom: Error when setting acctInterimInterval: null.

Cause: RADIUS interim or stop accounting is enabled.

Solution:

Either keep interim enabled:

yaml

Or disable RADIUS interim accounting:

yaml

Missing Attributes in Accounting Messages

Symptom: Expected attributes not present in accounting messages.

Possible causes:

  • Attributes filtered in avp_filters
  • Session context missing information
  • RADIUS message size limit exceeded

Solution:

  1. Check avp_filters configuration:

    yaml
  2. Verify session has required information (for example, IP address, location)

  3. Check RADIUS server logs for truncated messages

  4. Consider using Diameter Rf for larger messages

Accounting Records Without Authentication

Symptom: Need accounting without authentication, but unsure how to configure.

Solution:

Disable authentication explicitly:

yaml

This sends only accounting messages, no Access-Request messages.

NASREQ Diameter Accounting

NASREQ is an alternative to RADIUS accounting using Diameter. By default, NASREQ interim accounting is enabled with a 1800-second interval.

To disable NASREQ interim accounting:

yaml

Note

This setting affects all accounting mechanisms (RADIUS, Rf, NASREQ). When null, NASREQ interim is disabled, but RADIUS Stop and interim must also be disabled.

For NASREQ configuration, see Diameter Configuration.