navbarPDF
Strip_TechNotes

Implementing QoS Solutions for H.323 Video Conferencing over IP

Document ID: 21662


Contents

Introduction
Prerequisites
      Requirements
      Components Used
      Conventions
Background Information
H.323
Characterization of Video Conference Traffic
Capacity Planning
      Example Scenario
Determine Per-Call Bandwidth Consumption
      H.323 Audio
H.323 Video
Classification
Select a Fancy Queuing Mechanism
      Model/Prioritization Scheme
Should Voice and Video Share LLQ?
CAC
Traffic Shaping
Interworking with H.323 Terminals
Sample Configuration
NetPro Discussion Forums - Featured Conversations
Related Information

Introduction

H.323 is the standard with global acceptance for multimedia conferences in an IP network. This document discusses tools to implement Quality of Service (QoS) for H.323 video conferences over an enterprise WAN with relatively low-speed links.

Prerequisites

Requirements

Readers of this document should have knowledge of these topics:

Components Used

This document is not restricted to specific software and hardware versions.

Conventions

For more information on document conventions, refer to the Cisco Technical Tips Conventions.

Background Information

Most networks today support one or more of these video traffic types:

Video Type

Traffic Characteristics

Video conference

Live, two-way, small groups bandwidth: One or more streams per user

Video on demand

One-way, point-to-point (pull model) bandwidth: One stream per user

Broadcast video (scheduled)

One-way, one-to-many (push model) bandwidth: One stream to unlimited users (IP multicast)

At the same time, many enterprises examine the existing and often separate data, voice, and video network infrastructures to determine the most efficient ways to bring these networks together across an IP infrastructure. In these converged networks, QoS is mandatory at any potential congestion point in the network. QoS ensures that delay- and drop-sensitive traffic, real-time video, and voice pass through unimpeded, relative to the drop-tolerant data applications. In particular, QoS is crucial at the WAN edge router. There, hundreds of megabits of potential traffic aggregate into slower-speed links in the kilobits or low megabits-per-second range.

H.323

Many IP video conference applications use the H.323 suite of protocols. The International Telecommunications Union (ITU) H.323 defines an international standard for multimedia over IP. ITU approved the first version of the H.323 standard in 1996. The current version is 4. Many applications now commonly deploy LAN-based H.323 video systems. An example application is Microsoft NetMeeting, which utilizes H.323 for video conference and shared collaboration.

Previously, video conference systems with H.320 as a basis were common. Each system had its own Public Switched Telephone Network (PSTN) connection. As the left side of the figure in this section shows, today you can use video gateways for communication between the converged H.323 network and the legacy video network. The right side of the figure shows how you can use video terminal adapters to link individual H.320 endpoints seamlessly in an H.323 network.

video-qos-1.gif

Characterization of Video Conference Traffic

Unlike voice, video has a very high and extremely variable packet rate with a much higher average maximum transmission unit (MTU). This figure illustrates a typical packet size breakdown of video conference traffic:

video-qos-2.gif

A stream of video conference traffic consists of two types of frames, as this figure illustrates:

video-qos-3.gif

The "I" frame is a full sample of the video. The "P" and "B" frames use quantization via motion vectors and prediction algorithms.

Capacity Planning

Before you place video traffic on a network, ensure that adequate bandwidth exists for all necessary applications. First, calculate the minimum bandwidth requirements for each major application, for example, voice, video, and data. The sum represents the minimum bandwidth requirement for any specific link. This amount should consume no more than 75 percent of the total bandwidth available on that link. This 75 percent rule assumes that some bandwidth is necessary for overhead traffic. Examples of overhead traffic include routing protocol updates and Layer 2 keepalives, as well as additional applications, such as e-mail and HTTP traffic. Have voice and video traffic occupy no more than 33 percent of link capacity. This Example Scenario explains capacity planning on a converged network.

Example Scenario

A site has a link capacity of 1.544 Mbps and contains two video terminals that support a maximum data rate of 256 kbps each. Although the rate of the two video calls equals 512 kbps, add 20 percent to the data rate of the call to account for overhead. Twenty percent is a conservative percentage that ensures proper capacity planning in most environments. You can start with an extra 20 percent for overhead and then adjust this value, higher or lower, with the results of your monitor as a basis.

Provision the priority queue for sufficient bandwidth to allow both video terminals to have an active call across the WAN simultaneously without the possibility of an overrun of the priority queue. In this example scenario, if you add a third video terminal, you need to implement some form of CAC.

Determine Per-Call Bandwidth Consumption

With capacity planning, one of the most critical concepts to understand is how much bandwidth you use for each call. This section lists the bandwidth that each coder-decoder (codec) uses. Refer to Voice over IP - Per Call Bandwidth Consumption for more information.

H.323 Audio

Audio signals contain digitized, compressed sound (usually speech). H.323 supports proven ITU-standard audio codec algorithms. The algorithms with support include:

Selection of the right codec reflects tradeoffs between speech quality, bit rate, compute power, and signal delay.

H.323 Video

According to the H.323 standard, video capabilities in H.323 terminals are optional. However, when you implement the H.323 terminals, the terminals must support the H.261 codec, with optional support for the H.263 standard.

Classification

To provide the appropriate QoS guarantees to video traffic, network devices need to be able to identify such traffic.

The differentiated services (DiffServ) model of QoS uses DiffServ code point (DSCP) values to separate traffic into classes. DiffServ defines these two sets of DSCP values:

For more information on DSCP, refer to Implementing Quality of Service Policies with DSCP.

Generally, Cisco design guides recommend AF41 (DSCP value 100010) for video. There is no advantage if you treat the audio portion of the video streams better than the video packets in an IP video conference application. Therefore, use AF41 as the DSCP value for both voice and video media in a video conference.

At Layer 2, you can use the 3 class of service (CoS) bits in the IEEE 802.1p field, which is part of the IEEE 802.1Q tag.

Currently, there are no standards that describe which value is most appropriate for IP video conference. However, Cisco normally recommends this marking scheme for multiservice networks:

Traffic Type

Layer 2 CoS

Layer 3 IP Precedence

Layer 3 DSCP

Voice RTP1

5

5

EF

Voice control

3

3

AF31

Video conference

4

4

AF41

Streaming video (IP/TV)

1

1

AF13

Data

0-2

0-2

0-AF23

1 RTP = Real-Time Transport Protocol

This table assigns streaming video and video conference separate classification and marking values. Streaming video has a better ability to buffer streams and deal with delay and jitter. Therefore, streaming video requires different QoS levels.

In addition, you can separate the control and data portions of the video conference streams. To separate these two portions of the streams, mark control with AF31 and data with AF41. However, this design is not the best design. Not all endpoints allow you to mark bearer and control traffic differently, and a Cisco Proxy marks all video conference traffic with one value. In addition, control traffic bit rates are negligible, relative to the video call bit rates.

Perform classification as close to the source as possible. Third-party video partners VCON, PictureTel, and Polycom can set the IP precedence bits. If your H.323 terminal does not set any header values, you can mark the packets at these points in the network:

Select a Fancy Queuing Mechanism

Cisco IOS Software now includes several queueing mechanisms. These mechanisms meet the needs of the type of traffic that enters the network and the wide-area media that the traffic traverses. On either the campus or the WAN, any time there is a potential congestion point in the network, the application of proper queuing techniques is necessary. The queue ensures that delay- and drop-sensitive traffic, such as voice and real-time video, pass through unimpeded, relative to the drop-tolerant data applications. An interruption is typical at the WAN edge router. There, hundreds of megabits of potential traffic aggregate into slower-speed links in the kilobits or low megabits-per-second range.

Configure the newer queue methods with the commands of the modular QoS command-line interface (CLI) (MQC). With the MQC, specify a minimum bandwidth guarantee with the bandwidth command. Specify strict priority dequeueing to the interface level queue with the priority command. The bandwidth command implements class-based weighted fair queueing (CBWFQ), and the priority command implements LLQ. Refer to Comparing the bandwidth and priority Commands of a QoS Service Policy for more information.

Model/Prioritization Scheme

Cisco recommends this model or prioritization scheme on a multiservice network:

Data Link Type

Minimum Cisco IOS Software Release

Classification

Prioritization

LFI1

Traffic Shaping

Serial lines

Cisco IOS Software Release 12.0(7)T

DSCP = EF for voice; DSCP = AF41 for all video conference traffic; DSCP = AF31 for voice control traffic; other classes of traffic have a unique classification.

LLQ with CBWFQ

MLP2

Frame Relay

Cisco IOS Software Release 12.1(2)T

DSCP = EF for voice; DSCP = AF41 for video; DSCP = AF31 for voice control traffic; other classes of traffic have a unique classification.

LLQ with CBWFQ

FRF.12

Shape traffic to CIR3.

ATM

Cisco IOS Software Release 12.1(5)T

DSCP = EF for voice; DSCP = AF41 for video; DSCP = AF31 for voice control traffic; other classes of traffic have a unique classification.

LLQ with CBWFQ

MLP over ATM

Shape traffic to guaranteed portion of bandwidth.

ATM and Frame Relay

Cisco IOS Software Release 12.1(5)T

DSCP = EF for voice; DSCP = AF41 for video; DSCP = AF31 for voice control traffic; other classes of traffic have a unique classification.

LLQ with CBWFQ

MLP over ATM and Frame Relay

Shape traffic to guaranteed portion of bandwidth on slowest link.

1 LFI = Link Fragmentation and Interleaving

2 MLP = multilink PPP

3 CIR = committed information rate

This list explains some key points of the model/prioritization scheme.

All traffic that remains can enter a default queue. If you specify a bandwidth, the queuing operation is FIFO. Alternatively, if you specify the keyword fair, the operation is weighted fair queuing (WFQ).

In addition, do not video conference on link speeds of less than 768 kbps. On low bit-rate links, the use of compressed RTP (cRTP) and LFI can reduce the effects of serialization and queueing delay.

Do not use cRTP with IP video conferences. This list provides best practices for cRTP:

Should Voice and Video Share LLQ?

A frequent consideration with multiservice QoS service policies is whether to configure voice and video conference traffic as priority classes. This consideration comes from the fact that LLQ presently supports a single strict-priority queue, even when you have configured multiple classes for prioritization. When you configure the VoIP and video classes with priority, the traffic from both of these classes goes into a single queue. Therefore, these reasons can cause you to choose not to place video in the priority queue:

Cisco has performed tests that placed video in the priority queue. The tests were with link speeds greater than 768 kbps and with proper CAC to avoid oversubscription. Cisco found that the placement of video in the priority queue did not introduce a noticeable increase in delay to the voice packets.

In general, you can select one of these models. Cisco has tested both models:

A third approach is to separate the audio component of the video conference. In other words, place the audio component in the priority queue and the video component in a bandwidth queue. However, video coders tend to have longer coding delays than voice coders. Therefore, if you give the audio streams of a video conference absolute priority, the audio streams arrive early and are held in order to achieve lip sync. So, there is no advantage if you place voice packets associated with a video conference in a queue with better service than the service that the video packets receive.

If you choose to place video and voice in the priority queue, mark the traffic types with different DSCP values. If you mark the traffic types with different DSCP values, you can use a different priority statement in your QoS service policy to control video. In particular, video can require a larger burst parameter.

CAC

The prioritization of traffic only solves part of the challenge of QoS provision for video over IP. A complete solution requires CAC.

CAC, or bandwidth control, is necessary to avoid the oversubscription of network resources. With video conferencing, a rejection of a video terminal that requests network resources is necessary to maintain the quality of existing video streams if the new terminal exceeds the available bandwidth. In other words, CAC protects video from video.

In general, there are three schemes for CAC provision for video calls:

Appendix II of the H.323 version 4 standard outlines an approach for the use of RSVP. The main points are:

Traffic Shaping

The use of Frame Relay for WAN connectivity introduces another QoS requirement. Specifically, when a higher-speed central site feeds one or more lower-speed remote sites, the central site can overrun both the physical bandwidth and the CIR bandwidth of the remote site. To prevent the send of too much bandwidth to a remote site, implement traffic shaping on the central-site router. Refer to these resources for more information on Frame Relay traffic shaping:

Interworking with H.323 Terminals

H.323 video conference networks typically consist of five functional components:

Cisco offers product solutions for all these components, except video terminals. Proof shows that Cisco H.323 products interoperate with third-party H.323 terminals.

In some cases, these terminals offer QoS tools to ensure the satisfaction of the delay and loss parameters of video traffic in the face of unpredictable data flows. For example, the Polycom Viewstation keeps track of all video packets after the establishment of a call. The Polycom Viewstation reports average latency as well as the number of lost video or audio packets. This tool also supports debugs with readable output. These debugs can help indicate the source of a problem that is not detectable through the analysis of the video output. For more information, refer to the document How to Configure Video over IP for Polycom Video Units.

Sample Configuration

This sample configuration demonstrates how to apply LLQ to video conference traffic that traverses a WAN link:

Sample Configuration

Sample Configuration 
class-map Video-Conf 
  match access-group 102 
class-map Streaming-Video 
  match access-group 103 
! 
policy-map QoS-Policy 
  class Video-Conf 
    priority 450 30000 
  class Streaming-Video 
    bandwidth 150 
class class-default 
    fair-queue 
! 
! -- Video-Conf Traffic 
access-list 102 permit ip any any dscp cs4 
access-list 102 permit ip any any dscp af41 
! 
! -- Streaming Traffic 
access-list 103 permit ip any any dscp cs1 
access-list 103 permit ip any any dscp af13

After you create a QoS policy map, apply the policy with the service-policy command. The type of interface to which you apply the policy determines the places of application of the command. Here are some examples:

Interface Type

Configuration Example

Leased line

line interface multilink1 
  service-policy output QoS-Policy 

ATM PVC1

interface atm 1/0.1 point 
  pvc 1/50 
    service-policy output QoS-Policy

Frame Relay VC2

map-class frame-relay vcofr 
  frame cir 128000 
  frame mincir 64000 
  frame bc 1000 
  frame frag 160 
  service-policy output QoS-policy 

Note: On the Cisco 7500 series with distributed QoS, use DTS3 commands. Refer to Frame Relay Traffic Shaping With Distributed QoS on the Cisco 7500 Series.

1 PVC = permanent virtual circuit

2 VC = virtual circuit

3 DTS = distributed traffic shaping

NetPro Discussion Forums - Featured Conversations

Networking Professionals Connection is a forum for networking professionals to share questions, suggestions, and information about networking solutions, products, and technologies. The featured links are some of the most recent conversations available in this technology.
NetPro Discussion Forums - Featured Conversations for RP
Service Providers: MPLS
Virtual Private Networks: Services
Virtual Private Networks: Security

Related Information


Toolbar

All contents are Copyright © 2006-2007 Cisco Systems, Inc. All rights reserved. Important Notices and Privacy Statement.


Updated: Feb 15, 2008Document ID: 21662