As shown in Figure 188, Gx is placed between a policy server Policy and Charging Rule Function (PCRF) and a traffic forwarding node Policy and Charging Enforcement Function (PCEF) that enforces rules set by the policy server.
NOTE: An ADC-Rule-Name has to start with “
aa-functions” when it contains an Alc-AA-Functions AVP
.
Figure 195 illustrates the different messaging/call flows involved in application level usage monitoring. Details of the different supported AVPs used in these messages are illustrated later.
As shown in Figure 195, (T=7), AA sends a Credit Control Request (CCR_ message) with a "USAGE_REPORT" Event-Trigger AVP to the PCRF when the usage counter reaches the configured usage monitoring threshold for a given subscriber (and given application group). AA counters are reset (to zero) when the monitoring threshold is reached (and an event is sent back to the PCRF). The counter(s) however does not stop counting newly arriving traffic. AA counters only include “admitted” packets. Any packets that were discarded by AA due to, for example, policing actions are not counted for usage-monitoring purposes.
ADC-Rule-Install ::= < AVP Header: 1092 >
*[ ADC-Rule-Definition ]
*[ ADC-Rule-Name ]
ADC-Rule-Definition ::= < AVP Header: 1094 >
{ ADC-Rule-Name }
[ TDF-Application-Identifier ]; AA app/app-grp/chrg-grp
[ Monitoring-Key ] ];
*[ AVP ]
[AA-specific_attributes; vnd=ALU] Vendor-specific AVP of type ‘group’
[AA-profile-name; vnd=ALU] //application assurance profile
[AA-Characteristic; vnd=ALU] ; < type group – optional >
[Name; vnd=ALU] ; type string
[Value; vnd=ALU] ; type string
Usage-Monitoring-Information::= < AVP Header: 1067 >
[ Monitoring-Key ]
0,2[ Granted-Service-Unit ]
Granted-Service-Unit ::= < AVP Header: 431 >
[ CC-Total-Octets ]
[ CC-Input-Octets ]
[ CC-Output-Octets ]
0,2[ Used-Service-Unit ]
Used-Service-Unit ::= < AVP Header: 446 >
[ CC-Total-Octets ] ;
[ CC-Input-Octets ]
[ CC-Output-Octets ]
[ Usage-Monitoring-Level ]
; ADC_RULE_LEVEL (2)
[ Usage-Monitoring-Report ]
; immediate report -- USAGE_MONITORING_REPORT_REQUIRED (0)
[ Usage-Monitoring-Support ]
; to disable : USAGE_MONITORING_DISABLED (0)
configure
card 1
card-type iom3-xp
mda 1
mda-type m20-1gb-xp-sfp
no shutdown
exit
mda 2
mda-type isa-aa
no shutdown
exit
no shutdown
exit
card 3
card-type iom3-xp
mda 1
mda-type isa-aa
no shutdown
exit
mda 2
mda-type isa-aa
no shutdown
exit
no shutdown
exit
configure
aaa
diameter-peer-policy "ppol" create
applications gx
connection-timer 5
origin-host "router.workstation"
origin-realm "alcatel-lucent.com"
transaction-timer 5
watchdog-timer 10
peer "ppeer0" create
address 10.1.0.10
destination-host "primary-pcrf.alcatel-lucent.com"
destination-realm "alcatel-lucent.com"
no shutdown
exit
exit
exit
The diameter peer policy “ppol” is then referenced under subscriber management.
configure
subscriber-mgmt
diameter-application-policy "diamAppPlcy" create
application gx
diameter-peer-policy "ppol"
exit
Then the created subscriber management policy “diamAppPlcy” is applied to the subscriber interface.
configure
service
customer 1 create
description "Default customer"
exit
ies 1 customer 1 vpn 1 create
description "Default Ies description for service id 1"
subscriber-interface "ies-1-172.16.0.0" create
address 172.16.0.0/12
group-interface "grp-1-35782656-1" create
dhcp
server 172.16.200.200
trusted
lease-populate 2000
gi-address 172.16.0.0
no shutdown
exit
diameter-application-policy "diamAppPlcy"
sap 1/1/4:1 create
description "sap-grp-1"
sub-sla-mgmt
def-sub-profile "sub_prof"
def-sla-profile "sla_prof"
def-app-profile "app_prof_1"
sub-ident-policy "sub_ident_A_1"
multi-sub-sap 2
no shutdown
exit
exit
exit
exit
service-name "ACG Ies 1"
no shutdown
exit
*A:BNG-1# show aaa diameter-peer-policy "ppol"
===============================================================================
Diameter Peer Policy : ppol
===============================================================================
Last Mgmt Change : 05/30/2014 18:53:38
-------------------------------------------------------------------------------
Diameter Config Values
-------------------------------------------------------------------------------
Origin Host : router.workstation.be
Origin Realm : lucent.com
Connection Timer : 5 Source Address : 0.0.0.0
Transaction Timer : 5 Router : Base
Watchdog Timer : 10
Vendor Support : 3GPP (default)
Python Policy : N/A
-------------------------------------------------------------------------------
Peer Name Oper PSM State Susp Cooldown Pref Order Pri/Sec
-------------------------------------------------------------------------------
ppeer0 Yes I-Open No - 50 1 Primary
===============================================================================
*A:BNG-1#
*A:BNG-1# show aaa diameter-peer-policy "ppol" peer "ppeer0" statistics
===============================================================================
Diameter Peer Policy : ppol (statistics)
===============================================================================
Diameter Peer : ppeer0
time statistics cleared : 05/30/2014 18:53:38
-------------------------------------------------------------------------------
Client initiated tx/rx Server initiated tx/rx
-------------------------------------------------------------------------------
TCP Send Failed : 0 TCP Send Failed : 0
Diam Rx Drop Count (Resps): 0 Diam Rx Drop Count (Reqs) : 0
Diam Tx Requests : 313 Diam Rx Requests : 204
Diam Rx Responses : 313 Diam Tx Responses : 204
Pending Messages : 0
Request Timeouts : 0
-------------------------------------------------------------------------------
Diameter message breakdown
-------------------------------------------------------------------------------
CCR initial Tx : 111 CCA initial Rx : 111
CCR update Tx : 88 CCA update Rx : 88
CCR terminate Tx : 11 CCA terminate Rx : 11
CER Tx : 1 CEA Rx : 1
DWR Tx : 102 DWA Rx : 102
DWR Rx : 0 DWA Tx : 0
ASR Rx : 0 ASA Tx : 0
RAR Rx : 204 RAA Tx : 204
DPR Tx : 0 DPA Rx : 0
DPR Rx : 0 DPA Tx : 0
===============================================================================
*A:BNG-1#
configure
application-assurance
group 129:34883 create
policy
begin
app-service-options
characteristic "permitDNS" persist-id 1 create
value "no"
value "yes"
default-value "yes"
exit
characteristic "permitRDP" persist-id 2 create
value "no"
value "yes"
default-value "yes"
exit
characteristic "permitHTTP" persist-id 3 create
value "no"
value "yes"
default-value "yes"
exit
exit
app-profile "app_prof_1" create
description "Application Profile Id app_prof_1"
divert
exit
app-profile "app_prof_2" create
description "Application Profile Id app_prof_2"
divert
exit
configure isa
application-assurance-group 129 create
primary 3/2
backup 1/2
partitions
divert-fc be
no shutdown
exit
configure
application-assurance
group 129:34883 create
policy
begin
charging-group "0_rated" create
export-id 1
exit
charging-group "default_charge_group" create
export-id 255
exit
default-charging-group "default_charge_group"
app-group "Other" create
export-id 8
exit
app-group "Peer to Peer" create
export-id 3
exit
app-group "Remote Connectivity" create
export-id 4
exit
app-group "Unknown"
charging-group "0_rated"
export-id 1
exit
app-group "Web" create
export-id 10
exit
application "DNS" create
description "default-description for application DNS"
app-group "Other"
export-id 12
exit
application "BitTorrent" create
app-group "Peer to Peer"
export-id 3
exit
application "HTTP" create
description "default-description for application HTTP"
app-group "Web"
export-id 26
exit
application "RDP" create
description "default-description for application RDP"
app-group "Remote Connectivity"
export-id 61
exit
application "Unknown"
charging-group "0_rated"
export-id 1
exit
exit
commit
exit
exit
exit
configure
application-assurance
group 129:34883
policy
begin
app-filter
entry 6 create
description "default-description for AppFilter entry 6"
protocol eq "rdp"
ip-protocol-num eq tcp
application "RDP"
no shutdown
exit
entry 9 create
description "default-description for AppFilter entry 9"
protocol eq "dns"
ip-protocol-num eq udp
server-port eq range 53 55
application "DNS"
no shutdown
exit
entry 20 create
description "default-description for AppFilter entry 20"
protocol eq "bittorrent"
ip-protocol-num eq tcp
application "BitTorrent"
no shutdown
exit
entry 38 create
description "default-description for AppFilter entry 38"
protocol eq "http"
ip-protocol-num eq tcp
server-port gt 8738
application "HTTP"
no shutdown
exit
exit
commit
exit
exit
exit
configure
application-assurance
group 129:34883
policy
begin
app-qos-policy
entry 2 create
match
application eq "DNS"
characteristic "permitDNS" eq "no"
exit
action
drop
exit
no shutdown
exit
entry 3 create
match
application eq "HTTP"
characteristic "permitHTTP" eq "no"
ip-protocol-num neq 0
exit
action
drop
exit
no shutdown
exit
entry 4 create
match
application eq "RDP"
app-group eq "Remote Connectivity"
characteristic "permitRDP" eq "no"
ip-protocol-num neq udp
exit
action
drop
exit
no shutdown
exit
exit
commit
exit
exit
exit
*A:BNG-1>show>app-assure>group# aa-sub esm "sub_172.16.0.2" summary
===============================================================================
Application-Assurance Subscriber Summary (realtime)
===============================================================================
AA-Subscriber : sub_172.16.0.2 (esm)
ISA assigned : 3/2
App-Profile : app_prof_1
App-Profile divert : Yes
Capacity cost : 1
Aarp Instance Id : N/A
HTTP URL Parameters : (Not Specified)
Last HTTP Notified Time : N/A
-------------------------------------------------------------------------------
Traffic Octets Packets Flows
-------------------------------------------------------------------------------
From subscriber:
Admitted 0 0 0
Denied 0 0 0
Active flows 0
To subscriber:
Admitted 0 0 0
Denied 0 0 0
Active flows 0
Flow counts:
Terminated 0
Short duration 0
Med duration 0
Long duration 0
Total flow duration : 0 seconds
-------------------------------------------------------------------------------
Top App-Groups Octets Packets Flows
-------------------------------------------------------------------------------
None
-------------------------------------------------------------------------------
Application Service Options (ASO)
-------------------------------------------------------------------------------
Characteristic Value Derived from
-------------------------------------------------------------------------------
permitDNS yes default
permitRDP yes default
permitHTTP yes default
===============================================================================
*A:BNG-1>show>app-assure>group#
*A:BNG-1>show>app-assure>group# aa-sub esm "sub_172.16.0.2" summary
===============================================================================
Application-Assurance Subscriber Summary (realtime)
===============================================================================
AA-Subscriber : sub_172.16.0.2 (esm)
ISA assigned : 3/2
App-Profile : app_prof_2
App-Profile divert : Yes
Capacity cost : 1
Aarp Instance Id : N/A
HTTP URL Parameters : (Not Specified)
Last HTTP Notified Time : N/A
-------------------------------------------------------------------------------
Traffic Octets Packets Flows
-------------------------------------------------------------------------------
From subscriber:
Admitted 0 0 0
Denied 0 0 0
Active flows 0
To subscriber:
Admitted 0 0 0
Denied 0 0 0
Active flows 0
Flow counts:
Terminated 0
Short duration 0
Med duration 0
Long duration 0
Total flow duration : 0 seconds
-------------------------------------------------------------------------------
Top App-Groups Octets Packets Flows
-------------------------------------------------------------------------------
None
-------------------------------------------------------------------------------
Application Service Options (ASO)
-------------------------------------------------------------------------------
Characteristic Value Derived from
-------------------------------------------------------------------------------
permitDNS no dyn-override
permitRDP yes default
permitHTTP no dyn-override
===============================================================================
config
application-assurance
group 129:34883
statistics
aa-sub
usage-monitoring
app-group "Unknown" export-using accounting-policy
radius-accounting-policy
charging-group "0_rated" export-using accounting-policy
radius-accounting-policy
charging-group "default_charge_group" export-using
accounting-policy
radius-accounting-policy
application "BitTorrent" no-export
exit
The operator can display the number of usage monitoring rules for a given subscriber. This is shown below after the ESM subscriber is created but before any ADC rules are installed for usage-monitoring by PCRF, so AA reports that no rules apply (“0”).
*A:BNG-1>show>app-assure>group# aa-sub esm "alcatel_A_1" usage-monitor status
===============================================================================
Application-Assurance Subscriber "alcatel_A_1" (esm)
Usage Monitor Status
===============================================================================
Type Name Oper Status
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
No. of rules: 0
===============================================================================
*A:BNG-1>show>app-assure>group#
*A:BNG-1>show>app-assure>group# aa-sub esm "alcatel_A_1" usage-monitor status
===============================================================================
Application-Assurance Subscriber "alcatel_A_1" (esm)
Usage Monitor Status
===============================================================================
Type Name Oper Status
-------------------------------------------------------------------------------
application BitTorrent active
-------------------------------------------------------------------------------
No. of rules: 1
===============================================================================
*A:BNG-1>show>app-assure>group#
*A:BNG-1>show>app-assure>group# aa-sub esm "alcatel_A_1" usage-monitor count
===============================================================================
Application-Assurance Subscriber "alcatel_A_1" (esm)
Usage Monitor Credit Statistics
===============================================================================
Application: "BitTorrent"
Direction Status Granted Used % Used
-------------------------------------------------------------------------------
to sub valid 1378168 0 0%
from sub valid 1381148 0 0%
both valid 18446744073709551614 0 0%
===============================================================================
*A:BNG-1>show>app-assure>group#
*A:BNG-1>show>app-assure>group# aa-sub esm "alcatel_A_1" usage-monitor count
===============================================================================
Application-Assurance Subscriber "alcatel_A_1" (esm)
Usage Monitor Credit Statistics
===============================================================================
Application: "BitTorrent"
Direction Status Granted Used % Used
-------------------------------------------------------------------------------
to sub valid 1378168 137816 10%
from sub valid 1381148 13781 1%
both valid 18446744073709551614 151597 5%
===============================================================================
*A:BNG-1>show>app-assure>group#
*A:BNG-1>show>app-assure>group# aa-sub esm "alcatel_A_1" usage-monitor status
===============================================================================
Application-Assurance Subscriber "alcatel_A_1" (esm)
Usage Monitor Status
===============================================================================
Type Name Oper Status
-------------------------------------------------------------------------------
application BitTorrent active
charging-group 0_rated inactive
charging-group default_charge_group active
-------------------------------------------------------------------------------
No. of rules: 3
===============================================================================
*A:BNG-1>show>app-assure>group#
*A:BNG-1>show>app-assure>group# aa-sub esm "alcatel_A_1" usage-monitor count
===============================================================================
Application-Assurance Subscriber "alcatel_A_1" (esm)
Usage Monitor Credit Statistics
===============================================================================
Application: "BitTorrent"
Direction Status Granted Used % Used
-------------------------------------------------------------------------------
to sub valid 1378168 137816 10%
from sub valid 1381148 13781 1%
both valid 18446744073709551614 151597 5%
-------------------------------------------------------------------------------
Charging-Group: "0_rated"
Direction Status Granted Used % Used
-------------------------------------------------------------------------------
to sub invalid n/a 0 n/a
from sub invalid n/a 0 n/a
both invalid n/a 0 n/a
-------------------------------------------------------------------------------
Charging-Group: "default_charge_group"
Direction Status Granted Used % Used
-------------------------------------------------------------------------------
to sub valid 1000000 1378084 100%
from sub invalid n/a 1574 n/a
both invalid n/a 1379658 n/a
===============================================================================
*A:BNG-1>show>app-assure>group#