Configuring ProStream CAS Services
Configuring ProStream CAS Services
Example: NG ................................................................................................................. 18
iii
Configuring ProStream CAS Services
iv
NMX CAS Introduction
You can configure Conditional Access System (CAS) services on ProStream® devices,
using the NMX™ video network management application.
Important: After you have set your CAS global options and configured your CAS
network group, you can configure CAS services in two different ways:
By exporting a CAS configuration from NMX Designer into Excel, altering it for
your new configuration, then importing it
Or by adding and configuring services field by field from NMX Designer > Service
Plan.
Tip: Using Excel, with its easily added and duplicated rows and cells, considerably
shortens your CAS configuration time.
Term Description
A proprietary value used by the CAS vendor to specify access
privileges. The AC is included in the encryption request data
sent to the ECMG.
Access
Criteria
In NMX, the Access Criteria is included in the ECM properties
and thus is added to SCG along with the program/stream to
which it corresponds.
Control Word /Control Word Generator. A CWG generates a CW
which is sent with the request for encryption to the ECMG. In
CW/CWG
this implementation, the CW is generated internally by the SCS
(ProStream).
Event Information Scheduler. An EIS manages SCG requests to
the ECMG for scrambling. The EIS functions can be performed
EIS
by an external module, but in this implementation they are
performed by NMX.
Entitlement Control Message Generator. The ECMG receives
the encryption request from the ProStream Element Manager for
ECMG
a given SCG. The encryption request includes the Control Word,
the Program ID, and the Access Criteria.
EMMG The Entitlement Management Message Generator. The EMMG
1
Configuring ProStream CAS Services
NOTE: NMX support for CAS configuration has changed in NMX 7.0. If you are
upgrading CAS services from a previous version of NMX, you will find that the
CAS/SCG configuration stored in the Automation Server catalog is migrated to the
NMX catalog. All CAS SCG configuration is performed and stored in the service
plan.
The instructions in this Setup Guide show the ProStream 9000. The setup for the
ProStream 1000 is identical.
2
Introduction
NOTE: While it is possible to implement CAS using external EIS and SCG in a
network managed by NMX, these options are not discussed in this guide.
3
Configuring ProStream CAS Services
1. Set the global options to Options > Conditional Access > SCG Managed by
NMX and set the CA Descriptor creation defaults in Options > Services >
Descriptor Management.
2. Add the ProStream scrambler device to the NG, with input, output, and PSI
input (optional).
3. Add the ECMG and the EMMG as input to the ProStream device in the NG, and
configure the ECMG and EMMG entries for each. Connect them to the
ProStream.
4. Set the CAS—specific settings in the ProStream device properties page. You
can only access these properties after you have connected the ECMG and EMMG to
the ProStream.
5. Create the service plan:
4
Introduction
Step-by-Step Examples
The following topics provide a CAS configuration example, with details about
configuration steps and properties. The table below shows the example tasks in order,
and the NMX module in which they are performed.
5
Configuring ProStream CAS Services
Overview NMX
Designer
Configuring the Input
Configuring the Output
Connecting Services
NMX
Connecting the Services to the Network Group Designer
Activating the Service
Managing CAS Services
6
Setting Global Options
The first step in CAS configuration is to set the global defaults that control NMX
behavior for CAS services.
1. Open the Options > Conditional Access page. The server must be stopped to
make any changes to the settings in this page.
2. Make sure that the NMX SCG check box is selected. This setting enables the
ProStream to support internal management of SCG and the EIS functions. It
enables the configuration of the Conditional Access settings in the Service Plan
output tree.
7
Configuring ProStream CAS Services
2. Set the defaults for creating CA descriptors for the ECM. You can direct NMX to
add CA descriptors to the output transport automatically, and control how the CA
descriptors are added and removed.
The CA descriptors are displayed in the Standard View of the output transport.
See the NMX online help for descriptions of each of the global settings in this
page.
8
Setting Global Options
When you are satisfied that the global settings are correct, you are ready for the next
step in CAS configuration.
9
Configuring the Network Group
The next step is to configure the CAS-specific settings in the network group (NG).
In this tutorial, we assume that you know how to create the NG, configure the
communication parameters for these devices, and connect them.
The CAS-specific properties for the ProStream device are only available after the
ECMG and EMMG are added to the group—therefore setting those properties is
described later in the chapter.
11
Configuring ProStream CAS Services
ProStream device(s). In the properties for the source icon, you can define multiple
ECMG or EMMG sources.
1. To create the ECMG, select Network > Logical Devices > ECM Source.
2. Click on the Network Map view pane again to place the device on the map and
open its properties page. Click OK to accept the default settings.
3. To create the EMMG, and select Network > Logical Devices > EMM Source.
4. Click on the Network Map view pane again to place the device on the map and
open its properties page. Click OK to accept the default settings. The ECM
Source and EMM Source icons are added to the NG.
1. Open the ECMG Configuration dialog box by double-clicking the ECM Source
icon, or by clicking the button in the ECM Source properties page.
12
Configuring the Network Group
2. The ECMG Configuration dialog box contains a table of all the ECMG connection
entries for all the scrambling devices in the same NG. If you have multiple
scramblers in the NG, you can connect this ECMG device icon to all of them.
3. Click the site icon button to create a new connection entry. The example shows
one entry in the table.
4. Enter the settings as appropriate to your system:
Name. The ECM Generator name. For example, NDS 960 or Nagra Aladin.
IP Port Number. The port number over which the ECMG sends data to the SCS.
Super CAS ID. A 32-bit hexadecimal number that consists of the 16-bit CA vendor
ID and an additional 16-bit number that distinguishes one ECM generator from
another for the same CAS vendor.
The service ECM with a matching Super CAS ID uses this ECMG. In this way, the
Super CAS ID determines which access criteria is coupled with each ECMG.
Service ID Seed. The seed, or base, for the identifier the SCS uses to
communicate with the ECMG. Each device that tries to connect to the ECMG uses
an increment of this number. This insures a unique Channel ID for the ECMG to
SCS connection, as required by many ECM generators.
13
Configuring ProStream CAS Services
For example, assume 1x1 hot backup redundancy is configured for the SCS
device. You enter a Service ID Seed of 100. The service ID for the devices is
assigned as follows:
Simulcrypt Version. Simulcrypt is the name of the protocol the ECMG uses for
communicating with the SCS. Select the protocol version supported by the CAS
vendor.
Priority. If you configure multiple ECMG entries with the same Super CAS ID, you
must assign a unique priority to each one.
The ProStream uses the priority when attempting to connect to an ECMG. It tries
to connect first to the ECMG with the highest priority, and then to the next highest,
and so on. The highest priority is 1.
For example, assume the SCG contains an ECM with a Super CAS ID of 0x1000.
The encryption request is sent to the ECMG with the same Super CAS ID. If more
than one ECMG has the Super CAS ID of 0x10000, then the request is sent to the
entry with the highest priority first. If connection fails, it tries the next highest
priority, and so on.
5. Connect the ECM source to the ProStream device. NMX makes the obvious
connections for you. In the Edit Connections dialog box, click the Show/Hide Edit
Connections toggle to view and edit the connections. You see that NMX has
connected the ECM Source to the SCS in the ProStream device.
14
Configuring the Network Group
6. Click Apply to make the connection. The map view shows the link from the ECM
Source to the ProStream device.
1. The EMMG Configuration dialog box contains a table of all the EMMG
connection entries for all the scrambling devices in the same NG. If you have
multiple scramblers in the NG, you can connect this EMMG device icon to all of
them.
2. Click the site icon button to create a new connection entry. The example shows
one entry in the table.
3. Enter the settings as appropriate to your system:
Name. The EMM generator name.
Port Number. The TCP/UDP port number the device should listen on to accept an
EMMG.
15
Configuring ProStream CAS Services
Client ID. A 32-bit hexadecimal number that consists of the 16-bit CA vendor ID
and an additional 16-bit number that distinguishes one EMM generator from
another for the same CAS vendor. The service EMM with a matching Client ID
uses this EMMG.
4. Connect the EMM source to the ProStream device. NMX makes the obvious
connections for you. In the Edit Connections dialog box, click the Show/Hide Edit
Connections toggle to view and edit the connections. You see that NMX has
connected the ECM Source to the SCS in the ProStream device.
5. Click Apply to make the connection. The map view shows the link from the EMM
Source to the ProStream device.
16
Configuring the Network Group
2. Set the CAS properties. In this example, we use the default settings.
Scrambling Mode. Specifies the scrambling algorithm. The device supports DVB
- CSA, AES - NSA2, AES - CBC.
ECM Configuration Mode. Specifies which entries in the ECMG table to use with
this device. By default, all entries are available to the device. In Custom mode,
you select individual entries in the ECMG table to work with this device.
EMM Configuration Mode. Specifies which entries in the EMMG table to use with
this device. By default, all entries are available to the device. In Custom mode,
you select individual entries in the EMMG table to work with this device.
17
Configuring ProStream CAS Services
Crypto Period Duration. Specifies how often the ECMG generates a new
encryption key.
Example: NG
This concludes the tasks for configuring CAS in the NG. The NG map view should look
like this:
You are ready to configure the services that flow through the device.
18
Configuring Services
Now you are ready to configure the services that flow through the NG. All CAS service
configuration is included and stored in the service plan. Any NMX feature that supports
editing, importing, exporting, or synchronizing of the service plan includes the CAS
settings.
The following instructions assume familiarity with creating services in the NMX GUI.
Only the CAS-specific steps are given in detail. After you have set your CAS global
options and configured your CAS network group, you can configure CAS services in two
different ways:
By exporting a CAS configuration from NMX Designer into Excel, altering it for
your new configuration, then importing it.
Or by adding and configuring individual services field by field from NMX Designer
> Service Plan
Tip: Using Excel to configure CAS services, with its easily added and duplicated rows
and cells, considerably shortens configuration time.
1. From the NMX Designer > Services tab, under Inputs, select an existing CAS
service plan.
2. Click Export > CAS Config To Excel (.xlsx).
3. Enter the path for the saved file, then click Save.
4. Open the exported file in Excel. It takes a moment for all the features to load.
5. At the top of the Excel ribbon menu, click the NMX CAS tab. In the NMX CAS
tab, you can perform CAS operations on the tabs at the bottom of the Excel
19
Configuring ProStream CAS Services
spreadsheet.
6. At the bottom of the Excel spreadsheet, the exported file contains the following
tabs:
Summary: (read-only) The exported Data summary, for example, which
Network Group and Service Plan was exported, number of devices,
streams, etc., and a summary of Excel shortcuts
ECM_Streams
EMM_Streams
SCG
ECMG: (read-only) For reference only.
EMMG: (read-only) For reference only.
20
Configuring Services
You can also export a CAS Configuration from NMX Operator > Home tab > Export >
CAS Config to Excel (.xlsx).
CAS services are configured on the Inputs and in the Standard view and the Conditional
Access view of the Outputs.
In this example, the service objects we create in the service plan are:
Input Tree
Broadcast Transport
Program containing video, audio
Inserted Data ECM Group
ECM with Super CAS ID and Access Criteria
Inserted Data Ethernet CAS Data Group
EMM with Client ID
PSI Internal
CAT
22
Configuring Services
1. Create an ECM group as a container for all the ECM stream objects. On the
Inserted Data node, select Add ECM Group.
23
Configuring ProStream CAS Services
The Select Input Type Of New Insertion Data Group dialog box opens.
2. In the Count field, enter the number of ECM streams to add. In this example, 1.
The Group is added to the input tree, with one ECM stream object beneath it.
24
Configuring Services
Super CAS ID. A 32-bit hexadecimal number that consists of the 16-bit CA vendor
ID and an additional 16-bit number that distinguishes one ECM generator from
another for the same CAS vendor. It associates this ECM to the ECMG with the
matching Super CAS ID. In this way, the Super CAS ID determines which access
criteria is coupled with each ECMG.
In this example we have only one ECMG Configuration table entry, so we set the
Super CAS ID to match the Super CAS ID in the ECMG entry, 0x10000.
Bitrate. The bitrate of the stream used by NMX for internal calculations, to prevent
overflow on the transport. This value should match actual ECM input maximum
bitrate.
Private Data. The ECM/private data to be sent on this circuit PID. The maximum
length that is supported for this entry is 100 bytes, any subsequent bytes are
ignored.
4. Click OK to save your changes and close the properties page. In a real service,
you could create many ECM streams in this way. In this example, we create only one.
1. Create an Ethernet CAS Data Group as a container for all the EMM stream
objects. On the Inserted Data node, select Add Ethernet CAS Data Group.
25
Configuring ProStream CAS Services
The Select Input Type Of New Insertion Data Group dialog box opens.
2. Select the check box next to EMM. In the Count field, enter the number of EMM
streams to add. In this example, 1. The Group is added to the input tree, with one
EMM stream object beneath it.
26
Configuring Services
Client ID. A 32-bit hexadecimal number that consists of the 16-bit CA vendor ID
and an additional 16-bit number that distinguishes one EMM generator from
another for the same CAS vendor. This associates the EMM to the EMMG with
the same Client ID.
In this example, there is only one EMMG Configuration table entry, so set the
Client ID to match the ID in the EMMG entry, 0x10000.
Backup Client ID. The Client ID of a backup EMMG. Configuring a backup client
allows two separate EMM generators to send the same EMM PID (not
simultaneously).
Maximum Bitrate. The bitrate of the stream used by NMX for internal
calculations, to prevent overflow on the transport. This bitrate should match the
actual EMM input maximum bitrate.
1. On the PSI Internal node, select Add PSI/CAS > Add CAT.
27
Configuring ProStream CAS Services
2. In the Add dialog, enter a name for the CAT and click OK. The CAT is added to
the tree.
There is a program on an input transport, with the ECM, EMM and CAT objects
configured under the Inserted Data node. Configuration of the input tree is complete.
Create the output transport with the program, EMM, and ECM in the Standard view. Add
the SCG, program, and ECM in the Conditional Access view.
28
Configuring Services
2. Add the program from the input tree. In this example, we drag the program
Metro Movies to drop it in the transport. The Select Service Type dialog box opens. In
this example, we select Regular Service as the Service Type for the program.
3. Add the CAT and the EMM to the output transport. This includes the EMM in
any output services on this transport. The EMM corresponds to the EMMG with a
matching Client ID. A CA Descriptor for the EMM is added to the transport when you
add the EMM.
4. Add the ECM to the output transport. It can be added at the transport level or at
the program level. Since it is most commonly added to the program, we add it to
the Metro Movies program.
NOTE: NMX automatically assigns a unique PID to all streams in the output
transport If you want to designate the ECM PID, edit the Stream PID value in the
ECM properties page.
29
Configuring ProStream CAS Services
NOTE: In this example, the CA Descriptor for the ECM is not added to the output
transport yet. This is because we set the global option in the Options > Services >
Descriptor Management page to Autocreate CA System Descriptors > Managed
by SCG. The descriptors will only be created when you add the program and ECM
to the SCG, as described in the following sections.
2. Expand the Service node to show the scrambling transport (the transport you
added in the output tree standard view). Only the scrambling transports are available in
the Conditional Access view.
3. Add a Scrambling Control Group (SCG) to the transport.
30
Configuring Services
SCG ID. A unique identifier for the SCG. This ID is generated by NMX.
Schedule Activation. Enables scrambling schedule activation for this SCG. Use
the calendar tool to set the scrambling start date and time. Once scrambling has
started, the services continue to be scrambled until you select Clear for this SCG,
or suspend scrambling globally.
NOTE: On active services, the schedule activation time applies only to services
that are not already being scrambled. For example, when you first add the SCG
and set an activation time, any programs you add to the SCG are scrambled at the
activation time. If you have actively scrambled services and you want to add more
services to the SCG, you can set a new activation time for the new services. The
existing scrambled services will not be affected. For inactive services: once
activated, all services in the SCG obey the scrambling activation time. Likewise,
31
Configuring ProStream CAS Services
for batch scheduling in Automation Server—all services in the SCG obey the
scrambling activation time.
5. Add a service or stream to the SCG node. In this example, we add a service.
The Select Outputs dialog box opens, showing you the available programs on the
output transport (from the Standard view). You can add a service or its streams to
only one SCG.
In this example, only one service is present, the Metro Movies program. Select the
service and click OK to add the service to the SCG.
32
Configuring Services
The Select Outputs dialog box opens, showing the available ECM entries on the
output transport (from the Standard view). In this example, only one ECM is
present, the Metro Movies ECM. Select the ECM and click OK to add the ECM to
the SCG.
The output transport contains the EMM. The output program contains the ECM. The
SCG contains the program and the ECM. Note that the CA descriptors are now present
under the program in the output transport Standard view. As specified in the Options >
Services > Descriptor Management page, they are added automatically when the
program and ECM are added to the SCG. The CA descriptor at the transport level is
added automatically for the EMM.
This completes the CAS configuration in the service plan. Next, you connect these
services to the hardware in the NG, and activate them.
33
Configuring ProStream CAS Services
34
Connecting Services to the Network Group
The NG contains the ECMG and the EMMG, and the service plan contains all the
services necessary to carry services and perform scrambling requests. The next step is
to connect the services to the NG and activate them.
TIP: The red exclamation mark disappears once the connection is established.
35
Configuring ProStream CAS Services
2. Drag the output service and drop onto the output port in a Network Group.
Drag the output transport to the Output 1 GbE port.
TIP: The red exclamation mark disappears once the connection is established.
1. Click on the Activate Service Plan button under the Flow tab.
36
Connecting Services
37
Managing CAS Services
NMX provides the following options for managing and monitoring scrambled services.
At the server level—affects all scrambled services managed by the NMX server.
At the SCG level—affects only the scrambled services in the SCG.
When you resume scrambling, the activation time in the SCG affects all services in the
SCG.
NOTE: When you suspend scrambling at the server level, you only see the
scrambling status on the toggle icon—either Suspend or Resume. The GUI does
not change the scrambling status on the individual services as it does when you
suspend scrambling at the SCG level. For example, it does not remove the key
icon on output transport icon in the Standard view, or italicize the SCG node in the
Conditional Access view.
39
Configuring ProStream CAS Services
Scrambling is halted for this SCG. The SCG name entry in italics, and the key icon
indicator does not display on the output transport in the Standard View when
scrambling is halted.
To view EMMG, ECMG, and SCG status in the CAS Data Extraction tool:
1. In NMX Designer, in the Network Map view, select the ProStream device and
from the right-click menu choose Extract CAS Information.
The CAS Data Extraction from <device> dialog box opens. It will look something
like this:
40
Managing CAS Services
If you have successfully configured CAS you should see No Error for all SCG entries.
41
Configuring ProStream CAS Services
source PIDs.
SCS CP less than Raised when the crypto period
Change the CP or DS values.
Delay Start is less than the delay start.
SCS ECMG
The connection between SCS Check the ECMG properties, the
Communication
and ECMG is not established. Ethernet network, and the ECMG.
Failure
The ECMG connection has
been disconnected for 10 Check the ECMG properties, the
seconds. Services may not be Ethernet network, and the ECMG.
encrypted properly.
SCS ECMG Check the Ethernet port 2 link.
Connection Failure
Connection to the ECMG has
Check ECMG definitions in the
failed and services may not be
web client. Make sure all
encrypted properly.
parameters match the properties
of the CAS system in use.
42