Example: Video-on-Demand Service Definition

The following example shows a sample service definition macro file that creates a video-on-demand service—the service provides bandwidth that meets the needs of video streams.

Requirements

This example uses the following software and hardware components:

Overview

The video-on-demand service definition creates the bandwidth towards the subscriber and parameterizes the source of the video feed.

Creating a Video-on-Demand Service

Step-by-Step Procedure

This example illustrates how to create a video-on-demand service:

Note: Commented text explains the parameterized values in the example of the service definition macro file. Each example is followed by examples of RADIUS information and the CLI command that you can use to activate a subscriber service session.

!parameterizes download bandwidth and server address
<# videoMin(downloadBW, serverAddress) #>

<# uid := app.servicemanager.getUniqueId #>
<# name := "SM-video-" $ uid #>

classifier-list <# name #> ip any <# serverAddress #> 0.0.0.0

policy-list <# name; '\n' #>
	  classifier-group <# name #> precedence 5000
		  traffic-class video

profile <# name; '\n' #> 
	  ip policy output <# name #> statistics enabled merge
	  qos-parameter maxVideoBW add <# downloadBW; '\n' #>
	  exit

<# env.setResult("activate-profile", name) #>
<# env.setResult("output-stat-clacl", name) #>

<# endtmpl #>

Sample Owner ID

Step-by-Step Procedure

Table 18 provides the sample RADIUS attributes that you can use to activate the video-on-demand service

Table 18: Sample RADIUS Attributes

Owner

Owner ID

Value

AAA (RADIUS)

Acct-Session-ID (RADIUS attribute 44)

573498

Sample CLI Command

Step-by-Step Procedure

To activate a subscriber session with the configured video-on-demand service:

host1(config)#service-management owner-session aaa 573498 service-session “ videoMin(4500000, 192.168.23.58)”

Related Documentation