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:
- JunosE Release 7.1.0 or higher-numbered releases
- E Series router (ERX7xx models, ERX14xx models, the ERX310 router, the E120 router, or the E320 router)
- ASIC-based line modules that support Fast Ethernet or Gigabit Ethernet
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 163 provides the sample RADIUS attributes that you can use to activate the video-on-demand service
Table 163: 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:
Hide Navigation Pane
Show Navigation Pane
SHA1
