5G核心网学习平台
PCF 实践篇 #22

PCF支持事件订阅:信用管理会话故障(CM_SES_FAIL)

《5G核心网原理与实践》实践篇 · PCF 网元功能

PCF支持事件订阅:信用管理会话故障(CM_SES_FAIL)

爱卫生

2023年08月19日 16:40

1 测试目的

- 验证PCF支持到SMF的事件订阅:信用管理会话故障(CM_SES_FAIL)事件。

2 测试步骤

1)PCF上配置了事件订阅策略。

2)UE发起PDU会话建立流程,SMF请求PCF提供sm-policy。

3)PCF给SMF下发事件订阅:CM_SES_FAIL事件。

4)将SMF到CHF的N40会话断开。

5)触发SMF向PCF发送报告。

3 主要的检查点:

1)在PDU会话建立流程中,SMF通过N7接口向PCF请求策略(Npcf SMPolicyControl Create消息),在

响应消息中,PCF下发了CM_SES_FAIL事件订阅参数。

2)N40会话断开,触发SMF向PCF发送报告。在报告中包含CM_SES_FAIL触发器。

4 log

4.1)PCF下发的策略中订阅的事件:CM_SES_FAIL

4.2)当N40会话失效时,触发SMF向PCF发送报告。

检查报告消息中,携带了以下参数:

- repPolicyCtrlReqTriggers":["CM_SES_FAIL"];

- ruleReports:包含失效的pccrule的id、rule的状态ruleStatus、以及failurecode是CM_AUTH_REJ。

测试通过。

5 规范

CM_SES_FAIL事件在29.512中定义。

CM_SES_FAIL:Credit management session failure.

原文:

If the "CM_SES_FAIL" is provisioned, when the SMF receives a detected transient/permanent failure

from the CHF, the SMF shall include the "CM_SES_FAIL" within the "repPolicyCtrlReqTriggers"

attribute. If the failure does not apply to all PCC Rules, the affected PCC Rules are indicated within the

"ruleReports" attribute, with the "ruleStatus" attribute set to value ACTIVE and the "failureCode" attribute

set to the corresponding value as reported by the CHF; otherwise if the failure applies to the session,

the "creditManageStatus" shall be set to the corresponding value as reported by the CHF.

翻译:

如果提供了"CM_SES_FAIL",当SMF从CHF收到检测到的瞬时/永久故障时,SMF应

在"repPolicyCtrlReqTriggers"属性中包含"CM_SES_FAIL"。如果故障不适用于所有PCC规则,则

在"ruleReports"属性中指出受影响的PCC规则,并将"ruleStatus"属性设置为ACTIVE值,

将"failureCode"属性设置为CHF报告的相应值;否则,如果故障适用于会话,则应

将"creditManageStatus"设置为CHF报告的相应值。

← 返回 PCF 实践篇