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

Extended CDF sender configuration

This document explains which sender parameters you can configure and how you can use them to change the throughput.

There is only one sender in CDF architecture.

The primary way to set the required bandwidth is to edit two configuration variables:

  • sender.cdrMax - batch size of CDRs to send
  • sender.cdrTime - waiting interval between sending

The resulting throughput is [sender.cdrMax * sender.cdrTime], for example, [sender.cdrMax=100 ms] and [sender.cdrTime=100], which results in total throughput of 1000 CDRs per second.

Each CGF gets the same maximum load, so the increasing number of CGFs increases the throughput as long as the sender doesn't hit its own performance ceiling.

The maximum number of CDRs should fit in the CGF receive buffer. The CDRs might arrive almost at the same time. The time between sending should be long enough to allow the sender to send all CDRs. If the sender is not able to send the CDR batches fast enough, the performance is degraded compared to the theoretical [sender.cdrMax * sender.cdrTime] number.

Another way to scale the sender performance is to connect multiple CDF receivers to it, each with its own unique name. For each connected receiver, a new process is started, which increases the total throughput and uses an additional CPU core. The number of CPU cores required by the sender is N+1, where N = the number of connected receivers.

The maximum load on CGF is respected even with multiple sending processes.

This is a sample extended configuration of CDF sender.

yaml

sender.CGFs

This is the list of IP address/ports to which CDRs are sent. More CGFs allow CDF to send the maximum rate to more places. The rate increases only if CGF is the limiting factor.

sender.cdrMax

This is the maximum number of CDRs sent to CGF per time unit. The default value is 1. Each receiver, configured in the sender.directories field, gets a part of this number. If a CGF can handle 1000 CDRs and there are 4 receivers configured for the CDF, each sending process sends 250 CDRs.

The maximum number is used when selecting CDRs to send and is only a suggestion. The number of sent CDRs can be lower than the maximum.

sender.cdrTime

This is the time interval in milliseconds in which CDF tries to send the maximum number of CDRs. The default value is 1000.

This number is useful when all CDRs are sent during this time period. Sometimes CDF takes extra long to send, for example when switching to a new CDR file. If it always takes more time, the maximum load on the CGF is not what is configured.

sender.responseTimeout

This is the waiting duration for GTP Response in milliseconds. The default value is 1000.

The waiting duration must be longer than RTT (network latency + CGF delay). Otherwise, CDF resends CDRs correctly but late. If the duration is too big, you can get a problem with GTP Prime sequence numbers, as the protocol is limited to 65,536 sequence numbers. That is 65 seconds for 1000 CDRs per second. Longer response timeout makes the sequence number be wrapped and reused. It is not possible to predict which CDR is responded.

If no CDR is responded within this time, that CGF is lost.

sender.accumulateMax

This is the maximum number of CDRs in a file. Each CDR is almost 4 kb. The maximum file size is 2 Gb. The default value is 30000, which is about 100 Mb.

When S3 is used, you can use this configuration to control the number of CDRs before uploading the archive with CDR to S3. The more CDRs, the better the compression.

sender.transportOptions.data.receiveBuffer

This is the size of socket receive buffer for GTP Data Response from CGF in bytes. The default value equals the operating system settings.

When the send buffer is too small, the receiver loses the incoming responses. This triggers resending and limits the number of new CDRs that can be sent. Even though no data is lost, the performance goes down.

sender.echo

This is the time between sending GTP Prime Echo requests in milliseconds.

If communication with a CGF is lost, CDF will continue to send Echo request, and when it is responded, CDF will know communication is re-established. As soon as one or more CGFs go down, the CDF sender throughput will automatically be reduced to honour the capacity of the remaining CGFs, until the session is re-established.

sender.waits3

This is the waiting duration before checking for a new CDR file in S3 in milliseconds. The default value is 10000.

Do not spend too much resources on this. If it is okay with some latency, it is better to do this rarely.