Quota Reset Results In Future date for "lastResetTime"
(Doc ID 3078887.1)
Last updated on APRIL 08, 2025
Applies to:
Oracle Communications Cloud Native Core - 5G - Version 23.4.3 and laterInformation in this document applies to any platform.
Need below configuration/steps to perform this scenario.
1.Data Limit Profile with specific day billing day.
2.Billing day change to current cycle (in Usage Mon settings in GUI)
3. Change reset period to Monthly in DLP configuration
4.Simple udr profile
5.Create gx session, grant quota from DLP
6.Change billing day in DLP config in GUI
7. Then send CCR_U
The patch request to use contains the different dates.
Diamcli Logs:
2025-02-20 10:38:15.036
Successfully sent request :
Diameter Message: CCR
Version: 1
Msg Length: 548
Cmd Flags: REQ,PXY
Cmd Code: 272
App-Id: 16777238
Hop-By-Hop-Id: 771888662
End-To-End-Id: 3448749039
Session-Id (263,M,l=31) = diamclipgw;1740032059;5
Origin-Host (264,M,l=18) = diamclipgw
Origin-Realm (296,M,l=26) = diamcli.oracle.com
Auth-Application-Id (258,M,l=12) = 16777238
Destination-Realm (283,M,l=18) = oracle.com
CC-Request-Type (416,M,l=12) = INITIAL_REQUEST (1)
CC-Request-Number (415,M,l=12) = 0
User-Equipment-Info (458,,l=44) =
User-Equipment-Info-Type (459,,l=12) = IMEISV (0)
User-Equipment-Info-Value (460,,l=23) = 123456789012346
Subscription-Id (443,M,l=40) =
Subscription-Id-Type (450,M,l=12) = END_USER_E164 (0)
Subscription-Id-Data (444,M,l=18) = 8123467991
Subscription-Id (443,M,l=40) =
Subscription-Id-Type (450,M,l=12) = END_USER_IMSI (1)
Subscription-Id-Data (444,M,l=19) = 10000000006
RAT-Type (1032,V,v=10415,l=16) = EUTRAN (1004)
Framed-IP-Address (8,M,l=12) = 10.0.0.13
Network-Request-Support (1024,VM,v=10415,l=16) = NETWORK_REQUEST_SUPPORTED (1)
IP-CAN-Type (1027,VM,v=10415,l=16) = THREEGPP_EPS (5)
QoS-Information (1016,VM,v=10415,l=44) =
APN-Aggregate-Max-Bitrate-DL (1040,V,v=10415,l=16) = 100000
APN-Aggregate-Max-Bitrate-UL (1041,V,v=10415,l=16) = 100000
Called-Station-Id (30,M,l=11) = ims
SGSN-MCC-MNC-3GPP (18,VM,v=10415,l=18) = 333444
AN-GW-Address (1050,V,v=10415,l=18) = 10.11.12.14
Default-EPS-Bearer-QoS (1049,V,v=10415,l=56) =
QoS-Class-Identifier (1028,VM,v=10415,l=16) = 9
Allocation-Retention-Priority (1034,V,v=10415,l=28) =
Priority-Level (1046,V,v=10415,l=16) = 1
Supported-Features (628,VM,v=10415,l=56) =
Vendor-Id (266,M,l=12) = 10415
Feature-List-ID (629,V,v=10415,l=16) = 1
Feature-List (630,V,v=10415,l=16) = 8
2025-02-20 10:38:15.775
Received a reply :
Diameter Message: CCA
Version: 1
Msg Length: 880
Cmd Flags: PXY
Cmd Code: 272
App-Id: 16777238
Hop-By-Hop-Id: 771888662
End-To-End-Id: 3448749039
Session-Id (263,M,l=31) = diamclipgw;1740032059;5
Result-Code (268,M,l=12) = DIAMETER_SUCCESS (2001)
Origin-Host (264,M,l=17) = pcrf-core
Origin-Realm (296,M,l=18) = oracle.com
Auth-Application-Id (258,M,l=12) = 16777238
CC-Request-Type (416,M,l=12) = INITIAL_REQUEST (1)
CC-Request-Number (415,M,l=12) = 0
Charging-Rule-Install (1001,VM,v=10415,l=300) =
Charging-Rule-Definition (1003,VM,v=10415,l=288) =
Charging-Rule-Name (1005,VM,v=10415,l=15) = 0_0
Flow-Information (1058,V,v=10415,l=72) =
Flow-Direction (1080,V,v=10415,l=16) = DOWNLINK (1)
Flow-Description (507,VM,v=10415,l=41) = permit out ip from any to any
Flow-Information (1058,V,v=10415,l=68) =
Flow-Direction (1080,V,v=10415,l=16) = UPLINK (2)
Flow-Description (507,VM,v=10415,l=40) = permit in ip from any to any
Flow-Status (511,VM,v=10415,l=16) = ENABLED (2)
QoS-Information (1016,VM,v=10415,l=88) =
QoS-Class-Identifier (1028,VM,v=10415,l=16) = 9
Allocation-Retention-Priority (1034,V,v=10415,l=60) =
Priority-Level (1046,V,v=10415,l=16) = 1
Preemption-Capability (1047,V,v=10415,l=16) = PREEMPTION_CAPABILITY_ENABLED (0)
Preemption-Vulnerability (1048,V,v=10415,l=16) = PREEMPTION_VULNERABILITY_DISABLED (1)
Precedence (1010,VM,v=10415,l=16) = 3000
Event-Trigger (1006,VM,v=10415,l=16) = QOS_CHANGE (1)
Event-Trigger (1006,VM,v=10415,l=16) = RAT_CHANGE (2)
Event-Trigger (1006,VM,v=10415,l=16) = TFT_CHANGE (3)
Event-Trigger (1006,VM,v=10415,l=16) = PLMN_CHANGE (4)
Event-Trigger (1006,VM,v=10415,l=16) = IP_CAN_CHANGE (7)
Event-Trigger (1006,VM,v=10415,l=16) = USAGE_REPORT (33)
QoS-Information (1016,VM,v=10415,l=44) =
APN-Aggregate-Max-Bitrate-DL (1040,V,v=10415,l=16) = 100000
APN-Aggregate-Max-Bitrate-UL (1041,V,v=10415,l=16) = 100000
Bearer-Control-Mode (1023,VM,v=10415,l=16) = UE_NW (2)
Default-EPS-Bearer-QoS (1049,V,v=10415,l=88) =
QoS-Class-Identifier (1028,VM,v=10415,l=16) = 9
Allocation-Retention-Priority (1034,V,v=10415,l=60) =
Priority-Level (1046,V,v=10415,l=16) = 1
Preemption-Capability (1047,V,v=10415,l=16) = PREEMPTION_CAPABILITY_ENABLED (0)
Preemption-Vulnerability (1048,V,v=10415,l=16) = PREEMPTION_VULNERABILITY_DISABLED (1)
Supported-Features (628,V,v=10415,l=56) =
Vendor-Id (266,M,l=12) = 10415
Feature-List-ID (629,V,v=10415,l=16) = 1
Feature-List (630,V,v=10415,l=16) = 8
Usage-Monitoring-Information (1067,V,v=10415,l=140) =
Monitoring-Key (1066,V,v=10415,l=26) = DataLimit_base
Granted-Service-Unit (431,,l=68) =
CC-Time (420,M,l=12) = 900
CC-Total-Octets (421,,l=16) = 48000
CC-Input-Octets (412,,l=16) = 24000
CC-Output-Octets (414,,l=16) = 24000
Usage-Monitoring-Level (1068,V,v=10415,l=16) = SESSION_LEVEL (0)
Quota-Consumption-Time (881,V,v=10415,l=16) = 86400
Diameter> ccr gx -request=update -calledstationid=ims -set events="USAGE_REPORT" -set umi1.key="DataLimit_base" -set umi1.used.total=2000 -sessionId=diamclipgw;1740032059;5
processing Gx CCR message for session: diamclipgw;1740032059;5
2025-02-20 10:39:57.992
Successfully sent request :
Diameter Message: CCR
Version: 1
Msg Length: 268
Cmd Flags: REQ,PXY
Cmd Code: 272
App-Id: 16777238
Hop-By-Hop-Id: 771888663
End-To-End-Id: 3448749040
Session-Id (263,M,l=31) = diamclipgw;1740032059;5
Origin-Host (264,M,l=18) = diamclipgw
Origin-Realm (296,M,l=26) = diamcli.oracle.com
Auth-Application-Id (258,M,l=12) = 16777238
Destination-Realm (283,M,l=18) = oracle.com
CC-Request-Type (416,M,l=12) = UPDATE_REQUEST (2)
CC-Request-Number (415,M,l=12) = 1
Destination-Host (293,M,l=17) = pcrf-core
Called-Station-Id (30,M,l=11) = ims
Event-Trigger (1006,VM,v=10415,l=16) = USAGE_REPORT (33)
Usage-Monitoring-Information (1067,V,v=10415,l=64) =
Monitoring-Key (1066,V,v=10415,l=26) = DataLimit_base
Used-Service-Unit (446,,l=24) =
CC-Total-Octets (421,,l=16) = 2000
##########UDR SAMPLE Profile before Update##########
{
"sm-data": {
"VendorSpecific-000111": {
"subscriber": {
"MSISDN": [
"10000000006"
],
"Custom1": "OCS",
"Custom7": "mk2",
"Custom6": "DataLimit_base",
"SequenceNumber": 5,
"IMSI": [
"10000000006"
],
"BillingDay": 3,
"Custom17": "Roaming_No_Throttle",
"Custom16": "OCS_Throttle"
}
},
"smPolicySnssaiData": {
"2-FFFFFF": {
"snssai": {
"sd": "FFFFFF",
"sst": 2
}
}
}
}
}
###############UDR Profile after UPDATE############
{
"sm-data": {
"umData": {
"policy-cfg-dlp-DataLimit_base": {
"allowedUsage": {
"duration": 9000,
"totalVolume": 58000,
"downlinkVolume": 30000,
"uplinkVolume": 30000
},
"resetCount": 0,
"limitId": "policy-cfg-dlp-DataLimit_base",
"lastResetTime": "2025-02-24T08:40:36Z", ------------------->last reset time
"type": "base",
"priority": 10000,
"excessUsageAllocated": false,
"resetDay": {
"time": "08:40:36",
"type": "SPECIFIC_DAY",
"day": 27
},
"resetPeriod": {
"period": "MONTHLY",
"maxNumPeriod": 50
},
"customAllowedUsage": {
"duration": 0,
"totalVolume": 2000,
"downlinkVolume": 0,
"uplinkVolume": 0
},
"name": "DataLimit_base",
"umLevel": "SESSION_LEVEL",
"resetTime": "2025-02-27T08:40:36Z",
"activationTime": "2025-02-20T10:38:59.836312385Z",
"monitoringKey": "DataLimit_base",
"umDataLimitSource": "CONFIGURATION"
}
},
"VendorSpecific-000111": {
"subscriber": {
"MSISDN": [
"10000000006"
],
"Custom1": "OCS",
"Custom7": "mk2",
"Custom6": "DataLimit_base",
"SequenceNumber": 5,
"IMSI": [
"10000000006"
],
"BillingDay": 3,
"Custom17": "Roaming_No_Throttle",
"Custom16": "OCS_Throttle"
}
},
"smPolicySnssaiData": {
"2-FFFFFF": {
"snssai": {
"sd": "FFFFFF",
"sst": 2
}
}
}
}
}
###########UDR connector logs##########
In logs we can see lastreset time, reset time , activationTime all three are different
{"instant":{"epochSecond":1740048042,"nanoOfSecond":633547981},"thread":"XNIO-1 task-2","level":"INFO","loggerName":"ocpm.pcf.service.ud.intf.restful.api.UserDataUniformApiController","message":"Received PATCH request, ueIdList: [imsi-10000000006, msisdn-8123467991], body: {\"umData\":{\"policy-cfg-dlp-DataLimit_base\":{\"priority\":10000,\"limitId\":\"policy-cfg-dlp-DataLimit_base\",\"monitoringKey\":\"DataLimit_base\",\"name\":\"DataLimit_base\",\"umLevel\":\"SESSION_LEVEL\",\"allowedUsage\":{\"duration\":9000,\"totalVolume\":58000,\"downlinkVolume\":30000,\"uplinkVolume\":30000},\"resetTime\":\"2025-02-27T08:40:36Z\",\"umDataLimitSource\":\"CONFIGURATION\",\"type\":\"base\",\"resetCount\":0,\"activationTime\":\"2025-02-20T10:38:59.836312385Z\",\"lastResetTime\":\"2025-02-24T08:40:36Z\",\"excessUsageAllocated\":false,\"resetDay\":{\"type\":\"SPECIFIC_DAY\",\"day\":27,\"time\":\"08:40:36\"},\"resetPeriod\":{\"period\":\"MONTHLY\",\"maxNumPeriod\":50},\"customAllowedUsage\":{\"duration\":0,\"totalVolume\":2000,\"downlinkVolume\":0,\"uplinkVolume\":0}}}}","endOfBatch":false,"loggerFqcn":"org.apache.logging.slf4j.Log4jLogger","threadId":3297,"threadPriority":5,"messageTimestamp":"2025-02-20T10:40:42.633+0000","ocLogId":"${ctx:ocLogId}"}
Goal
Problem Description
---------------------------------------------------
Hi, we've noticed that when we were testing quota reset the lastResetTime parameter is a future date. We'd need to know what does exactly "lastResetTime" parameter mean and how it is calculated by the cnPCRF .
It doesn't make any sense for us to have a lastResetTime with a future date as we interpret this as the date when the last reset was made (so a past date would be the only option). This behavior would make sense if the parameter was nextResetTime instead.
Solution
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Goal |
Solution |