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.

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:

  1. AAA (documented here) - Identity verification and operational session tracking
  2. 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:

Basic Configuration

Enable RADIUS and configure the server:

yaml

Attributes:

  • enabled - Enable or disable RADIUS
  • server.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, or fqdn
  • server.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.

yaml

Authentication Flow

  1. User requests session - UE sends Create Session Request (GTP) or Session Establishment Request (PFCP)
  2. SMC sends Access-Request - Contains IMSI, IMEI/IMEISV, APN/DNN, location
  3. RADIUS server validates - Checks subscriber database, applies business logic
  4. 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)
  5. 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 user
  • Framed-IP-Netmask - IP netmask for user
  • Framed-IPv6-Prefix - IPv6 prefix assignment
  • Session-Timeout - Maximum session duration
  • Idle-Timeout - Session timeout if idle
  • Class - Operator-specific data for session
  • Filter-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:

yaml

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:

yaml

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 identifier
  • Acct-Status-Type - Set to Start (1)
  • NAS-Identifier - SMC node identifier
  • NAS-IP-Address - SMC IP address
  • NAS-Port-Type - Access technology (for example, Virtual for mobile)
  • Framed-IP-Address - User's IPv4 address
  • Framed-IPv6-Prefix - User's IPv6 prefix
  • Called-Station-Id - APN or DNN name
  • Event-Timestamp - Session start time

3GPP-specific attributes:

  • 3GPP-IMSI - International Mobile Subscriber Identity
  • 3GPP-IMEI - International Mobile Equipment Identity
  • 3GPP-RAT-Type - Radio Access Technology
  • 3GPP-User-Location-Info - Cell/tracking area location
  • 3GPP-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 to Interim-Update (3)
  • Acct-Session-Time - Session duration in seconds
  • Acct-Input-Octets - Downlink data volume
  • Acct-Output-Octets - Uplink data volume
  • Acct-Input-Packets - Downlink packet count
  • Acct-Output-Packets - Uplink packet count

Interim interval controlled by aaa.acctInterimInterval:

yaml

Caution

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

Common interim intervals:

  • 300 (5 minutes) - Frequent updates, higher server load
  • 1800 (30 minutes) - Balanced
  • 3600 (1 hour) - Infrequent updates, lower server load
  • null - 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 to Stop (2)
  • Acct-Terminate-Cause - Reason for session termination
    • User-Request (1) - Normal termination by user
    • Lost-Carrier (2) - Connection lost
    • Idle-Timeout (4) - Session idle too long
    • Session-Timeout (5) - Maximum duration reached
    • Admin-Reset (6) - Administrative termination
    • NAS-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:

yaml

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

yaml

Standard IPv4 dotted-decimal notation.

IPv6

yaml

Standard IPv6 colon-hexadecimal notation.

FQDN (Fully Qualified Domain Name)

yaml

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:

yaml

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:

yaml

Use case: Authentication is required, but accounting is handled by Diameter Rf or another system.

Authentication + AAA Accounting

Full AAA with authentication and accounting:

yaml

Use case: Single RADIUS server handles both authentication and operational accounting.

Separate Auth and Acct Servers

Different servers for authentication and accounting:

yaml

Use case: Separate servers for security, scale, or administrative boundaries.

Accounting Only (No Authentication)

AAA accounting without authentication:

yaml

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:

yaml

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:

yaml

Use case: Filter privacy-sensitive attributes for GDPR or regulatory compliance.

IPv6 Dual-Stack

RADIUS server on IPv6 network:

yaml

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:

yaml

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:

  1. Check RADIUS server connectivity:

    bash
  2. Verify port is open:

    bash
  3. Check SMC logs for RADIUS errors:

    bash
  4. Verify shared secret matches between SMC and RADIUS server

  5. 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:

  1. Verify accounting is enabled:

    yaml
  2. Check server address and port:

    yaml
  3. Test UDP connectivity:

    bash
  4. Check firewall rules for UDP port 1813

  5. 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:

yaml

Or disable interim accounting:

yaml

High RADIUS Server Load

Symptom: RADIUS server overloaded, slow responses.

Possible causes:

  • Interim interval too short
  • Too many sessions
  • Server underpowered

Solution:

  1. Increase interim interval:

    yaml
  2. Disable interim accounting if not needed:

    yaml
  3. Scale RADIUS server (more CPU, memory)

  4. Consider switching to Diameter for better load distribution