RADIUS Authentication and Accounting
Overview
RADIUS (Remote Authentication Dial-In User Service) is an AAA protocol specified in IETF RFC 2865Opens in a new tab (Authentication) and RFC 2866Opens in a new tab (Accounting). As a true AAA protocol, RADIUS handles:
- Authentication - Verify user identity before network access
- Authorisation - Determine what services a user can access
- Accounting - Track session events for operational purposes
Important
RADIUS serves two distinct purposes in SMC:
- AAA (documented here) - Identity verification and operational session tracking
- Charging - Billing data collection (see RADIUS Charging)
While both use the same RADIUS protocol and configuration, they serve different business concerns.
This document covers RADIUS as a true AAA protocol. For RADIUS used for billing and charging, see RADIUS Charging.
References:
- IETF RFC 2865Opens in a new tab - RADIUS Authentication
- IETF RFC 2866Opens in a new tab - RADIUS Accounting
- AAA Overview - Understanding AAA vs Policy vs Charging
Basic Configuration
Enable RADIUS and configure the server:
Attributes:
enabled- Enable or disable RADIUSserver.addr- RADIUS server address (IPv4, IPv6, or FQDN)server.auth.port- RADIUS authentication port (standard: 1812)server.acct.port- RADIUS accounting port (standard: 1813)server.type- Address type:ipv4,ipv6, orfqdnserver.password- Shared secret for RADIUS message authentication
Authentication Configuration
Enable Authentication
When authentication is enabled, SMC sends Access-Request messages to the RADIUS server before establishing user sessions. Sessions are only established if the server responds with Access-Accept.
Authentication Flow
- User requests session - UE sends Create Session Request (GTP) or Session Establishment Request (PFCP)
- SMC sends Access-Request - Contains IMSI, IMEI/IMEISV, APN/DNN, location
- RADIUS server validates - Checks subscriber database, applies business logic
- Server responds:
- Access-Accept - Session is established, may include authorisation attributes
- Access-Reject - Session is rejected, user denied access
- Access-Challenge - Additional authentication required (not commonly used in mobile networks)
- SMC processes response - Establishes or rejects session based on server response
Authorisation via Access-Accept
RADIUS Access-Accept messages can contain authorisation attributes that control session parameters:
Common authorisation attributes:
Framed-IP-Address- Assign specific IP address to userFramed-IP-Netmask- IP netmask for userFramed-IPv6-Prefix- IPv6 prefix assignmentSession-Timeout- Maximum session durationIdle-Timeout- Session timeout if idleClass- Operator-specific data for sessionFilter-Id- Policy filter to apply
Note
SMC's handling of RADIUS authorisation attributes depends on configuration and deployment. Not all attributes affect session behaviour.
Disable Authentication
To use RADIUS for accounting only without authentication:
When authentication is disabled:
- Sessions are established without RADIUS Access-Request/Accept exchange
- Users are not validated against RADIUS server
- Only accounting records are sent (if enabled)
This is common when authentication is handled by another system (HSS, UDM) or not required.
AAA Accounting Configuration
Note
This section covers RADIUS accounting for operational AAA purposes (session tracking, security auditing). For RADIUS accounting used for billing and charging, see RADIUS Charging.
RADIUS accounting tracks session lifecycle events for network operations:
- Session establishment and termination
- Session state changes
- Security auditing
- Network usage monitoring (non-billing)
Enable accounting phases:
Accounting Phases
Accounting-Start
Sent when a user session is established. Contains session identification and initial state:
Standard attributes:
User-Name- Subscriber identifier (typically IMSI)Acct-Session-Id- Unique session identifierAcct-Status-Type- Set toStart(1)NAS-Identifier- SMC node identifierNAS-IP-Address- SMC IP addressNAS-Port-Type- Access technology (for example,Virtualfor mobile)Framed-IP-Address- User's IPv4 addressFramed-IPv6-Prefix- User's IPv6 prefixCalled-Station-Id- APN or DNN nameEvent-Timestamp- Session start time
3GPP-specific attributes:
3GPP-IMSI- International Mobile Subscriber Identity3GPP-IMEI- International Mobile Equipment Identity3GPP-RAT-Type- Radio Access Technology3GPP-User-Location-Info- Cell/tracking area location3GPP-SGSN-Address- Serving gateway address
Enable with start.enabled: true. Automatically sent when a GTP Create Session or PFCP Session Establishment completes successfully.
Accounting-Interim
Sent periodically during an active session. Contains cumulative session state:
Additional attributes beyond Start:
Acct-Status-Type- Set toInterim-Update(3)Acct-Session-Time- Session duration in secondsAcct-Input-Octets- Downlink data volumeAcct-Output-Octets- Uplink data volumeAcct-Input-Packets- Downlink packet countAcct-Output-Packets- Uplink packet count
Interim interval controlled by aaa.acctInterimInterval:
Caution
If RADIUS interim or stop accounting are enabled, aaa.acctInterimInterval cannot be null.
Common interim intervals:
300(5 minutes) - Frequent updates, higher server load1800(30 minutes) - Balanced3600(1 hour) - Infrequent updates, lower server loadnull- No interim records (only Start and Stop)
Accounting-Stop
Sent when a user session terminates. Contains final session state and termination reason:
Additional attributes beyond Interim:
Acct-Status-Type- Set toStop(2)Acct-Terminate-Cause- Reason for session terminationUser-Request(1) - Normal termination by userLost-Carrier(2) - Connection lostIdle-Timeout(4) - Session idle too longSession-Timeout(5) - Maximum duration reachedAdmin-Reset(6) - Administrative terminationNAS-Request(7) - Network-initiated termination
Enable with stop.enabled: true. Automatically sent when a GTP Delete Session or PFCP Session Deletion completes.
Server Configuration
Separate Authentication and Accounting Servers
Use different servers for authentication and accounting:
When server.acct.standalone is true:
- Authentication messages (Access-Request) →
server.auth - Accounting messages (Accounting-Request) →
server.acct
This is useful when separate RADIUS servers handle authentication and accounting for administrative or security reasons.
Address Types
RADIUS servers can be specified using different address types.
IPv4
Standard IPv4 dotted-decimal notation.
IPv6
Standard IPv6 colon-hexadecimal notation.
FQDN (Fully Qualified Domain Name)
DNS resolution is performed at runtime. Useful for:
- Servers with dynamic IP addresses
- DNS-based failover
- Cloud deployments
Tip
Use FQDN for production deployments to enable DNS-based load balancing and failover.
Attribute Filtering
Filter specific RADIUS attributes from messages:
Attributes listed in avp_filters are excluded from all RADIUS messages (Access-Request, Accounting-Request).
Common attributes to filter:
User-Password- Never send passwords in accounting (should never be present anyway)Calling-Station-Id- Originating number (privacy concern)Called-Station-Id- Destination number (privacy concern)NAS-IP-Address- Network Access Server address (security concern)Framed-IP-Address- User's IP address (privacy concern)
Important
Filtering affects both authentication and accounting messages. Do not filter attributes required by your RADIUS server for authentication or accounting.
Transport Protocol
RADIUS uses UDP (User Datagram Protocol) as its transport. UDP is lightweight but does not guarantee delivery.
SMC implements RADIUS reliability through:
- Retransmission - Unanswered requests are retransmitted
- Timeout detection - Requests that don't receive responses within a timeout are retried
- Duplicate detection - Responses are matched to requests using Request Authenticator
- Request queueing - Requests are queued if the server is temporarily unreachable
Note
Unlike Diameter, RADIUS does not support TCP or SCTP. All RADIUS communication is over UDP.
UDP characteristics relevant to RADIUS:
- No connection establishment overhead (faster than TCP)
- No delivery guarantee (relies on retransmission)
- No flow control (can overwhelm servers)
- Suitable for request-response patterns
Performance considerations:
- RADIUS is efficient for authentication (one request-response per session)
- For accounting, UDP may lose messages during network congestion
- Consider Diameter (Rf, NASREQ) for mission-critical accounting
Example Configurations
Authentication Only
RADIUS authentication without accounting:
Use case: Authentication is required, but accounting is handled by Diameter Rf or another system.
Authentication + AAA Accounting
Full AAA with authentication and accounting:
Use case: Single RADIUS server handles both authentication and operational accounting.
Separate Auth and Acct Servers
Different servers for authentication and accounting:
Use case: Separate servers for security, scale, or administrative boundaries.
Accounting Only (No Authentication)
AAA accounting without authentication:
Use case: Authentication is handled by another system (HSS, UDM), but RADIUS accounting needed for operations.
Start and Stop Only (No Interim)
Minimal accounting with start and stop only:
Use case: Only track session start and stop for security auditing, not interested in interim state.
With Attribute Filtering
Privacy-focused configuration with attribute filtering:
Use case: Filter privacy-sensitive attributes for GDPR or regulatory compliance.
IPv6 Dual-Stack
RADIUS server on IPv6 network:
Use case: IPv6-only or dual-stack deployment.
AAA vs Charging
RADIUS can serve both AAA and charging in SMC. Understanding the distinction is crucial:
RADIUS for AAA (This Document)
Purpose: Identity verification and operational session tracking
Configuration location: aaa.radius.*
Triggered by: Session establishment procedures
Sent regardless of: PCC rules, rating groups, or charging configuration
Use cases:
- Authenticate subscribers before allowing network access
- Track session establishment for security monitoring
- Audit network usage for operations (not billing)
- Collect session data for troubleshooting
Example: Network operator wants to know "who connected, when, and for how long" for security purposes.
RADIUS for Charging (See RADIUS Charging)
Purpose: Billing data collection and revenue assurance
Configuration location: Same aaa.radius.* but conceptually different concern
Triggered by: PCC rules with offlineEnabled: true
Sent based on: Rating groups and charging configuration
Use cases:
- Generate usage records for billing systems
- Collect data volume per rating group
- Integrate with offline charging systems (OFCS)
- Generate Call Detail Records (CDRs)
Example: Billing system needs to know "how much data was used" to bill the subscriber.
Practical Configuration
In practice, the same RADIUS accounting configuration often serves both purposes:
The RADIUS server receiving these messages may:
- Store them for AAA purposes (security, operations)
- Forward them to billing systems for charging
- Do both
This is why the helm chart mixes these concerns under aaa.* - they share the same infrastructure.
RADIUS vs Diameter NASREQ
Both RADIUS and Diameter NASREQ are "true AAA" protocols. When to use which?
Choose RADIUS when:
- Integrating with existing RADIUS infrastructure
- Simple deployments without complex roaming
- Legacy systems require RADIUS
- Lower deployment complexity preferred
Choose Diameter NASREQ when:
- Building modern 3GPP-compliant systems
- Complex roaming arrangements
- Need for rich attribute support
- TCP/SCTP reliability required
See Diameter NASREQ for Diameter-based AAA configuration.
Troubleshooting
Authentication Failures
Symptom: Sessions are rejected, users cannot connect.
Possible causes:
- RADIUS server is down or unreachable
- Incorrect shared secret (
server.password) - RADIUS server rejecting users (Access-Reject)
- Network connectivity issues
Solution:
Check RADIUS server connectivity:
bashVerify port is open:
bashCheck SMC logs for RADIUS errors:
bashVerify shared secret matches between SMC and RADIUS server
Check RADIUS server logs for Access-Reject reasons
Accounting Messages Not Received
Symptom: RADIUS server not receiving accounting messages.
Possible causes:
- Accounting not enabled (
start/interim/stop.enabled: false) - RADIUS server unreachable
- UDP packets dropped by firewall
- Incorrect accounting port (should be 1813)
Solution:
Verify accounting is enabled:
yamlCheck server address and port:
yamlTest UDP connectivity:
bashCheck firewall rules for UDP port 1813
Review SMC logs for accounting errors
Interim Interval Errors
Symptom: Error about acctInterimInterval being null.
Cause: Interim or stop accounting enabled without setting interim interval.
Solution:
Set acctInterimInterval:
Or disable interim accounting:
High RADIUS Server Load
Symptom: RADIUS server overloaded, slow responses.
Possible causes:
- Interim interval too short
- Too many sessions
- Server underpowered
Solution:
Increase interim interval:
yamlDisable interim accounting if not needed:
yamlScale RADIUS server (more CPU, memory)
Consider switching to Diameter for better load distribution
Related Documentation
- AAA Overview - Understanding the three concerns
- Diameter NASREQ - Diameter-based AAA
- RADIUS Charging - RADIUS for billing
- Diameter Concepts - Generic Diameter transport