Prepaid Real-Time Charging (OCS/OFCS)
This dataset provides comprehensive records of prepaid subscribers' real-time charging sessions, including balance deductions, quota management, session terminations, recharge transactions, and detailed Diameter protocol messaging. It enables granular analysis of subscriber behavior, charging system performance, and network operations, making it invaluable for telecom billing, fraud detection, and regulatory compliance.
Sample rows
preview · 8 of 450 rows · all 20 columns| session_idstring | service_typestring | quota_consumedfloat | session_terminated_due_to_insufficient_fundsboolean | currencystring | subscriber_idstring | session_start_timedatetime | session_end_timedatetime | quota_allocatedfloat | balance_beforefloat | balance_afterfloat | recharge_transaction_idstring | recharge_amountfloat | recharge_timedatetime | diameter_interfacestring | diameter_request_typestring | diameter_request_timedatetime | diameter_response_codeinteger | charging_resultstring | network_node_idstring |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| SESS-00001 | data | 478.4 | false | INR | 919812345001 | 2024-06-01T08:15:23Z | 2024-06-01T08:35:46Z | 500 | 75.6 | 74.12 | blank | blank | blank | Gy | CCR | 2024-06-01T08:15:24Z | 2001 | success | NODE-DEL-01 |
| SESS-00002 | voice | 117.2 | false | GBP | 447700900002 | 2024-06-01T09:02:11Z | 2024-06-01T09:04:17Z | 120 | 32.1 | 31.85 | RCHG-0001 | 20 | 2024-06-01T09:03:02Z | Ro | CCA | 2024-06-01T09:02:12Z | 2001 | success | NODE-LON-04 |
| SESS-00003 | sms | 1 | false | USD | 15105550003 | 2024-06-01T10:21:45Z | 2024-06-01T10:22:03Z | 1 | 10.2 | 10.15 | blank | blank | blank | Ro | CCR | 2024-06-01T10:21:46Z | 2001 | success | NODE-NYC-02 |
| SESS-00004 | data | 1024 | true | INR | 919812345004 | 2024-06-01T11:02:35Z | 2024-06-01T11:42:36Z | 1024 | 8.45 | 0 | blank | blank | blank | Gy | RAR | 2024-06-01T11:02:36Z | 4012 | insufficient_funds | NODE-MUM-03 |
| SESS-00005 | voice | 55 | false | GBP | 447700900005 | 2024-06-01T12:01:12Z | 2024-06-01T12:09:44Z | 60 | 80 | 79.68 | blank | blank | blank | Ro | CCR | 2024-06-01T12:01:13Z | 2001 | success | NODE-LON-01 |
| SESS-00006 | sms | 2 | false | USD | 15105550006 | 2024-06-01T13:15:26Z | 2024-06-01T13:16:20Z | 2 | 0.15 | 0.1 | blank | blank | blank | Ro | RAA | 2024-06-01T13:15:27Z | 2001 | success | NODE-NYC-04 |
| SESS-00007 | data | 1789.6 | false | INR | 919812345007 | 2024-06-01T14:17:34Z | 2024-06-01T14:45:19Z | 2048 | 150 | 147.5 | RCHG-0002 | 100 | 2024-06-01T14:25:00Z | Gy | CCR | 2024-06-01T14:17:36Z | 2001 | success | NODE-DEL-02 |
| SESS-00008 | other | 8.4 | false | GBP | 447700900008 | 2024-06-01T15:22:18Z | 2024-06-01T15:28:01Z | 10 | 90 | 89.3 | blank | blank | blank | Ro | CCA | 2024-06-01T15:22:19Z | 2001 | success | NODE-LON-02 |
| SESS-00009 | sms | 1 | false | USD | 15105550009 | 2024-06-01T16:04:56Z | 2024-06-01T16:06:00Z | 1 | 5 | 4.95 | blank | blank | blank | Ro | CCR | 2024-06-01T16:04:57Z | 2001 | success | NODE-NYC-07 |
| SESS-00010 | data | 1024 | true | INR | 919812345010 | 2024-06-01T17:31:12Z | 2024-06-01T17:42:06Z | 1024 | 6 | 0 | blank | blank | blank | Gy | RAR | 2024-06-01T17:31:13Z | 4023 | insufficient_funds | NODE-MUM-01 |
| SESS-00011 | voice | 30 | false | GBP | 447700900011 | 2024-06-01T18:11:44Z | 2024-06-01T18:15:22Z | 30 | 50.1 | 49.97 | RCHG-0003 | 10 | 2024-06-01T18:14:00Z | Ro | RAA | 2024-06-01T18:11:45Z | 2001 | success | NODE-LON-03 |
| SESS-00012 | sms | 2 | false | USD | 15105550012 | 2024-06-01T19:03:55Z | 2024-06-01T19:04:02Z | 3 | 0.2 | 0.18 | blank | blank | blank | Ro | CCR | 2024-06-01T19:03:56Z | 2001 | success | NODE-NYC-03 |
| SESS-00013 | data | 480 | false | INR | 919812345013 | 2024-06-01T20:44:15Z | 2024-06-01T20:50:13Z | 512 | 33.33 | 31.22 | RCHG-0004 | 50 | 2024-06-01T20:45:00Z | Gy | CCR | 2024-06-01T20:44:16Z | 2001 | success | NODE-DEL-03 |
| SESS-00014 | other | 4.6 | false | GBP | 447700900014 | 2024-06-01T21:02:31Z | 2024-06-01T21:12:42Z | 5 | 40 | 39.82 | blank | blank | blank | Ro | CCA | 2024-06-01T21:02:32Z | 2001 | success | NODE-LON-05 |
| SESS-00015 | sms | 1 | false | USD | 15105550015 | 2024-06-01T22:17:03Z | 2024-06-01T22:18:00Z | 1 | 3 | 2.98 | RCHG-0005 | 5 | 2024-06-01T22:17:30Z | Ro | RAA | 2024-06-01T22:17:04Z | 2001 | success | NODE-NYC-05 |
| SESS-00016 | data | 249.5 | false | INR | 919812345016 | 2024-06-01T23:33:38Z | 2024-06-01T23:52:20Z | 250 | 12 | 11.5 | blank | blank | blank | Gy | CCR | 2024-06-01T23:33:39Z | 2001 | success | NODE-MUM-02 |
| SESS-00017 | voice | 44 | false | GBP | 447700900017 | 2024-06-02T00:12:10Z | 2024-06-02T00:19:32Z | 45 | 18 | 17.82 | blank | blank | blank | Ro | CCR | 2024-06-02T00:12:11Z | 2001 | success | NODE-LON-06 |
| SESS-00018 | sms | 2 | false | USD | 15105550018 | 2024-06-02T01:07:28Z | 2024-06-02T01:07:38Z | 2 | 1.1 | 1.08 | blank | blank | blank | Ro | CCA | 2024-06-02T01:07:29Z | 2001 | success | NODE-NYC-06 |
| SESS-00019 | data | 1000 | false | INR | 919812345019 | 2024-06-02T02:09:22Z | 2024-06-02T02:30:45Z | 1024 | 38 | 36 | RCHG-0006 | 20 | 2024-06-02T02:13:00Z | Gy | CCR | 2024-06-02T02:09:23Z | 2001 | success | NODE-DEL-04 |
| SESS-00020 | voice | 13.5 | false | GBP | 447700900020 | 2024-06-02T03:21:14Z | 2024-06-02T03:25:20Z | 15 | 5 | 4.97 | blank | blank | blank | Ro | RAA | 2024-06-02T03:21:15Z | 2001 | success | NODE-LON-07 |
What the 450 rows show
from the 450-row sampleData (service type) stands out: mean quota_
- 14%session_
terminated_ due_ to_ insufficient_ funds = true - 60.0median quota_
consumed - 2diameter interfaces
- 3charging results
- 4diameter request types
- 60median quota_
allocated
Median 60.0, from 0.0 to 2,048.
- string 9
- integer 1
- float 5
- datetime 4
- boolean 1
Columns
20 columns in four groups| column | type | description | example |
|---|---|---|---|
| Text 9 columns | |||
session_id | string | Unique identifier for each charging session.unique | SESS-00001 |
subscriber_id | string | Unique identifier for the prepaid subscriber (e.g., MSISDN or IMSI). | 919812345001 |
service_type | string | Type of service being charged (e.g., voice, SMS, data).voice · sms · data · other | data |
recharge_transaction_id | string | Unique identifier for the recharge transaction, if applicable.optional | RCHG-0001 |
diameter_interface | string | Diameter interface used for the session (Ro or Gy).Ro · Gy | Gy |
diameter_request_type | string | Type of Diameter request message (e.g., CCR, CCA, RAR, RAA).CCR · CCA · RAR · RAA | CCR |
charging_result | string | Result of the charging operation (e.g., success, failed, quota_exhausted, insufficient_funds).success · failed · quota_exhausted · insufficient_funds | success |
currency | string | Currency code used for charging (e.g., USD, EUR, INR).7 currencies | INR |
network_node_id | string | Identifier for the network node handling the session.optional | NODE-DEL-01 |
| Numbers 6 columns | |||
quota_allocated | float | Amount of quota allocated for the session (e.g., MB for data, seconds for voice).0 or more · optional | 500 |
quota_consumed | float | Amount of quota consumed during the session.0 or more · optional | 478.4 |
balance_before | float | Subscriber's account balance before session start.0 or more | 75.6 |
balance_after | float | Subscriber's account balance after session end.0 or more | 74.12 |
recharge_amount | float | Amount recharged during the session, if applicable.0 or more · optional | 20 |
diameter_response_code | integer | Diameter response code received (e.g., 2001 for success).1,000 to 5,999 | 2001 |
| Dates and times 4 columns | |||
session_start_time | datetime | Timestamp when the charging session started. | 2024-06-01T08:15:23Z |
session_end_time | datetime | Timestamp when the charging session ended.optional | 2024-06-01T08:35:46Z |
recharge_time | datetime | Timestamp of the recharge transaction, if applicable.optional | 2024-06-01T09:03:02Z |
diameter_request_time | datetime | Timestamp when the Diameter request was sent. | 2024-06-01T08:15:24Z |
| True or false 1 column | |||
session_terminated_due_to_insufficient_funds | boolean | Indicates if the session was terminated due to insufficient funds. | false |
Use it for
A telecommunications dashboard
The session_
terminated_ due_ to_ insufficient_ funds rate, quota_ consumed by service_ type and a breakdown of currency. Excel, Power BI or Tableau. Why do the 150 data rows have a mean quota_
consumed of 359.5? A root-cause class exercise
Hand out the rows and one question. The answer is in the data, not in the brief.
- Sessions450SESS-00001478.4dataSESS-000041024dataSESS-000101024data
A software demo
Believable sessions with subscriber_
id, session_ start_ time and session_ end_ time to fill a screen in front of a buyer.
blueprint · prepaid-real-time-charging-ocsofcs
Behind this dataset
Same schema. As many rows as you need.
These 450 rows came out of a blueprint — 20 columns with generation rules behind each one. Open it in Data Factory to retune a column, add your own, wire in foreign keys, and run it at the size you actually need.
- Subscriber MSISDN and account balance in currency or units
- Service request: voice call, data session, SMS with estimated cost
- Quota granted (units or time) and quota threshold monitoring
- Real-time balance check and deduction via Diameter Ro (IMS) or Gy (PGW)
- Recharge transactions: voucher, mobile money, bank transfer
- Service termination on zero balance with grace period rules
- Bonus/promotional credits and validity periods
- Multi-service quotas: voice minutes, data MB, SMS count
1 credit per row. Preview 20 rows free. Buy rows for the full run.
- Exports
- CSV, JSON, JSONL, Parquet, SQL, Excel, TSV, XML
- Licence
- yours to use, including commercially
- API slug
- prepaid-real-time-charging-ocsofcs