SandScript Policy Language

Linking Any Condition to Any Action

SandScript is an event-driven policy definition language that empowers communications service providers (CSPs) to fully utilize the Sandvine Policy Engine with programmatic flexibility, without any restrictions.

Much more than the typical rules-based systems that severely restrict the user and cannot execute orthogonal policy conditions, SandScript allows freeform policy expression to link any condition to any action. In fact, SandScript is so powerful, it is what we use at Sandvine to build our products. That’s right; our Traffic Management, Usage Management, and Network Security solutions are all built in SandScript.

SandScript defines the rules, calculations, expressions, measurements, policy decisions, and enforcement actions that are executed and implemented by the Sandvine Policy Engine. In this manner, SandScript is the means by which all network policy control executed by the Sandvine platform is implemented.

Unified Network Policy Control Across the Control Plane and Data Plane

The Sandvine Policy Engine spans both the data plane and control plane, embedded within Sandvine’s Policy Traffic Switch (PCEF/TDF functions) and Service Delivery Engine (includes a PCRF with a 3GPP Release 11-compliant Gx out interface), and interacts with the B/OSS plane and remote enforcement points using standard interfaces.

This unification across the control and data planes and the distributed intelligence that it brings delivers many benefits for CSPs:

• Operators define a policy once, and it is seamlessly and consistently applied across control and data planes
• Control signaling and the load on PCRF elements are significantly reduced
• Policy decisions are made faster, without needing to wait for a query and response
• Network policy control is completely agnostic of access technologies and vendors within the network

To help you get started with SandScript, we have created a range of tools, examples, and resources.

How Control Center Simplifies SandScript Policy Editing

Control Center includes a number of features that let you harness the power of the Sandvine Policy Engine.

Policy Library

Policy LibraryControl Center comes with a library of pre-written SandScript snippets to get you up and running quickly. Simply drag-and-drop the desired library into the PowerEdit window, and the SandScript appears. From there, you can make tweaks and adjustments as required to suit your specific needs. With a wide range of library policies available, featuring the most popular SandScript use cases, you’ll get a head-start on implementing network policy control in your network.



The QuickEdit feature provides a simple interface that lets even novice users make changes to existing measurement and management policies without diving into the actual SandScript that’s behind the scenes.QuickEdit


When you use PowerEdit, you are working in the same interface as our team. PowerEdit gives you complete access to all of the Sandvine Policy Engine’s features and capabilities, letting you link any condition to any action. Syntax highlighting, error detection, and other development environment tools help you harness the Policy Engine’s power, without holding anything back. PowerEdit

SandScript in the Data Plane

Redirect RTSP Requests with a Custom Response

There are a few potential scenarios in which you might want to redirect RTSP requests. We have at least one customer who is exploring building a simple video cache. A second reason is to advertise a video package or bolt-on periodically or when triggered. Of course, another use case is to comply with regulatory filtering requirements. 

RTSPThis snippet:

1. Implements a function to redirect RTSP requests using a “302 Moved Temporarily” response with a CSeq header and to close the connection
2. Defines a map of the URIs that will be redirected, and the location to which they will redirect
3. Redirects RTSP requests that match the list

SandScript in the Control Plane

Gain Visibility into New Session Starts

GGSNWe have spoken with many CSPs who crave visibility into control plane performance. Many either suffer from a complete lack of visibility, or at best are forced to use command lines to extract singular data points.
SandScript empowers you to view control plane performance in a whole new way – with granular measurements, orthogonal aggregation and rich reporting.

This example measures new session starts and reports by each unique GGSN+SGSN combination.

The data can then be viewed in Network Demographics.

SDE Chart


UPDATED : 2017-08-09 11:25:45