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:
- IETF RFC 2866Opens in a new tab - RADIUS Accounting
- IETF RFC 2865Opens in a new tab - RADIUS Authentication
- RADIUS Configuration - RADIUS transport and server configuration
- Charging Overview - Charging concepts
Basic Configuration
Enable RADIUS charging by enabling specific accounting phases:
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:
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:
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:
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):
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:
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:
Filtered attributes are excluded from all RADIUS messages (Start, Interim, Stop).
Common attributes to filter:
User-Password- Never send passwords in accountingCalling-Station-Id- Source number (privacy)Called-Station-Id- Destination number (privacy)Class- Operator-specific dataState- Session state information
Example Configurations
RADIUS Accounting Only (No Authentication)
Start and Stop Only (No Interim)
Separate Authentication and Accounting Servers
With Attribute Filtering
Concurrent RADIUS and Diameter Accounting
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.enabledisfalse- No rules have
offlineEnabled: true - RADIUS server address incorrect
Solution:
Verify RADIUS is enabled:
yamlVerify accounting phases are enabled:
yamlVerify at least one rule has offline charging:
yamlCheck SMC logs for RADIUS errors
Verify server address and shared secret
Interim Accounting Not Working
Symptom: Start and Stop messages received, but no Interim messages.
Possible causes:
interim.enabledisfalseacctInterimIntervalisnull- Sessions shorter than interim interval
Solution:
Enable interim accounting:
yamlSet interim interval:
yamlVerify sessions last longer than interval
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:
Verify shared secret in SMC matches server:
yamlCheck for trailing spaces or special characters
Verify server configuration
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:
Check network quality between SMC and RADIUS server
Monitor packet loss:
bashConsider using Diameter Rf instead:
yamlVerify 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:
Or disable RADIUS interim accounting:
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:
Check
avp_filtersconfiguration:yamlVerify session has required information (for example, IP address, location)
Check RADIUS server logs for truncated messages
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:
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:
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.