AAA Configuration Overview
Important
The SMC helm chart uses the aaa configuration section for multiple distinct concerns. This document clarifies the differences and provides a navigation guide through the documentation structure.
Understanding the Three Concerns
The aaa configuration section in SMC encompasses three fundamentally different concerns that have been historically grouped together due to their use of common infrastructure:
1. True AAA (Authentication, Authorisation, Accounting)
AAA protocols provide identity and session management for network access:
- RADIUS - Remote Authentication Dial-In User Service (IETF RFC 2865Opens in a new tab, RFC 2866Opens in a new tab)
- Diameter NASREQ - Network Access Server Requirements (IETF RFC 7155Opens in a new tab)
Purpose: Verify user identity (Who are you?), control access (What can you access?), and track usage (How much did you use?).
Use cases:
- Authenticate subscribers before network access
- Verify device credentials (IMEI/IMEISV)
- Track session establishment and termination for security auditing
- Generate usage records for network operations (not billing)
2. Policy Control
Policy interfaces govern how traffic is treated within the network:
- Gx - Diameter-based policy control for 4G (3GPP TS 29.212)
- Npcf - HTTP/2-based policy control for 5G (3GPP TS 29.512)
- PCC Rules - Unified policy rule abstraction layer
Purpose: Apply traffic policies, QoS parameters, and service authorisation decisions to user sessions.
Use cases:
- Enforce quality of service (QoS) parameters
- Apply bandwidth limits per service
- Control which applications or services users can access
- Install dynamic rules based on subscriber profile or network conditions
3. Charging
Charging interfaces enable revenue collection and quota management:
- Rf - Diameter offline charging for CDR generation (3GPP TS 32.299)
- Ro - Diameter online charging for real-time credit control (3GPP TS 32.299)
- RADIUS Accounting - Usage tracking for billing systems
Purpose: Collect billing information and manage subscriber credit in real-time.
Use cases:
- Generate Call Detail Records (CDRs) for offline billing
- Enforce prepaid quotas with online charging
- Collect usage data per rating group for differentiated billing
- Integrate with Online Charging System (OCS) or Billing Systems
Why Are These Mixed Under aaa?
The ergw AAA framework (ergw_aaa application) provides common infrastructure for all three concerns:
- Unified Transport Management - Diameter and RADIUS connection handling
- Session Lifecycle Hooks - Start, Interim, Stop phases
- Handler Abstraction - Common pattern for protocol implementations
- Configuration Structure - Shared settings for procedures and applications
Historically, these concerns evolved from simple AAA systems, and the architecture reflects this heritage. While conceptually distinct, they share:
- Transport protocols (Diameter, RADIUS)
- Message sequencing patterns (Start → Interim → Stop)
- Server connection management
- Rate limiting and resilience mechanisms
The helm chart configuration uses aaa.* as the namespace for all of these because they are implemented within the same ergw AAA framework.
Documentation Navigation
Follow this recommended order for the best understanding:
Start Here: Common Infrastructure
- Diameter Concepts - Generic Diameter transport configuration
- TCP/SCTP transport options
- Connection management and peer selection
- Rate limiting and resilience
- Socket configuration and tuning
All Diameter-based interfaces (Gx, Rf, Ro, NASREQ) build on these concepts.
True AAA Documentation
RADIUS Authentication and Accounting
- RADIUS server configuration
- Authentication procedures (Access-Request/Accept/Reject)
- Accounting phases (Start, Interim, Stop)
- Attribute handling
- Diameter-based authentication
- AA-Request/Answer procedures
- Accounting-Request procedures (ACR)
- Attribute mapping
Policy Control Documentation
- Policy and Charging Control (PCC) architecture
- Relationship between policy rules and charging
- When to use static vs dynamic rules
- Rule types (classic vs ADF)
- Rule parameters (precedence, metering, QoS)
- Rule bases and static provisioning
- Gx procedures (CCR-Initial/Update/Terminate)
- Static and dynamic rule installation
- Supported AVPs and capabilities
- 5GC policy control with HTTP/2
- SmPolicyContextData and SmPolicyDecision
- Current limitations and unsupported features
Charging Documentation
- Online vs offline charging
- CDR generation and triggers
- Rating groups and metering methods
- Diameter Rf interface for CDR generation
- Accounting phases and interim intervals
- Connection monitoring and memory considerations
- Diameter Ro interface for real-time credit control
- CCR-Initial/Update/Terminate procedures
- OCS Free functionality for service continuity
- RADIUS accounting for billing
- Differences from RADIUS AAA accounting
- RADIUS vs Diameter charging comparison
Configuration Patterns
Minimal Configuration (No External AAA)
Disable all external AAA interfaces. The chart uses a static default handler:
RADIUS Authentication + Diameter Charging
Common configuration for 4G networks with RADIUS authentication and Diameter offline charging:
5G Policy with Npcf
Configure Npcf for 5G Standalone policy control:
Hybrid: Authentication, Policy, and Charging
Full configuration with all three concerns:
Key Distinctions to Remember
The following table summarizes how AAA, policy, and charging differ in the question each answers, the protocols involved, and what each produces:
Authentication vs Authorisation vs Policy:
- Authentication confirms identity (
Is this IMSI valid?) - Authorisation grants access (
Can this user access this APN?) - Policy controls traffic treatment (
Apply 10 Mbps limit to video)
Accounting vs Charging:
- Accounting tracks events for operations (
Session started at 10:00) - Charging collects billing data (
User consumed 500 MB)
In SMC, RADIUS and NASREQ accounting are primarily operational AAA. Rf, Ro, and RADIUS charging are primarily billing/revenue.
Tip
When configuring SMC, think about which concern you are addressing: identity (AAA), traffic treatment (policy), or billing (charging). This will guide you to the correct documentation and configuration sections.
Related Documentation
- Structured Logging - Logging configuration for AAA, policy, and charging events
- Rate Limitation - Rate limiting for all AAA interfaces
- Network Configuration - Network interfaces for Diameter and RADIUS
- Troubleshooting - Common AAA, policy, and charging issues