Skip navigation

Measuring the Quality of Streaming MPEG2 Transport Stream over IP 

SUMMARY

 Download PDF

 

Video-over-IP is a new and emerging technology that combines switched packet networking with streaming video. There are few standards for Video-over-IP today. The integration of these two technologies has lead to several questions as to the measurements that determine the quality of a Video-over-IP stream.

 

Before we can determine what to measure, a firm understanding must be gained about the fundamental properties that define the quality of a Video-over-IP stream. Unlike data transfers over IP, streaming video quality is measured live and at the end-point, or more to the point the TV. Quality end-point video is not solely a function of network bandwidth nor is it solely a function of MPEG-2. In fact many of the issues that surround quality end-point video are a combination of both the MPEG-2 quality and the level of deterministic IP packet delivery of the network. Unlike data traffic which measures quality by speed of reliable through-put with little attention to the nature of the payload, video (as voice) demands more from network transport. Networks designed to carry streaming video must account for the payload they carry. Furthermore the type of MPEG-2 stream being transported effects the minimum and maximum boundary characteristics that the network packet delivery and the overall system must conform to for quality streaming video at the end-point.

 

Measuring and monitoring these streams will involve measuring Ethernet packet arrival times at layer 3, the IP layer, average and instantaneous behaviors of these arrival times and finally the boundaries of the system by decoding part of layer 7, the MPEG-2 content. The MPEG-2 content combined with the system buffering limits will impose the boundaries on the transport.

 

This paper will discuss the current technology of Streaming Video-over-IP using an example of Video on Demand (VoD). Then look at the challenges at each stage of the VoD system and where quality needs to be measured. And finally it will look at the key parameters of determining quality video at the end-point of Streaming Video-over-IP networks using a system approach to network performance measurement.

 

CURRENT TECHNOLGY – MPEG TRANSPORT STREAM OVER IP

 

What is Streaming Video-over-IP? Streaming Video-over-IP is a technology in which a consumer can watch video content, at near real time, over and IP network. Although there are many applications for moving video content over IP, the most common example of Streaming Video-over-IP is a service that is being provided by some cable companies called Video on Demand. Video on Demand, implemented over and IP network, is an excellent example of Streaming Video-over-IP. In a VoD system a customer can order a movie from his living room that is served from a remote location over an IP network. The video is produced (served from a disk server), wrapped in an UDP/IP packet, transported to the customer’s home and consumed (watched).

 

The figures below diagram a simplified block diagram of a VoD network, from the video server at a cable outfit to the local cable hub and then finally to the customer’s home. From this basic overview of the technology we can explore the critical parameters of the system.

 

 

Figure 1 – Simplified Block Diagram of a VoD Network

 

 

 

Figure 2 – Flow of a Movie from the Server to the Home

 

 

 

Figure 3 – MPEG-2 TS Structure at the Server RAID

 

 

 

 

 

Figure 4 – Structure of the IP Packet Containing MPEG-2 TS Payload

 

 

 

Figure 5 – MPEG-2 TS Structure to the Home Cable Box or TV

 

 

Using this example many questions can be asked. How do you know this video played on the customers TV without error? If there was error what caused the error? Was the MPEG bad? Did a switch drop a packet or change the stream in some way that caused the video to fail? How long was the stream in failure?

 

Not to mention the scaling questions that can be asked. What happens if several customers at several homes purchase videos at the same time? Does the customer’s neighbor watching a VoD movie affect the customer’s video quality?

 

KEY PARAMETERS TO QUALITY STREAMING VIDEO-OVER-IP

 

To start to answer these questions we need to simplify the model of the above example. Figure 6 shows a simple conceptual model of a video stream over a Gigabit Ethernet Network.

 

 

Figure 6 – Packet Structure on GbE

 

 

Basically from the VoD server MPEG-2 is wrapped in a packet and shipped out at a constant rate consistent with the rate of the MPEG-2 TS. For example, movie 1 was MPEG-2 encoded at 3.75 Mb/s, meaning the decoder for video must see 3.75Mb every second with a +- 500ns MPEG-2 packet jitter tolerance. So the VoD server groups 7 MPEG-2 TS packets for every Ethernet packet and (theoretically) sending that packet out the Ethernet port at an even and constant rate as to facilitate 3.75 MB/s at the end point.

 

Because there are multiple clock domains in this system, to help smooth out clocking and speed variations buffering is used to rate match. Figure 7 shows the basic flow diagram for (theoretical) quality Streaming Video-over-IP. As Ethernet packets come from the VoD server and off of the switched network, the MPEG-2 TS packets get buffered and streamed to the decoder as a smooth 3.75 Mb/s constant rate. Then the MPEG-2 is decoded and played live to the TV.

 

This model does not implement a fixed buffer size. No matter what the size of the buffer there is a delivery condition that can make the buffer overflow or underflow. In this model it is important to understand the behavior of the stream, watch for the min and max cases and that will determine the buffer size and/or delivery behavior required for quality Streaming Video-over-IP.

 

 

 

Figure 7 – Streaming Video-over-IP from a Server to the End-Point TV

 

 

It is suggested that there are five properties that must be measured and monitored insure quality transport of Video-over-IP: 1) Inter-packet arrival jitter/delay 2) Inter-packet arrival jitter/burst 3) Ethernet packet loss 4) Ethernet inter-packet arrival average drift from the MPEG-2 data rate 5) MPEG-2 quality due to packet corruption on the network or MPEG-2 encoding errors The best way to explain these is to diagram the effect on a system looking at these measurements. The figures below show how these five properties can affect end-point video quality.

 

 

Figure 8 – Effects of Jitter/Delay and Ethernet Inter-Packet Gap Drift

 

Ethernet packet jitter that causes large delays can cause the end-point buffer to dry and there are segments of time where the decoder has nothing to decode so the TV quality suffers. In many cases the TV will show macro blocking video or out right go blank. Jitter delays can be caused by several things including switch QoS settings, switch aggregation, and directly from the server. Ethernet packet long term rate variations can also cause the buffer to run dry in the same way. This happens when the average Ethernet inter-packet gap timing produces a data delivery rate less than the MPEG rate, in this case 3.75 Mb/s. So for example if the server where to send Ethernet packets of MPEG out on the network such that the sustained data rate was 3.50 Mb/s, the buffer would eventually run dry.

 

 

 

Figure 9 – Effects of Jitter/Burst and Ethernet Inter-Packet Gap Drift

 

Similar to the prior case, Ethernet jitter that causes bursts of packet can cause buffer overflows. This is a harder case to watch for because data loss can occur at several points on the network. The causes are significantly different. In this case, faster delivery of Ethernet packets overflows the buffer in the next case Ethernet packets are dropped in the network. One is a delivery problem the other a potential bandwidth problem. So measuring quality at the TV can not show the story.

 

Also similar to the last case, Ethernet packet long term rate variations can cause the buffer to overflow, leading to MPEG packet loss.

 

 

Figure 10 –Ethernet Packet Loss

 

 

In this figure, Ethernet packets are dropped on the network. This is a simple case to see the effect; if the data does not arrive it will lead to poor quality.

 

In all these cases there is an underlining issue of quality of the MPEG. If the MPEG is encoded poorly or the MPEG payload is corrupted anywhere along the way, including data corruption right from the RAID, video quality is compromised.

 

Another effect to consider is the dynamic nature of the network and its influence on other streams. Because Ethernet is a shared network, the more streams the greater the chance switches have to buffer and order traffic, thus creating jitter/delay, jitter burst and packet loss.

 

CONCLUSION AND OBSERVATIONS

 

Streaming Video-over-IP is a new and emerging technology that has few standards. Quality at the end-points of Streaming Video-over-IP requires measure and monitoring of the jitter, packet loss and payload quality as it relates to a buffer limit in the system. This is a system approach to network performance measurement.

 

One implementation of Streaming Video-over-IP is Video on Demand. As higher numbers of streams are served the more critical the understanding and the bounds of the system are maintained to insure quality for the customer at the home.

 

To insure quality of the transport measurement and monitoring at several points along the system architecture may be required, measure and monitor of both network behavior and MPEG quality.

 

There are several observations to make looking at this model. This system approach to measuring end-point video quality of streaming Video-over-IP is focused on the video and sets demands on the network transport. The faster the MPEG rate the more constricting the boundaries of the network. For example, using the same buffer at the end-point for DVD quality MPEG-2 vs. High Definition quality MPEG-2, the requirements on the network are quite different, even though the increase in data rate is well inside the Ethernet network boundaries.

 

DVD quality MPEG-2 has a data rate around 3.75 Mb/s, High Definition quality MPEG-2 is about 19.3 Mb/s. The rate is approximately 5X on the network and means the buffer can handle 1/5th the network jitter or IPG drift. So a jitter/delay of 30ms may be fine for the DVD case as the drain rate from the buffer is less then the HD case. While a jitter/burst of 5 packets may be handled by the HD and not the DVD because HD drains the buffer faster than DVD.

 

The drain rate of the buffer is neither good nor bad but it does impose real limits and behavior profiles on the network transport. Likewise the buffer size has the same effect; in fact, the drain rate and the buffer are directly related with respect to the network transport. For example if you increase the buffer by the same factor as the increase in the speed between the rates of HD MPEG-2 over the DVD MPEG-2 in the last example, the behavior differences would be minimized. Note, other system parameters may be affected by faster or slower streams at the server and/or in the network.

 

In conclusion, as this technology matures more video streams will be able to move over IP but measurements and monitoring of the system must be accounted for to insure quality video product at the end-point.



Download
IQPinPoint™

IQPinPoint™ Multi-Dimensional Video Quality Management™

<B>Switched Digital Video Solutions</B>

Switched Digital Video Solutions Solutions for monitoring, testing and validating SDV components and networks

IPTV Quality and Service Assurance

IPTV Quality and Service Assurance Solutions to predict, detect, isolate and solve network issues

Field Analysis & Troubleshooting

Field Analysis & Troubleshooting Portable solutions for IPTV Service Providers and Field Engineers

Lab - Design - Verification - Test

Lab - Design - Verification - Test Tools for component design to QA IP switches and network components.