FlexiNG 内容计费规则制作参考
FlexiNG内容计费规则制作参考
在FlexiNG中,有关内容计费方面有以下名词:
PCC rule,对应原来ISN的“service”
PCC filter,对应ISN的“Flow”和“URI”
PCC rule base,与APN绑定的一个PCC rule规则集合
建立内容计费规则,需要下面几个步骤: (1) 建立PCC rule
(2) 为每条PCC rule建立相应的filter(包含了四层和七层分析) (3) 向系统提交PCC rule。提交之后所做的修改才正式生效 (4) 建立一个PCC rule base
(5) 向PCC rule base添加相关的PCC rules
(6) 向系统提交PCC rule base。提交之后所做的修改才正式生效 (7) 将定义好的PCC rule base与对应的APN关联起来。
以上各步骤的所有命令均在NG的命令行环境fsclish下执行,简述如下,其中蓝色字体为可根据实际需要变更的内容,黑色字体为fsclish的关键字,不可变更。因命令行比较长,每条命令根据字段用“\\”符号分隔,实际输入时可以按照此多行方式输入,也可以在一行上输入。
更详细的配置参考,请参阅FlexiNG的文档:
? FlexiNG User Guide
? FlexiNG Service Awareness
1. 建立PCC rule
例子:建立“手机导航”的PCC rule(service)
add ng service-awareness pcc-rule SJDH \\ rating-group 1040000002 \\ service-id 1040000002 \\ pcc-rule-action charge-v \\ pcc-rule-state enable \\ precedence 2390 \\
pcc-rule-identifier 2390
以上几个字段只是常用的字段,NG还支持其他如service-cdr-generation-status、redirect-uri等字段,详细内容可以参考FlexiNG User Guide。
Author: jun1.liu@nsn.com
FlexiNG 内容计费规则制作参考
使用show、delete、set命令代替add可以执行显示、删除和修改pcc rule的操作。 2. 为PCC rule建立相应的filter
例子:为“手机导航”增加两个四层流量的filter(flow)
set ng service-awareness pcc-rule SJDH filter SJDH_1020 \\ filter-state enable \\ precedence 1020 \\ protocol-id 0 \\
destination-address 10.0.0.128/25 \\
destination-port-list 80,8080,9200,9201 \\ host-name \
set ng service-awareness pcc-rule SJDH \\ filter SJDH_1100 \\ filter-state enable \\ precedence 1100 \\ protocol-id 0 \\
destination-address 10.0.0.128/25 \\
destination-port-list 80,8080,9200,9201 \\ host-name \
一个增加7层分析的例子:
set ng service-awareness pcc-rule MDO \\ filter MDO_1010 \\
filter-state enable \\ precedence 1010 \\ protocol-id 0 \\
destination-address 10.0.0.128/25 \\
destination-port-list 80,8080,9200,9201 \\ host-name \ l7-uri \
一个增加xhost-online的例子:
set ng service-awareness pcc-rule SJYD \\ filter SJYD_2010 \\ filter-state enable \\ precedence 2010 \\ protocol-id 0 \\
destination-address 10.0.0.128/25 \\ destination-port-list 80,8080 \\
l7-header \
Author: jun1.liu@nsn.com
FlexiNG 内容计费规则制作参考
以上几个字段只是常用的字段,NG还支持其他如mpls-flow-lable,toc-tc等字段,详细内容可以参考FlexiNG User Guide。
使用show、unset命令代替set可以执行显示、修改或删除pcc rule filter的操作
3. 向系统提交PCC rule。
例子:提交“手机导航”的pcc rule
set ng service-awareness commit-pcc-rule SJDH 4. 建立一个PCC rule base
新建一个名为“cmwap-base-1”的rule base
add ng service-awareness pcc-rule-base cmwap-base-1 \\ pcc-rule-base-identifier 10 \\ pcc-rule-name cmwap_default_3 5. 向PCC rule base添加相关的PCC rule
例子:向cmwap-base-1添加多条已定义好的pcc rule:
set ng service-awareness pcc-rule-base cmwap-base-1 pcc-rule-name AbnormalSig_1 set ng service-awareness pcc-rule-base cmwap-base-1 pcc-rule-name cmwap_default_1 set ng service-awareness pcc-rule-base cmwap-base-1 pcc-rule-name MMS_MO
6. 向系统提交PCC rule base。
向系统提交cmwap-base-1 rule base.
set ng service-awareness commit-pcc-rule-base cmwap-base-1
7. 将定义好的PCC rule base与对应的APN关联起来。
例子:将cmwap-base-1与cmwap的APN session profile关联起来
#首先将cmwap的APN(session profile)设为离线状态
set ng session-profile cmwap-session-profile administrative-state disable
#将rule base与APN关联
set ng session-profile cmwap-session-profile pcc-rule-base-name cmwap-base-1
#将cmwap的APN(session profile)设为enable状态
set ng session-profile cmwap-session-profile administrative-state enable
Author: jun1.liu@nsn.com