PCRF CDRs

PCRF CDRs are generated to record rules handling sessions which includes start, interim, and stop per session.

PCRF CDRs contain a fixed part section as well as a variable part. The variable part is optional. See PCRF CDR variable part for more details.
Field Name Description

1

Subscriber ID

The MSISDN of the subscriber in Tango internal format.

2

Service ID

The service ID. This is set to 28 for the PCRF rules handler.

3

Transaction Type

Indicates the transaction type.

options
  • 1 = Start CDR

  • 2 = Stop CDR

  • 3 = Interim CDR

  • 4 = Restart CDR

  • 5 = Heartbeat CDR

  • 10 = Unexpected CDR

  • 11 = Queued CDR

  • 101 = Rx session start

  • 102 = Rx session stop

  • 103 = Rx session interim

4

Tenant ID

Alphanumeric string that displays the ID of the network operator for which the CDR was produced.

5

Instance ID

The instance number of the PCRF rules handler service logic state machine that is handling the session.

6

Termination Cause Code

The PCRF session termination reason.

For Start and Interim CDRs, this is 0.
values
  • 0 = Normal

  • 1 = SPR Failure

  • 2 = Application Function Failure

  • 3 = PCEF Failure

  • 4 = PCRF rules provisioning failure

  • 5 = Session context store failure

7

Failure Code

The failure code. It will fail for one of the following reasons:

PCRF failure
  • 1 = Undefined

  • 2 = Internal error

  • 3 = CODEC error

  • 4 = Invalid rules data

  • 5 = maxInvalidUsageKey exceeded

  • 6 = No rules applicable

  • 7 = Max rules exceeded

SPR failure
  • 1 = Undefined

  • 2 = Subscriber profile failure

  • 3 = Sp response timeout

  • 4 = Usage report failure

PCEF rules failure
  • 1 = Undefined

  • 2 = Rules installation failure

  • 3 = Installation report failure

  • 4 = Installation report timeout

Session context store failure
  • 1 = Internal error

  • 2 = Session context not found

  • 3 = Session context data decode error

  • 4 = Timeout waiting for session context

-1 if none of the above apply.

8

Gx Termination Cause

The value of the AVP of the same name in the CCR-T.

When this is unavailable, the value is -2.

9

SPR Error Code

Indicates the SPR error which is returned over the Sp interface in response to an Sp request.

values
  • 0 = no error

  • 1 = generic error

  • 2 = unknown error

  • 3 = subscriber profile service error

  • 4 = message transmission error

  • 5 = subscriber profile session error

  • 6 = cancelled

  • 7 = subscriber profile service timeout

  • 8 = Sp adaptor SPR connection pool timeout

  • 9 = no subscriber profile

  • 10 = inactive subscriber

  • 11 = unknown subscriber

  • 12 = system busy

  • 13 = unknown tenant

  • 100 = Sp response timeout

10

SPR Termination Result

The SPR dialogue termination result.

values
  • 0 = normal termination

  • 1 = SPR dialogue termination failure response

  • 2 = SPR dialogue termination failure timeout

  • 3 = SPR dialogue termination failure aborted

For Start and Interim CDRs, this is 0.

11

DPS Response Code

The response code which is returned from the DPS in response to a discount lookup request.

If there was an error sending the DPS a request, this will be an internal error.
If no DS/DPS request is required, the field is set to 1.
dps values
  • 0 = Normal

  • -1 = Subscriber does not exist

  • -2 = Database unavailable

  • -3 = Bad request

  • -4 = Bypass

  • -5 = Unknown location parameter

  • -6 = Service no rate for call

  • -7 = No location number

  • -8 = No mobile utilisation data

  • -9 = Discount unavailable

  • -10 = No rate code for discount

  • -11 = Called party not on whitelist

internal values
  • -100 = DPS resource not found

  • -101 = Invalid user location info

  • -102 = Invalid subscriber ID

  • -103 = Response timeout

12

DS Response Code

The response code that is returned from the DS service in response to a scheduled discount lookup request.

If there was an error sending the DS a request, this will be an internal error.
ds values
  • 0 = Normal

  • -1 = No discount

  • -2 = Invalid parameter

  • -3 = System error

internal values
  • -100 = DS resource not found

  • -101 = Response timeout

13

CDR Generation Date

The date the CDR was generated. Format: DD/MM/YYYY.

14

CDR Generation Time

The time the CDR was generated. Format: hh:mm:ss.

15

CDR Sequence Number

The CDR sequence number. This increments (from 0) for each CDR output for a given PCRF rules session.

16

CDR Segment

Denotes the CDR segment. The segment counter increments from 0.

The default value is -2.
The last CDR segment is a value of -1.

17

UE IP Address

The IP address assigned to the subscriber’s mobile equipment.

18

UE Info

The IMEI from the subscriber’s user equipment if provided over the Gx interface.

19

PDN ID

The PDN ID decoded from the Gx Called-Station-Id or Rx session APN.

An example would be APN.

20

IP-CAN Type

The IP-CAN type passed by the PCEF over the Gx interface.

options
  • 0 = 3GPP-GPRS

  • 5 = 3GPP-EPS (4G)

21

RAT Type

The RAT type passed by the PCEF over the Gx interface.

22

AN-GW Address

The AN-GW address if received from the PCEF over the Gx interface.

23

SGSN Address

The SGSN address if received on the Gx interface from the PCEF.

24

PLMN ID

The PLMN ID decoded from the Gx-GGSN-MCC-MNC.

25

User Location Info

The location information from the Gx 3GPP-User-Location-Info.

This can be from the SAI, RAI, CGI, TAI, ECGI, and/or the TAI+ECGI
The format is defined in the 3GPP 29.061 specification.

26

RAI

The RAI if received on the Gx interface from the PCEF.

27

Update Cause

The reasons for the rules session udpate.

causes
  • 0 = Initiate rules session from PCEF.

  • 1 = Subscriber profile update notification from SPR.

  • 2 = Event report from the PCEF. Check out the Event Trigger ID in this CDR for the event report type.

  • 3 = Terminate rules session request from the PCEF.

  • 4 = Application rules session update from AF.

  • 5 = Blocked rules usage report request to the PCEF.

  • 6 = Internal termination of the session due to an error processing the previous event.

  • 7 = Installation report from the PCEF.

  • 8 = Session restart due to request from the PCEF.

  • 9 = Internal termination of the session due to inactivity.

28

Event Trigger ID

The PCEF event trigger ID related to the rule update requests from the PCEF.

The value is -1 if no event trigger is applicable.
possible values
  • 0 = SGSN Change

  • 1 = QoS Change

  • 2 = RAT Change

  • 4 = PLMN Change

  • 7 = IP-CAN Change

  • 11 = QoS Change Exceeding Authorisation

  • 12 = RAI Change

  • 13 = User Location Change

  • 17 = Revalidation Timeout

  • 18 = UE IP Address Allocate

  • 21 = AN GW Change

  • 22 = Successful Resource Allocation

  • 23 = Resource Modification Request

  • 25 = UE Timezone Change

  • 26 = Usage Report

  • 29 = Charging Correlation Exchange

  • 44 = Access Network Info Report

29

Application Identifier

The appplication identifier from the Rx AF-Application-Identifier.

This field is empty if no application function is involved.

30

AF Session ID

The Rx session ID for the application function interface.

This field is empty if there is no Rx session.

31

PCEF Session ID

The Gx session ID for the PCEF interface.

32

Gx Charging ID

The Gx Charging ID decoded from the Gx Access Network Charging Identifier Gx.

33

AF Session Start Time

The Rx application function session start time. Format: hh:mm:ss.

This field is empty if there is no Rx session.

34

AF Session Duration

The Rx session duration (in seconds).

35

PCEF Session Start Time

The time that the PCEF (Gx) session started. Format: hh:mm:ss.

36

PCEF Session Duration

The PCEF (Gx) session duration (in seconds).

37

PCRF Session Start Time

The time that the PCRF rule handling session started. Format: hh:mm:ss.

38

SPR Response Delay

The time to wait (in milliseconds) for a profile response from the SPR. This will either be the actual time of the response or a timeout value in the case of a SP_RESPONSE_TIMEOUT.

39

PCRF Session Duration

The PCRF rule handling session duration (in seconds).

40

Total Volume Reported

The total volume usage reported by the PCEF.

This is 0 if the usage report is inapplicable.

41

Total Volume Sent

The total volume usage sent to the SPCM.

This is 0 if the usage report is inapplicable.

42

Total Time Reported

The total amount of time usage reported by the time metering service logic.

This is 0 if the usage report is inapplicable.

43

Total Time Sent

The total amount of time usage sent to the SPCM.

This is 0 if the usage report is inapplicable.

44

Total Session Volume Counted

The total volume for the session that the SPCM has counted and acknowledged.

Uses the data type unsigned long long.

45

Cell Load Percent

The cell (mobile) load percent if there is a DPS response. This is an intger between 1 and 100.

This is -1 when there is no DPS lookup.

46

UEM Profile Key

The UEM profile key.

This is -1 when there is no UEM profile.

47

Requested AAMBR

The requested APN Aggregate Max Birate (AAMBR) DL AVP. This is adjusted based on the UEM Profile Key and the Cell Load Percent.

This is -1 when the AAMBR is not requested.

48

Authorised AAMBR

The authorised AAMBR.

This is -1 when the AAMBR is not requested.

49

Subscriber Plan State

The subscriber plan state as received from the SPCM. This indicates whether the subscriber has a valid bundle.

possible values
  • -1 = unspecified

  • 0 = No bundle

  • 1 = Subscriber has a valid bundle.

50

MS Time Zone

Denotes the MS Timezone. This is expressed in 15 minute intervals from the UTC.

time sample

4a00 = UTC-6

Logic:

Taking 0x4A00 from the sample CDR, we get (0x4A & 0x08) != 0 so it is a negative offset. 0x4A)>>4 + 10*(0x4A & 0x7 ⇒ 4 + 10*2 ⇒ 24 multiples of 15 minutes ⇒ 24/4 = 6.

For further details on this type of format, see the GSM Specifications.

51

UE_IPv6_Prefix

The UE prefix for IPv6.

52

ANGW_IPv6_Address

The ANGW address for IPv6.

53

SGSN_IPv6_Address

The SGSN address for IPv6.

54

` `

Empty field for future use.

55

` `

Empty field for future use.

56

` `

Empty field for future use.

57

` `

Empty field for future use.

58

` `

Empty field for future use.

59

` `

Empty field for future use.

PCRF CDR variable part

The variable part is included after the fixed part and contains information about the PCC rules installation, usage reports and rule removal. The variable part of the CDR may include 2 parts for the same rule. The 1st part is for the usage reporting and the 2nd part is for the rule removal.

If there is no data to record, only the terminating element will be displayed.

It contains zero or more elements and a terminating element.

Each field in the variable part is separated by a semi-colon (;) whereas the elements are separated by an ampersand (&).
The terminating element is as follows (0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0).
Name Description

Rule Name

The name of the installed PCC rule.

Rule Precedence

The precedence number of the PCC rule.

Rule Type

The PCC rule type.

possible values
  • 0 = dynamic rule

  • 1 = pre-defined rule

  • 2 = rule-base

Rule Event Type

The type of event which applies to the variable part.

possible values
  • 0 = rule installation

  • 1 = delayed rule activated

  • 2 = rule usgae report

  • 3 = rule removal

Plan Name

The name of the plan from which the PCC rule came.

Service Id

An integer used to identify the service flow.

This is -1 for pre-defined rules.

Service Flow Status

The service flow status.

possible values
  • 0 = uplink enabled

  • 1 = downlink enabled

  • 2 = enabled

  • 3 = disabled

  • 4 = removed

This is -1 for pre-defined rules.

Minimum UL Bitrate

The minimum uplink speed in bps.

This is -1 if the bitrate is unspecified.

Maximum UL Bitrate

The maximum uplink speed in bps.

This is -1 if the bitrate is unspecified.

Minimum DL Bitrate

The minimum downlink speed in bps.

This is -1 if the bitrate is unspecified.

Maximum DL Bitrate

The maximum downlink speed in bps.

This is -1 if the bitrate is unspecified.

Rating Group

The rating group for the PCC rule.

This is -1 if the rating group is unspecified.

SP Usage Key

The SP Usage key for the PCC rule.

This field is blank if the key is not found for the specified Gx monitor key.

Gx Monitory Key

The Gx Monitory key for the PCC rule.

` Usage Metering Type`

The metering type for the rule.

possible values
  • 0 = volume

  • 1 = time

  • 2 = credit

  • 3 = combined (volume and time)

Usage Report Status

The usage report status code for the particular Gx monitory key.

returned from SPCM
  • 0 = All is okay.

  • 1 = Failure.

  • 2 = Subscriber profile service timeout.

  • 3 = SP Adaptor SPR connection pool timeout.

  • 4 = Invalid usage key.

  • 5 = Invalid plan state.

internal
  • 100 = response timeout

  • 101 = unknown monitory key

  • 102 = usage report suspended

  • 103 = invalid monitor state

  • 104 = zero bytes

internal-not-processed
  • -1 = usage report not processed

Likely due to an error while processing the preceding monitor key.

Usage Reported

Amount of usage reported by PCEF for this rule.

If rule-level usage is not applicable, this is 0.

Discount Rate

The percentage discount applied to the usage.

range
  • minimum = 0

  • maximum = 100

Discount Type

The discount type.

possible values
  • 0 = no discount

  • 1 = fixed discount

  • 2 = dynamic discount

  • 3 = scheduled discount

Usage Sent

The amount of usage sent to the SPCM for the rule. This includes any discounts applied to the reported usage.

If the rule-level usage report is inapplicable or if the usage was not sent to the SPCM, this field is 0.

PCRF CDR samples

This section shows PCRF samples including:


PCRF Start Session

PCRF start sample
00041000060200000001010001,28,1,tenant,0,0,-1,-2,0,0,1,1,27/01/2015,04:53:14,0,-
2,0.69.16.170,354720058972287,tangotelecom.com,0,4,16.0.0.52,202.134.10.29,1
23456,0001020304050607,,0,-1,,,192.168.1.236:3860:1453870394:0,,,0,04:53:14,0,04:53:14,-1,0,0,0,0,0,0,-1,-1,-1,-1,-1,4a00,,,,,,,,,,&0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0

PCRF Interim Install Rule

PCRF interim-install-rule sample
00041000080100000000000000,28,3,tenant,1,0,-1,-2,0,0,0,0,22/07/2014,10:54:20,1,-
2,85.0.0.0,013002002816836,tangotelecom.com,0,1002,16.0.0.52,0.69.16.11,9876
54,0001020304050607,123456ABCD01,0,-1,,,192.168.25.225:3869:1406022860:0,,,0,10:54:20,0,10:54:20,0,0,0,0,95,2,2000000,0,0,2000000,0,4a00,,,,,,,,,,&FACEBOOK;0;1;0;Addon1 Plan;-1;-1;65536;524288;131072;1048576;3;3-000002;01234567895f3235;-1;0;25;2;0&0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0

PCRF Interim Remove Rule

PCRF interim-remove-rule sample
00041000080100000000000000,28,3,tenant,1,0,-1,-2,0,0,0,0,22/07/2014,10:54:23,2,0,85.0.0.0,013002002816836,tangotelecom.com,0,1002,16.0.0.52,0.69.16.11,987654,0005060708091011,123456ABCD01,2,13,,,192.168.25.225:3869:1406022860:0,,,0,10
:54:20,3,10:54:20,-1,3,0,0,0,0,0,95,0,2000000,2000000,0,4a00,,,,,,,,,,&FACEBO
OK;-1;1;3;;-1;-1;-1;-1;-1;-1;-1;;;0;0;0;0;0&0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0

PCRF Stop Session

PCRF stop sample
00041000080100000000000000,28,2,tenant,1,0,-1,-2,0,0,1,0,22/07/2014,11:39:18,3,-
2,85.0.0.0,013002002816836,tangotelecom.com,0,1002,16.0.0.52,0.69.16.11,9876
54,0005060708091011,123456ABCD01,6,-1,,,192.168.25.225:3869:1406025555:0,,,0,11:39:15,3,11:39:15,0,3,0,0,0,0,0,95,0,2000000,170000,0,4a00,,,,,,,,,,&0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0

PCRF Start VoLTE

VoLTE Start sample
00041008080001080404040609090706,28,101,tenant,18871,0,-1,-2,0,0,1,1,16/06/2019,19:54:07,17,-2,10.184.1.132,3567580831350318,,5,1004,202.134.10.39,202.134.10.39,47002,8274f020139474f02001fd3c0b,,4,-1,3gpp-service.ims.icsi.mmtel,sip:+8801844469976@ims.mnc002.mcc470.3gppnetwork.org;2955792278;1021;404,pbugw5.robi.com.bd;4095672873;121831424;13872,092e4e4e,19:54:07,0,19:49:28,279,19:49:28,-1,279,0,0,0,0,0,-1,-1,-1,-1,-1,4200,,,,,,,,,&DED-AUDIO-RULE1-2;0;0;0;;-1;2;-1;29000;-1;29000;3260;;;-1;-1;0;0;0;0&0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0

PCRF Stop VoLTE

VoLTE Stop sample
00041008080001080404040609090706,28,102,tenant,18871,0,-1,1,0,0,1,1,16/06/2019,19:52:32,15,-2,10.184.1.132,3567580831350318,,5,1004,202.134.10.39,202.134.10.39,47002,8274f020139474f02001fd3c0b,,4,-1,3gpp-service.ims.icsi.mmtel,sip:+8801844469976@ims.mnc002.mcc470.3gppnetwork.org;2955765434;1020;404,pbugw5.robi.com.bd;4095672873;121831424;13872,092e4e4e,19:49:39,173,19:49:28,184,19:49:28,-1,184,0,0,0,0,0,-1,-1,-1,-1,-1,4200,,,,,,,,,&0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0

PCRF Interim VoLTE

VoLTE interim sample
00041008080001080404040609090706,28,103,tenant,18871,0,-1,-2,0,0,1,1,16/06/2019,19:52:32,16,-2,10.184.1.132,3567580831350318,,5,1004,202.134.10.39,202.134.10.39,47002,8274f020139474f02001fd3c0b,,4,-1,3gpp-service.ims.icsi.mmtel,sip:+8801844469976@ims.mnc002.mcc470.3gppnetwork.org;2955765434;1020;404,pbugw5.robi.com.bd;4095672873;121831424;13872,092e4e4e,19:49:39,173,19:49:28,184,19:49:28,-1,184,0,0,0,0,0,-1,-1,-1,-1,-1,4200,,,,,,,,,&0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0