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 Charging Data Function 4.0, an older release. The newest release is 4.3. Go to 4.3

Recommended resource requirements

CDR size

The content of CDRs is mostly optional and it is the configuration of SMC that decides how many of these optional items are present.

With SMC in production this is 1.8 kB per CDR in NATS storage.

KPI

The value used in the performance evaluation of CDF is 1,800,000 sessions. The number of CDRs generated depends on the interim interval. SMC in production sends charging data every 30 minutes per session. 1,800,000 sessions generating a CDR twice per hour makes 1,000 CDRs per second.

The NATS stream must be able to store CDRs for several days in the case of a lost connection to CGF. If one day of storage is required and 1,000 CDRs arrive per second, NATS needs max_bytes of 160 Gb. If you use max_age as a limit, setting max_bytes to -1 (which gives no storage size limit), the value is 86,400,000,000,000 nanoseconds for one day.

The NATS stream must have the max_deliver parameter set to -1 in the configuration. This way NATS keeps trying to deliver CDRs to the sender until the sender receives them. The sender must have enough RAM for max_ack_pending (NATS configuration) CDRs (one CDR is 1.8 kB). In case of a lost connection to CGF, NATS tries to deliver max_ack_pending (NATS configuration) CDRs every ack_wait (NATS configuration). If max_ack_pending is high and ack_wait is short, it could create a lot of network traffic.