> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/cdf/latest/llms.txt) (all documentation: [llms.txt](https://docs.cennso.com/llms.txt)). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cennso.com/components/cdf/latest.md).

# Charging Data Function

Charging Data Function (CDF) is a component responsible for collecting, processing, and managing Charging Data Records (CDRs) in modern 5G telecommunications networks. CDRs contain information about how much data subscribers use, how long their sessions last, and the quality of their service. You can use this information for billing and network analysis.

CDF performs several important functions:

- Receives CDRs from Gateway GPRS Support Node (GGSN), Serving Gateway (SGW), or Packet Data Network Gateway (PGW)
- Transfers the processed CDRs to the Charging Gateway Function (CGF)
- Stores charging data in NATS key-value stores and streams for persistence and audit

CDF is part of the 3GPP offline charging architecture. It works alongside other network components, like the Charging Gateway Function (CGF), to support the overall charging and billing process. The architecture supports both offline and online charging scenarios, which gives you flexibility in how you handle billing. For more information about the converged charging architecture, read the related 3GPP specifications ([TS 32.290](https://www.3gpp.org/DynaReport/32290.htm), [TS 32.240](https://www.3gpp.org/DynaReport/32240.htm)).
