Configuring ACS Rulebase in ACS Configuration Mode
This section describes how to create, configure, or delete an ACS rulebase. A rulebase is a collection of protocol rules to match a flow and associated actions to be taken for matching flow. The default rulebase is used when a subscriber/APN is not configured with a specific rulebase to use.
Rulebase configuration is the one that combines all the specified configurations together to construct the static and predefined PCC rules.
To configure the ACS rulebase, use the following sample configuration.
config
active-charging service service_name
rulebase rulebase_name
action priority action_priority { [ dynamic-only ]
| static-and-dynamic | timedef timedef_name ]
{ group-of-ruledefs ruledefs_group_name |
ruledef ruledef_name } charging-action charging_action_name
[ monitoring-key monitoring_key ] [ description description ] }
cca quota { holding-time holding_time content-id content_id
| retry-time retry_time [ max-retries retries ] }
cca quota time-duration algorithm { consumed-time seconds
[ plus-idle ] | continuous-time-periods seconds |
parking-meter seconds} [ content-id content_id]
credit-control-group cc_group_name
dynamic-rule order { always-first | first-if-tied }
egcdr threshold { interval interval
[ regardless-of-other-triggers ] | volume { downlink | total |
uplink } bytes }
route priority route_priority ruledef ruledef_name
analyzer { dns | file-transfer | ftp-control | ftp-data | h323
| http | imap | mipv6 | mms | pop3 | pptp | radius | rtcp | rtp
| rtsp | sdp | secure-http | sip [ advanced | basic-and-advanced
]
| smtp | tftp | wsp-connection-less | wsp-connection-oriented }
[ description description ]
tcp check-window-size
tcp mss tcp_mss { add-if-not-present | limit-if-present }
tcp packets-out-of-order { timeout timeout_duration|
transmit [ after-reordering | immediately ] }
end
NOTES:
-
rulebase rulebase_name : Specify the name of the ACS rulebase. rulebase_name must be an alphanumeric string of 1 to 63 characters.
-
action priority action_priority { [ dynamic-only ] | static-and-dynamic | timedef timedef_name ] { group-of-ruledefs ruledefs_group_name | ruledef ruledef_name } charging-action charging_action_name [ monitoring-key monitoring_key ] [ description description ] } : Configure the priority order in which ruledefs are matched and the associated charging action.
-
priority must be an integer in the range of 1–65535.
-
monitoring_key must be an integer in the range of 100000–4000000000.
Use the no action priority action_priority command to remove the configured ruledef, group-of-ruledefs, and charging action.
ImportantCurrently, the SMF does not support individual removal of ruledef, group-of-ruledefs, and charging action.
-
-
cca quota { holding-time holding_time content-id content_id | retry-time retry_time [ max-retries retries ] } : Configure the quota for online charging.
-
holding_time must be an integer in the range of 1–4000000000
-
content_id must be an integer in the range of 1–2147483647
-
retry_time must be an integer in the range of 0–86400
-
retries must be an integer in the range of 1–65535
-
-
cca quota time-duration algorithm { consumed-time consumed_time [ plus-idle ] | continuous-time-periods continuous_time | parking-meter parking_meter } [ content-id content_id ]
-
consumed_time must be an integer in the range of 1–4294967295 seconds
-
content-id must be an integer in the range of 1–2147483647
-
continuous_time must be an integer in the range of 1–4294967295 seconds
-
parking_meter must be an integer in the range of 1–4294967295 seconds
-
-
credit-control-group cc_group_name : Configure the online charging parameters used by this rulebase. cc_group_name must be an alphanumeric string of 1 to 63 characters.
-
dynamic-rule order : Configure the order of dynamic rule matching against the static rules in a rulebase.
-
egcdr threshold { interval interval [ regardless-of-other-triggers ] | volume { downlink | total | uplink } bytes } : Configure the threshold for offline charging.
-
interval must be an integer in the range of 60–40000000.
-
downlink must be an integer in the range of 100000–4000000000. Default: 4000000000.
-
uplink must be an integer in the range of 100000–4000000000. Default: 4000000000.
-
total must be an integer in the range of 100000–4000000000.
-
-
route priority route_priority ruledef ruledef_name analyzer { dns | file-transfer | ftp-control | ftp-data | h323 | http | imap | mipv6 | mms | pop3 | pptp | radius | rtcp | rtp | rtsp | sdp | secure-http | sip [ advanced | basic-and-advanced ] | smtp | tftp | wsp-connection-less | wsp-connection-oriented } [ description description ] : This command is used only on UPF.
-
route_priority must be an integer in the range of 0–65535.
-
ruledef_name must be an alphanumeric string of 1 to 63 characters.
-
-
tcp check-window-size : This command is used only on UPF.
-
tcp mss tcp_mss : This command is used only on UPF. tcp_mss must be an integer in the range of 496–65535.
-
tcp packets-out-of-order { timeout timeout_duration | transmit [ after-reordering | immediately ] } : This command is used only on UPF.
-
timeout_duration must be an integer in the range of 100–30000. Default value is 5000.
-