Thursday 19 February 2015

DIGITAL HEADEND ARCHITECTURE

BASIC ARCHITECTURE OF A DIGITAL CATV HEADEND


Cable TV headends through out the country are now seriously considering the addition of digital CATV channels. Besides the advantages of better picture clarity and multi-channel sound as well as the potential to deliver HDTV (High Definition Television), the key necessity to shift to digital is large number of channels and the limited analog channel capacity of 106 analog channels on a cable TV Network.

Digital CATV provides for carriage of 6 to even 20 digital channels in the bandwidth of a single analog channel. Hence, if 10 analog channels are vacated, that bandwidth can carry 60 to 200 digital channels.

The fact that CAS roll out countrywide is only a matter of time, further adds to the impetus to roll out digital CATV channels from the headend.

This article provides a simple overview of the basic structure of a digital CATV headend. The aim is to provide cable operators an overview and understanding of a basic digital headend.



START THE CHANGES:- ENCODE

Signals from pay or Free-To-Air (FTA) satellite channels are typically available at the headend through an IRD (Integrated Receiver-Decoder) which provides a composite video (analog) output signal along with separate mono or stereo sound signals. Both, the video and audio signals are analog signals are need to be converted to a digital signal for use in a digital headend.

This conversion of the analog video and audio signals to a digital data stream is done by a MPEG-2 Encoder. The MPEG-2 encoder provides a signal stream of digital data that contains both, the video and audio digital signals.

One encoder is required per analog TV channel.

Hence, if 20 analog TV channels are to be carried as digital channels, the digital headend will require 20 separate encoders to convert the analog signals to digital signals.

Encoders form a crucial component in the quality of the digital signal. If the conversion of analog to digital is not done well, the picture quality will certainly suffer.

The cost of digital encoders used for local encoding is very high and would typically account for a major part of the headend cost. MPEG-2 encoders will typically cost Rs. 20,000 to Rs. 2 lac per channel, depending on the brand, quality and facilities offered.

MAINTAIN YOUR BANDWIDTH:- BITRATES MANAGEMENT
MPEG-2 also permits the user to set the maximum digital bit rate of the digital output signal. An analog channel can be converted into a digital channel with bit rates varying from 1.5 Mbps to 5 Mbps or even higher. The larger the bit allocated to each analog channel, the better the picture quality. However, larger bit rates imply that fewer the digital channels can be squeezed into the bandwidth of 1 analog channel. On the other and a low bit rate of 1.5 Mbps may result in a visibly poor digital quality. As technology marches on, it has been possible to achieve good picture quality with lower bit rates using MPEG-2 compression.

A TYPICAL STANDARD
Larger bit rates are required for channels where the picture changes rapidly, such as in a sports channel covering a football game. The camera continuously follows the ball and the entire picture changes rapidly. Such channels require a bit rate of 3 Mbps to 5 Mbps.

On the other hand a News channel often has very little change in picture content from TV frame to TV frame. The news reader's face and background remains almost constant. Such channels require a much lower bit rate. It is generally felt that news channels can be adequately encoded by allocating them a bit rate of 1.5 Mbps to 2.5 Mbps.

USE A SMART DEVICE TO STATMUX
Of course, there will be certain period when the sports channel focuses only on the Commentator's face. At these duration, the lower bit rate applicable for News channels would be adequate for the Sports channel.

Similarly if the News channel shows an outdoor clip, it would require a much higher bandwidth.

It would be extremely wasteful if News channels and Sports channels were allocated fixed data rate. This has led to the advanced development of - "Statistical Multiplexing". This examines the picture content of each channel approximately 20 times every second and continuously allocates different bit rates for different channels, depending on the instantaneous picture requirement for each channel.

If fixed data rates encoding accommodates 6 digital channels per analog channel, statistical multiplexing practically increases it to 10 or 12 digital channels compressed into an analog channel bandwidth. 

USE OF BETTER CODECS
Instead of MPEG-2, the MPEG-4 standard can also be used for digitizing an analog signal. MPEG-4 offers almost 40% better compression that is 40% more digital channels in the same analog bandwidth.

A detailed discussion on the MPEG-4 is beyond the scope of this article. However, SCAT has carried a detailed article on MPEG-4 in past issues of the magazine.

The MPEG-4 encoders and decoders (STBs) are currently very expensive and rarely deployed on cable TV network currently.

DIGITAL INTEGRATION
As indicated above, the cost of digital encoders is typically very high.

A digital headend can therefore save a substantial amount of money if the digital satellite receiver provides for a digital (ASI) output rather than the CVBS analog outputs. Many professional digital satellite receivers offer such a facility though typically, the digital IRDs distributed by pay TV channels do not offer an ASI (Digital) output. Further, since pay channels "pair" their IRDs and smart cards, it is also not possible for the cable operator to use an authorized smart card with an independently procured digital satellite receiver with ASI output.

This is an area that the TRAI needs to look into and address, to facilitate lower cost digitization of CATV headends.

If the satellite receiver directly provides an ASI output, no encoder is required and the digital signals can be directly fed into the digital combiner.



THE MULTIPLEXER
Encoders provide separate digital output for each TV channel.

In an analog headend a channel combiner combines multiple analog channels. Similarly, in a digital headend a multiplexer (MUX) combines multiple digital channels and creates a "Transport Stream" (TS)

The Transport Stream not only combines the digital channels but also creates a summary of the digital data contained in the Transport Stream.

Multiplexers are typically available to 'combine' either 12 to 20 digital channels.

Such multiplexers accept ASI inputs upto 200 MBps and offer between 1 to 4 outputs. 

MULTIPLE OUTPUTS
A multiplexer combines several digital channels to form a single transport stream that will be carried in the bandwidth of a single analog channel. Depending on the capability of the encoders and whether statistical multiplexing is used, the number of channels that can be compressed into the space of a single analog CATV channel (8 MHz for PAL-G) varies from 6 channels to as high as 16 to 20 channels.

However, the amount of digital content (Mbps) that can be carried on a single analog channel will also depend on the type of modulation used by the cable TV network.

QAM MODULATION
Quadrature Amplitude Modulation (QAM) provides for carriage of a large amount of digital data in a small bandwidth. QAM however requires strong signal strengths with very little noise. Hence QAM modulation cannot be used for satellite transmission but is used universally for digital CATV networks.

QAM modulation is typically used as either QAM 64, QAM 128 or QAM 256.

QAM 64 offers the least compression and is most tolerant to external noise injected into the network due to poor quality cables, connectors or tap-offs. On the other hand QAM 256 provides the largest number of digital channels within a single analog channel but requires very good networks to transmit digital pictures to the consumer without freezing or pixelisation (picture breaking up into small squares or dots).


MULTIPLEX CONFIGURATION
Depending on whether QAM 64, 128 or 256 is to be used for digital modulation, the multiplexer is to be configured to offer the appropriate mixing. The multiplexer is configured by connecting it to a PC, through SNMP via an Ethernet port.

Table 1 shows the different digital output bit rates applicable for QAM 64, 128 & 256. 

Typical Bit Rates For Different Levels of QAM Modulation 

QAM 64........................... 38 Mbps
QAM 128 ......................... 48 Mbps
QAM 256 ......................... 51 Mbps

The multiplexer can be used for multiple channel inputs with a total bit rate of up to 200 Mbps. Hence if the full 200 Mbps input capability is utilized, the multiplexer will have to be configured to provide for separate ASI output data streams each of 50 Mbps. The cable network will have no choice but to use 256 QAM digital modulation after the multiplexer.

If the network intents to use 128 QAM it will have to reduce the input data rate to the multiplexer by either:

i) Using more compression per channel (hence more expensive encoders or poorer picture quality) or

ii) Using fewer channels. 

SCRAMBLING
CAS requires that pay channels be scrambled and the subscriber's STB decodes/un-scrambles only the channels that they pay for.

Hence a digital headend that carries pay channels will typically have to scramble the pay channels.

Fig.3 shows the location of the scrambler in the digital headend. 



Each multiplex output requires a separate scrambler. The cost of the scrambler can vary very widely depending on the scrambling system used. As a rough estimate a scrambler could cost Rs. 2 lacs each. Note that if their multiplexer is configured with 4 outputs, 4 separate scramblers will have to be installed, increasing the cost of digital headend very substantially.

For free-to-air (FTA) channels no scramblers to be used and the output of the multiplexer is fed directly to a QAM modulator.

SET TOP BOX ARCHITECTURE

Firstly, We start with defining that what actually is a Set top Box.

Definition:-

A set-top box (STB) or set-top unit (STU) is an information appliance device that generally contains a tuner input and displays output connects to a television set and an external source of signal, turning the source signal into content in a form that can then be displayed on the television screen or other display device. They are used in cable television, satellite television, and over-the-air television systems, as well as other uses.

Architecture:-

The STB selects the appropriate broadcast TV information by tuning to one of many input channels. The signal is digitally modulated using Quadrature Phase Shift Key (QPSK) for satellite applications, Quadrature Amplitude Modulation (QAM) for cable and Orthogonal Frequency Division Multiplexing (OFDM) for terrestrial. The information in the selected RF channel is then processed by the demodulator to produce an MPEG-2 Transport Stream (TS) containing the audio, video and other information that relates to the selected TV programme.

The STB generally also contains some form of modern to allow it to send and receive interactive data. Conventional telecommunication modems are typically used in satellite and terrestrial STBs while cable STBs generally have a cable modem. DOCSIS cable modems use QAM demodulator for the downstream data whilst out-of-hand DAVIC cable modems use QPSK demodulator. In both cases, a QPSK modulator is used to transmit the upstream data, though DOCSIS also have a 16 QAM mode.

In general, digital TV information in the MPEG-2 TS may be encrypted to present customers who have not paid for a particular service from being able to view it. The MPEG demultiplexer selects
and decrypts the compressed audio and video for the particular programme that the viewer wishes to watch, using decryption keys supplied by the Conditional Access Sub System (CASS). The MPEG decoder then compresses the audio and video information for the selected programme. The Central Processing Unit (CPU) controls the whole operation and performs specific data manipulation function. It generally uses a Real Time Operating System (RTOS) on top of a hardware abstraction layer for the management of the resources and processes of the STB directed by the higher level software.


It is thus obvious from this diagram that, the front-end, which contains the tuner and the demodulator, will be different for the three transmission media. Hence if a STB is to be made interoperable across all the three transmission media it should be fitted with switchable front ends.

Whenever an MPEG-2 TS carries encrypted (Or scrambled) services, the TS also carries two types of messages called EMM (Entertainment Management Message) and ECM (Entitlement Control Message). An EMM carries a list of Pay TV services which the owner of that STB is entitled to view and also the date upto which he is entitled to receive them. The ECM on the other hand carries a data element called control word (CW), which is used by the ‘descrambler’ in the STB to descramble the picture and make it intelligible again. Both these messages are carried in the TS in an ‘encrypted’ form. Whereas DVB has standardized the scrambling algorithm (known as DVB common scrambling algorithm, DVBCSA), algorithms used for ECM/EMM encryption are not standardized for obvious reasons.