CAP

CAMEL Application Part

Protocol
Introduced in R99
CAP is a signaling protocol used in CAMEL (Customized Applications for Mobile networks Enhanced Logic) to enable real-time, intelligent service control in mobile networks. It connects network elements like the SSF (Service Switching Function) to external platforms such as the OCS (Online Charging System) or SCP (Service Control Point), allowing for advanced prepaid services, number translation, and other value-added services.

Description

The CAMEL Application Part (CAP) is a Transaction Capabilities Application Part (TCAP) based protocol, defined within the 3GPP standards, that facilitates the communication between network elements involved in the CAMEL service architecture. CAMEL enables the provision of operator-specific, intelligent network (IN) services across home and visited networks, independent of vendor equipment. CAP operates over the SS7 (Signaling System No. 7) or SIGTRAN (Signaling Transport) signaling networks, utilizing the TCAP layer for connection-oriented and connectionless dialogue management. Its primary role is to carry service logic instructions and event notifications between the Service Switching Function (SSF), typically integrated within MSC (Mobile Switching Center) or SGSN (Serving GPRS Support Node), and the Service Control Point (SCP) or Online Charging System (OCS). This allows for real-time control of call and session handling based on subscriber profiles and service logic.

Architecturally, CAP defines a set of operations and associated parameters that model the detection points (DPs) in a call or session state model, such as the Basic Call State Model (BCSM). When a trigger condition (e.g., call setup, answer, disconnect) is met at a Detection Point (DP) in the SSF, the SSF suspends call processing and formulates a CAP operation, like InitialDP, to report the event to the SCP. The SCP, hosting the CAMEL service logic, then analyzes the request, applies business rules (e.g., checking prepaid balance, applying number translation), and returns CAP instructions, such as ApplyCharging, Connect, or Continue, to guide the SSF on how to proceed with the call or data session. This interaction enables complex, stateful service control without modifying the core switching equipment.

Key components in the CAP dialogue include the gsmSCF (GSM Service Control Function), which is the SCP implementing the CAMEL service logic; the gsmSSF (GSM Service Switching Function), integrated into the MSC or GMSC; and for packet-switched services, the gprsSSF within the SGSN. CAP messages are encoded using ASN.1 (Abstract Syntax Notation One) and follow specific procedures for different phases of a call or session, ensuring interoperability between different network elements and vendors. The protocol supports various phases like call setup, mid-call, and call release, allowing for services like prepaid charging, fraud control, custom routing, and VPN (Virtual Private Network) services. Its design ensures that service logic is centralized in the SCP, promoting rapid service deployment and consistent subscriber experience across network boundaries.

In modern networks, especially with the evolution to 3G, 4G LTE, and 5G, CAP has been adapted to work with IP-based signaling via SIGTRAN, ensuring continued support for legacy CAMEL services while integrating with IMS (IP Multimedia Subsystem) and VoLTE (Voice over LTE). For instance, in 4G/5G networks, CAP is used between the MME (Mobility Management Entity) or SMF (Session Management Function) acting as an SSF and the OCS for online charging, demonstrating its enduring role in real-time service control and charging.

Purpose & Motivation

CAP was created to address the limitations of traditional, switch-based service provisioning in GSM and UMTS networks, which were inflexible and required lengthy, vendor-specific development cycles for new services. Before CAMEL and CAP, advanced services like prepaid calling, freephone numbers, or virtual private networks were implemented using proprietary IN solutions that often lacked interoperability between different network operators or when subscribers roamed. This hindered the rapid rollout of competitive, value-added services. The CAMEL framework, with CAP as its signaling protocol, standardized the interface between the switching function and the service control logic, enabling operators to deploy intelligent network services consistently across multi-vendor environments and supporting seamless service delivery when subscribers were roaming in visited networks.

The primary problem CAP solves is enabling real-time, event-driven control of calls and sessions by external application servers. This is crucial for services like prepaid billing, where the network must check a subscriber's balance in real-time before allowing a call to proceed and then deduct credit during the call. Without CAP, such services would require deep integration into every switch, making them costly and slow to update. CAP provides a standardized, abstracted signaling method that allows service logic to reside in centralized SCPs or OCS platforms, separating service creation from network infrastructure. This separation accelerates service innovation, reduces operational costs, and ensures that subscribers experience the same services regardless of their location or the underlying network technology.

Historically, CAP was introduced in 3GPP Release 99 as part of the CAMEL Phase 3 specifications, building on earlier phases (CAMEL Phase 1 and 2 defined in GSM standards) to support more complex services and additional network elements like the GPRS network. It addressed the growing demand for sophisticated prepaid and data services as mobile usage expanded. Over subsequent releases, CAP evolved to support new network architectures, such as IMS and LTE, ensuring backward compatibility while extending its capabilities to handle IP-based sessions and interworking with Diameter-based charging systems. Its continued relevance underscores its effectiveness in solving the fundamental need for flexible, real-time service control in telecommunications.

Key Features

  • Standardized signaling for CAMEL service control between SSF and SCP/OCS
  • Supports real-time, event-driven interactions for call and session management
  • Enables prepaid charging, fraud control, and custom routing services
  • Utilizes TCAP over SS7 or SIGTRAN for reliable message transport
  • Defines operations like InitialDP, ApplyCharging, Connect, and Continue
  • Interworks with Diameter-based charging in 4G/5G networks

Evolution Across Releases

R99 Initial

Introduced CAP as part of CAMEL Phase 3 in 3GPP, providing enhanced support for GPRS services, additional detection points, and improved charging capabilities. It defined operations for both circuit-switched and packet-switched domains, enabling prepaid data services and more complex call control scenarios.

Enhanced CAP to support CAMEL Phase 4, introducing capabilities for optimal routing, mobile number portability, and enhanced user interaction via announcements. Added support for new events in the call state model and improved interworking with emerging network elements.

Extended CAP to interface with IMS (IP Multimedia Subsystem) for SIP-based services, enabling CAMEL control over VoIP sessions. Introduced support for new charging scenarios and alignment with all-IP network architectures, ensuring continuity of intelligent services in evolving networks.

Further refined CAP for interworking with Diameter-based online charging systems (OCS) in the PCC (Policy and Charging Control) architecture. Enhanced support for real-time credit control in LTE/SAE networks, ensuring seamless service delivery across 2G/3G and 4G technologies.

Updated CAP to support 5G network integration, particularly for interworking scenarios between 5GC (5G Core) and legacy networks. Ensured backward compatibility while addressing new service requirements in network slicing and enhanced mobile broadband contexts.

Defining Specifications

SpecificationTitle
TS 21.905 3GPP TS 21.905
TS 21.978 3GPP TS 21.978
TS 22.121 3GPP TS 22.121
TS 23.127 3GPP TS 23.127
TS 23.141 3GPP TS 23.141
TS 23.171 3GPP TS 23.171
TS 23.218 3GPP TS 23.218
TS 23.226 3GPP TS 23.226
TS 23.228 3GPP TS 23.228
TS 23.271 3GPP TS 23.271
TS 23.278 3GPP TS 23.278
TS 23.806 3GPP TS 23.806
TS 24.206 3GPP TS 24.206
TS 24.259 3GPP TS 24.259
TS 26.917 3GPP TS 26.917
TS 29.078 3GPP TS 29.078
TS 29.198 3GPP TS 29.198
TS 29.278 3GPP TS 29.278
TS 32.240 3GPP TR 32.240
TS 32.272 3GPP TR 32.272
TS 32.276 3GPP TR 32.276
TS 32.293 3GPP TR 32.293
TS 32.296 3GPP TR 32.296
TS 32.808 3GPP TR 32.808
TS 38.291 3GPP TR 38.291
TS 38.769 3GPP TR 38.769