For feedback and comments: |
documentation.feedback@alcatel-lucent.com |
• Figure 186: HTTP Notification –SetupFigure 187: Notification Message Example – Quota 80%configureapplication-assurance group 1http-notification "notification-quota-100" createdescription "100% Usage Cap Notification"script-url "http://192.168.150.251/In-Browser-Notification/script/quota-100.js"template 1interval 15no shutdownexitconfigureapplication-assurance group 1http-notification "notification-quota-80" createdescription "80% Usage Cap Notification"script-url "http://192.168.150.251/In-Browser-Notification/script/quota-80.js"template 1interval 15no shutdownexitconfigureapplication-assurance group 1:1 policyapp-service-optioncharacteristic "quota-message-notification" createvalue "100"value "80"value "disabled"default-value "disabled"exitexitapp-profile "1-1/Default" createdivertexitThe ASO characteristic quota-message values of 100 and 80 enable the App-Qos-Policy (AQP) notification-quota-100 and notification-quota-80 as defined below:configureapplication-assurance group 1:1 policy app-qos-policyentry 1000 creatematchcharacteristic "quota-message-notification" eq "100"exitactionhttp-notification "notification-quota-100"exitno shutdownexitentry 1100 creatematchcharacteristic "quota-message-notification" eq "80"exitactionhttp-notification "notification-quota-80"exitno shutdownexitNAS-Port-Id = "1/1/5:4088"Framed-IP-Address = 192.168.211.30Alc-AA-App-Service-Options = "quota-message-notification=80"Alc-App-Prof-Str = "1-1/Default"Before the subscriber usage cap limit is reached, and before the RADIUS CoA message is received, the subscriber ASO parameter flag quota-message-notification is set to its default value disabled and therefore no App QoS Policy is triggered.A:PE# show application-assurance group 1:1 aa-sub esm "sub1" summary===============================================================================Application-Assurance Subscriber Summary (realtime)===============================================================================AA-Subscriber : sub1 (esm)ISA assigned : 1/2App-Profile : 1-1/DefaultApp-Profile divert : YesCapacity cost : 1Aarp Instance Id : N/AHTTP URL Parameters : (Not Specified)Last HTTP Notified Time : N/A-------------------------------------------------------------------------------Traffic Octets Packets Flows-------------------------------------------------------------------------------... ...-------------------------------------------------------------------------------Application Service Options (ASO)-------------------------------------------------------------------------------Characteristic Value Derived from-------------------------------------------------------------------------------quota-message-notification disabled default===============================================================================After the RADIUS CoA message is sent, the subscriber ASO characteristic quota-message-notification value is set to 80, the subscriber-related App QoS Policy entry 1100 now matches for this subscriber:A:PE# show application-assurance group 1:1 aa-sub esm "sub1" summary===============================================================================Application-Assurance Subscriber Summary (realtime)===============================================================================AA-Subscriber : sub1 (esm)ISA assigned : 1/2App-Profile : 1-1/DefaultApp-Profile divert : YesCapacity cost : 1Aarp Instance Id : N/AHTTP URL Parameters : (Not Specified)Last HTTP Notified Time : N/A-------------------------------------------------------------------------------Traffic Octets Packets Flows-------------------------------------------------------------------------------... ...-------------------------------------------------------------------------------Application Service Options (ASO)-------------------------------------------------------------------------------Characteristic Value Derived from-------------------------------------------------------------------------------quota-message-notification 80 dyn-override===============================================================================A:PE# show application-assurance group 1:1 aa-sub esm "sub1" summary===============================================================================Application-Assurance Subscriber Summary (realtime)===============================================================================AA-Subscriber : sub1 (esm)ISA assigned : 1/2App-Profile : 1-1/DefaultApp-Profile divert : YesCapacity cost : 1Aarp Instance Id : N/AHTTP URL Parameters : (Not Specified)Last HTTP Notified Time : 2014/06/24 15:35:49
-------------------------------------------------------------------------------A:PE# show application-assurance group 1 http-notification "notification-quota-80"===============================================================================Application Assurance Group 1 HTTP Notification "notification-quota-80"===============================================================================Description : 80% Usage Cap NotificationTemplate : 1 - Javascript-url with subId and optional Http-Url-ParamScript URL : http://192.168.150.251/In-Browser-Notification/script/quota-80.jsAdmin Status : UpAQP Ref : YesInterval : 15 minutes-------------------------------------------------------------------------Group Notified Notification SelectionCriteria Not Matched-------------------------------------------------------------------------1:1 1 101:2 0 01:3 0 0-------------------------------------------------------------------------Total 1 10-------------------------------------------------------------------------===============================================================================http://1.1.1.1/notification.js?SubId=sub1&var=&message=quota80
configureapplication-assurance group 1http-notification "in-browser-notification" createdescription "Default HTTP Notification Policy"script-url "http://192.168.150.251/In-Browser-Notification/script/notification-select.php"template 1interval 15no shutdownexitNote: This example does not describe the content of the notification-select.php file used to parse the URL parameters.configureapplication-assurance group 1:1 policyapp-service-optioncharacteristic "in-browser-notification"value "enabled"value "disabled"default-value "disabled"exitThe ASO characteristic in-browser-notification value enabled is used to enable the app-qos-policy matching the http-notification policy in-browser-notification as shown below:configureapplication-assurance group 1:1 policy app-qos-policyentry 1300 creatematchcharacteristic "in-browser-notification" eq "enabled"exitactionhttp-notification "in-browser-notification"exitno shutdownThe following RADIUS CoA message is used to modify the ASO characteristic of a residential subscriber and assign a specific Http-Url-Param VSA. The in-browser-notification ASO characteristic with value enabled is dynamically assigned to the subscriber along with the Http-Url-Param &message=quota80:NAS-Port-Id = "1/1/5:4088"Framed-IP-Address = 192.168.211.30Alc-AA-App-Service-Options = "in-browser-notification=enabled"Alc-AA-Sub-Http-Url-Param = "&message=quota80"Alc-App-Prof-Str = "1-1/Default"http://192.168.150.251/In-Browser-Notification/script/notification-select.php?SubId=sub1&var=&message=quota80
Both the in-browser-notification ASO characteristic with value enabled and the HTTP-Url-Param VSA can be shown as follows:A:PE# show application-assurance group 1:1 aa-sub esm "sub1" summary===============================================================================Application-Assurance Subscriber Summary (realtime)===============================================================================AA-Subscriber : sub1 (esm)ISA assigned : 1/2App-Profile : 1-1/DefaultApp-Profile divert : YesCapacity cost : 1Aarp Instance Id : N/AHTTP URL Parameters : &message=quota80Last HTTP Notified Time : N/A-------------------------------------------------------------------------------Traffic Octets Packets Flows-------------------------------------------------------------------------------... ...-------------------------------------------------------------------------------Application Service Options (ASO)-------------------------------------------------------------------------------Characteristic Value Derived from-------------------------------------------------------------------------------in-browser-notification enabled dyn-overridequota-message-notification disabled default===============================================================================A:PE## tools dump application-assurance group 1 http-url-param-list-------------------------------------------------------------------------------Application-Assurance Subscriber HTTP URL parameters for Group 1:-------------------------------------------------------------------------------==============================================Http Url Parameter Sub Usage----------------------------------------------"&message=quota80" 1==============================================Total entries displayed 1