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.14, an older release. The newest release is 3.17. Go to 3.17

Rf Offline Charging Configuration

Overview

Rf is the Diameter interface used for offline charging in 3GPP networks, specified in 3GPP TS 32.299. SMC sends Accounting-Request (ACR) messages to a Charging Gateway Function (CGF) or charging system, which generates CDRs (Charging Data Records) for billing.

Offline charging allows service delivery without real-time credit checks. Usage information is collected during the session and processed later for billing.

References:

  • 3GPP TS 32.299 - Diameter charging applications
  • 3GPP TS 32.251 - Packet Switched (PS) domain charging
  • Diameter Configuration - Diameter transport configuration
  • Charging Overview - Charging concepts and triggers

Basic Configuration

Enable Rf and configure whether to use common Diameter settings:

yaml

When standalone is false, Rf uses Diameter transport settings from aaa.oss (see Diameter Configuration).

When standalone is true, configure Rf-specific settings:

yaml

Network Configuration

Rf can use common network settings or dedicated network configuration.

Using Common Network Settings

yaml

Using Separate Network Settings

Rf does not have separate network settings. It always uses networking.oss. For separate network configuration, use Ro interface settings (see Ro Configuration).

Accounting Phases

Rf supports three accounting phases:

Accounting-Start

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

  • User identity (IMSI, MSISDN)
  • Session start time
  • Network context (PLMN, location, RAT type)
  • IP address allocation
  • QoS parameters

Automatically enabled when aaa.rf.enabled is true.

Accounting-Interim

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

  • Data volume (uplink and downlink)
  • Session duration
  • Current location
  • Current QoS

Interim interval controlled by aaa.acctInterimInterval:

yaml

Set to null to disable interim records:

yaml

Caution

If RADIUS Stop or Interim accounting are enabled, acctInterimInterval cannot be null.

Accounting-Stop

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

  • Final data volume
  • Total session duration
  • Termination cause
  • Final location

Automatically enabled when aaa.rf.enabled is true.

Connection Monitoring

Monitor Rf connections using the diameter_connections metric with label svc="ergw_rf".

Example Prometheus query:

promql

When the metric shows 0, no Rf connections are active. This indicates:

  • Charging data is queued in memory
  • Memory consumption may increase
  • CDRs will be sent when the connection recovers

Caution

During Rf connection failures, traffic data volumes and service information are stored in SMC memory. This may increase memory consumption significantly. Monitor memory usage carefully during extended Rf outages.

Charging Triggers

Rf offline charging generates CDRs based on triggers. See Charging Overview for detailed trigger configuration.

CDR generation triggers:

  • ms-time-zone-change
  • rat-change
  • sgsn-sgw-change
  • sgsn-sgw-plmn-id-change

Container update triggers:

  • cgi-sai-change
  • ecgi-change
  • qos-change
  • rai-change
  • tai-change
  • tariff-switch-change
  • user-location-info-change

PCC Rule Integration

Offline charging is enabled per PCC rule. Configure rules with offlineEnabled: true:

yaml

Multiple rules can share the same rating group for aggregated billing:

yaml

Example Configurations

Basic Rf with Common Settings

yaml

Rf with No Interim Records

yaml

Note

This configuration only sends Accounting-Start and Accounting-Stop messages, not interim updates.

Rf with Standalone Configuration

yaml

Multiple Rating Groups

yaml

Troubleshooting

No Rf Connection

Symptom: Metric diameter_connections{svc="ergw_rf"} shows 0.

Possible causes:

  • CGF/charging system unreachable
  • Diameter transport misconfiguration
  • Firewall blocking port 3868

Solution:

  1. Verify Diameter transport configuration (see Diameter Configuration)

  2. Check network connectivity:

    bash
  3. Review SMC logs for Rf connection errors:

    bash
  4. Verify CGF/charging system is running and accepting connections

Memory Growth

Symptom: SMC memory usage increases continuously when Rf connection is down.

Cause: Charging data is queued in memory while Rf is unavailable.

Solution:

  1. Restore Rf connectivity immediately

  2. Monitor memory usage:

    promql
  3. If memory continues to grow dangerously, consider restarting SMC:

    bash

Important

Restarting SMC during an Rf outage results in loss of queued offline charging records.

No CDRs Generated

Symptom: CGF receives no CDRs despite active sessions.

Possible causes:

  • aaa.rf.enabled is false
  • No rules have offlineEnabled: true
  • Sessions do not match any offline-enabled rules

Solution:

  1. Verify Rf is enabled:

    yaml
  2. Verify at least one rule has offline charging enabled:

    yaml
  3. Verify rules are activated by checking session logs

  4. Verify sessions match rule flow descriptions

Interim Records Not Sent

Symptom: Start and Stop records are received, but no interim records.

Possible causes:

  • acctInterimInterval is null
  • acctInterimInterval is larger than session duration
  • Sessions terminate before interim interval expires

Solution:

  1. Configure interim interval:

    yaml
  2. Reduce interval for testing:

    yaml
  3. Verify sessions last longer than the interim interval

  4. Check SMC logs for interim accounting messages

Wrong Rating Group in CDRs

Symptom: CDRs contain unexpected rating group values.

Possible causes:

  • Multiple rules match the same traffic
  • Wrong rule has higher precedence
  • offlineRatingGroup overrides ratingGroup

Solution:

  1. Review rule precedence - lower values are evaluated first:

    yaml
  2. Check for offlineRatingGroup overrides:

    yaml
  3. Verify flow descriptions match intended traffic

  4. Test with simple catch-all rules to isolate the issue