# PCF Configuration PCF configuration files include: - pcf/pcf1/config/pcf.conf - pcf/pcf1/xml/predefined-sm-policy-rules.xml - pcf/pcf1/xml/am-policy-data.xml ## pcf.conf ```xml ``` ### N7 Interface (HTTP2) - N7 Local HTTP2 Client IP: local IP address. - N7 Local HTTP2 Client Port: local port, default 7081. - SMF HTTP2 Server IP: remote IP address. - SMF HTTP2 Server Port: remote port, default 7081. - N7 Local HTTP2 Server IP: local IP address. - N7 Local HTTP2 Server Port: local port, default 7081. ### N15 Interface (HTTP2) - N15 Local HTTP2 Server IP: local IP address. - N15 Local HTTP2 Server Port: local port, default 7081. ### XML Files - All the Policy Decision with Session Rule and PCC rule are configurable in ../pcf/pcf1/xml/predefined-sm-policy-rules.xml. ## predefined-sm-policy-rules.xml 在 PDU Session 建立期间,SMF 将向 PCF 提供该 PDU Session 的信息(e.g. DNN、TAC 和 SSC),然后 PCF 响应 authorized Session Rule 以及一些配置在 predefined-sm-policy-rules.xml 中的 PCC Rules。PDU Session 建立后,管理员可以使用 PCF CLI 对 PCC Rule 进行操作(创建或删除)。 For instance, if dnn=”default” is selected in the dnn.xml for a UE, the UE will be set to use the rule which is corresponding to this dnn. It is mapped by choosing the sessionRuleId=”1” as corr-id=”1” for dnn=”default”. The corr-id and sessionRuleId are both integer values. The number of flows to be created depends on the number of flows being configured under Decision. When sessionRuleId=”1” is selected, its corresponding pccRule list for each flow and then its refQosData will be used. Besides, ulTspId has been added to support traffic steering for this specific flow. If this parameter is being left out or the value left empty, then the traffic steering policy will not be sent to the UPF. Under QoSData, maxbrUl and maxbrDl are in megabits per second. If qos_5qi refers to non-GBR, these two values must be zero or left out. Under SessionRule, sessionAmbrUl and sessionAmbrDl are in megabits per second. ```xml ``` ## am-policy-data.xml ```xml ``` ## TS 问题:SMF 获取 PCF policy 失败。 - SMF ``` UID466920100001102 resourceUri: not found!! ``` - PCF ``` UID466920100001102 Fail to get policy sst=2 dnn= public tac= 51 from PolicyData rep. ``` 诊断:UE 的 sst、dnn 等签约数据,没有配置在 `` 中。