Cisco Ip Telephony Qos Design Guide
Cisco Ip Telephony Qos Design Guide
Cisco Ip Telephony Qos Design Guide
Corporate Headquarters Cisco Systems, Inc. 170 West Tasman Drive San Jose, CA 95134-1706 USA http://www.cisco.com Tel: 408 526-4000 800 553-NETS (6387) Fax: 408 526-4100
Customer Order Number: DOC-7811549= Text Part Number: 78-11549-01
THE SPECIFICATIONS AND INFORMATION REGARDING THE PRODUCTS IN THIS MANUAL ARE SUBJECT TO CHANGE WITHOUT NOTICE. ALL STATEMENTS, INFORMATION, AND RECOMMENDATIONS IN THIS MANUAL ARE BELIEVED TO BE ACCURATE BUT ARE PRESENTED WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. USERS MUST TAKE FULL RESPONSIBILITY FOR THEIR APPLICATION OF ANY PRODUCTS. THE SOFTWARE LICENSE AND LIMITED WARRANTY FOR THE ACCOMPANYING PRODUCT ARE SET FORTH IN THE INFORMATION PACKET THAT SHIPPED WITH THE PRODUCT AND ARE INCORPORATED HEREIN BY THIS REFERENCE. IF YOU ARE UNABLE TO LOCATE THE SOFTWARE LICENSE OR LIMITED WARRANTY, CONTACT YOUR CISCO REPRESENTATIVE FOR A COPY. The Cisco implementation of TCP header compression is an adaptation of a program developed by the University of California, Berkeley (UCB) as part of UCBs public domain version of the UNIX operating system. All rights reserved. Copyright 1981, Regents of the University of California. NOTWITHSTANDING ANY OTHER WARRANTY HEREIN, ALL DOCUMENT FILES AND SOFTWARE OF THESE SUPPLIERS ARE PROVIDED AS IS WITH ALL FAULTS. CISCO AND THE ABOVE-NAMED SUPPLIERS DISCLAIM ALL WARRANTIES, EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, THOSE OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OR ARISING FROM A COURSE OF DEALING, USAGE, OR TRADE PRACTICE. IN NO EVENT SHALL CISCO OR ITS SUPPLIERS BE LIABLE FOR ANY INDIRECT, SPECIAL, CONSEQUENTIAL, OR INCIDENTAL DAMAGES, INCLUDING, WITHOUT LIMITATION, LOST PROFITS OR LOSS OR DAMAGE TO DATA ARISING OUT OF THE USE OR INABILITY TO USE THIS MANUAL, EVEN IF CISCO OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. AtmDirector, Browse with Me, CCDA, CCDE, CCDP, CCIE, CCNA, CCNP, CCSI, CD-PAC, CiscoLink, the Cisco NetWorks logo, the Cisco Powered Network logo, Cisco Systems Networking Academy, the Cisco Systems Networking Academy logo, Fast Step, Follow Me Browsing, FormShare,FrameShare, GigaStack, IGX, Internet Quotient, IP/VC, iQ Breakthrough, iQ Expertise, iQ FastTrack, the iQ Logo, iQ Net Readiness Scorecard, MGX, the Networkers logo, Packet, PIX, RateMUX, ScriptShare, SlideCast, SMARTnet, TransPath, Voice LAN, Wavelength Router, WebViewer are trademarks of Cisco Systems, Inc.; Changing the Way We Work, Live, Play, and Learn, Empowering the Internet Generation, are service marks of Cisco Systems, Inc.; and Aironet, ASIST, BPX, Catalyst, Cisco, the Cisco Certied Internetwork Expert Logo, Cisco IOS, the Cisco IOS logo, Cisco Systems, Cisco Systems Capital, the Cisco Systems logo, Enterprise/Solver, EtherChannel, EtherSwitch, FastHub, IOS, IP/TV, LightStream, Post-Routing, Pre-Routing, Registrar, StrataView Plus, Stratm, SwitchProbe, TeleRouter, and VCO are registered trademarks of Cisco Systems, Inc. or its afliates in the U.S. and certain other countries. All other brands, names, or trademarks mentioned in this document or Web site are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (0011R) Cisco IP Telephony QoS Design Guide Copyright 2000, 2001, Cisco Systems, Inc. All rights reserved.
C O N T E N T S
Preface xi Purpose xi Audience xii Organization xii Conventions xiii Additional Information xv Obtaining Documentation xv World Wide Web xv Documentation CD-ROM xv Ordering Documentation xvi Obtaining Technical Assistance xvi Cisco Connection Online xvi Technical Assistance Center xvii Documentation Feedback xviii
CHAPTER
Overview 1-1 Why is QoS Needed? 1-1 Network Quality 1-2 Network Congestion 1-2 Delay and Jitter 1-2
iii
Contents
QoS Tools 1-5 Classification 1-5 Queuing 1-7 Network Provisioning 1-7 Summary 1-9
CHAPTER
Connecting IP Phones 2-1 Using a Single Cable to Install an IP Phone 2-2 Speed and Duplex Settings 2-3 Catalyst 4000 and 6000 2-4 Catalyst 3500 XL and 2900 XL 2-5 IP Addressing 2-5 Catalyst 4000 and 6000 2-6 Catalyst 3500 XL and 2900 XL 2-7 Classification and Queuing on the IP Phone 2-7 Catalyst 6000 2-9 Catalyst 2948G, 2980G, and 4000 2-10 Catalyst 3500 XL and 2900 XL 2-10 Using Multiple Cables to Install an IP Phone 2-11 Speed and Duplex 2-11 IP Addressing 2-12 Classification and Queuing on the IP Phone 2-12 Catalyst 6000 2-12 Catalyst 4000 2-13 Catalyst 3500 XL and 2900 XL 2-14
iv
78-11549-01
Contents
Installing SoftPhone 2-15 Speed and Duplex 2-15 IP Addressing 2-15 Classification and Queuing on the IP Phone 2-15 Using Separate Access Layer Switches for IP Phones 2-16 Speed and Duplex 2-16 IP Addressing 2-17 Classification and Queuing on the IP Phone 2-17 Summary 2-18
CHAPTER
Designing a Campus 3-1 Campus Switching Designs for Cisco AVVID 3-1 Queue Scheduling 3-4 Number of Queues 3-5 Marking Control and Management Traffic 3-6 Skinny Protocol 3-8 H.323 Protocol 3-9 MGCP 3-10 Catalyst 6000 Access Layer 3-11 Catalyst 6000 Port Scheduling and Queuing Schemes 3-13 Receive Interface 3-13 Transmit Interface 3-14 Configuring QoS Parameters 3-15 IP Phone Port Queuing 3-16 Verifying IP Phone Access Port Configuration 3-17 Uplink Interface to the Distribution Switch 3-21 MLS and Catalyst QoS Configuration 3-21
Contents
Catalyst 6000 Transmit Queue Configuration 3-21 Catalyst 6000 CoS/ToS-to-DSCP Mapping Configuration 3-22 Verifying CoS/ToS-to-DSCP Mapping 3-22 Catalyst 4000 Access Layer 3-23 Catalyst 4000 Port Scheduling and Queuing Schemes 3-23 Receive Interface 3-23 Transmit Interface 3-24 Catalyst 4000 Switch-Wide QoS 3-25 Verifying Catalyst 4000 Queue Admission Configuration 3-26 IP Phone Port Queuing 3-26 Uplink Interface to the Distribution Switch 3-26 Catalyst 3500 Access Layer 3-27 Catalyst 3500 Port Scheduling and Queuing Schemes 3-28 Receive Interface 3-28 Transmit Interface 10/100 Ports 3-28 Transmit Interface Gigabit Ethernet Ports 3-28 IP Phone Port Queuing 3-30 Uplink Interface to the Distribution Switch 3-30 Catalyst 6000 Distribution Layer 3-31 Configuring Catalyst 6000 Distribution Layer VoIP Control Traffic Transmit Queue 3-32 Catalyst 6000 Distribution Layer Configuration with a Catalyst 6000-PFC Access Layer 3-33 Trust DSCP from the Layer 3 Access Switch 3-33 Catalyst 6000 ToS-to-DSCP Mapping Configuration 3-34
vi
78-11549-01
Contents
Catalyst 6000 Distribution Layer Configuration with an Access Switch Enabled for Layer 2 Only 3-34 Trust CoS from the Layer 2 Access Switch 3-35 Catalyst 6000 CoS-to-DSCP Mapping Configuration 3-35 Configuring Layer 3 Access Lists for VoIP Control Traffic Classification 3-36 Configuring the Connection to the Cisco 7200 WAN Router 3-37 Catalyst 6000 Distribution/Core Running Native IOS 3-38 Configuring QoS on the Native Cisco IOS Catalyst 6000 3-39 Configuring Transmit Queue Admission for VoIP Control Traffic 3-40 Catalyst 6000 Native Cisco IOS Distribution Layer Configuration with a Catalyst 6000-PFC Access Layer 3-40 Trust DSCP from the Layer 3 Access Switch 3-40 Native Cisco IOS ToS-to-DSCP Mapping Configuration for Layer 3 Access Switches 3-41 Catalyst 6000 Native Cisco IOS Distribution Layer Configuration with an Access Switch Enabled for Layer 2 Only 3-42 Trust CoS from the Layer 2 Access Switch 3-42 Native IOS CoS-to-DSCP Mapping Configuration for Layer 2 Access Switches 3-43 Configure the QoS Policies and Layer 3 Access Lists for VoIP Control Traffic Classification 3-43 Summary 3-46
vii
Contents
CHAPTER
Building a Branch Office 4-1 Recommended Branch Office Designs 4-1 Using 802.1Q for Trunking Separate Voice and Data Subnets at the Branch Office 4-4 Catalyst 3600 Branch Office Router Using 802.1Q Trunking 4-5 Catalyst 4000 Using 802.1Q Trunking 4-6 Catalyst 3500 Using 802.1Q Trunking 4-6 Using Secondary IP Addressing for Separate Voice and Data Subnets at the Branch Office 4-7 Classifying VoIP Control Traffic at the Branch Office 4-7 Using a Single Subnet at the Branch Office 4-9 Cisco 1750 Single Subnet Configuration 4-9 Catalyst 3500 Single Subnet Configuration 4-10 Catalyst 2600 Single Subnet (no Trunking) Configuration 4-10 Catalyst 4000 Single Subnet Configuration 4-11 Summary 4-11
CHAPTER
Implementing a Wide Area Network 5-1 WAN QoS Overview 5-1 Classification 5-2 Queuing 5-2 Link Fragmentation and Interleaving 5-4 Traffic Shaping 5-6 Network Provisioning 5-7 Call Admission Control 5-10
viii
78-11549-01
Contents
Miscellaneous WAN QoS Tools 5-11 VoIP Control Traffic 5-11 TX-Ring Sizing 5-12 Compressed Voice Codecs 5-14 Compressed RTP 5-14 Voice Activity Detection 5-15 Point-to-Point WAN 5-16 LFI on Point-to-Point WANs 5-17 cRTP on MLP Connections 5-18 LLQ for VoIP over MLP 5-18 Verifying Queuing, Fragmentation, and Interleaving on an MLP Connection 5-20 Frame-Relay WAN 5-21 Traffic Shaping 5-22 Committed Information Rate 5-22 Committed Burst Rate 5-23 Excess Burst Rate 5-23 Minimum CIR 5-24 FRF.12 for LFI on Frame-Relay WANs 5-25 cRTP on Frame-Relay Connections 5-26 LLQ for VoIP over Frame Relay 5-26 Verifying Frame Relay Queuing, Fragmentation, and Interleaving 5-28 ATM WAN 5-30 Two PVCs or LFI on Low-Speed ATM WANs 5-32 cRTP on ATM Connections 5-33 LLQ for VoIP over ATM 5-34
ix
Contents
Frame-Relay-to-ATM Interworking WAN 5-35 LFI on Low-Speed ATM-to-Frame-Relay Interworking WANs 5-37 ATM Configuration at the Central Site 5-40 Frame-Relay Configuration at Remote Sites 5-41 cRTP on ATM-to-Frame-Relay Connections 5-41 LLQ for Voice over ATM and Frame Relay 5-41 Summary 5-42
INDEX
78-11549-01
Contents
Overview and Introduction to QPM 2.0 A1-1 Installing QPM 2.0 A1-2 Starting Policy Manager A1-3 Adding Devices A1-5 Importing Devices from CiscoWorks 2000 Resource Manager Essentials A1-7 Scaling QoS Management using Device Groups A1-13
CHAPTER
Campus QoS A2-1 Skinny Protocol Classification A2-1 H.323 Protocol Classification A2-15 MGCP Protocol Classification A2-19 Catalyst 6000 Access Layer A2-22 Catalyst 6000 Access LayerUplink Interfaces to Distribution Switch A2-25 Catalyst 6000 Access LayerCoS/ToS/DSCP Mappings A2-28 Catalyst 4000 Access Layer A2-28 Catalyst 3500 Access Layer A2-33 Catalyst 6000 Distribution Layer A2-34 Catalyst 6000 Distribution/Core Running Native IOS A2-35
CHAPTER
WAN QoS A3-1 Point-to-Point WAN A3-1 Frame-Relay WAN A3-8 ATM WAN A3-18 ATM-FR WAN A3-26
xi
Contents
xii
78-11549-01
Preface
This preface describes the purpose, intended audience, organization, and notational conventions for the Cisco IP Telephony QoS Design Guide.
Purpose
This document serves as an implementation guide for Voice over IP (VoIP) networks based on Cisco AVVID (Architecture for Voice, Video and Integrated Data). The goal of this document is to provide a blueprint for implementing the end-to-end Quality of Service (QoS) that is required for successful deployment of Cisco AVVID solutions in todays enterprise environment. This document cannot examine all the possible QoS congurations available for all Cisco AVVID products. However, it does present conguration examples that are typical of the ones used in the majority of applications today. In particular, this document addresses QoS issues relating to
Caution
The QoS design guidelines in this document are based on the best currently available knowledge about the functionality and operation of the Cisco AVVID components. The information in this document is subject to change without notice.
xi
Preface Audience
This document will be updated as the Cisco AVVID solution set grows with subsequent releases of Cisco CallManager and Cisco IOS.
Audience
This guide is intended for systems engineers and others responsible for designing VoIP networks based on Cisco AVVID solutions. This guide assumes that the reader has a basic knowledge of Cisco IOS, Cisco CatOS, Cisco AVVID products, and QoS theories in general.
Organization
The following table lists the chapters of this guide and the subjects they address: Chapter Chapter 1 Chapter 2 Title Overview Connecting IP Phones Description Introduces QoS terms and concepts, and explains how they relate to VoIP networks. Describes several different methods for connecting IP phones to the VoIP network, and explains the QoS issues related to each method. Discusses the QoS issues involved with designing and implementing a VoIP network for the enterprise campus. Discusses the QoS issue involved with connecting a branch ofce to the VoIP network. Discusses the QoS issues involved with implementing VoIP over a Wide Area Network.
Chapter 3
Designing a Campus
Chapter 4 Chapter 5
xii
78-11549-01
Preface Conventions
Conventions
This document uses the following conventions: Convention boldface font italic font [ ] {x|y|z} [x|y|z] string Description Commands and keywords are in boldface. Arguments for which you supply values are in italics. Elements in square brackets are optional. Alternative keywords are grouped in braces and separated by vertical bars. Optional alternative keywords are grouped in brackets and separated by vertical bars. A nonquoted set of characters. Do not use quotation marks around the string or the string will include the quotation marks. font Terminal sessions and information the system displays are in screen font. Information you must enter is in boldface
screen
screen
boldface screen
font.
font italic screen font Arguments for which you supply values are in italic screen font. This pointer highlights an important line of text in an example. ^ The symbol ^ represents the key labeled Controlfor example, the key combination ^D in a screen display means hold down the Control key while you press the D key. Nonprinting characters, such as passwords, are in angle brackets.
< >
xiii
Preface Conventions
Note
Means reader take note. Notes contain helpful suggestions or references to material not covered in the publication. Timesavers use the following conventions:
Timesaver
Means the described action saves time. You can save time by performing the action described in the paragraph. Tips use the following conventions:
Tips
Means the information contains useful tips. Cautions use the following conventions:
Caution
Means reader be careful. In this situation, you might do something that could result in equipment damage or loss of data. Warnings use the following conventions:
Warning
This warning symbol means danger. You are in a situation that could cause bodily injury. Before you work on any equipment, you must be aware of the hazards involved with electrical circuitry and familiar with standard practices for preventing accidents.
xiv
78-11549-01
Additional Information
This section contains references to online documentation that provide additional information on subjects covered in this guide.
High-availability design:
http://www.cisco.com/warp/partner/synchronicd/cc/sol/mkt/ent/ndsgn/hig
hd_wp.htm
http://www.zdnet.com/zdtag/whitepaper/campuslan.pdf
Obtaining Documentation
The following sections describe how to obtain this guide and other documents from Cisco.
Documentation CD-ROM
Cisco documentation and additional literature are available in a CD-ROM package, which ships with your product. The Documentation CD-ROM is updated monthly. Therefore, it is probably more current than printed documentation. The CD-ROM package is available as a single unit or as an annual subscription.
Cisco IP Telephony QoS Design Guide 78-11549-01
xv
Ordering Documentation
Registered CCO users can order the Documentation CD-ROM and other Cisco Product documentation through our online Subscription Services at http://www.cisco.com/cgi-bin/subcat/kaojump.cgi. Nonregistered CCO users can order documentation through a local account representative by calling Ciscos corporate headquarters (California, USA) at 408 526-4000 or, in North America, call 800 553-NETS (6387).
xvi
78-11549-01
WWW: www.cisco.com Telnet: cco.cisco.com Modem using standard connection rates and the following terminal settings: VT100 emulation; 8 data bits; no parity; and 1 stop bit.
From North America, call 408 526-8070 From Europe, call 33 1 64 46 40 82
In North America, TAC can be reached at 800 553-2447 or 408 526-7209. For other telephone numbers and TAC e-mail addresses worldwide, consult the following web site: http://www.cisco.com/warp/public/687/Directory/DirTAC.shtml.
xvii
Documentation Feedback
If you are reading Cisco product documentation on the World Wide Web, you can submit technical comments electronically. Click Feedback in the toolbar and select Documentation. After you complete the form, click Submit to send it to Cisco. You can e-mail your comments to [email protected]. To submit your comments by mail, for your convenience many documents contain a response card behind the front cover. Otherwise, you can mail your comments to the following address: Cisco Systems, Inc. Document Resource Connection 170 West Tasman Drive San Jose, CA 95134-9883 We appreciate and value your comments.
xviii
78-11549-01
C H A P T E R
Overview
This chapter presents an overview of the concepts and issues involved with maintaining Quality of Service (QoS) in an IP telephony network.
Packet loss causes voice clipping and skips. The industry standard codec algorithms used in Cisco Digital Signal Processor (DSP) can correct for up to 30 ms of lost voice. Cisco Voice over IP (VoIP) technology uses 20-ms samples of voice payload per VoIP packet. Therefore, for the codec correction algorithms to be effective, only a single packet can be lost during any given time. Packet delay can cause either voice quality degradation due to the end-to-end voice latency or packet loss if the delay is variable. If the end-to-end voice latency becomes too long (250 ms, for example), the conversation begins to sound like two parties talking on a CB radio. If the delay is variable, there is a risk of jitter buffer overruns at the receiving end. Eliminating drops and delays is even more imperative when including fax and modem trafc over IP networks. If packets are lost during fax or modem transmissions, the modems are forced to retrain to synchronize again. By examining the causes of packet loss and delay, we can gain an understanding of why Quality of Service (QoS) is needed in all areas of the enterprise network.
1-1
Overview
Network Quality
Voice packets can be dropped if the network quality is poor, if the network is congested, or if there is too much variable delay in the network. Poor network quality can lead to sessions frequently going out of service due to lost physical or logical connections. Because VoIP design and implementation is predicated on the assumption that the physical and logical network follows sound design methodologies and is extremely stable, network quality is not addressed in this guide.
Network Congestion
Network congestion can lead to both packet drops and variable packet delays. Voice packet drops from network congestion are usually caused by full transmit buffers on the egress interfaces somewhere in the network. As links or connections approach 100% utilization, the queues servicing those connections become full. When a queue is full, new packets attempting to enter the queue are discarded. This can occur on a campus Ethernet switch as easily as in the Frame Relay network of a service provider. Because network congestion is typically sporadic, delays from congestion tend to be variable in nature. Egress interface queue wait times or large serialization delays cause variable delays of this type. Both of these factors are discussed in the next section, Delay and Jitter.
1-2
78-11549-01
Chapter 1
network delay include the propagation delay of signals between the sending and receiving endpoints, voice encoding delay, and the voice packetization time for various VoIP codecs. Propagation delay calculations work out to almost 0.0063 ms/km. The G.729A codec, for example, has a 25 ms encoding delay value (two 10 ms frames + 5 ms look-ahead) and an additional 20 ms of packetization delay. Congested egress queues and serialization delays on network interfaces can cause variable packet delays. Without Priority or Low-Latency Queuing (LLQ), queuing delay times equal serialization delay times as link utilization approaches 100%. Serialization delay is a constant function of link speed and packet size. As shown in Table 1-1, the larger the packet and the slower the link clocking speed, the greater the serialization delay. While this is a known ratio, it can be considered variable because a larger data packet can enter the egress queue before a voice packet at any time. If the voice packet must wait for the data packet to serialize, the delay incurred by the voice packet is its own serialization delay plus the serialization delay of the data packet in front of it. Using Cisco Link Fragmentation and Interleave (LFI) techniques, discussed in Chapter 5, Implementing a Wide Area Network, serialization delay can be congured to be a constant delay value.
Table 1-1 Serialization Delay as a Function of Link Speed and Packet Size
Link Speed 64 Bytes 56 kbps 64 kbps 128 kbps 256 kbps 512 kbps 768 kbps 9 ms 8 ms 4 ms 2 ms 1 ms 0.640 ms 128 Bytes 18 ms 16 ms 8 ms 4 ms 2 ms 1.28 ms 36 ms 32 ms 16 ms 8 ms 4 ms 2.56 ms
Packet Size 256 Bytes 512 Bytes 72 ms 64 ms 32 ms 16 ms 8 ms 5.12 ms 1024 Bytes 144 ms 128 ms 64 ms 32 ms 16 ms 10.24 ms 1500 Bytes 214 ms 187 ms 93 ms 46 ms 23 ms 15 ms
Because network congestion can be encountered at any time within a network, buffers can ll instantaneously. This instantaneous buffer utilization can lead to a difference in delay times between packets in the same voice stream. This difference, called jitter, is the variation between when a packet is expected to
1-3
Overview
arrive and when it actually is received. To compensate for these delay variations between voice packets in a conversation, VoIP endpoints use jitter buffers to turn the delay variations into a constant value so that voice can be played out smoothly. Cisco VoIP endpoints use DSP algorithms that have an adaptive jitter buffer between 20 and 50 ms, as illustrated in Figure 1-1. The actual size of the buffer varies between 20 and 50 ms based on the expected voice packet network delay. These algorithms examine the timestamps in the Real-time Transport Protocol (RTP) header of the voice packets, calculate the expected delay, and adjust the jitter buffer size accordingly. When this adaptive jitter buffer is congured, a 10-ms portion of "extra" buffer is congured for variable packet delays. For example, if a stream of packets is entering the jitter buffer with RTP timestamps indicating 23 ms of encountered network jitter, the receiving VoIP jitter buffer is sized at a maximum of 33 ms. If a packet's jitter is greater than 10 ms above the expected 23-ms delay variation (23 + 10 = 33 ms of dynamically allocated adaptive jitter buffer space), the packet is dropped.
Figure 1-1 Adaptive Jitter Buffer Totally dynamically allocated buffer in this example = 33 ms
Network
CODEC
1-4
45837
Dynamically conlculated jitter buffer based on variable network delay in ms. (23 ms for example)
78-11549-01
Chapter 1
QoS Tools
Voice quality is only as good as the quality of the weakest network link. Packet loss, delay, and delay variation all contribute to degraded voice quality. In addition, because network congestion (or more accurately, instantaneous buffer congestion) can occur at any time in any portion of the network, network quality is an end-to-end design issue. The QoS tools discussed throughout this guide are a set of mechanisms to increase voice quality on data networks by decreasing dropped voice packets during times of network congestion and by minimizing both the xed and variable delays encountered in a given voice connection. These QoS tools can be separated into three categories:
Classification
Classication tools mark a packet or ow with a specic priority. This marking establishes a trust boundary that must be enforced. Classication should take place at the network edge, typically in the wiring closet or within the IP phones or voice endpoints themselves. Packets can be marked as important by using Layer 2 Class of Service (CoS) settings in the User Priority bits of the 802.1p portion of the 802.1Q header (see Figure 1-2) or the IP Precedence/Differentiated Services Code Point (DSCP) bits in the Type of Service (ToS) Byte of the IPv4 header (see Figure 1-3). All IP phone Real-time Transport Protocol (RTP) packets should be tagged with a CoS value of 5 for the Layer 2 802.1p settings and an IP Precedence value of 5 for Layer 3 settings. In addition, all Control packets should be tagged with a Layer 2 CoS value of 3 and a Layer 3 ToS of 3. Table 1-2 lists the CoS, IP Precedence, and DSCP settings for specifying packet priority.
1-5
Overview
Figure 1-2
Layer 2 Settings
DA SA Type TAG 4 Bytes PT DATA FCS
PREAM. SFD
PRI
CFI
VLAN ID
Figure 1-3
Layer 3 Settings
Layer 3 IPV4
ID
IP precedence
DS CP Standard IPV4: Three MSB called IP precedence (DiffServ may use six D.S. bits plus two for flow control)
Table 1-2
IP Precedence Routine (IP precedence 0) Priority (IP precedence 1) Immediate (IP precedence 2) Flash (IP precedence 3)
1-6
78-11549-01
45839
45838
Chapter 1
Table 1-2
IP Precedence Flash-override (IP precedence 4) Critical (IP precedence 5) Internet (IP precedence 6) Network (IP precedence 7)
The practice of using IP Precedence to mark trafc is a transitional step until all IP devices support DSCP. Ideally, in the future, all Cisco VoIP endpoints will use a DSCP value of Expedited Forwarding (EF) for the RTP voice bearer ows and a DSCP value of Assured Forwarding 31 (AF31) for VoIP Control trafc. Chapter 2, Connecting IP Phones, discusses classication at length.
Queuing
Queuing tools assign a packet or ow to one of several queues, based on classication, for appropriate treatment in the network. When data, voice, and video are placed in the same queue, packet loss and variable delay are much more likely to occur. By using multiple queues on egress interfaces and placing voice packets into a different queue than data packets, network behavior becomes much more predictable. Queuing is addressed in all sections of this guide because buffers can reach capacity in any portion of the network. Addressing serialization delay is considered part of an overall queuing solution. Because serialization delay is a factor only on slow-speed links (links of 768 kbps or below), it is addressed in Chapter 5, Implementing a Wide Area Network.
Network Provisioning
Network Provisioning tools accurately calculate the required bandwidth needed for voice conversations, all data trafc, any video applications, and necessary link management overhead such as routing protocols.
1-7
Overview
When calculating the required amount of bandwidth for running voice over a Wide Area Network, it is important to remember that all the application trafc (that is, voice, video, and data trafc), when added together, should equal no more than 75% of the provisioned bandwidth. The remaining 25% is used for overow and administrative overhead, such as routing protocols. VoIP bandwidth calculations, Asynchronous Transfer Mode (ATM) cell overhead, and other details involved in network provisioning are discussed in Chapter 5, Implementing a Wide Area Network. The Cisco QoS tools and example congurations in this guide are modeled on the network depicted in Figure 1-4.
Figure 1-4 General VoIP Network Model
IP WAN PPP Frame Relay ATM VLAN = 40 IP 3500 VVID = 150 IP VLAN = 50
6000-PFD
1750
3500
Cisco CallManager VVID = 110 IP VLAN = 11 VVID = 111 4000 Data VLAN 10.1.VLAN.x Voice VLAN 10.1.VVID.x VVID = Auxiliary VLAN
45840
2600
3600
IP
= Smart bits
1-8
78-11549-01
Chapter 1
Overview Summary
Summary
Quality of Service (QoS) for Voice over IP (VoIP) is guaranteed when proper VoIP network design is combined with the new Cisco Catalyst products, the latest Cisco IOS releases, and Cisco CallManager call admission control technologies. When building a Cisco AVVID network, you should adhere to the following core principles:
Use 802.1Q/p connections for the IP phones and use the Auxiliary VLAN for voice. Classify voice RTP streams as EF or IP Precedence 5 and place them into a second queue (preferably a priority queue) on all network elements. Classify Voice Control trafc as AF31 or IP Precedence 3 and place it into a second queue on all network elements. Enable QoS within the campus if LAN buffers are reaching 100% utilization. Always provision the WAN properly, allowing 25% of the bandwidth for overhead, routing protocols, Layer 2 link information, and other miscellaneous trafc. Use Low Latency Queuing (LLQ) on all WAN interfaces. Use Link Fragmentation and Interleaving (LFI) techniques for all link speeds below 768 kbps.
These principles are described more fully in subsequent chapters of this guide.
1-9
Chapter 1 Summary
Overview
1-10
78-11549-01
C H A P T E R
Connecting IP Phones
This chapter describes Quality of Service (QoS) issues relating to IP phones. As illustrated in Figure 2-1, there are essentially four ways to connect an IP phone to a campus network: using a single cable, using multiple cables, using the SoftPhone application running on a PC, or using separate switches for voice and data. Each of these connectivity methods has challenges for providing guaranteed voice quality. This chapter addresses those challenges, which can be summarized as follows:
What speed and duplex settings should be used to connect an IP phone? What VLAN and IP addressing scheme should be used? How is classication and queuing handled for Voice over IP (VoIP) ows on an IP phone?
2-1
Connecting IP Phones
IP
IP
2 Multiple cables
SoftPhone
IP
2-2
45841
Multiple switches
IP
78-11549-01
Chapter 2
Figure 2-2
RX
IP
TX
TX
45842
2-3
Connecting IP Phones
The use of Auto-Negotiation is the recommended conguration for IP phone connections because any user can modify his NIC conguration and enable 100BaseT full-duplex. In addition, using Auto-Negotiation enables 100BaseT full-duplex port speeds, which creates the infrastructure needed to support high-speed video applications. Also, by using the CatOS PortFast mechanism, you can congure the phone access port to move into a forwarding state immediately, thereby decreasing IP phone boot time. To perform this conguration, use the set port host command on the Catalyst 4000 and 6000 or the spanning-tree portfast command on the 2900 XL and 3500 XL, which turns off Dynamic Trunking Protocol (DTP) and Port Aggregation Protocol (PAgP) and enables PortFast. For more details on this conguration, see the Catalyst 4000 and 6000 and Catalyst 3500 XL and 2900 XL sections below.
Note
Phone boot times should not normally be a problem because the phone stays powered and connected at all times.
Note
Inline power is available only on power-enabled Ethernet line cards and is enabled by default.
2-4
78-11549-01
Chapter 2
IP Addressing
After you have congured the speed and duplex settings for the IP phones, you need to consider IP addressing issues. There are three IP addressing options for the phones:
Create a new subnet and use it for IP phones in a different IP address space (registered or RFC 1918 address space). Figure 2-3 illustrates this approach. Provide an IP address in the same subnet as the existing data device (PC or workstation). Start a new subnet in the existing IP address space. This might require redoing some or all of the IP addressing plan for the organization.
All of these options can be implemented using either Dynamic Host Conguration Protocol (DHCP) or static IP address conguration. Adding IP phones can potentially double your need for IP address space. While this may not be an issue in some enterprises, others may not have the available address space in particular subnets or even throughout the enterprise. These IP address space concerns, combined with the requirement of separation between the voice and data networks for administrative and QoS reasons, lead to the recommendation of creating a new subnet for the IP Phones.
2-5
Connecting IP Phones
Figure 2-3
IP
IP phone = IP Subnet 110 Desktop PC; IP Subnet 10
Note
Using a separate subnet, and potentially a separate IP address space, may not be an option for some small branch ofces. Single address space congurations for connecting both IP phones and data devices is addressed in Chapter 4, Building a Branch Ofce.
2-6
45843
78-11549-01
Chapter 2
Note
For ease of troubleshooting, the VLAN can be congured to match the subnet address.
2-7
Connecting IP Phones
Bridge Protocol Data Unit (BPDU) and CoS=5 trafc. These queues are all serviced in a round-robin fashion with a timer used on the high-priority queue. If this timer expires while the queue scheduler is servicing the other queues, the scheduler automatically moves back to the high-priority queue and empties its buffer, ensuring voice quality. Figure 2-4 shows the queuing scheme for an IP phone.
Figure 2-4 From phone P0 Voice = 5 Queuing for an IP Phone Interface queue Queue 0 (PQ) Queue 1 Data = 0 P1 From PC Queue 2 Queue 3 PQ is for QoS 5 flows and BPDUs
45844
P2
To switch
Because the high-priority queue for the IP phone is accessible to any Layer 2 CoS=5 trafc, it is critical to make sure that the PC connected to the access port of the IP phone is not classifying trafc also. The recommended method for ensuring this is to extend the trust boundary of the Ethernet switch to the IP phone and not beyond, as illustrated in Figure 2-5.
2-8
78-11549-01
Chapter 2
Figure 2-5
Trust Boundaries for IP Phone IP phone switch ASIC Untrusted: Phone ASIC will rewrite COS = 0 COS = 5 COS = 5
COS = 0
COS = 7
IP
Catalyst 6000
On Catalyst 6000 switches, trust boundary extension is done using the set port qos trust-ext command in Cisco CatOS Release 5.5. This command instructs the IP phone to mark trafc from the attached PC as CoS=0. Once the phone is congured to manipulate the CoS value, you must also congure the port to accept the CoS of the IP phone. On current Catalyst 10/100 Ethernet line cards, this requires a combination of conguration steps. First, the actual port has to be instructed to trust Layer 2 Ethernet CoS values from the IP phone. You can do this by using the set port qos trust commands. To overcome a conguration limitation on the line card ASIC, you must congure an additional Access Control List (ACL) to trust the IP phones. The best way to accomplish this is by
45845
2-9
Connecting IP Phones
conguring an ACL to trust all CoS classication on Ethernet ports in the Auxiliary VLAN. The commands for establishing a classication and trust boundary at the IP phone are as follows:
cat6k-access> cat6k-access> cat6k-access> cat6k-access> cat6k-access> cat6k-access> (enable) (enable) (enable) (enable) (enable) (enable) set port qos 5/1-48 trust-ext untrusted set port qos 5/1-48 trust trust-cos set qos acl ip ACL_IP-PHONES trust-cos ip any any set port qos 5/1-48 vlan-based commit qos acl all set qos acl map ACL_IP-PHONES 110
Note
The additional ACL conguration will not be required with the next generation of Catalyst 6000 10/100 line cards.
2-10
78-11549-01
Chapter 2
You are connecting IP phones that do not have a second Ethernet port for attaching a PC. You want to create a physical separation between the voice and data networks. You want to provide in-line power easily to the IP phones without having to upgrade the data infrastructure. You want to limit the number of switches that need UPS power. You want to limit the amount of CatOS upgrades needed in the network. You want to limit the Spanning Tree conguration in the wiring closet switches.
2-11
Connecting IP Phones
IP Addressing
The recommended conguration for using multiple cables to connect IP phones to the Cisco AVVID network is to use a separate IP subnet and separate VLANs for IP telephony.
Note
Using a separate subnet, and possibly a separate IP address space, may not be an option for some small branch ofces due to the IP routing conguration. If the IP routing can handle an additional subnet at the remote branch, you can use Cisco Network Registrar and secondary addressing. Chapter 4, Building a Branch Ofce, discusses single address space congurations for connecting both IP phones and data devices.
Catalyst 6000
In the example shown in Figure 2-6, a Catalyst 6000 is used as a wiring closet switch. Ports 3/1-24 connect to IP phones, and ports 3/25-48 connect to data-only PCs. Because this is a tightly managed environment, all Layer 2 CoS settings are enforced on the Catalyst 6000.
2-12
78-11549-01
Chapter 2
Figure 2-6
Catalyst 4000
Currently there is no dot1p extension to the auxialaryvlan command on the Catalyst 2948G, 2980G, and 4000 switches. To use the 802.1p classication of the IP phone for switch QoS, you must congure the Auxiliary VLAN with the same value as the port VLAN ID. This enables the IP phone to mark packets with the proper CoS settings. The commands for implementing this conguration are
cat4k> cat4k> cat4k> cat4k> (enable) (enable) (enable) (enable) set set set set vlan vlan port port 11 2/25-48 111 2/1-24 host 2/1-48 auxiliaryvlan 2/1-24 111
45846
Ports 3/1-24 - phone trusted look for 802.1p ports 3/25-48-pc untrusted set port cos 0
IP
2-13
Connecting IP Phones
Interface FastEtherenet 0/1 - phone untrusted set port COS 5 Interface FastEtherenet 0/2 - pc untrusted set port COS 0
2-14
45847
IP
78-11549-01
Chapter 2
Installing SoftPhone
Some companies deploy IP telephony using the Cisco SoftPhone application. In addition, many companies wish to evaluate the viability of using PC-based VoIP applications. Many PC network interface cards (NICs) do not currently set 802.1P CoS bits for Layer 2 classication. Even if the PCs did set Layer 2 frame markings, the vast majority of network administrators would resist "trusting" a user's PC. Because of these factors, Cisco SoftPhone currently classies voice packets only at the Layer 3 IP header. In fact, all voice bearer packets originating from the Cisco SoftPhone application are marked with an IP Precedence value of 5. Of course, this marking requires a wiring closet Ethernet switch that is Layer 3 enabled, with multiple queues, to correctly queue these voice packets. Currently, this limits Cisco SoftPhone designs to PCs connected to Catalyst 6000 switches with a Policy Feature Card (PFC) installed.
IP Addressing
IP addressing is not an issue in this case because the SoftPhone application runs on a PC.
2-15
Connecting IP Phones
Note
The switch must be congured to trust IP Precedence values from the Cisco SoftPhone application on the PC. In the following example, a Catalyst 6000 is used as a wiring closet switch. The supervisor engine of the Catalyst 6000 has a PFC daughter card installed, which provides Layer 3/4 QoS intelligence. The access port connected to the PC is congured to trust all IP Precedence values originating from the PC. An ACL, ACL_SOFTPHONE, is also added as a workaround for the current conguration limitations on the Catalyst 6000 10/100 line cards. The commands for this conguration are
set qos enable set port qos 7/1-48 port-based set port qos 7/1-48 trust trust-ipprec set qos acl ip ACL_SOFTPHONE trust-ipprec ip any any commit qos acl ACL_SOFTPHONE set qos acl map ACL_SOFTPHONE 7/1-48
2-16
78-11549-01
Chapter 2
IP Addressing
The recommended conguration for connecting IP phones to separate access layer switches on a Cisco AVVID network is to use a separate IP address space and separate VLANs for IP telephony. In this case, the entire second switch, the newly installed VoIP-only Ethernet switch, runs a single VLAN. No trunking is necessary between the IP phone and the Ethernet switch. However, Cisco recommends that you use 802.1p for tagging VoIP packets from the IP phone as "important." The commands for implementing this conguration are
cat4k> cat4k> cat4k> cat4k> cat4k> (enable) (enable) (enable) (enable) (enable) set set set set set port port vlan port port inlinepower 2/1-48 auto inlinepower 2/25-48 off 111 2/1-48 host 2/1-48 auxiliaryvlan 2/1-24 111
2-17
Chapter 2 Summary
Connecting IP Phones
Summary
As described in this chapter, the following general guidelines and recommendations apply when connecting IP phones to the Cisco AVVID network:
Use Auto-Negotiation for port settings on the wiring closet switch. Install IP phones on a separate voice-only subnet. Use PortFast to decrease IP phone boot time. Extend the classication trust boundary to the phone using trust-ext commands. Never allow PC applications to send trafc at a CoS or ToS value of 5-7. Use only Layer 3 or 4 wiring closet switches with SoftPhone.
Note
Attaching IP phones to any shared media devices, such as an Ethernet hub, is not supported.
Note
Cascading (daisy chaining) of IP phones is not supported at this time. Correctly connecting the IP phone is the rst step in enabling QoS in the enterprise VoIP network. By enabling port Auto-Negotiation and classifying CoS and ToS, the IP phone can serve as the edge or boundary of the intelligent enterprise network.
2-18
78-11549-01
C H A P T E R
Designing a Campus
This chapter covers design considerations and recommendations for implementing the Cisco AVVID network in a campus environment.
3-1
Designing a Campus
Figure 3-1
Si
Core
TX TX TX TX
Si
Distribution
Si
TX TX TX
TX
Access
TX
IP
Transmit buffers have a tendency to ll to capacity in high-speed campus networks due to the bursty nature of data networks combining with the high volume of smaller Transmission Control Protocol (TCP) packets. If an output buffer lls, ingress interfaces are not able to place new ow trafc into the output buffer. Once the ingress buffer lls, which can happen very quickly, packet drops will occur. Typically, these drops are more than a single packet in any given ow. As stated earlier, packet loss causes voice clipping and skips. Current Cisco Digital Signal Processor (DSP) algorithms can correct for 30 ms of lost voice. Cisco VoIP technology uses 20-ms samples of voice payload per VoIP packet. Thus, current DSP algorithms allow for only a single voice Real-time Transport Protocol (RTP) packet to be lost during any given time. If two successive voice packets are lost, voice quality begins to degrade. Figure 3-2 illustrates this situation.
3-2
45848
78-11549-01
Chapter 3
Loss of Voice Quality When Transmit Buffer Is Full Ethernet switch RX Data flows "hog" TX buffer
Data RX Data RX Voice RX Additional flows, including voice, cannot get access to TX queue Tx To core
VoIP trafc is sensitive to both delayed packets and dropped packets. As long as a campus is using Gigabit Ethernet trunks, which have extremely fast serialization times, delay should never be a factor regardless of the size of the queue buffer. Drops, however, always adversely affect voice quality in the campus. Using multiple queues on transmit interfaces is the only way to eliminate the potential for dropped trafc caused by buffers operating at 100% capacity. By separating voice and video (which are both sensitive to delays and drops) into their own queues, you can prevent ows from being dropped at the ingress interface even if data ows are lling up the data transmit buffer. Figure 3-3 illustrates the use of separate voice and data buffers.
45849
3-3
Designing a Campus
Using Separate Transmit Buffers for Voice and Data Ethernet switch RX Queue assignment based on QoS/ToS classification Tx RX To core
Data RX Data
Voice
Note
It is critical to verify that Flow Control is disabled when enabling QoS (multiple queues) on Catalyst switches. Flow Control will interfere with the congured queuing behavior by acting on the ports before queuing is activated. Flow Control is disabled by default.
Queue Scheduling
The scheduler process can use a variety of methods to service each of the transmit queues (voice and data). The easiest method is a Round-Robin (RR) algorithm, which services queue 1 through queue N in a sequential manner. While not robust, this is an extremely simple and efcient method that can be used for branch ofce and wiring closet switches. Distribution Layer switches use a Weighted Round-Robin (WRR) algorithm in which higher priority trafc is given a scheduling "weight." Another option is to combine Round-Robin or Weighted Round-Robin scheduling with priority scheduling for applications that are sensitive to packet delay and drop. This uses a priority queue (PQ) that is always served rst when there are packets in the queue. If there are no frames in the PQ, the additional queues are scheduled using RR or WRR.
3-4
45850
78-11549-01
Chapter 3
Number of Queues
There has been much discussion about how many queues are actually needed on transmit interfaces in the campus. Should you add a queue to the wiring closet switches for each Class of Service (CoS) value? Should you add eight queues to the distribution layer switches? Should you add a queue for each of the 64 Differentiated Services Code Point (DSCP) values? This section presents some guidelines that address these questions. First, it is important to remember that each port has a nite amount of buffer memory. A single queue has access to all the memory addresses in the buffer. As soon as a second queue is added, the nite buffer amount is split into two portions, one for each queue. Now all packets entering the switch must contend for a much smaller portion of buffer memory. During periods of high trafc, the buffer lls, and packets are dropped at the ingress interface. Because the majority of network trafc today is TCP-based, a dropped packet results in a re-send, which further increases network congestion. Therefore, queuing should be used cautiously and only when particular priority trafc is sensitive to packet delays and drops. Two queues are adequate for wiring closet switches, where buffer management is less critical than at other layers. How these queues are serviced (Round-Robin, Weighted Round-Robin, or Priority Queuing) is less critical than the number of buffers because the scheduler process is extremely fast when compared to the aggregate amount of trafc. Distribution layer switches require much more complex buffer management due to the ow aggregation occurring at that layer. Not only are priority queues needed, but you should also specify thresholds within the standard queues. Cisco has chosen to use multiple thresholds within queues instead of continually increasing the number of interface queues. As discussed earlier, each time a queue is congured and allocated, all of the memory buffers associated with that queue can be used only by frames meeting the queue entrance criteria. The following example illustrates this concept: Assume that a Catalyst 4000 10/100 Ethernet port has two queues congured, one for VoIP (VoIP bearer and control trafc) and the default queue, which is used for Hypertext Transfer Protocol (HTTP), e-mail, File Transfer Protocol (FTP), logins, Windows NT Shares, and Network File System (NFS). The 128-KB voice queue is split into a 7:1 transmit and receive ratio. The transmit buffer memory is then further separated into high- and low-priority partitions in a 4:1 ratio. If the default trafc (the web, e-mail, and le shares) begins to congest the default queue, which is only 24 KB, packets begin dropping at the ingress interfaces. This occurs
3-5
Designing a Campus
regardless of whether the VoIP control trafc is using any of its queue buffers. The dropped packets of the TCP-oriented applications cause each of these applications to send the data again, aggravating the congested condition of the network. If this same scenario were congured with a single queue, but with multiple thresholds used for congestion avoidance, the default trafc would share the entire buffer space with the VoIP control trafc. Only during periods of congestion, when the entire buffer memory approaches saturation, would the lower priority trafc (HTTP and e-mail) be dropped. This discussion does not imply that multiple queues are to be avoided in Cisco AVVID networks. As discussed earlier, the VoIP bearer streams must use a separate queue to eliminate the adverse affects that packet drops and delays have on voice quality. However, every single CoS or DSCP value should not get its own queue because the small size of the resulting default queue will cause many TCP re-sends and will actually increase network congestion. In addition, the VoIP bearer channel is a bad candidate for queue congestion avoidance algorithms such as Weighted Random Early Detection (WRED). Queue thresholding uses the WRED algorithm to manage queue congestion when a preset threshold value is specied. Random Early Detection (RED) works by monitoring buffer congestion and discarding TCP packets if the congestion begins to increase. The result of the drop is that the sending endpoint detects the dropped trafc and slows the TCP sending rate by adjusting the window size. A WRED drop threshold is the percentage of buffer utilization at which trafc with a specied CoS value is dropped, leaving the buffer available for trafc with higher priority CoS values. The key is the word "Random" in the algorithm name. Even with weighting congured, WRED can still discard packets in any ow; it is just statistically more likely to drop them from the lower CoS thresholds.
3-6
78-11549-01
Chapter 3
To ensure that this control and management trafc is marked as important (but not as important as the actual RTP stream), Access Control Lists (ACLs) are used to classify these streams on Catalyst 5000 and 6000 switches that are enabled for Layer 3/4. Examples of these congurations are detailed in the Catalyst 6000 Access Layer section on page 3-11. For designs where a Cisco IOS router is the rst Layer 3 or 4 access point, ACLs are used. Examples of these congurations are included in Chapter 5, Implementing a Wide Area Network. Figure 3-4 shows a typical server farm design, with an access layer switch providing access to the distribution layer.
Figure 3-4 Typical Server Farm
Si
Core
Distribution
Si
Catalyst 6000
Si
Access
4/2 4/3 4/4
V H.323 Gateway
45851
V MGSP Gateway
3-7
Designing a Campus
Skinny Protocol
Cisco CallManager communicates with IP phones and gateways using TCP ports 2000-2002. The following example commands classify all Skinny Protocol trafc from IP phones and gateways (VLAN 110) and Cisco CallManager (4/2) as DSCP 26 (AF31, which is backward compatible with IP Precedence 3).
Note
Beginning with Release 3.0(5), Cisco CallManager includes the ability to congure the CoS and ToS values for all VoIP control and management trafc from Cisco CallManager, the IP phones, and the Skinny Protocol gateways (this does not include the AT and AS model analog gateways). With this user-congurable classication, network element access lists are no longer required for marking Skinny Protocol VoIP control trafc. H.323 and Media Gateway Control Protocol (MGCP) trafc still require external, network element marking for several more months. The following commands perform these functions:
1. 2.
Enable switch-wide QoS. Create an access control list (ACL_IP-PHONES), marking all Skinny Client and Gateway Protocol trafc from the IP phones and from Skinny Protocol gateways with a DSCP value of 26 (AF31). Add to the ACL_IP-PHONE access list, trusting all DSCP markings from the IP phone, so that the ToS=5 RTP trafc is not rewritten. Create an access control list (ACL_VOIP_CONTROL), marking all Skinny Client and Gateway Protocol trafc from Cisco CallManager with a DSCP value of 26 (AF31). Accept incoming Layer 2 CoS classication. (Current 10/100 version "1" line cards must have trust-cos enabled even though the parser returns an error). Inform the port that all QoS associated with the port will be done on a VLAN basis. Instruct the IP phone to rewrite CoS from the PC to CoS=0 within the IP phone Ethernet ASIC. Inform Cisco CallManager port (4/2) that all QoS associated with the port will be done on a port basis.
3. 4.
5. 6. 7. 8.
3-8
78-11549-01
Chapter 3
9.
10. Map the ACL_IP-PHONE access control list to the auxiliary VLAN. 11. Map the ACL_VOIP_CONTROL access control list to the Cisco
CallManager port.
cat6k-access> cat6k-access> cat6k-access> cat6k-access> 2002 cat6k-access> cat6k-access> cat6k-access> cat6k-access> cat6k-access> cat6k-access> cat6k-access> (enable) (enable) (enable) (enable) (enable) (enable) (enable) (enable) (enable) (enable) (enable) set set set set qos qos qos qos enable acl ip ACL_IP-PHONES dscp 26 tcp any any range 2000 2002 acl ip ACL_IP-PHONES trust-cos ip any any acl ip ACL_VOIP_CONTROL dscp 26 tcp any any range 2000
set port qos 5/1-48 trust trust-cos set port qos 5/1-48 vlan-based set port qos 5/1-48 trust-ext untrusted set port qos 4/2 port-based commit qos acl all set qos acl map ACL_IP-PHONES 110 set qos acl map ACL_VOIP_CONTROL 4/2
H.323 Protocol
Cisco CallManager communicates with H.323 gateways using TCP ports 1720 (H.225) and 11xxx (H.245). The following example commands classify H.323 control trafc from Cisco CallManager (4/2) and from H.323 gateways (4/3) as DSCP 26 (AF31, which is backward compatible with IP Precedence 3).
cat6k-access> cat6k-access> 11999 cat6k-access> cat6k-access> cat6k-access> cat6k-access> cat6k-access> (enable) set qos acl ip ACL_VOIP_CONTROL dscp 26 tcp any any eq 1720 (enable) set qos acl ip ACL_VOIP_CONTOL dscp 26 tcp any any range 11000 (enable) (enable) (enable) (enable) (enable) set port qos 4/2 port-based set port qos 4/3 port-based commit qos acl ACL_VOIP_CONTROL set qos acl map ACL_VOIP_CONTROL 4/2 set qos acl map ACL_VOIP_CONTROL 4/3
3-9
Designing a Campus
MGCP
Cisco CallManager communicates with Media Gateway Control Protocol (MGCP) gateways using User Datagram Protocol (UDP) port 2427. The following example commands classify MGCP control trafc from Cisco CallManager (4/2) and from the MGCP gateway (4/4) as DSCP 26 (AF31, which is backward compatible with IP Precedence 3).
cat6k-access> cat6k-access> cat6k-access> cat6k-access> cat6k-access> cat6k-access> (enable) (enable) (enable) (enable) (enable) (enable) set qos acl ip ACL_VOIP_CONTROL dscp 26 udp any any eq 2427 set port qos 4/2 port-based set port qos 4/4 port-based commit qos acl ACL_VOIP_CONTROL set qos acl map ACL_VOIP_CONTROL 4/2 set qos acl map ACL_VOIP_CONTROL 4/4
Example 3-1 shows the command and its associated output for verifying that the Access Control Lists (ACLs) are attached to the correct VLANs and ports.
Example 3-1 Verifying the ACLs
cat6k-access> (enable) sh qos acl map run all ACL name Type Vlans -------------------------------- ---- ------------------------------ACL_IP-PHONES IP 110,111,112 ACL name Type Ports -------------------------------- ---- ------------------------------ACL_IP-PHONES IP ACL name Type Vlans -------------------------------- ---- ------------------------------ACL_VOIP_CONTROL IP ACL name Type Ports -------------------------------- ---- ------------------------------ACL_VOIP_CONTROL IP 4/2,4/3,4/4
3-10
78-11549-01
Chapter 3
The Catalyst 6000 can provide in-line power to the IP phones. The Catalyst 6000 offers the highest growth potential. The Catalyst 6000 supports the most advanced Layer 2/3 campus QoS tools in the Cisco product line.
Figure 3-5 shows a general model for the Catalyst 6000 QoS congurations discussed in this guide.
Figure 3-5 General Model for Catalyst 6000 QoS Congurations
Si
Core
Distribution
Si
Si
Catalyst 6000
Access
VLAN = 10
45852
3-11
Designing a Campus
With the addition of the Policy Feature Card (PFC) daughter card, the Catalyst 6000 is inherently capable of handling Layer 2, 3, and 4 QoS issues. The PFC can be used to enable advanced QoS tools such as packet classication and marking, scheduling, and congestion avoidance based on either Layer 2 or Layer 3 and 4 header information. Multiple receive and transmit queues with thresholds can be congured and used according to the QoS policy rules congured in the switch. The Catalyst 6000 has two versions of Supervisor Engines, the Sup1 and Sup1A. There are also two versions of Catalyst 6000 line cards, the second of which is also denoted by an "A" product number. All Catalyst 6000 Ethernet modules support a single receive queue with four thresholds and two transmit queues, each with two thresholds. The "A" cards include enhanced QoS features that provide an additional priority queue for both ingress and egress interfaces. These queues are serviced in a Weighted Round-Robin (WRR) method, except for the priority queue, which is always serviced as soon as frames have entered the queue. To see how a port is congured, issue the show port capabilities <mod/port> CatOS command. The default QoS capabilities of the port can be changed using the set qos map <port_type> rx | tx <queue#> <threshold#> and set qos wred-threshold commands. When modifying the queue thresholds, it is important to remember that the higher priority queue has a higher numerical value. Scheduling for the Catalyst 6000 transmit interfaces is managed by the WRR algorithm. Each queue is given a user-congurable weight. By default, the "high" queue is given 98% of the scheduler time, and the "low" queue is given just 2%. This ratio is conducive to ensuring that packets with a low delay tolerance are not delayed in a queue. This is also the reason behind giving the "low" queue a much higher percentage of the overall interface buffer. If the Priority Queue (PQ) is congured, it will always be serviced rst. If no frames reside in the PQ, WRR begins to schedule the other two queues.
3-12
78-11549-01
Chapter 3
Receive Interface
There are two possible congurations for the receive interface, depending on whether or not a priority queue is needed:
1Q4T One standard queue with four drop thresholds. 8-KB receive buffer for 10/100 Mbps 64-KB receive buffer for 1000 Mbps Available on all 10/100/1000 Mbps modules The default values for the drop thresholds are
1P1Q4T One Priority Queue (PQ) and one standard queue with four drop thresholds Available only on certain versions of 10/100/1000 Mbps modules, depending on line card By default, all CoS 5 frames are placed in the PQ, which uses a strict priority scheduling algorithm.
3-13
Designing a Campus
The default values for the drop thresholds in the standard queue are Queue # 1 1 1 1 2 % of Buffer Capacity 50% 60% 80% 100% 100% Drop CoS Value 0-1 2-3 4 6-7 5
Transmit Interface
There are two possible congurations for the transmit interface, depending on whether a priority queue is needed:
2Q2T Two standard queues with two drop thresholds. The high-priority queue is allocated 20% of the total queue size, and the low-priority queue is allocated 80% of the total queue size. Available on all 10/100/1000 Mbps modules The default values for the drop thresholds are
Queue #
% of Buffer Capacity
1 - Low Priority - 80% of 40% total queue size 100% 2 - High Priority - 20% of 40% total queue size 100%
1P2Q2T One Priority Queue (PQ) and two standard queues with two drop thresholds. By default, all CoS 5 frames are placed in the PQ, which uses a strict priority scheduling algorithm that always services the PQ rst, and, once the PQ is
3-14
78-11549-01
Chapter 3
empty, WRR is used on the remaining queues. The PQ gets allocated 15% of the total queue size, as does the high-priority queue. The low-priority queue is allocated 70% of the total queue size. Available only on certain versions of 10/100/1000 Mbps modules, depending on line card The default values for the drop thresholds are Queue # % of Buffer Capacity Drop CoS Value 0-1 2-3 4 6-7 5
1 - Low Priority - 70% of 40% total queue size 100% 2 - High Priority - 15% of 40% total queue size 100% 3 - Priority Queue - 15% 100% of total queue size
3-15
Designing a Campus
IP
Catalyst 6000 with PFC IP phone: IP Subnet 110 Desktop PC; IP Subnet 10
45853
The following commands enable QoS on the access layer Catalyst 6000 by performing these functions:
1. 2. 3. 4.
Enable switch-wide QoS. Inform the port that all QoS associated with the port will be done on a VLAN basis. Instruct the IP phone to rewrite CoS from the PC to CoS=0 within the IP phone Ethernet ASIC. Accept incoming Layer 2 CoS classication. (Current 10/100 version "1" line cards must still have trust-cos enabled even though the parser returns an error). Create an access list that accepts incoming Layer 3 ToS classication (necessary only on 10/100 ports). Write the access list to hardware. Map the access list to the auxiliary VLAN.
(enable) (enable) (enable) (enable) (enable) (enable) (enable) set qos enable set port qos 5/1-48 vlan-based set port qos 5/1-48 trust-ext untrusted set port qos 5/1-48 trust trust-cos set qos acl ip ACL_IP-PHONES trust-cos any commit qos acl ACL_IP-PHONES set qos acl map ACL_IP-PHONES 110
5. 6. 7.
3-16
78-11549-01
Chapter 3
Once QoS has been enabled on the Catalyst 6000 access layer switch, you can use the following command to place all CoS=3 (VoIP control) trafc into the second transmit queue, with a low drop threshold, to ensure successful call control during periods of heavy congestion. All CoS=5 (VoIP RTP Bearer) trafc is placed into the second queue automatically.
cat6k-access> (enable) set qos map 2q2t tx 2 1 cos 3
This command shows the QoS settings for the specied port. See Example 3-2.
This command shows QoS runtime information for the specied port. See Example 3-3.
This command shows Media Access Control (MAC) information for the specied port. See Example 3-4.
This command shows summary QoS statistics for all ports. See Example 3-5.
This command shows detailed QoS statistics for the specied port. See Example 3-6.
3-17
Designing a Campus
Example 3-2
cat6k-access> (enable) sh port qos 5/1 QoS is enabled for the switch QoS policy source for the switch set to local. Port Interface Type Interface Type Policy Source Policy Source config runtime config runtime ----- -------------- -------------- ------------- ------------5/1 vlan-based vlan-based COPS local Port Trust Type Trust Type Def CoS Def CoS config runtime config runtime ----- ------------ ------------ ------------ ------------- ------- ------5/1 2q2t 1q4t trust-cos trust-cos* 0 0 Port Ext-Trust Ext-Cos ----- --------- ------5/1 untrusted 0 (*)Runtime trust type set to untrusted. Config: Port ACL name Type ----- -------------------------------- ---No ACL is mapped to port 5/1. ACL is mapped to VLAN Runtime: Port ACL name Type ----- -------------------------------- ---No ACL is mapped to port 5/1. TxPort Type RxPort Type
3-18
78-11549-01
Chapter 3
Example 3-3
cat6k-access>(enable) sh qos info run 5/1 Run time setting of QoS: QoS is enabled Policy Source of port 5/1: Local Current 10/100 "1" linecards support 2q2t/1q4t only Tx port type of port 5/1 : 2q2t Rx port type of port 5/1 : 1q4t Interface type: vlan-based ACL is mapped to VLAN ACL attached: The qos trust type is set to trust-cos. Warning: Runtime trust type set to untrusted. Default CoS = 0 Queue and Threshold Mapping for 2q2t (tx): Queue Threshold CoS ----- --------- --------------1 1 0 1 1 2 2 2 1 3 4 5 2 2 6 7 Queue and Threshold Mapping for 1q4t (rx): Queue Threshold CoS ----- --------- --------------1 1 0 1 1 2 2 1 3 3 4 5 1 4 6 7 . . .
3-19
Designing a Campus
Example 3-4
cat6k-access> (enable) sh mac 5/1 Port Rcv-Unicast Rcv-Multicast Rcv-Broadcast -------- -------------------- -------------------- -------------------5/1 267223 37 4 Port Xmit-Unicast Xmit-Multicast Xmit-Broadcast -------- -------------------- -------------------- -------------------5/1 28748894 5206 72 Port Rcv-Octet Xmit-Octet -------- -------------------- -------------------5/1 17178128 1840430081 "Out-Discards" are packets drooped due to congestion in the tx interface buffers MAC Dely-Exced MTU-Exced In-Discard Out-Discard -------- ---------- ---------- ---------- ----------5/1 0 0 0 262140
Example 3-5
cat6k-access> (enable) sh qos stat l3 VoIP Control packets that have been re-written with CoS=3/DSCP=26 (AF31) Packets dropped due to policing: 0 IP packets with ToS changed: 1885 IP packets with CoS changed: 781 Non-IP packets with CoS changed: 0
Example 3-6
cat6k-access> (enable) sh qos stat 5/1 All packets dropped are in the 1st drop threshold of queue #1 Tx port type of port 5/1 : 2q2t Q # Threshold #:Packets dropped --- ----------------------------------------------1 1:393210 pkts, 2:0 pkts 2 1:0 pkts, 2:0 pkts Rx port type of port 5/1 : 1q4t Q # Threshold #:Packets dropped --- ----------------------------------------------1 1:0 pkts, 2:0 pkts, 3:0 pkts, 4:0 pkts
3-20
78-11549-01
Chapter 3
3-21
Designing a Campus
3-22
78-11549-01
Chapter 3
The Catalyst 4006 can provide in-line power to the IP phones. The Catalyst 4000 offers a very low price per port. These switches provide extremely scalable, high-speed switching.
Starting with CatOS Release 5.2, the Catalyst 4000 lines support dual-transmit queues on every interface. Admission to the queues is based on Layer 2 CoS markings and is congurable in 802.1p User Priority pairs.
Receive Interface
The recommended conguration for the receive interface is
3-23
Designing a Campus
Transmit Interface
The recommended conguration for the transmit interface is
2Q1T Two standard queues with a single threshold. Scheduling is done on a Round-Robin (RR) basis. Admission to the queues is based on 802.1p CoS value and is user congurable in pairs. If you enable QoS but do not modify the CoS-to-transmit queue mappings, switch performance could be affected because all trafc is assigned to queue 1.
Note
Once QoS is enabled on the Catalyst 4000, you must change the CoS mappings to utilize the newly created queue.
The default queue admission criteria for the Catalyst 4000 are Queue # 1 2 Queue Admission CoS Value 0-7 Broadcast, Multicast, and Unknown Trafc
Figure 3-7 shows a general model for the Catalyst 4000 QoS congurations discussed in this guide.
3-24
78-11549-01
Chapter 3
Figure 3-7
Si
Core
Distribution
Si
Si
Catalyst 6000
Access
VLAN = 11
45854
3-25
Designing a Campus
3-26
78-11549-01
Chapter 3
entrance criteria on the two-gigabit uplinks. The four queues are scheduled using a user-congurable WRR algorithm. In this case, the transmit interface conguration is as follows:
4Q1T Four standard queues with a single threshold. Scheduling is done on a Round-Robin (RR) basis. Admission to the queues is based on 802.1p CoS value and is user congurable in pairs.
Note
Once QoS is enabled on the Catalyst, you must change CoS mappings to utilize the newly created queue. Note that the Layer 3 queue numbering is the reverse of the Layer 2 numbering.
The default Layer 3 1000-Mbps uplink queue admission criteria for the Catalyst 4000 are as follows: Queue Admission IP Precedence Value 6-7 4-5 2-3 0-1
Queue # 1 2 3 4
3-27
Designing a Campus
Receive Interface
The recommended conguration for the receive interface is
2Q1T Two standard queues with a single drop threshold. Scheduling is done on a priority-scheduling basis. Admission to the queues is based on 802.1p CoS or port-priority CoS value and is not user congurable. The queue admission criteria for the Catalyst 3500 are as follows:
Queue # 1 2
8Q-FIFO Eight standard queues with a single drop threshold. Currently, only two queues are used. Scheduling is done on a priority-scheduling basis. Admission to the queues is based on 802.1p or port-priority CoS values and is not user congurable.
3-28
78-11549-01
Chapter 3
The gigabit Ethernet queue admission criteria are as follows: Queue # 1 2 3-8 Queue Admission CoS Value 0-3 4-7 Not Used
Figure 3-8 shows a general model for the Catalyst 3500 QoS congurations discussed in this guide.
Figure 3-8 General Model for Catalyst 3500 QoS Congurations
Si
Core
Distribution
Si
Si
Catalyst 6000
Access
VLAN = 12
45855
3-29
Designing a Campus
Note
A Catalyst 3500 series GigaStack conguration cannot provide guaranteed voice QoS because it is essentially a shared media access model. The commands for this conguration are
interface GigabitEthernet0/1 switchport trunk encapsulation dot1q switchport mode trunk
3-30
78-11549-01
Chapter 3
Congure VoIP control trafc transmit queuing. Congure the distribution layer with a Layer 3 access switch:
Enable trust ToS and DSCP from the access layer. Congure ToS-to-DSCP mappings.
Figure 3-9 shows a general model for these Catalyst 6000 distribution layer congurations, which are discussed in the following sections.
3-31
Designing a Campus
Figure 3-9
General Model for Catalyst 6000 Distribution Layer Congurations Native IOS Hybrid Catalyst 6000 Catalyst 6000 Cisco 7200 LAN router
Si
4000
3500
VVID = 110
IP
IP
IP
VVID = 112
VLAN = 10
VLAN = 11
VLAN = 12
45856
VVID = 111
Configuring Catalyst 6000 Distribution Layer VoIP Control Traffic Transmit Queue
As soon as QoS is enabled, all VoIP (CoS=5) trafc is placed into the egress interface Priority Queue on 1p2q2t interfaces and into Queue #2 on 2q2t interfaces (for all versions "1" of the 10/100 line cards). You must also perform an additional step of conguring the Catalyst 6000 CoS queue admission rules to ensure that CoS=3 trafc ows (VoIP control trafc) are placed into the second queue. The commands for performing this conguration are
cat6k-distrib> (enable) set qos map 1p2q2t tx queue 2 1 cos 3 cat6k-distrib> (enable) set qos map 2q2t tx queue 2 1 cos 3
3-32
78-11549-01
Chapter 3
Catalyst 6000 Distribution Layer Configuration with a Catalyst 6000-PFC Access Layer
Once you have enabled QoS on the distribution layer switch and have modied the default queue admission, two conguration steps remain for completing the integration with an access layer switch that is enabled for Layer 3:
Enable trust DSCP from the access layer. Congure ToS-to-DSCP mappings.
3-33
Designing a Campus
Catalyst 6000 Distribution Layer Configuration with an Access Switch Enabled for Layer 2 Only
Once you have enabled QoS on the distribution layer switch and have modied the default queue admission, you must perform three additional conguration steps to complete the integration with a Layer 2 access switch:
Enable trust CoS from the access layer. Congure CoS-to-DSCP mappings. Congure Layer 3 access lists for VoIP control trafc classication. (See the Marking Control and Management Trafc section on page 3-6.)
3-34
78-11549-01
Chapter 3
3-35
Designing a Campus
cat6k-distrib> (enable) sh qos acl info run ACL_IP-PHONES set qos acl IP ACL_IP-PHONES ---------------------------------------------1. dscp 26 tcp any any range 2000 2002 2. dscp 26 tcp any any eq 1720 3. dscp 26 tcp any any range 11000 11999 4. dscp 26 udp any any eq 2427 5. trust-cos any
Note
Beginning with Release 3.0(5), Cisco CallManager includes the ability to congure the CoS and ToS values for all VoIP control and management trafc from Cisco CallManager, the IP phones, and the Skinny Protocol gateways (this does not include the AT and AS model analog gateways). With this user-congurable classication, network element access lists are no longer required for marking Skinny Protocol VoIP control trafc. H.323 and Media Gateway Control Protocol (MGCP) trafc still require external, network element marking for several more months.
3-36
78-11549-01
Chapter 3
Note
Current 10/100 version "1" line cards must still have trust-ipprec enabled even though the parser returns an error
cat6k-distrib> (enable) set port qos 9/1 port-based cat6k-distrib> (enable) set port qos 9/1 trust trust-ipprec cat6k-distrib> (enable) set qos acl ip ACL_TRUST-WAN trust-ipprec any cat6k-distrib> (enable) commit qos acl ACL_TRUST-WAN cat6k-distrib> (enable) set qos acl map ACL_TRUST-WAN 9/1 cat6k-distrib> (enable) sh port qos 9/1 QoS is enabled for the switch. QoS policy source for the switch set to local. Port Interface Type Interface Type Policy Source Policy Source config runtime config runtime ----- -------------- -------------- ------------- ------------9/1 port-based port-based COPS local Port TxPort Type RxPort Type Trust Type Trust Type Def CoS Def CoS config runtime config runtime -------------------------------------------------------------------9/1 2q2t 1q4t trust-ipprec trust-ipprec 0 0 Port Ext-Trust Ext-Cos ----- --------- ------9/1 untrusted 0 (*)Runtime trust type set to untrusted. Config: Port ACL name Type ----- -------------------------------- ---9/1 ACL_TRUST-WAN IP Runtime: Port ACL name Type ----- -------------------------------- ---9/1 ACL_TRUST-WAN IP
3-37
Designing a Campus
Congure QoS. Congure VoIP control trafc transmit queuing. Congure the distribution layer with a Layer 3 access switch:
Enable trust ToS and DSCP from the access layer. Congure ToS-to-DSCP mappings.
trafc classication. Figure 3-10 shows a general model for congurations running Native Cisco IOS on Catalyst 6000 distribution layer switches. The conguration details are discussed in the sections that follow.
3-38
78-11549-01
Chapter 3
Figure 3-10 General Model for Native Cisco IOS Running on Catalyst 6000 Distribution Layer Switches Native IOS Hybrid Catalyst 6000 Catalyst 6000 Distribution Catalyst 6000 wtih PFC Access 6000
Si
Si
4000
3500
VVID = 110
IP
IP
IP
VVID = 112
VLAN = 10
VLAN = 11
VLAN = 12
45856
VVID = 111
3-39
Designing a Campus
Catalyst 6000 Native Cisco IOS Distribution Layer Configuration with a Catalyst 6000-PFC Access Layer
Once you have enabled QoS on the Native Cisco IOS distribution layer switch and have modied the default queue admission, two conguration steps remain for completing the integration with an access layer switch that is enabled for Layer 3:
Enable trust DSCP from the access layer. Congure ToS-to-DSCP mappings.
Note
Classication has already been established at the access layer in this model.
3-40
78-11549-01
Chapter 3
Native Cisco IOS ToS-to-DSCP Mapping Configuration for Layer 3 Access Switches
Cisco follows the IETF recommendations for setting the DSCP classication values for both the VoIP control plane trafc and VoIP bearer or media plane trafc. The recommended settings are DSCP=AF31 for VoIP control plane and DSCP=EF for VoIP bearer plane. To map the Layer 3 IP precedence settings correctly to these DSCP values, you must modify the default ToS-to-DSCP mappings.
Note
The Catalyst 6000 numerical values of 26 and 46 correlate to DSCP=AF31 and DSCP=EF, respectively. This is done in global conguration mode. The command for this conguration is
mls qos map ip-prec-dscp 0 8 16 26 32 46 56 0
3-41
Designing a Campus
Catalyst 6000 Native Cisco IOS Distribution Layer Configuration with an Access Switch Enabled for Layer 2 Only
Once you have enabled QoS on the distribution layer switch and have modied the default queue admission, you must perform three additional conguration steps to complete the integration with a Layer 2 access switch:
Enable trust CoS from the access layer. Congure CoS-to-DSCP mappings. Congure Layer 3 access lists for VoIP control trafc classication. (See the Marking Control and Management Trafc section on page 3-6.)
3-42
78-11549-01
Chapter 3
Note
The Catalyst 6000 numerical values of 26 and 46 correlate to DSCP=AF31 and DSCP=EF, respectively. This is a done in global conguration mode. The command for this conguration is
mls qos map cos-dscp 0 8 16 26 32 46 56 0
Configure the QoS Policies and Layer 3 Access Lists for VoIP Control Traffic Classification
The QoS conguration for the Native Cisco IOS Catalyst 6000 is very similar to the WAN router Cisco IOS congurations, with the exception of using policing for marking trafc ows and applying service policies to VLAN interfaces. The physical gigabit Ethernet uplink ports are congured to use VLAN-based QoS with the mls qos vlan-based Native Cisco IOS interface commands. Finally, the service-policy is applied to all VLAN trafc inbound on the uplink. In the following example, three classes are dened: one for the VoIP media stream, one for the control trafc, and the last for all other trafc. Trafc is ltered for these classes based on Layer 3 or 4 source and destination IP addresses and ports. Each of these classes is referenced in the Voice-QoS policy map. In the policy-map statements, a policing function is used to classify all trafc that meets the entrance criteria matched with the class-map access lists.
Note
The Catalyst 6000 Native Cisco IOS software does not support the set ip dscp commands. Instead, the policing algorithm is used for classifying trafc.
3-43
Designing a Campus
In this scenario, the policing code tags the trafc ows with DSCP values of AF31 for VoIP control trafc, EF for VoIP Media trafc, and 0 for all other packets. The size of the "8000" ows is low enough that any trafc will solicit tagging using the syntax conform-action set-dscp-transmit 26.
class-map match-all VoIP-Control match access-group 100 class-map match-all VoIP-RTP match access-group 101 class-map match-all Routine match access-group 102 ! ! policy-map Voice-QoS class VoIP-Control police 8000 8000 8000 conform-action set-dscp-transmit 26 exceed action transmit class VoIP-RTP police 8000 8000 8000 conform-action set-dscp-transmit 46 exceed-action transmit class Routine police 8000 8000 8000 conform-action set-dscp-transmit 0 exceed-action transmit ! ! access-list 100 looks for VoIP Control Traffic access-list 100 permit tcp any any range 2000 2002 access-list 100 permit tcp any any eq 1720 access-list 100 permit tcp any any range 11000 11999 access-list 100 permit udp any any eq 2427 ! ! access-list 101 looks for VoIP Bearer Traffic access-list 101 permit udp any any range 16384 32767 ! ! access-list 102 filters for routine traffic access-list 102 permit ip any any ! interface GigabitEthernet2/2 description trunk port to layer 2-only cat4k no ip address wrr-queue cos-map 1 2 2 wrr-queue cos-map 2 1 3 4 ! inform the port that QoS will be VLAN-Based mls qos vlan-based switchport switchport trunk encapsulation dot1q switchport mode trunk !
3-44
78-11549-01
Chapter 3
interface GigabitEthernet3/1 description trunk port to layer 2-only 3500 no ip address wrr-queue cos-map 1 2 2 wrr-queue cos-map 2 1 3 4 ! inform the port that QoS will be VLAN-Based mls qos vlan-based switchport switchport trunk encapsulation dot1q switchport mode trunk ! interface Vlan111 description voice vlan on cat4k ip address 10.1.111.77 255.255.255.0 ip helper-address 10.1.10.10 no ip redirects ! apply the QoS policy as an inbound policy service-policy input Voice-QoS standby 111 ip 10.1.111.1 ! interface Vlan112 description voice vlan on 3500 ip address 10.1.112.77 255.255.255.0 ip helper-address 10.1.10.10 no ip redirects ! apply the QoS policy as an inbound policy service-policy input Voice-QoS standby 112 ip 10.1.112.1
ios6k#sh mls qos QoS is enabled globally Microflow policing is enabled globally QoS is vlan-based on the following interfaces: Vl111 V112 Gi2/2 Gi3/1 Gi3/2 Gi3/3 Gi3/4 Gi3/5 Gi3/6 Gi3/7 Gi3/8 Gi4/1 Gi4/2 Gi4/3 Gi4/4 Gi4/5 Gi4/6 Gi4/7 Gi4/8 Fa9/1 Fa9/2 Fa9/3 Fa9/4 Fa9/5 Fa9/6 Fa9/7 Fa9/8 Fa9/9 Fa9/10 Fa9/11 Fa9/12 Fa9/13 Fa9/14 Fa9/15 Fa9/16 Fa9/17 Fa9/18 Fa9/19 Fa9/20 Fa9/21 Fa9/22 Fa9/23 Fa9/24 Fa9/25 Fa9/26 Fa9/27 Fa9/28 Fa9/29 Fa9/30 Fa9/31 Fa9/32 Fa9/33 Fa9/34 Fa9/35 Fa9/36 Fa9/37 Fa9/38 Fa9/39 Fa9/40 Fa9/41 Fa9/42 Fa9/43 Fa9/44 Fa9/45 Fa9/46 Fa9/47 Fa9/48
3-45
Chapter 3 Summary
Designing a Campus
QoS global counters: Total packets: 16750372458300 Packets dropped by policing: 55930847232 IP packets with TOS changed by policing: 16750372458300 IP packets with COS changed by policing: 55945330688 Non-IP packets with COS changed by policing: 16750372458300
Summary
As described in this chapter, the following general guidelines and recommendations apply when conguring a Cisco AVVID network in a campus environment:
Multiple queues are required on all interfaces to guarantee voice quality. To enable fast convergence, use UplinkFast in wiring closet switches that have multiple egress queues, such as the Catalyst 2900 XL, 3500, 2948G, 2980G, 4000, and 6000 switches. Set all Cisco AVVID control and management trafc to maximum CoS and ToS values of 3. Never allow PC applications to send trafc at a CoS or ToS value of 4-7. Distribution layer switches must have the ability to map Layer 3 ToS to Layer 2 CoS values.
3-46
78-11549-01
C H A P T E R
Voice quality across the WAN Voice quality within the branch ofce
This chapter addresses branch ofce design, IP addressing, and voice quality within the branch ofce. Details of WAN QoS tools for ensuring voice quality across the WAN are covered in Chapter 5, Implementing a Wide Area Network. Figure 4-1 shows areas where QoS concerns might arise in a branch ofce.
4-1
Figure 4-1
IP
TX
TX
TX
TX
Typically, when branch ofces are designed, only a single IP subnet is used for each ofce. Changing this conguration is seldom feasible because doing so affects the enterprise-wide routing scheme. Therefore, realistic branch ofce designs must examine three IP addressing options for IP phones:
Congure two VLANs by dividing the existing remote ofce IP address space into subnets, and use 802.1Q for trunking if the router supports trunking. Congure two VLANs by dividing the existing remote ofce IP address space into subnets, and use secondary IP addressing on the Ethernet interface of the router. Use a single IP address space and VLAN at each remote ofce.
Each scenario described in this chapter uses a single cable to install an IP phone in the branch ofce because this is the more common methodology in practice today. Figure 4-2 shows the general model for the branch ofce congurations described in this chapter.
4-2
45857
78-11549-01
Chapter 4
Figure 4-2
1750
Cisco CallManager
6000-PFD
2600
VVID = 100
VLAN = 11 VVID = 110 4000 Data VLAN 10.1.VLAN.x Voice VLAN 10.1.VVID.x VVID = Auxiliary VLAN
45858
3600
IP
= Smart bits
4-3
Chapter 4 Using 802.1Q for Trunking Separate Voice and Data Subnets at the Branch Office
Using 802.1Q for Trunking Separate Voice and Data Subnets at the Branch Office
You should always use separate VLANs for voice and data when there is an option to segment the existing IP address space of the branch ofce. Ethernet switches that support only Layer 2 services, such as the current Catalyst 3500 and 4000 series, are used in almost every branch ofce design. When this is the case, the branch WAN routers trunk the separate VLANs from the Ethernet switch. This is done using 802.1Q trunking on the router and switch. As has been described throughout this guide, User Priority bits in the 802.1p portion of the 802.1Q standard header are used to provide prioritization in Ethernet switches. This is a vital component in designing Cisco AVVID networks. Cisco IOS Release 12.1(5)T includes the Modular CLI QoS code. These additions enable the mapping of Layer 3 tagged VoIP packets coming from the WAN to be classied with the appropriate Layer 2 802.1D User Priority marking for proper queuing on the branch ofce Catalyst Ethernet switch. At the headquarters, the Catalyst 6000 correlates all Layer 3 ToS settings to the correct Layer 2 CoS value at the ingress interface.
4-4
78-11549-01
Chapter 4
Building a Branch Office Using 802.1Q for Trunking Separate Voice and Data Subnets at the Branch Office
4-5
Chapter 4 Using 802.1Q for Trunking Separate Voice and Data Subnets at the Branch Office
4-6
78-11549-01
Chapter 4
Building a Branch Office Using Secondary IP Addressing for Separate Voice and Data Subnets at the Branch Office
Using Secondary IP Addressing for Separate Voice and Data Subnets at the Branch Office
Separate VLANs for voice and data are still recommended in cases where the branch router does not support 802.1Q trunking. For example, the Cisco 1750 router does not support trunking, but a logical separation of voice and data trafc is still desirable. An alternative to trunking is to use secondary IP addressing on the Cisco router. The following example shows this type of conguration for the Cisco 1750 at a branch ofce:
interface FastEthernet0 description to Catalyst 3500 mac-address 0000.1750.0001 ip address 10.1.40.1 255.255.255.128 ip address 10.1.40.129 255.255.255.128 secondary ip helper-address 10.1.10.10 no ip mroute-cache speed 100 full-duplex
Note
Beginning with Release 3.0(5), Cisco CallManager includes the ability to congure the CoS and ToS values for all VoIP control and management trafc from Cisco CallManager, the IP phones, and the Skinny Protocol gateways (this does not include the AT and AS model analog gateways). With this user-congurable classication, network element access lists are no longer required for marking Skinny Protocol VoIP control trafc. H.323 and Media Gateway Control Protocol (MGCP) trafc still require external, network element marking for several more months.
4-7
The following example shows a conguration for classifying VoIP Control trafc at the branch ofce:
interface FastEthernet0 mac-address 0000.1750.0001 ip address 10.1.60.1 255.255.255.0 ip helper-address 10.1.10.10 ! Attach the route-map to the FastEthernet interface ip policy route-map Set-IP-QoS no ip mroute-cache load-interval 30 speed auto full-duplex ! ! Match all Skinny, H.323 and MGCP Control Traffic ! Skinny marking is required only until ! Cisco CallManager Release 3.0(5). access-list 101 permit tcp any any range 2000 2002 access-list 101 permit tcp any any eq 1720 access-list 101 permit tcp any any range 11000 11999 access-list 101 permit udp any any eq 2427 ! ! Match all VoIP RTP Traffic access-list 102 permit udp any any range 16384 32767 ! ! Match all other traffic access-list 103 permit ip any any ! ! Set all Skinny, H.323 and MGCP Control traffic, matched ! with ac 101 to IP Precedence 3 route-map Set-IP-QoS permit 10 match ip address 101 set ip precedence flash ! ! Just match VoIP RTP Traffic. Do not change the ! default classification of ToS=5 route-map Set-IP-QoS permit 20 match ip address 102 ! ! Make sure all data traffic is set to IP Precedence 0 route-map Set-IP-QoS permit 30 match ip address 103 set ip precedence routine
4-8
78-11549-01
Chapter 4
4-9
4-10
78-11549-01
Chapter 4
Summary
As described in this chapter, the following general guidelines and recommendations apply when conguring a branch ofce on a Cisco AVVID network:
The branch WAN router must support the advanced QoS tools for Cisco AVVID networks. Use a switch that supports multiple queues. Currently, there is no way to pass Layer 3 ToS classication to Layer 2 CoS in the routers. However, future releases of Cisco IOS will contain additional QoS features that allow for these mappings.
4-11
Chapter 4 Summary
4-12
78-11549-01
C H A P T E R
When the low bandwidths and slow link speeds of a WAN are introduced into a Cisco AVVID design, you must also use several additional QoS tools:
Link Fragmentation and Interleaving (LFI) Trafc shaping Call admission control
5-1
All of these tools, plus several others, are described in the following sections.
Classification
Classication is the method by which certain trafc types are classied, or marked, as having unique handling requirements. These requirements might be a minimum required amount of bandwidth or a low tolerance for latency. This classication can be signaled to the network elements via a tag included in the IP Precedence or Differentiated Services Code Point (DSCP), in Layer 2 schemes such as 802.1p, in the source and destination IP addresses, or in the implicit characteristics of the data itself, such as the trafc type using the Real-time Transport Protocol (RTP) and a dened port range. In the recommended Cisco AVVID QoS design model, classication is done at both Layer 2 and Layer 3 on the IP phone. In this model, the phone is the "edge" of the managed network, and it sets the Layer 2 802.1p CoS value to 5 and the Layer 3 IP Precedence value to 5 or the DSCP value to EF. For more details on classication, see Chapter 2, Connecting IP Phones.
Queuing
As was discussed in previous chapters, interface queuing is one of the most important mechanisms for ensuring voice quality within a data network. This is even more vital in the WAN because many trafc ows are contending for a very limited amount of network resources. Once trafc has been classied, the ow can be placed into an interface egress queue that meets its handling requirements. Voice over IP, because of its extremely low tolerance for packet loss and delay, should be placed into a Priority Queue (PQ). However, other trafc types may have specic bandwidth and delay characteristics as well. These requirements are addressed with the Low-Latency Queuing (LLQ) feature in Cisco IOS. LLQ combines the use of a PQ with a class-based weighted fair queuing scheme. Classes are dened with classication admission schemes. Trafc ows have access to either the PQ, one of the class-based queues, or a default weighted fair queue. LLQ, the recommended queuing scheme for all low-speed links, allows up to 64 trafc classes with the ability to specify such parameters as priority queuing behavior for voice, a minimum bandwidth for Systems Network Architecture (SNA) data, and Cisco AVVID control protocols and weighted fair queuing for other trafc types.
Cisco IP Telephony QoS Design Guide
5-2
78-11549-01
Chapter 5
As depicted in Figure 5-1, when a Priority Queuing class is congured, the PQ has direct access to the transmit (TX) ring. This is, of course, unless interleaving is congured, in which case interleaving occurs prior to placing the PQ trafc onto the TX-ring.
Figure 5-1 Packet Flow with Priority Queuing Layer 2 Queuing Subsystem Link Fragmentation and Interleave Police TX Ring Packets out
Interleave Fragment
The maximum congured bandwidth in the PQs and class-based queues cannot exceed the minimum available amount of bandwidth on the WAN connection. A practical example is a Frame Relay LLQ with a Committed Information Rate (CIR) of 128 kbps. If the PQ for VoIP is congured for 64 kbps and both the SNA and Cisco AVVID control protocol class-based queues are congured for 20 kbps and 10 kbps, respectively, the total congured queue bandwidth is 94 kbps. Cisco IOS defaults to a minimum CIR (mincir) value of CIR/2. The mincir value is the transmit value a Frame Relay router will "rate down" to when Backward Explicit Congestion Notications (BECNs) are received. In this example, the mincir value is 64 kbps and is lower than the congured bandwidth of the combined queues. For LLQ to work in this example, a mincir value of 128 kbps should be congured.
45859
Packets in
WFQ
Default
5-3
Frame Size (Bytes) Link Speed 56 kbps 64 kbps 128 kbps 256 kbps 512 kbps 768 kbps 64 9 ms 8 ms 4 ms 2 ms 1 ms 0.640 ms 128 18 ms 16 ms 8 ms 4 ms 2 ms 1.28 ms 256 36 ms 32 ms 16 ms 8 ms 4 ms 2.56 ms 512 72 ms 64 ms 32 ms 16 ms 8 ms 5.12 ms 1024 144 ms 128 ms 64 ms 32 ms 16 ms 10.4 ms 1500 214 ms 187 ms 93 ms 46 ms 23 ms 15 ms
LFI tools are used to fragment large data frames into regularly sized pieces and to interleave voice frames into the ow so that the end-to-end delay can be predicted accurately. This places bounds on jitter by preventing voice trafc from being delayed behind large data frames, as illustrated in Figure 5-2. The two techniques used for this are FRF.12 for Frame Relay and Multilink Point-to-Point Protocol (MLP) for point-to-point serial links.
5-4
78-11549-01
Chapter 5
Figure 5-2
Using LFI Tools to Reduce Frame Delay Frame Size Serialization Delay = --------------------------------Link Speed
Before
60-Byte Voice
1500-Byte Data Frame 214-ms Serialization Delay for 1500-Byte Frame at 56 kbps
Data
Data
Voice
Data
A 10-ms blocking delay is the recommended target to use for setting fragmentation size. To calculate the recommended fragment size, divide the recommended 10 ms of delay by one byte of trafc at the provisioned line clocking speed, as follows: Fragment_Size = (Max_Allowed_Jitter * Link_Speed_in_kbps) / 8 For example: Fragment_Size = (10 ms * 56) / 8 = 70 bytes Table 5-2 shows the recommended fragment size for various link speeds.
Table 5-2 Recommended Fragment Sizes
5-5
Table 5-2
Note
In Cisco IOS Release 12.1(5)T and later, MLP over ATM and Frame Relay are available to support LFI on ATM and ATM or Frame-Relay Interworking WANs.
Traffic Shaping
In ATM and Frame-Relay networks, where the physical access speed varies between two endpoints, trafc shaping is used to prevent excessive delay from congested network interface buffers caused by these speed mismatches. Trafc shaping is a tool that meters the transmit rate of frames from a source router to a destination router. This metering is typically done at a value that is lower than the line or circuit rate of the transmitting interface. The metering is done at this rate to account for the circuit speed mismatches that are common in current multiple-access, nonbroadcast networks. Trafc leaving a high-speed interface such as a T1 line at a central site often terminates at a remote site that may have a much slower link speed (for example, 56 kbps). This is quite common and, in fact, has been one of the big selling points for Frame Relay. In Figure 5-3, the T1 interface on the router at the central site sends data out at a T1 rate even if the remote site has a clock rate of 56 kbps. This causes the frames to be buffered within the carrier Frame-Relay network, increasing variable delay, as illustrated in Figure 5-3. This same scenario can be applied in reverse. For example, the many remote sites, each with small WAN connections, when added together can oversubscribe the provisioned bandwidth or circuit speed at the central site.
5-6
78-11549-01
Chapter 5
Figure 5-3
Variable Delay Caused by Buffering Result: Buffering that will cause delay and, eventually, dropped packets 128 kbps 256 kbps
Remote Sites
T1
Central Site
45861
Network Provisioning
Properly provisioning the network bandwidth is a major component of designing a successful Cisco AVVID network. You can calculate the required bandwidth by adding the bandwidth requirements for each major application (for example, voice, video, and data). This sum then represents the minimum bandwidth requirement for any given link, and it should not exceed approximately 75% of the total available bandwidth for the link. This 75% rule assumes that some bandwidth is required for overhead trafc, such as routing and Layer 2 keepalives, as well as for additional applications such as e-mail and Hypertext Transfer Protocol (HTTP) trafc. Figure 5-4 illustrates this bandwidth provisioning process.
5-7
Figure 5-4
Provisioning Link Bandwidth Bandwidth provisioning: BW = (Min BW for voice = Min BW for video = Min BW for data) / 0.75
Voice
Video
Data
Routing etc.
As illustrated in Figure 5-5, a VoIP packet consists of the payload, IP header, User Datagram Protocol (UDP) header, Real-time Transport Protocol (RTP) header, and Layer 2 Link header. At the default packetization rate of 20 ms, VoIP packets have a 160-byte payload for G.711 or a 20-byte payload for G.729. The IP header is 40 bytes, the UDP header is 8 bytes, and the RTP header is 12 bytes. The link header varies in size according to media.
Figure 5-5 Typical VoIP Packet VoIP Packet
45863
RTP Header
UDP Header
IP Header 20 Bytes
12 Bytes 8 Bytes
The bandwidth consumed by VoIP streams is calculated by adding the packet payload and all headers (in bits), then multiplying by the packet rate per second (default of 50 packets per second). Table 5-3 details the bandwidth per VoIP ow at a default packet rate of 50 packets per second (pps). This does not include Layer 2 header overhead and does not take into account any possible compression
Cisco IP Telephony QoS Design Guide
5-8
45862
Link capacity
78-11549-01
Chapter 5
schemes, such as compressed Real-time Transport Protocol (cRTP). You can use the Service Parameters menu in Cisco CallManager Administration to adjust the packet rate.
Note
While it is possible to congure the sampling rate above 30 ms, this usually results in very poor voice quality.
Table 5-3 Bandwidth Consumption for Voice Payload Only
Sampling Rate 20 ms 30 ms 20 ms 30 ms
A more accurate method for provisioning is to include the Layer 2 headers in the bandwidth calculations, as shown in Table 5-4.
Table 5-4 Bandwidth Consumption with Headers Included
PPP 6 Bytes of Header 82.4 kbps 54.4 kbps 26.4 kbps 17.4 kbps
ATM 53-Byte Cells with a 48-Byte Payload 106 kbps 70 kbps 42.4 kbps 28 kbps
5-9
IP IP IP
X X X
IP IP IP
45864
Call #3 Causes poor quality for ALL calls Need --- to prevent third call from traversing IP WAN
5-10
78-11549-01
Chapter 5
VoIP Control Trafc TX-ring sizing Compressed voice codecs Compressed RTP (cRTP) Voice Activity Detection (VAD)
5-11
encounters before hitting the WAN. To ensure that these control connections are classied as important (but not as important as voice) access lists are used in the branch router, as illustrated in the following conguration example:
class-map VoIP-RTP match access-group 100 class-map VoIP-Control match access-group 101 ! policy-map QoS-Policy class VoIP-RTP priority 100 class VoIP-Control bandwidth 8 class class-default fair-queue ! access-list 100 permit ip any any precedence 5 access-list 100 permit ip any any dscp ef ! ! Skinny Control Traffic - Not required with ! Cisco CallManager Release 3.0(5) and beyond. access-list 101 permit tcp any host 10.1.10.20 range 2000 2002 ! ! MGCP Control Traffic access-list 101 permit udp any host 10.1.10.20 2427 access-list 101 permit tcp any host 10.1.10.20 2428 ! ! H.323 Control Traffic access-list 101 permit tcp any host 10.1.10.20 1720 access-list 101 permit tcp any host 10.1.10.20 range 11000 11999
TX-Ring Sizing
The TX-ring is the unprioritized FIFO buffer used to hold frames prior to transmission to drive link utilization to 100%. In the Cisco 7500 Route/Switch Processor (RSP), this is referred to as the TX-queue and can be modied using the tx-queue-limit command. The RSP is a very inefcient QoS platform, especially with regard to modifying the TX-queue parameters. The Cisco 7500 RSP TX-queue, which refers to the FIFO queue in MEM-D, has to copy the packet from MEM-D to the system buffers in DRAM and then back from the system buffers to MEM-D. The TX-ring is much more efcient than the TX-queue and is used instead of it on the Cisco 7500 VIP, 7200, 3600, 2600, and 1750 routers.
5-12
78-11549-01
Chapter 5
While fragmentation and interleaving reduces jitter, a large TX-ring value can increase jitter when link utilization approaches saturation. Because of this, TX-ring sizing is related to fragmentation size, as shown in Table 5-5.
Note
Link Speed (CIR) on Permanent Virtual Circuit =< 128 kbps 192 kbps 256 kbps 512 kbps 768 kbps
On all Point-to-Point Protocol (PPP) and Multilink PPP (MLP) links, TX-ring buffer size is automatically congured, and you cannot change these default buffer values. On Frame Relay links, the TX-ring is for the main interface, which all subinterfaces also use. The default TX-ring buffer size is 64 packets. You might need to change this setting when the subinterface is very small or there are many subinterfaces. Table 5-6 summarizes TX-ring buffer sizing for various media.
Table 5-6 TX-Ring Buffer Sizing
Default TX-Ring Buffer Sizing (Packets) 6 2 8192 (Must be changed for low-speed virtual circuits) 64 (Per main T1 interface)
5-13
Compressed RTP
Compressed RTP (cRTP) compresses the 40-byte header of a VoIP packet to approximately 2 to 4 bytes. Compressed RTP works on a link-by-link basis and is enabled on Cisco routers using the ip rtp header-compression command. Table 5-7 summarizes the bandwidth calculations for cRTP.
Note
cRTP is currently supported only for leased lines and Frame Relay. Cisco IOS Release 12.1(2)T, which greatly enhances performance over these platforms, is the minimum recommended system software for scalable cRTP.
Table 5-7 Compressed RTP Bandwidth Calculations
ATM 53-Byte Cells with a 48-Byte Payload N/A N/A N/A N/A
Frame Relay 4 Bytes of Header 67 kbps 44 kbps 11.2 kbps 7.4 kbps
5-14
78-11549-01
Chapter 5
Note
In environments that have a large amount of inherent delay, VAD can sometimes cause more voice quality issues than are justied by the bandwidth recovered. You should examine these issues on a case-by-case basis. However, when troubleshooting clipping at the beginning of conversations in a Cisco AVVID network, it is advisable to disable Silence Suppression rst.
5-15
Point-to-Point WAN
Point-to-point WANs, while not as popular as in the past, are still one of the most common types of networks in use today. Figure 5-7 shows the general model for point-to-point WANs described in this guide.
Figure 5-7 General Model for a Point-to-Point WAN Areas where QoS may be a concern
IP IP IP IP IP IP
TX
V Point-to-point WAN
Cisco CallManager
TX
IP
When designing a point-to-point WAN for a Cisco AVVID network, keep the following recommendations in mind:
Cisco IOS Release 12.1(3)T is the minimum recommended release for a point-to-point WAN. Use Link Fragmentation and Interleaving (LFI) techniques on all WAN connections with speeds below 768 kbps. Use Low-Latency Queuing (LLQ) with a priority queue for VoIP bearer streams and a class queue for VoIP control sessions. Call admission control is required when the number of calls across the WAN can oversubscribe the allocated VoIP bandwidth.
The following sections explain the QoS issues for this type of conguration.
5-16
45865
TX
78-11549-01
Chapter 5
Note
When using MLP, fragmentation size is congured using the maximum acceptable delay in queue, which is 10 ms. In addition, the TX-ring is statically congured at a value of 2 packets. The following example illustrates the commands used for this type of conguration:
interface Multilink1 ip address 10.1.61.1 255.255.255.0 ip tcp header-compression iphc-format no ip mroute-cache load-interval 30 service-policy output QoS-Policy ppp multilink ppp multilink fragment-delay 10 ppp multilink interleave multilink-group 1 ip rtp header-compression iphc-format ! interface Serial0 bandwidth 256 no ip address encapsulation ppp no ip mroute-cache load-interval 30 no fair-queue ppp multilink multilink-group 1
5-17
5-18
78-11549-01
Chapter 5
All VoIP media trafc is placed into the Priority Queue (PQ), which is given 100 kbps of bandwidth. All Skinny Protocol control trafc is placed into a class-based queue and is given 10 kbps of bandwidth. All other trafc is queued using Weighted Fair Queuing. The following example illustrates the commands used for this type of conguration:
class-map VoIP-RTP match access-group 100 class-map VoIP-Control match access-group 101 ! policy-map QoS-Policy-256k class VoIP-RTP priority 100 class VoIP-Control bandwidth 8 class class-default fair-queue ! interface Multilink1 ip address 10.1.61.1 255.255.255.0 ip tcp header-compression iphc-format no ip mroute-cache load-interval 30 service-policy output QoS-Policy ppp multilink ppp multilink fragment-delay 10 ppp multilink interleave multilink-group 1 ip rtp header-compression iphc-format ! ! ToS VoIP Media Stream Classification: either IP Prec or DSCP ! This access-list is the same at the both the remote and ! central locations access-list 100 permit ip any any precedence 5 access-list 100 permit ip any any dscp ef ! ! Skinny, H.323 and MGCP VoIP Control Traffic ! which has already been classified using the ! route-map in section 4.5. access-list 101 permit ip any any precedence 3 access-list 101 permit ip any any dscp 26
5-19
1750# sh policy interface multilink1 Multilink1 output : QoS-Policy-256k Class VoIP-RTP Weighted Fair Queueing Strict Priority Output Queue: Conversation 264 Bandwidth 100 (kbps) (pkts matched/bytes matched) 28100/5675882 (pkts discards/bytes discards) 0/0 Class VoIP-Control Weighted Fair Queueing Output Queue: Conversation 265 Bandwidth 8 (kbps) Max Threshold 64 (packets) (pkts matched/bytes matched) 204/10284 (pkts discards/bytes discards/tail drops) 0/0/0 Class class-default Weighted Fair Queueing Flow Based Fair Queueing Maximum Number of Hashed Queues 256
5-20
78-11549-01
Chapter 5
Frame-Relay WAN
Frame-Relay networks are the most popular WANs in use today because of the low cost associated with them. However, because Frame Relay is a nonbroadcast technology that uses oversubscription to achieve costs savings, it is not always an easy platform on which to implement Cisco AVVID solutions. While this section outlines the basic requirements for successfully deploying Cisco AVVID solutions across a Frame-Relay WAN, extensive explanations of Frame Relay committed information rate (CIR), committed burst rate (Bc), excess burst rate (Be), and interval congurations are not covered here. Figure 5-8 shows the general model for Frame-Relay WANs described in this guide.
Figure 5-8 General Model for a Frame-Relay WAN Areas where QoS may be a concern
IP IP IP IP IP IP
TX
V Frame Relay WAN
Cisco CallManager
TX
IP
When designing a Frame-Relay WAN for a Cisco AVVID network, keep the following recommendations in mind:
Cisco IOS Release 12.1(2)T is the minimum recommended release for a Frame-Relay WAN. You must use trafc shaping with Frame-Relay WANs. Use Link Fragmentation and Interleaving (LFI) techniques on all virtual circuits with speeds below 768 kbps.
45866
TX
5-21
Use Low-Latency Queuing (LLQ) with a Priority Queue (PQ) for VoIP bearer streams and a class-based queue for VoIP control sessions. Call admission control is required when the number of calls across the WAN can oversubscribe the allocated VoIP bandwidth.
The following sections explain the QoS issues for this type of conguration.
Traffic Shaping
Trafc shaping is required for Frame-Relay networks for three reasons:
Oversubscription of sites is part of the nature of Frame-Relay networks. It is common for congurations to allow bursts that exceed the Committed Information Rate (CIR). The default interval for Cisco Frame-Relay devices can add unnecessary delay.
The following sections describe some of the aspects of trafc shaping for Frame-Relay networks.
5-22
78-11549-01
Chapter 5
5-23
Minimum CIR
Cisco IOS defaults to a minimum CIR (mincir) value of CIR/2. Minimum CIR is the transmit value a Frame-Relay router will "rate down" to when BECNs are received.
Note
The maximum congured bandwidth in the Priority Queues (PQs) and class-based queues cannot exceed the minimum available amount of bandwidth on the WAN connection. The following example shows a conguration for a remote site router connected to a 256-kbps Frame-Relay circuit:
interface Serial1 no ip address encapsulation frame-relay load-interval 30 frame-relay traffic-shaping ! interface Serial1.71 point-to-point bandwidth 256 ip address 10.1.71.1 255.255.255.0 frame-relay interface-dlci 71 class VoIP-256kbs ! map-class frame-relay VoIP-256kbs frame-relay cir 256000 frame-relay bc 1000 frame-relay be 0 frame-relay mincir 256000 no frame-relay adaptive-shaping service-policy output QoS-Policy-256k frame-relay fragment 320
5-24
78-11549-01
Chapter 5
5-25
5-26
78-11549-01
Chapter 5
The following example illustrates the commands used for this type of conguration:
class-map VoIP-RTP match access-group 100 class-map VoIP-Control match access-group 101 ! policy-map QoS-Policy-256k class VoIP-RTP priority 100 class VoIP-Control bandwidth 8 class class-default fair-queue ! interface Serial1 no ip address encapsulation frame-relay load-interval 30 frame-relay traffic-shaping ! interface Serial1.71 point-to-point bandwidth 256 ip address 10.1.71.1 255.255.255.0 frame-relay interface-dlci 71 class VoIP-256kbs ! map-class frame-relay VoIP-256kbs frame-relay cir 256000 frame-relay bc 1000 frame-relay be 0 frame-relay mincir 256000 no frame-relay adaptive-shaping service-policy output QoS-Policy-256k frame-relay fragment 160 ! ! ToS VoIP Media Stream Classification: either IP Prec or DSCP ! This access-list is the same at the both the remote and ! central locations access-list 100 permit ip any any precedence 5 access-list 100 permit ip any any dscp ef ! ! Skinny, H.323 and MGCP VoIP Control Traffic ! which has already been classified using the ! route-map in section 4.5. access-list 101 permit ip any any precedence 3 access-list 101 permit ip any any dscp 26
5-27
5-28
78-11549-01
Chapter 5
HQ_7200# sh frame-relay pvc int s6/0 73 Headquarters 7200 PVC Statistics for interface Serial6/0 (Frame Relay DTE) DLCI = 73, DLCI USAGE = LOCAL, PVC STATUS = ACTIVE, INTERFACE = Serial6/0.73 input pkts 114 output pkts 103 in bytes 8537 out bytes 10633 dropped pkts 0 in FECN pkts 0 in BECN pkts 0 out FECN pkts 0 out BECN pkts 0 in DE pkts 0 out DE pkts 0 out bcast pkts 62 out bcast bytes 5203 pvc create time 00:04:22, last time pvc status changed 00:04:22 service policy QoS-Policy-256k Service-policy output: QoS-Policy-256k (1099) Class-map: VoIP-RTP (match-all) (1100/2) 0 packets, 0 bytes 30 second offered rate 0 bps, drop rate 0 bps Match: ip dscp 46 (1102) Weighted Fair Queueing Strict Priority Output Queue: Conversation 72 Bandwidth 100 (kbps) (pkts matched/bytes matched) 0/0 (pkts discards/bytes discards) 0/0 Class-map: VoIP-Control (match-all) (1104/3) 25 packets, 3780 bytes 30 second offered rate 0 bps, drop rate 0 bps Match: ip dscp 26 (1106) Weighted Fair Queueing Output Queue: Conversation 73 Bandwidth 8 (kbps) Max Threshold 64 (packets) (pkts matched/bytes matched) 25/3780 (pkts discards/bytes discards/tail drops) 0/0/0 Class-map: class-default (match-any) (1108/0) 163 packets, 15708 bytes 30 second offered rate 0 bps, drop rate 0 bps Match: any (1110) 163 packets, 15708 bytes 30 second rate 0 bps Weighted Fair Queueing Flow Based Fair Queueing Maximum Number of Hashed Queues 64
5-29
Output queue size 0/max total 600/drops 0 fragment type end-to-end fragment size 160 cir 768000 bc 7680 be 0 limit 960 interval 10 mincir 768000 byte increment 960 BECN response no frags 125 bytes 10913 frags delayed 125 bytes delayed 10913 shaping inactive traffic shaping drops 0
ATM WAN
Asynchronous Transfer Mode (ATM) is becoming a more common medium for WANs because many service providers have adopted this technology. Figure 5-9 shows the general model for ATM WANs described in this guide.
Figure 5-9 General Model for an ATM WAN Areas where QoS may be a concern
IP IP IP IP IP IP
TX
V ATM WAN
Cisco CallManager
TX
IP
One of the difculties with using ATM in WANs is that it was designed for high speeds, not low speeds. Many enterprises are attempting to deploy Cisco AVVID solutions over low-speed ATM connections. This generally results in complications because many of the Cisco IOS QoS tools are not currently supported on ATM interfaces, and many of the interface defaults are automatically congured for high-speed ATM circuits.
5-30
45867
TX
78-11549-01
Chapter 5
This is evident in the default sizing of ATM TX-ring buffers. For example, by default, the Cisco 7200 router OC-3 interface (the PA-A3) sets the TX-ring buffer to 8192 bytes. This is a correct setting for an OC-3, but, for a 256-kbps Permanent Virtual Circuit (PVC) congured on the interface, very large TX-ring buffer delays can occur. Because of this, the TX-ring has to be congured to a much lower value on a subinterface level. For example, the following conguration is for a remote site router connected to a 256-kbps ATM PVC:
interface ATM2/0 no ip address no ip mroute-cache atm pvc 1 0 16 ilmi no atm ilmi-keepalive ! interface ATM2/0.37 point-to-point pvc cisco37 0/37 tx-ring-limit 7 abr 256 256 service-policy output QoS-Policy-256k protocol ppp Virtual-Template2 ! !
When designing an ATM WAN for a Cisco AVVID network, keep the following recommendations in mind:
Cisco IOS Release 12.1(5)T for MLP over ATM is the minimum recommended release for an ATM WAN. For all ATM connections below DS-3 speeds, you must adjust the TX-ring buffer size. It is preferable to use two Permanent Virtual Circuits (PVCs) if the PVC speed is under 768 kbps. If using a single PVC that is under 768 kbps, use MLP over ATM for LFI. If using a single PVC, use LLQ with a Priority Queue (PQ) for VoIP bearer streams and a class-based queue for VoIP control sessions. Call admission control is required when the number of calls across the WAN can oversubscribe the allocated VoIP bandwidth.
The following sections explain the QoS issues for this type of conguration.
5-31
If two PVCs are not an acceptable design alternative, the other option is to use the new MLP-over-ATM tools for link fragmentation and interleaving (LFI). Because ATM is a cell technology using a xed payload size, there are no inherent LFI tools. A new standard, which uses MLP over ATM, is available in Cisco IOS Release 12.1(5)T. MLP over ATM provides a Layer 2 fragmentation and interleaving method for low-speed ATM links. The ideal fragment size for MLP over ATM should allow the fragments to t into an exact multiple of ATM cells. It is important to include MLP and ATM Adaptation Layer 5 (AAL5) overhead in all fragmentation calculations. The header for MLP over ATM is 10 bytes, and the AAL5 packet overhead is 8 bytes. The fragment size for MLP over ATM can be calculated as follows: Fragment_Size = (48 * Number_of_Cells) - 10 - 8 For example, if 7 cells per fragment is desirable, the fragment size should be Fragment_Size = (48 * 7) - 10 - 8 = 318 bytes There are some interesting features for MLP over ATM, including the use of Virtual Template instead of Multilink interfaces. (Virtual-Template congurations will be replaced by Multilink interfaces in later releases of MLP over ATM because Multilink interfaces provide more scalability and greater integration into
5-32
78-11549-01
Chapter 5
existing MLP installations.) In addition, the conguration of PPP Challenge Handshake Authentication Protocol (CHAP) is required if remote sites want to communicate using MLP over ATM. MLP over ATM requires the MLP bundle to classify the outgoing packets before they are sent to the ATM virtual circuit (VC). It also requires FIFO queuing to be used as the per-VC queuing strategy for the ATM VC. To use the advanced Low-Latency Queuing (LLQ) recommended for all VoIP WAN installations, attach the LLQ logic to the virtual template interface. Only certain advanced ATM hardware supports per-VC trafc shaping (for example, ATM Deluxe PA on the Cisco 7200 router and OC-3 NM on the Cisco 3600 series). Because trafc shaping is a fundamental requirement of this design, MLP over ATM can be supported only on the platforms that support this ATM hardware. The following example illustrates this type of conguration:
interface ATM2/0 no ip address no ip mroute-cache atm pvc 1 0 16 ilmi no atm ilmi-keepalive ! interface ATM2/0.37 point-to-point pvc cisco37 0/37 tx-ring-limit 7 abr 256 256 protocol ppp Virtual-Template2 ! ! interface Virtual-Template2 bandwidth 254 ip address 10.1.37.52 255.255.255.0 service-policy output QoS-Policy-256k ppp authentication chap ppp chap hostname HQ_7200 ppp chap password 7 05080F1C2243 ppp multilink ppp multilink fragment-delay 10 ppp multilink interleave
5-33
5-34
78-11549-01
Chapter 5
! interface Virtual-Template2 bandwidth 256 ip address 10.1.37.52 255.255.255.0 service-policy output QoS-Policy-256k ppp authentication chap ppp chap hostname HQ_7200 ppp chap password 7 05080F1C2243 ppp multilink ppp multilink fragment-delay 10 ppp multilink interleave ! ! ! ! ToS VoIP Media Stream Classification: either IP Prec or DSCP ! This access-list is the same at the both the remote and ! central locations access-list 100 permit ip any any precedence 5 access-list 100 permit ip any any dscp ef ! ! Skinny, H.323 and MGCP VoIP Control Traffic ! which has already been classified using the ! route-map in Chapter 4. access-list 101 permit ip any any precedence 3 access-list 101 permit ip any any dscp 26
Note
When using MLP over ATM and Frame Relay for LFI, only Transparent Mode FRF.8 is supported. Figure 5-10 shows the general model for a WAN using ATM at the central site and Frame Relay at the remote sites.
5-35
Figure 5-10 General Model of a WAN Combining ATM and Frame Relay Areas where QoS may be a concern
IP IP IP IP IP IP
TX
V
ATM Network
Cisco CallManager
TX
IP
45868
TX
When designing a Frame-Relay-to-ATM Interworking WAN for a Cisco AVVID network, keep the following recommendations in mind:
Cisco IOS Release 12.1(5)T for MLP over ATM and MLP over Frame Relay is the minimum recommended release for this conguration. FRF.8 Transparent Mode is the only support method for MLP over ATM and Frame-Relay Service Interworking. For all ATM connections below DS-3 speeds, you must adjust the TX-ring buffer size. Use two Permanent Virtual Circuits (PVCs) if the ATM and Frame-Relay PVC speed is under 768 kbps. If using a single PVC that is under 768 kbps, use MLP over ATM and Frame Relay for LFI. If using a single PVC, use LLQ with a Priority Queue (PQ) for VoIP bearer streams and a class-based queue for VoIP control sessions. Call admission control is required when the number of calls across the WAN can oversubscribe the allocated VoIP bandwidth.
The following sections explain the QoS issues for this type of conguration.
5-36
78-11549-01
Chapter 5
Translation Mode Maps between ATM and Frame-Relay encapsulation. It also supports interworking of routed or bridged protocols. Transparent Mode Does not map encapsulations but sends them unaltered. This mode is used when translation is impractical because encapsulation methods do not conform to the supported standards for Service Interworking.
Note
MLP for LFI on ATM and Frame-Relay Service Interworking networks is supported only when Transparent Mode is used. To make MLP over Frame Relay and MLP over ATM interworking possible, the interworking switch must be congured in Transparent Mode, and the end routers must be able to recognize headers for both MLP over Frame Relay and MLP over ATM. You can enable these options with the frame-relay interface-dlci <dlci> ppp and protocol ppp commands for Frame Relay and ATM, respectively.
5-37
When a frame is sent from the Frame-Relay side of an ATM-to-Frame-Relay Service Interworking connection, the following actions should occur to make interworking possible:
1. 2.
A packet is encapsulated in the MLP-over-Frame-Relay header by the sending router. The carrier switch, in Transparent Mode, strips off the two-byte Frame-Relay data-link connection identier (DLCI) field and sends the rest of the packet to its ATM interface. The receiving router examines the header of the received packet. If the rst two bytes of the received packet are 0x03cf, the router treats it as a legal MLP-over-ATM packet and sends it to the MLP layer for further processing.
3.
When an ATM cell is sent from the ATM side of an ATM-to-Frame-Relay Service Interworking connection, the following actions should occur to make interworking possible:
1. 2.
A packet is encapsulated in the MLP-over-ATM header by the sending router. The carrier switch, in Transparent Mode, prepends a two-byte Frame-Relay DLCI eld to the received packet and sends the packet to its Frame-Relay interface. The receiving router examines the header of the received packet. If the rst four bytes after the two-byte data-link connection identier (DLCI) eld of the received packet are 0xfefe03cf, the router treats it as a legal MLP-over-Frame-Relay packet and sends it to the MLP layer for further processing.
3.
A new ATM-to-Frame-Relay Service Interworking standard, FRF.8.1, supports MLP over ATM and Frame Relay-Service Interworking. However, it might be years before all switches are updated to this new standard. The ideal fragment size for MLP over ATM should allow the fragments to t into an exact multiple of ATM cells. It is important to include MLP and Adaptation Layer 5 (AAL5) overhead in all fragmentation calculations. The header for MLP over ATM is 10 bytes, and the AAL5 packet overhead is 8 bytes. The fragment size for MLP over ATM can be calculated as follows: Fragment_Size = (48 * Number_of_Cells) - 10 - 8 For example, if 7 cells per fragment is desirable, the fragment size should be Fragment_Size = (48 * 7) - 10 - 8 = 318 bytes
5-38
78-11549-01
Chapter 5
There are some interesting features for MLP over ATM, including the use of Virtual Template instead of Multilink interfaces. (Virtual-Template congurations will be replaced by Multilink interfaces in later releases of MLP over ATM because Multilink interfaces provide more scalability and greater integration into existing MLP installations.) In addition, the conguration of PPP Challenge Handshake Authentication Protocol (CHAP) is required if remote sites want to communicate using MLP over ATM. MLP over ATM requires the MLP bundle to classify the outgoing packets before they are sent to the ATM virtual circuit (VC). It also requires FIFO queuing to be used as the per-VC queuing strategy for the ATM VC. To use the advanced Low-Latency Queuing (LLQ) recommended for all VoIP WAN installations, attach the LLQ logic to the virtual template interface. Only certain advanced ATM hardware supports per-VC trafc shaping (for example, ATM Deluxe PA on the Cisco 7200 router and OC-3 NM on the Cisco 3600 series). Because trafc shaping is a fundamental requirement of this design, MLP over ATM can be supported only on the platforms that support this ATM hardware. MLP over Frame Relay also has some interesting features, such as the fact that it relies on a Frame-Relay trafc shaping (FRTS) engine to control the ow of packets from the MLP bundle to the Frame-Relay virtual circuit (VC). The following sections present example congurations for ATM at the central site and Frame Relay at the remote sites.
5-39
5-40
78-11549-01
Chapter 5
5-41
Chapter 5 Summary
Summary
As described in this chapter, the following general guidelines and recommendations apply when conguring a WAN for use with Cisco AVVID solutions:
Use Link Fragmentation and Interleaving (LFI) techniques on all WAN connections with speeds below 768 kbps. Use Low-Latency Queuing (LLQ) on all WAN VoIP connections. Trafc shaping is required for all Frame-Relay and ATM deployments. Use compressed RTP (cRTP) wherever possible. ATM WANs operating at speeds below 768 kbps must use MLP over ATM to reduce frame sizes. MLP over ATM is supported in Cisco IOS Release 12.1(5)T. Frame-Relay-to-ATM Interworking environments require MLP over ATM and Frame Relay to reduce frame sizes on low-speed connections. MLP over ATM and Frame Relay is supported in Cisco IOS Release 12.1(5)T. Call admission control is required when the number of calls across the WAN can oversubscribe the provisioned VoIP bandwidth.
5-42
78-11549-01
N D E X
Numerics
10/100 ports 3-28 1750 router 4-9 1P1Q4T configuration 3-13 1P2Q2T configuration 3-14 1Q4T configuration 3-13 1Q-FIFO configuration 3-28 2Q1T configuration 3-24, 3-28 2Q2T configuration 3-14 4Q1T configuration 3-27 7200 WAN router 3-37 802.1Q access trunks at branch office 4-4 on Catalyst 2900 XL and 3600 XL 2-7 on Catalyst 3500 4-6 on Catalyst 3600 4-5 on Catalyst 4000 4-6 on Catalyst 4000 and 6000 2-6 8Q-FIFO configuration 3-28
A
access control list (ACL) 3-36 access layer switch Catalyst 3500 3-27 Catalyst 4000 3-23 Catalyst 6000 3-11 for IP phones 2-16 access trunks on Catalyst 2900 XL and 3500 XL 2-7 on Catalyst 4000 and 6000 2-6 ACL 3-36, 3-43 adaptive jitter buffer 1-4 additional information xv addresses for IP phones 2-5, 2-12, 2-17 for SoftPhone 2-15 secondary IP addressing at branch office 4-7 admission control 5-10 assistance with Cisco products xvi Asynchronous Transfer Mode (ATM) 5-30 ATM 5-30, 5-40 ATM-to-Frame-Relay 5-35 audience for this guide xii
Index
B
bandwidth consumption 5-8 provisioning 1-7, 5-7 Bc 5-23 Be 5-23 branch office design considerations 4-1 Frame-Relay 5-41 traffic classification 4-7 buffer jitter 1-4 burst rate 5-23
Catalyst 3500 802.1Q access trunk configuration 4-6 access layer switching 3-27 port scheduling 3-28 queuing schemes 3-28 receive interface 3-28 single subnet configuration 4-10 Catalyst 3500 XL 802.1Q access trunk configuration 2-7 port configuration for IP phones 2-5, 2-14 trust boundary extension 2-10 Catalyst 3600 4-5 Catalyst 4000 802.1Q access trunk configuration 2-6 802.1Q trunk configuration 4-6 access layer switching 3-23 port configuration for IP phones 2-4, 2-13 port scheduling 3-23 QoS 3-25 queuing schemes 3-23 receive interface 3-23 single subnet configuration 4-11 transmit interface 3-24 trust boundary extension 2-10 Catalyst 6000 802.1Q access trunk configuration 2-6 access layer switching 3-11 distribution layer switching 3-31 Native IOS 3-38
C
call admission control 5-10 campus ATM configuration 5-40 design considerations 3-1 Catalyst 2600 4-10 Catalyst 2900 XL 802.1Q access trunk configuration 2-7 port configuration for IP phones 2-5, 2-14 trust boundary extension 2-10 Catalyst 2948G 2-10 Catalyst 2980G 2-10
78-11549-01
Index
port configuration for IP phones 2-4, 2-12 port scheduling 3-13 queuing schemes 3-13 receive interface 3-13 transmit interface 3-14 transmit queue 3-21 trust boundary extension 2-9 CCO xvi CIR 5-22, 5-24 Cisco Connection Online (CCO) xvi Cisco IP Phones 2-1 classification for IP phones 2-7, 2-12, 2-15, 2-17 of traffic 1-5, 3-6, 4-7, 5-2 class of service (CoS) 1-5 CODEC 5-14 comments on this guide xviii committed burst rate (Bc) 5-23 committed information rate (CIR) 5-22 compressed RTP (cRTP) 5-14 compressed voice 5-14 control traffic 3-6, 3-32, 3-40, 4-7, 5-11 conventions used in this guide xiii CoS 1-5, 3-35, 3-42 CoS-to-DSCP mappings 3-22, 3-35, 3-43 cRTP 5-14, 5-18, 5-26, 5-33, 5-41
D
delay of packets 1-2 serialization 1-3, 5-4 distribution layer switch 3-31 documentation additional xv CD-ROM xv obtaining xv ordering from Cisco xvi World Wide Web xv your feedback xviii DSCP trust values 3-33, 3-40 duplex settings IP phones 2-3, 2-11, 2-16 SoftPhone 2-15
E
excess burst rate (Be) 5-23
F
FIFO configuration 3-23 Frame-Relay 5-21, 5-41 Frame-Relay-to-ATM 5-35 FRF.12 5-25 FRF.8 5-35
Index
G
gigabit Ethernet ports 3-28
J
jitter adaptive buffer 1-4 described 1-2
H
H.323 protocol 3-9 help with Cisco products xvi
L
Layer 2 switch 3-34, 3-42
I
IP addressing 2-5, 2-12, 2-15, 2-17, 4-7 IP phones connecting 2-1 IP addressing 2-5, 2-12, 2-17 multiple-cable connection 2-11 on a separate switch 2-16 port configuration on Catalyst 2900 XL and 3500 XL 2-5 port configuration on Catalyst 4000 and 6000 2-4 QoS issues 2-1 queuing 2-7, 2-12, 2-15, 2-17, 3-16, 3-26, 3-30 single-cable connection 2-2 speed and duplex settings 2-3, 2-11, 2-16 traffic classification 2-7, 2-12, 2-15, 2-17
LFI described 5-4 for internetworking WANs 5-37 for point-to-point WAN 5-17 link fragmentation and interleaving (LFI) 5-4 LLQ described 5-2 for ATM 5-34 for Frame Relay 5-26 for internetworking 5-41 for WAN configurations 5-18 low-latency queuing (LLQ) 5-2
M
management traffic 3-6 mapping to DSCP values 3-22, 3-34, 3-35, 3-41,
3-43
78-11549-01
Index
minimum CIR 5-24 MLS 3-21 model of VoIP network 1-8 MSFC 3-21 Multilink Point-to-Point Protocol (MLP) 5-17 multiple-cable connection of IP phones 2-11
multiple-cable connection 2-11 on separate switch 2-16 port configuration on Catalyst 2900 XL and 3500 XL 2-5 port configuration on Catalyst 4000 and 6000 2-4 QoS issues 2-1 queuing 2-7, 2-12, 2-15, 2-17, 3-16, 3-26, 3-30 single-cable connection 2-2 speed and duplex settings 2-3, 2-11, 2-16 traffic classification 2-7, 2-12, 2-15, 2-17 point-to-point WAN 5-16 port configuration for IP phones on Catalyst 2900 XL and 3500 XL 2-5 on Catalyst 4000 and 6000 2-4 port scheduling Catalyst 3500 3-28 Catalyst 4000 3-23 Catalyst 6000 3-13 protocols H.323 3-9 MGCP 3-10 Skinny Gateway 3-8 Skinny Station 3-8 provisioning network bandwidth 1-7, 5-7 purpose of this guide xi PVC 5-32
N
Native IOS 3-38 network congestion 1-2 general VoIP model 1-8 provisioning 1-7 provisioning bandwidth 5-7 quality 1-2 notational conventions xiii
O
organization of this guide xii
P
packet classification 1-5 phones connecting 2-1 IP addressing 2-5, 2-12, 2-17
Index
Q
QoS access layer parameters 3-15 branch office design 4-1 campus design 3-1 Catalyst 4000 3-25 configuration 3-43 general principles for VoIP 1-9 IP phones 2-1 issues 1-1 Native IOS on Catalyst 6000 3-39 overview 1-1 tools 1-5, 5-11 WAN implementation 5-1 why needed 1-1 quality of service (QoS) 1-1 queuing Catalyst 3500 3-28 Catalyst 4000 3-23 Catalyst 6000 3-13 for IP phones 2-7, 2-12, 2-15, 2-17, 3-16, 3-26, 3-30 for WANs 5-2 number of queues 3-5 overview 1-7 scheduling algorithms 3-4 VoIP control traffic 3-32, 3-40
R
receive interface configuration Catalyst 3500 3-28 Catalyst 4000 3-23 Catalyst 6000 3-13
S
scheduling ports 3-13, 3-23, 3-28 separate subnets for voice and data 4-4, 4-7 serialization delay 1-3, 5-4 shaping traffic 5-6, 5-22 show command 3-17, 3-22, 3-26 single-cable connection of IP phones 2-2 single subnet at branch office 4-9 Skinny Protocol 3-8 SoftPhone 2-15 speed and duplex settings IP phones 2-3, 2-11, 2-16 SoftPhone 2-15 subnets secondary IP addressing 4-7 separate voice and data at branch office 4-4 single subnet at branch office 4-9
78-11549-01
Index
T
TAC xvi, xvii technical assistance xvi tools for QoS 1-5, 5-11 ToS 1-5 ToS-to-DSCP mappings 3-22, 3-34, 3-41 traffic access control lists 3-36, 3-43 classification 3-6, 5-2 marking 3-6 shaping 5-6, 5-22 transmit interface configuration 10/100 ports 3-28 Catalyst 4000 3-24 Catalyst 6000 3-14 gigabit Ethernet ports 3-28 transmit queue Catalyst 6000 3-21 configuration 3-32, 3-40 trust boundary extension Catalyst 2900 XL 2-10 Catalyst 2948G 2-10 Catalyst 2980G 2-10 Catalyst 3500 XL 2-10 Catalyst 4000 2-10 Catalyst 6000 2-9 trust DSCP 3-33, 3-40
U
uplink interface 3-21, 3-26, 3-30
V
VAD 5-15 verifying configurations 3-17, 3-22, 3-26, 5-20,
5-28
voice activity detection (VAD) 5-15 voice compression 5-14 VoIP control traffic 3-32, 3-40, 4-7, 5-11 general network model 1-8 QoS principles 1-9
W
WAN 7200 router 3-37 ATM 5-30 Frame-Relay 5-21 Frame-Relay-to-ATM 5-35 FRF.12 5-25 FRF.8 5-35 implementation 5-1
Index
internetworking 5-35 LFI 5-17, 5-37 LLQ 5-18, 5-34 MLP 5-17 point-to-point 5-16 PVC 5-32 QoS issues 5-1 QoS tools 5-11 wiring closet Catalyst 3500 3-27 Catalyst 4000 3-23 Catalyst 6000 3-11
78-11549-01
Corporate Headquarters Cisco Systems, Inc. 170 West Tasman Drive San Jose, CA 95134-1706 USA http://www.cisco.com Tel: 408 526-4000 800 553-NETS (6387) Fax: 408 526-4100
Customer Order Number: DOC-7811549= Text Part Number: 78-11549-01
THE SPECIFICATIONS AND INFORMATION REGARDING THE PRODUCTS IN THIS MANUAL ARE SUBJECT TO CHANGE WITHOUT NOTICE. ALL STATEMENTS, INFORMATION, AND RECOMMENDATIONS IN THIS MANUAL ARE BELIEVED TO BE ACCURATE BUT ARE PRESENTED WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. USERS MUST TAKE FULL RESPONSIBILITY FOR THEIR APPLICATION OF ANY PRODUCTS. THE SOFTWARE LICENSE AND LIMITED WARRANTY FOR THE ACCOMPANYING PRODUCT ARE SET FORTH IN THE INFORMATION PACKET THAT SHIPPED WITH THE PRODUCT AND ARE INCORPORATED HEREIN BY THIS REFERENCE. IF YOU ARE UNABLE TO LOCATE THE SOFTWARE LICENSE OR LIMITED WARRANTY, CONTACT YOUR CISCO REPRESENTATIVE FOR A COPY. The Cisco implementation of TCP header compression is an adaptation of a program developed by the University of California, Berkeley (UCB) as part of UCBs public domain version of the UNIX operating system. All rights reserved. Copyright 1981, Regents of the University of California. NOTWITHSTANDING ANY OTHER WARRANTY HEREIN, ALL DOCUMENT FILES AND SOFTWARE OF THESE SUPPLIERS ARE PROVIDED AS IS WITH ALL FAULTS. CISCO AND THE ABOVE-NAMED SUPPLIERS DISCLAIM ALL WARRANTIES, EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, THOSE OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OR ARISING FROM A COURSE OF DEALING, USAGE, OR TRADE PRACTICE. IN NO EVENT SHALL CISCO OR ITS SUPPLIERS BE LIABLE FOR ANY INDIRECT, SPECIAL, CONSEQUENTIAL, OR INCIDENTAL DAMAGES, INCLUDING, WITHOUT LIMITATION, LOST PROFITS OR LOSS OR DAMAGE TO DATA ARISING OUT OF THE USE OR INABILITY TO USE THIS MANUAL, EVEN IF CISCO OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. AtmDirector, Browse with Me, CCDA, CCDE, CCDP, CCIE, CCNA, CCNP, CCSI, CD-PAC, CiscoLink, the Cisco NetWorks logo, the Cisco Powered Network logo, Cisco Systems Networking Academy, the Cisco Systems Networking Academy logo, Fast Step, Follow Me Browsing, FormShare,FrameShare, GigaStack, IGX, Internet Quotient, IP/VC, iQ Breakthrough, iQ Expertise, iQ FastTrack, the iQ Logo, iQ Net Readiness Scorecard, MGX, the Networkers logo, Packet, PIX, RateMUX, ScriptShare, SlideCast, SMARTnet, TransPath, Voice LAN, Wavelength Router, WebViewer are trademarks of Cisco Systems, Inc.; Changing the Way We Work, Live, Play, and Learn, Empowering the Internet Generation, are service marks of Cisco Systems, Inc.; and Aironet, ASIST, BPX, Catalyst, Cisco, the Cisco Certied Internetwork Expert Logo, Cisco IOS, the Cisco IOS logo, Cisco Systems, Cisco Systems Capital, the Cisco Systems logo, Enterprise/Solver, EtherChannel, EtherSwitch, FastHub, IOS, IP/TV, LightStream, Post-Routing, Pre-Routing, Registrar, StrataView Plus, Stratm, SwitchProbe, TeleRouter, and VCO are registered trademarks of Cisco Systems, Inc. or its afliates in the U.S. and certain other countries. All other brands, names, or trademarks mentioned in this document or Web site are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (0011R) Cisco IP Telephony QoS Design Guide Copyright 2000, 2001, Cisco Systems, Inc. All rights reserved.
Contents
CHAPTER
Overview and Introduction to QPM 2.0 A1-1 Installing QPM 2.0 A1-2 Starting Policy Manager A1-3 Adding Devices A1-5 Importing Devices from CiscoWorks 2000 Resource Manager Essentials A1-7 Scaling QoS Management Using Device Groups A1-13
CHAPTER
Campus QoS A2-1 Skinny Protocol Classification A2-1 H.323 Protocol Classification A2-15 MGCP Protocol Classification A2-19 Catalyst 6000 Access Layer A2-22 Catalyst 6000 Access LayerUplink Interfaces to Distribution Switch A2-25 Catalyst 6000 Access LayerCoS/ToS/DSCP Mappings A2-28 Catalyst 4000 Access Layer A2-28 Catalyst 3500 Access Layer A2-33 Catalyst 6000 Distribution Layer A2-34 Catalyst 6000 Distribution/Core Running Native Cisco IOS Software A2-35
CHAPTER
WAN QoS A3-1 Point-to-Point WAN A3-1 Frame Relay WAN A3-8 ATM WAN A3-18 ATM-Frame Relay WAN A3-26
Cisco AVVID QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0 78-11549-01
A-iii
Contents
Cisco AVVID QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0
A-iv
78-11549-01
C H A P T E R
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0 78-11549-01
A1-1
The introductory section to this appendix details the basic steps of preparing to congure QoS for IP telephony with QPM 2.0. Users already familiar with QPM skip this section and go directly to the IP telephony QoS scenarios of interest. For more information on QPM 2.0, see: http://www.cisco.com/warp/public/cc/pd/wr2k/qoppmn/prodlit/index.shtml
For most cases, clicking on the COMPLETE INSTALLATION link and accepting the default prompts for all the settings prompted is usually adequate. Periodically patches will be released for QPM to include new features, devices, and Cisco IOS Software support. These patches can be downloaded from: http://www.cisco.com/cgi-bin/tablebuild.pl/qos-patches
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0
A1-2
78-11549-01
Chapter 1
This appendix requires the installation of the QPM 2.0(3) patch. To install this patch, download QoSPolicyMngrPatch2-0-3.exe from the above URL and double-click on it when the download is complete. Default settings are recommended.
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0 78-11549-01
A1-3
The Policy Manager will open, displaying three window-panels as show in Figure 1-3 Tree-View WindowDisplays all devices and interfaces in a logical hierarchy Policy WindowDisplays GUI representations of policies on interfaces Summary WindowDisplays summaries of devices, interfaces or policies
Figure 1-3 Policy Manager Window Panels
Summary Window
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0
A1-4
78-11549-01
Chapter 1
Adding Devices
From Policy Manager right-click on the Devices folder in the Tree-View window panel. Select the menu item New Device from the abbreviated pop-up menu. The New Device Dialog Box will be displayed, as shown below in Figure 1-4.
Figure 1-4 New Device Dialog Box
Enter the following information for the network device in the related eld:
Network IP address or the DNS name A valid SNMP community string with Read-access A valid username The Telnet login password The enable password
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0 78-11549-01
A1-5
The Upload Device Conguration function (check-box at bottom left of Figure 1-4) will parse the device conguration for any existing QoS commands that may have been entered manually prior to using QPM. If any such commands exist, these will be uploaded and displayed within Policy Manager. Click on the OK button after this information has been entered. At this point, QPM launches an SNMP conversation with the device and also a Telnet session with the device. These sessions allow QPM to verify that the parameters entered are correct, to detect device and interface information, and to upload QoS policies (if Upload is checked). After QPM has concluded the SNMP and Telnet sessions with the device, it will present a summary of all interfaces discovered, shown in Figure 1-5.
Figure 1-5 Detect Interfaces Dialog Box
Two boxes are presented: the left box shows which interfaces are available for QPM to administer that have not yet been selected, and the right box shows which interfaces have already been selected to be administered by QPM. By default, all interfaces will be added to the Selected Interfaces box. Click OK to continue.
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0
A1-6
78-11549-01
Chapter 1
Overview and Introduction to QPM 2.0 Importing Devices from CiscoWorks 2000 Resource Manager Essentials
The device will now be displayed in the Tree View window panel, as show in Figure 1-6.
Figure 1-6 Device in Tree View
Repeat the procedure to add more devices. If the number of devices exceeds ten and CiscoWorks 2000 Resource Manager Essentials (RME) is set up to manage the network, then the Import Database function of QPM would be a more efcient method to add devices to QPM. For more details, refer to following section.
A1-7
To accomplish this export/import function between RME and QPM, start from within RME and click on the Administration folder link on the left-window panel, then click on the Inventory folder link, and then click on the Export to le link. The window will open, as shown in Figure 1-7.
Figure 1-7 RME Export to File Function
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0
A1-8
78-11549-01
Chapter 1
Overview and Introduction to QPM 2.0 Importing Devices from CiscoWorks 2000 Resource Manager Essentials
Enter a name for the le and select the radio button for Comma Separated Value format. It is recommended to add a .csv extension to the lename (this way it can also be imported more easily into Microsoft Excel or other applications if the need arises to look more closely at the inventory le. Click on the Next button to continue. Upon completion of le export, RME will return a successful message and a path where the le has been stored:
1.
If RME is running on a Solaris machine, the le will be copied to the directory /var/adm/CSCOpx/les/inventory/, necessitating the extra step of using FTP or a oppy disk to copy the le from this directory on the Solaris machine to the Windows server where QPM is installed. If RME is running on a Windows NT or Windows 2000 machine, then the le will be copied to the directory D:/PROGRA~1/CSCOpx/les/inventory/ and the le can remain in this directory or can be copied elsewhere.
2.
When the le is available on the hard-drive of the QPM server, it can be imported into QPM by selecting the Devices menu from Policy Manager and then selecting Import. This will bring up the dialog box shown in Figure 1-8.
Figure 1-8 RME Import InventoryFilename Dialog Box
Type
Navigate to the correct le, click on it and then click on Open and then on OK.
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0 78-11549-01
A1-9
An Import Devices dialog box will appear, as show in Figure 1-9. The devices will appear initially in the Known Devices box on the left (the devices must be reachable via SNMP/Telnet for the import to be successful; otherwise the devices will be grayed out and reported as Unreachable. Highlight the devices to be managed by QPM and then click on the top-middle button (>>) to add them to the right-box entitled Devices to import to QoS Database.
Figure 1-9 Import Devices Dialog Box
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0
A1-10
78-11549-01
Chapter 1
Overview and Introduction to QPM 2.0 Importing Devices from CiscoWorks 2000 Resource Manager Essentials
Click on the OK button to continue. The prompt box of Figure 1-10 will appear. Click on Yes All to allow all devices and interfaces to be detected and added to the QPM database. Also the option to Upload Device Conguration will be presented; this option allows QPM to parse the device conguration for any existing QoS commands that may have been entered manually prior to using QPM. If any such commands exist, they will be uploaded and displayed within Policy Manager.
Figure 1-10 Detect Interfaces Prompt Box
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0 78-11549-01
A1-11
Each device will be detected in turn, and when all devices have been detected/uploaded, QPM will display all imported devices within the tree-view window. Any interfaces with blue icons have no QoS policies set on them; any interfaces with purple icons have QoS policies uploaded onto them. The devices can be viewed by their IP Address/DNS names, or by their device names by clicking on the View menu in Policy Manager and selecting Device Names. This is shown in Figure 1-11.
Figure 1-11 Imported Devices (viewed by device name) with Uploaded Policies
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0
A1-12
78-11549-01
Chapter 1
Overview and Introduction to QPM 2.0 Scaling QoS Management Using Device Groups
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0 78-11549-01
A1-13
Enter a descriptive name for the group and then select membership criteria by the various drop-down lists associated with each eld. When the criteria have been set, click on the Add/Remove button to select devices or interfaces that match your criteria that you wish added to the group. Available devices/interfaces will be listed on the left box initially; any devices/interfaces to be included need to be highlighted. Click on the top-middle button (>>) to add the device/interface to the group; if necessary, click on the lower-middle button (<<) to remove a device/interface from a group. To add an entire device quickly, simply double-click on the device. When nished, click OK. This dialog box is shown below as Figure 1-13.
Figure 1-13 Add/Remove Members Dialog Box
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0
A1-14
78-11549-01
Chapter 1
Overview and Introduction to QPM 2.0 Scaling QoS Management Using Device Groups
When completed, the device group will appear in the tree-view panel of QPM, as pictured in Figure 1-14.
Figure 1-14 Device Groups in the Tree-View Window Panel
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0 78-11549-01
A1-15
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0
A1-16
78-11549-01
C H A P T E R
Campus QoS
This section corresponds to Chapter 3 of the main guide (Cisco IP Telephony QoS Design Guide) entitled Designing a Campus. The order in which topics are presented will follow the order in which they are presented within the Guide, beginning with classication policies for the three main VoIP Control Protocols: Skinny, H.323, and MGCP.
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0 78-11549-01
A2-1
Campus QoS
The resulting Device Group properties box should resemble Figure 2-1.
Figure 2-1 Device Group Properties for Cisco IP Phone Ports
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0
A2-2
78-11549-01
Chapter 2
Make a second device group for ports that are connected to Cisco CallManagers. Set the QoS Style for this device group to Port Based. Add all Cisco CallManager ports to this device group. In this example (taken from the Guide), Port 4/2 is connected to a Cisco CallManager, and should, therefore, be added to this group. Although it may seem superuous to create a device group consisting of a single port, the advantages will be manifest later when more VoIP control servers (Cisco CallManagers plus other gateways) are added to the scenario. The Device Group properties dialog box should match Figure 2-2.
Figure 2-2 VoIP-Control Device-Group Properties
Click on the OK button to close the dialog box (after all appropriate ports have been added to the group).
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0 78-11549-01
A2-3
Campus QoS
Click on the IP_Phones device group from the Tree-View window panel. When this is highlighted, right-click in the Policy window panel and select New QoS Policy from the abbreviated menu. This is shown in Figure 2-3.
Figure 2-3 Creating a New QoS Policy on a Device Group
This will launch the QoS Policy wizard, which is the principal tool that QPM uses to construct QoS policies. The number of steps in the wizard will depend on the type of QoS policy, the interface, and the parameters involved.
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0
A2-4
78-11549-01
Chapter 2
This rst step in the wizard is to assign general information to the QoS policy, such as a name and description; also the policy can be enabled or disabled from this dialog box. This rst screen is shown in Figure 2-4.
Figure 2-4 QoS Policy WizardStep 1: General Properties Dialog Box
When the desired elds have been completed click on the Next button to continue.
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0 78-11549-01
A2-5
Campus QoS
The second step of the wizard is to assign the direction in which the policy is to be applied: either inbound or outbound. In this example, the QoS policy can be applied only in the inbound direction; therefore, the outbound direction is grayed out. This second step is portrayed in Figure 2-5.
Figure 2-5 QoS Policy WizardStep 2: Direction Properties Dialog Box
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0
A2-6
78-11549-01
Chapter 2
The third step of the wizard is the classication/ltering criterion. Skinny Protocol uses the well-known TCP port range of 2000 to 2002. Since these policies are applied to Cisco IP Phones, it is sufcient to include the port range as a Destination Port Range (that is, the VoIP control packets from the Cisco IP Phone are destined for the Cisco CallManager port range of 2000 to 2002). The lter to identify Skinny Protocol is shown in Figure 2-6.
Figure 2-6 QoS Policy WizardStep 3: Filter Properties Dialog Box for Skinny
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0 78-11549-01
A2-7
Campus QoS
The fourth step is also the nal step required for this policy, and it serves to color trafc matching the ltering criteria to the dened IP Precedence or DSCP values. In this case, Skinny Protocol trafc will be colored to DSCP 26 (AF31). This is pictured in Figure 2-7.
Figure 2-7 QoS Policy WizardStep 4: Coloring Properties Dialog Box
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0
A2-8
78-11549-01
Chapter 2
Create a second policy to Trust the CoS of any IP trafc. The wizard screens for this second policy appear in Figure 2-8.
Figure 2-8 QoS Policy Wizard Dialog Boxes for TrustCoS of IP Trafc Policy
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0 78-11549-01
A2-9
Campus QoS
When completed, both policies will appear in the Policy window panel. If the IP_Phones device group is highlighted in the Tree-View window, a summary of the policy will appear in the Summary window-panel as shown in Figure 2-9.
Figure 2-9 Skinny Protocol Marking Policy Summary
When both policies appear as shown in Figure 2-9, right-click on the Color Skinny Trafc policy and select Copy from the abbreviated menu. Click on the VoIP_Control device group in the Tree-View window panel to highlight it, move the pointer over to the Policy window panel, and right-click and select Paste.
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0
A2-10
78-11549-01
Chapter 2
This will copy the policy that colors Skinny Protocol trafc and apply it also to the VoIP_Control device group ports (currently consisting of only one port: Port 4/2the Cisco CallManager port). The resulting display should match Figure 2-10.
Figure 2-10 Copying the Skinny Policy to the VoIP_Control Device Group
This policy can be renamed as desired (to drop the Copy of prex that is added by the Copy/Paste operation). To rename this policy: Double-click on the policy, edit the name from the QoS Policy Wizard General Properties page, and then click on the Finish button.
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0 78-11549-01
A2-11
Campus QoS
At this point, the policy to mark the Skinny Protocol trafc is unidirectional (that is, only packets destined to a Cisco CallManager port range of 20002002 will be colored). To mark packets originating from Cisco CallManager Port 20002002, add the following line to the lter properties via the QoS Policy wizard: If protocol is TCP and Sender Port Range is 2000 through 2002. This modication appears below in Figure 2-11.
Figure 2-11 Filter Properties for Bidirectional Skinny Marking Policy
Click on Finish to complete the policy modication. To deploy the policy, click on the File menu from Policy Manager, select Save As, and enter a descriptive name for the database le. Then click on the Tools menu and select Distribution Manager. This will launch Distribution Manager, which is the QPM component to manage the deployment of QoS policies to network devices. From Distribution Manager, click on the Devices menu and select Create Job. This will open a list of saved QPM databases available for deployment. Select the database name that corresponds to the Skinny Protocol DSCP Marking Policy and click on OK.
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0
A2-12
78-11549-01
Chapter 2
The job will be created and displayed as shown in Figure 2-12 (with the exception of the red circle around the icon to the left of the device name).
Figure 2-12 Creating a Job to Deploy the Skinny Protocol DSCP-Marking Policy
Clicking on the icon to the left of the device name (circled in red in Figure 2-12) will allow a network administrator to preview the CLI that QPM is about to send to the device. In this example, clicking on this icon will bring up the commands that are shown in Figure 2-13 for previewing prior to deployment.
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0 78-11549-01
A2-13
Campus QoS
Figure 2-13 Previewing the CLI for the Skinny Protocol DSCP-Marking Policy
The CLI preview reveals a differing (yet fully compatible) syntax with the commands outlined in the Cisco IP Telephony QoS Design Guide (page 3-9).
Note
Port-based QoS is the default setting; it does not require explicit commands to set. Additionally, QPM will not deploy a command if the default state renders it unnecessary; therefore, the command set port qos 4/2 port-based does not appear in the QPM deployment command set. To complete the deployment. Click on the Devices menu and then click Apply. The status of the deployment will change from Not-Applied to In-Progress to Completed.
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0
A2-14
78-11549-01
Chapter 2
Cisco CallManager communicates with H.323 gateways using TCP Ports 1720 (H.225) and TCP Ports 11000 through 11999 (H.245). For ease of management, it is recommended to make this policy bidirectional. If it is bidirectional, it can
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0 78-11549-01
A2-15
Campus QoS
applied to both the Cisco CallManager port and the H.323 gateway port without any modication and still be effective (that is, TCP source ports and destination ports do not need to be reversed from the policy applied to the Cisco CallManager Catalyst 6000 port and the H323 gateway Catalyst 6000 port). The QoS Policy wizard screens for creating a policy to color H.323 control trafc to DSCP 26 (AF31) are shown in Figure 2-15.
Figure 2-15 QoS Policy Wizard Dialog Boxes for H.323 DSCP-Marking Policy
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0
A2-16
78-11549-01
Chapter 2
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0 78-11549-01
A2-17
Campus QoS
When the combined Skinny + H.323 coloring policy is previewed for deployment, the CLI is displayed as shown in Figure 2-17.
Figure 2-17 CLI Preview for the Combined Skinny + H.323 DSCP-Marking Policy
These CLI commands are consistent with the conguration in the H.323 Protocol section on page 3-9 of the Cisco IP Telephony QoS Design Guide.
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0
A2-18
78-11549-01
Chapter 2
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0 78-11549-01
A2-19
Campus QoS
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0
A2-20
78-11549-01
Chapter 2
When the Skinny + H.323 + MGCP Coloring policy is previewed for deployment, the CLI is displayed as shown in Figure 2-20.
Figure 2-20 CLI Preview of Skinny + H.323 + MGCP DSCP-Marking Policy
These CLI commands are consistent with the conguration in the MGCP section on page 3-10 of the Cisco IP Telephony QoS Design Guide.
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0 78-11549-01
A2-21
Campus QoS
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0
A2-22
78-11549-01
Chapter 2
Figure 2-21 Catalyst 2Q2T Queues for Control (CoS = 3) and VoIP (CoS = 5)
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0 78-11549-01
A2-23
Campus QoS
This is consistent with the recommendation on page 3-16 of the Cisco IP Telephony QoS Design Guide for access layer Catalyst 6000 2Q2T transmit queueing.
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0
A2-24
78-11549-01
Chapter 2
As in the previous section, control trafc needs to be explicitly assigned to the second-queue-rst-threshold setting for the uplink queues also. The uplink queues use an expanded queueing algorithm: 1P2Q2T, where the P represents a priority queue exclusively reserved for voice (CoS = 5).
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0 78-11549-01
A2-25
Campus QoS
Right-click on any and all Catalyst 6000 devices in the database, select Device Properties, and then click on the button QoS Property. The 1P2Q2T mapping tab will appear on top by default. Click on the radio button in the Queue 2 Threshold 1 column that intersects with row Flash(3). An optional step is to add the VoIP RTP trafc (CoS = 5) to Queue 3 (the strict-priority queue); this step is optional because VoIP RTP (CoS = 5) is added to Queue 3 of 1P2Q2T by default after QoS has been enabled on the Catalyst 6000. Optional: Click on the radio button in the Queue 3 column that intersects with row Critical(5). The resulting map should match Figure 2-24.
Figure 2-24 Catalyst 1P2Q2T Queues for Control (CoS = 3) and VoIP (CoS = 5)
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0
A2-26
78-11549-01
Chapter 2
This is consistent with the recommendations on page 3-21 of the Cisco IP Telephony QoS Design Guide for access layer Catalyst 6000 distribution uplinks.
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0 78-11549-01
A2-27
Campus QoS
QPM 2.0 does not support modications to the default CoS/ToS/DSCP mappings.
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0
A2-28
78-11549-01
Chapter 2
To modify these weights begin by adding the Catalyst 4000-L3 module to QPM 2.0. Right-click on All Interfaces from the Tree-View window panel, and then select Interface Properties. Set the QoS Property to WRR and then click OK. These screens are shown in Figure 2-26.
Figure 2-26 Setting WRR on Catalyst 4000-L3 Interfaces
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0 78-11549-01
A2-29
Campus QoS
The queueing algorithm on the Catalyst 4000 is a WRR servicing of four transmit queues. The default and noncongurable queue assignments are based on the rst two bits (most signicant bits) of the IP Precedence values: IPP 0 1 2 3 4 5 6 7 Binary 000 001 010 010 100 101 110 111 Queue 0 0 1 1 2 2 3 3 Default Weight 1 1 2 2 3 3 4 4
Note
For additional information on Catalyst 4000-L3 QoS, refer to: http://www.cisco.com/univercd/cc/td/doc/product/lan/cat4000/inst_ nts/78_10164.pdf Although the queue assignments are not user congurable, the weights assigned to the queues are user congurable. To boost the performance of VoIP and VoIP control, the default weights can be reassigned as below (remember: the higher the weight, the better the servicing for that queue): Queue 1 2 3 4 IPP 0+1 2+3 4+5 6+7 Default Weight 1 2 3 4 Modied Weight 1 3 4 2 VoIP Control VoIP Trafc
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0
A2-30
78-11549-01
Chapter 2
Right-click on All Interfaces from the Tree-View window panel. Then from the Policy window panel, right-click and select New QoS Policy. Enter a name for the policy and select the default direction (Out) and check the box to enable WRR Properties. Enter the weights for the corresponding queues as Q1 = 1, Q2 = 3, Q3 = 4 and Q4 = 2 as shown in Figure 2-27.
Figure 2-27 WRR Policies for Catalyst 4000-L3
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0 78-11549-01
A2-31
Campus QoS
A summary of the WRR policy for the Catalyst 4000-L3 is shown in Figure 2-28.
Figure 2-28 Catalyst 4000-L3 WRR Policy Summary
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0
A2-32
78-11549-01
Chapter 2
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0 78-11549-01
A2-33
Campus QoS
No additional queueing conguration is available on the Catalyst 3500 Series switches. QPM 2.0 does not support the Catalyst 3500 Series switches.
If the uplinks to the distribution layer Catalyst 6000 are originating from a Catalyst 6000 Access Layer Switch (with PFC), then the DSCP settings can be trusted; however, if the uplinks are originating from any other type of Layer 2
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0
A2-34
78-11549-01
Chapter 2
Campus QoS Catalyst 6000 Distribution/Core Running Native Cisco IOS Software
switch, then only the CoS can be trusted. Create a device group for the uplinks from the access layer switches and set the trust parameters accordingly. The two options are shown in Figure 2-31.
Figure 2-31 Trust DSCP for Catalyst 600 (PFC) Access Uplinks; Trust CoS for All Others
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0 78-11549-01
A2-35
Campus QoS
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0
A2-36
78-11549-01
C H A P T E R
WAN QoS
This section corresponds to Chapter 5 of the Cisco IP Telephony QoS Design Guide, Implementing a Wide-Area Network. The order in which topics are presented will follow the order in which they are presented within the Guide. The IP telephony QoS recommendations from Chapter 4 of the Cisco IP Telephony QoS Design Guide, Implementing a Wide Area Network are not supported by QPM at this time; therefore, this chapter is not paralleled in this appendix.
Point-to-Point WAN
Link fragmentation and interleaving (LFI) is an important IP telephony QoS mechanism on WAN links because it prevents excessive serialization delay on link speeds of less than 768 kbps. LFI, however, is not supported with Point-to-Point Protocol (PPP); it is supported only on the Multilink PPP (MLP) Protocol. This example, consistent with the Guide, assumes a Point-to-Point WAN link (with Multilink PPP congured) that is slower than 768 kbps. After adding/importing the WAN routers to QPM the initial step, as usual, is to create a device group. Include all MLP links on any devices running the same Cisco IOS version (recommended 12.1(3)T or higherin this case, 12.1(5)T is used). Set the QoS Property of the interface to Class Based QoS, check the box to Enable IP RTP Header Compression, check the box to Enable LFI, and enter the Maximum Delay (millisec) as 10. Add all MLP interfaces to this device group (from both the central and the remote sites). MLP WAN settings are summarized in Figure 3-1.
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0 78-11549-01
A3-1
WAN QoS
Figure 3-1
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0
A3-2
78-11549-01
Chapter 3
Consistent with the conguration on page 5-19 of the Guide, create a new QoS policy to be applied in the Out direction that will identify VoIP trafc by IP Precedence = 5 or DSCP = 46 (EF). Provision a low-latency queue (LLQ) for 40 percent of the link speed (in this case the link speed is 256 kbps, and, therefore 40 percent would work out to approximately 100 kbps). Checking the Priority box next to the Bandwidth (%) eld enables LLQ. The QoS Policy wizard screens for setting this VoIP LLQ policy are shown in Figure 3-2.
Figure 3-2 QoS Policy Wizard Screens for VoIP (ToS = 5/DSCP = 46) LLQ Policy
Note
DSCP = 46 and DSCP = EF are synonymous references to the binary setting of 101110 for the rst six bits of the IP ToS byte.
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0 78-11549-01
A3-3
WAN QoS
Create a second policy to be applied in the Out direction that will identify VoIP control trafc by IP Precedence = 3 or DSCP = 26 (AF31). Provision a minimum bandwidth guarantee for VoIP control trafc of 5 percent. The QoS Policy Wizard screenshots for this policy are shown in Figure 3-3.
Figure 3-3 QoS Policy Wizard Screens for VoIP Control Guaranteed BW = 5 Percent
Note
Do not check the Priority box from the Queueing Properties dialog box for the VoIP control trafc policy because this would enable LLQ, a scenario is not recommended for VoIP control trafc (reserved for VoIP RTP only).
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0
A3-4
78-11549-01
Chapter 3
Create one nal policy that will allow all other trafc to use Weighted Fair Queuing (WFQ). Be sure to select the Class-Default radio button for the lter to which to apply the WFQ queueing. The QoS Policy Wizard steps for this default WFQ policy are shown in Figure 3-4.
Figure 3-4 QoS Policy Wizard Screens for Class-Default WFQ Policy
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0 78-11549-01
A3-5
WAN QoS
Figure 3-5 shows a summary of the QoS policies set on the MLP Interfaces device group.
Figure 3-5 Summary of Policies on MLP Interfaces Device Group
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0
A3-6
78-11549-01
Chapter 3
These commands are consistent with the recommendations of the Cisco IP Telephony QoS Design Guide for MLP WAN links (page 5-19).
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0 78-11549-01
A3-7
WAN QoS
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0
A3-8
78-11549-01
Chapter 3
Figure 3-7
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0 78-11549-01
A3-9
WAN QoS
Create a second device group for all Frame Relay sub interfaces. Set the Interface Type to frame-relay and under the Group Contains section, select the radio button for Sub Interfaces with FRTS. Set the QoS Property to Class-based QoS. The box to Enable Frame-Relay Trafc Shaping should already be checked and grayed out (inherited property from parent interface). Enter the Rate (CIR) and the Burst Size (Committed Burst rate or Bc). Check the box to Enable IP Header Compression. If the link speed is below 768 kbps, then Frame Relay Fragmentation 12 (FRF.12) can be enabled to reduce serialization delay; to enable FRF.12, check the box to Enable Voice Conguration and enter 320 in the Fragment Bytes eldthis value is taken from the Guide, Table 5-2.
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0
A3-10
78-11549-01
Chapter 3
Add all Frame Relay subinterfaces to the group from both the central and remote sites (provided they are of the same speedsotherwise, use separate device groups and bundle according to speeds). The Device Group properties box should correspond to Figure 3-8.
Figure 3-8 Device-Group Properties for Frame Relay Subinterfaces
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0 78-11549-01
A3-11
WAN QoS
Timesaver
Because the Modular QoS (MQC) policies for protecting VoIP and VoIP control trafc are identical to the previous example, Point-to-Point WAN, these policies can be copied and pasted to this new device group by right-clicking on them and selecting COPY and then clicking on the new Frame Relay device group and selecting PASTE. If it is necessary to build these (as opposed to copying them over) then start by clicking on the device group for the Frame Relay subinterfaces and then right-clicking in the Policy window panel and selecting New QoS Policy.
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0
A3-12
78-11549-01
Chapter 3
The lters for the VoIP trafc are IPP = 5 or DSCP =4 6. Assign this ow to the LLQ provisioned for 40 percent of the bandwidth (for consistency with the Guide page 5-26). Be certain to check the Priority box next to the bandwidth eld, because this is required to enable LLQ. The QoS Policy wizard screenshots for this VoIP policy appear in Figure 3-9.
Figure 3-9 QoS Policy Wizard Screens for VoIP (ToS = 5/DSCP = 46) LLQ Policy
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0 78-11549-01
A3-13
WAN QoS
Create the second New QoS Policy to identify the VoIP control trafc by setting IPP = 3 or DSCP = 26 and guarantee a minimum bandwidth for this control trafc of 5 percent of the link speed. The QoS Policy Wizard screenshots for this VoIP policy appear in Figure 3-10.
Figure 3-10 QoS Policy Wizard Screens for VoIP Control Guaranteed BW = 5 Percent
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0
A3-14
78-11549-01
Chapter 3
Note
Do not check the Priority box from the Queueing Properties dialog box for the VoIP control trafc policy, because this would enable LLQ, a scenario that is not recommended for VoIP control trafc (reserved for VoIP RTP only). And nally, create the third New QoS Policy to set the Class-default queueing algorithm to WFQ. Be sure to select the Class-Default radio button for the lter to which to apply the WFQ queueing. The QoS Policy Wizard steps for this default WFQ policy are shown in Figure 3-11.
Figure 3-11 QoS Policy Wizard Screens for Class-Default WFQ Policy
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0 78-11549-01
A3-15
WAN QoS
Figure 3-12 shows a summary of the QoS policies set on the Frame Relay Subinterfaces device group.
Figure 3-12 Summary of Policies on Frame-Relay Sub-Interface Device-Group
A preview deployment of this combined VoIP-over-Frame Relay QoS policy set appears in Figure 3-13.
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0
A3-16
78-11549-01
Chapter 3
These commands are consistent with the recommendations of the Cisco IP Telephony QoS Design Guide for Frame Relay WAN links (See the Guide, page 5-26).
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0 78-11549-01
A3-17
WAN QoS
ATM WAN
Create a new device group for all ATM virtual-template interfaces (consistent with the example on pages 5-32 and 5-33 of the Guide). Set the Interface Type to Any and under the Group Contains section, select the radio button for Interfaces. Set the QoS Property to Class-based QoS. If in the unlikely event the ATM link speed is less than 768 kbps, then LFI can be enabled, via MLP-over-ATM (MPoATM). To enable LFI, check the box titled Enable LFI. Add all ATM virtual-template interfaces to the group from both the central and remote sites (provided they are of the same speedsotherwise, use separate device groups and bundle according to link-speeds). The Device-Group properties box should correspond to Figure 3-14.
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0
A3-18
78-11549-01
Chapter 3
Note
Note: As indicated in the Guide (page 5-32), cRTP is not supported for ATM connections.
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0 78-11549-01
A3-19
WAN QoS
Timesaver
Because the Modular QoS (MQC) policies for protecting VoIP and VoIP control trafc are identical to the previous examples, Point-to-Point WAN and Frame Relay WAN, these policies can be copied and pasted to this new device group by right-clicking on them and selecting COPY and then clicking on the new frame-relay device-group and selecting PASTE. If it is necessary to build these (as opposed to copying them over) then start by clicking on the device group for the ATM virtual templates and then right-clicking in the Policy window panel and selecting New QoS Policy.
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0
A3-20
78-11549-01
Chapter 3
The lters for the VoIP trafc are IPP = 5 or DSCP = 46. Assign this ow to the LLQ provisioned for 40 percent of the bandwidth (for consistency with the Guide, page 5-26). Be certain to check the Priority box next to the Bandwidth eld, because this is required to enable LLQ. The QoS Policy Wizard screenshots for this VoIP policy appear in Figure 3-15.
Figure 3-15 QoS Policy Wizard Screens for VoIP (ToS = 5/DSCP = 46) LLQ Policy
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0 78-11549-01
A3-21
WAN QoS
Create the second New QoS Policy to identify the VoIP control trafc by setting IPP = 3 or DSCP = 26 and guarantee a minimum bandwidth for this control trafc of 5 percent of the link speed. The QoS Policy wizard screenshots for this VoIP policy appear in Figure 3-16.
Figure 3-16 QoS Policy Wizard Screens for VoIP Control Guaranteed BW = 5 Percent
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0
A3-22
78-11549-01
Chapter 3
Note
Do not check the Priority box from the Queueing Properties dialog box for the VoIP control trafc policy, because this would enable LLQ, a scenario that is not recommended for VoIP control trafc (reserved for VoIP RTP only). And nally, create the third New QoS Policy to set the Class-default queueing algorithm to WFQ. Be sure to select the Class-Default radio button for the lter to which to apply the WFQ queueing. The QoS Policy Wizard steps for this default WFQ policy are shown in Figure 3-17.
Figure 3-17 QoS Policy Wizard Screens for Class-Default WFQ Policy
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0 78-11549-01
A3-23
WAN QoS
Figure 3-18 shows a summary of the QoS policies set on the Frame Relay subinterfaces device group.
Figure 3-18 Summary of Policies on ATM Virtual-Interfaces Device Group
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0
A3-24
78-11549-01
Chapter 3
A preview deployment of this combined MLP-over-ATM QoS policy set appears in Figure 3-19.
Figure 3-19 Previewing the CLI for MLP over ATM
With the exception of QPM not supporting the tx-ring-limit command, these commands are consistent with the recommendations of the Cisco IP Telephony QoS Design Guide for MLPoATM links (pages 5-33 and 5-34).
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0 78-11549-01
A3-25
WAN QoS
(Parent) Frame Relay interfaces (to enable Frame Relay trafc shaping) Frame Relay Subinterfaces (to bind sub interfaces to Frame Relay map class) Virtual template interfaces (to enable LFI and to bind to service policy)
These device groups have already been detailed in previous sections, but here there are two subtle differences: the LLQ/CBWFQ service policy is not bound to the Frame Relay Subinterfaces device group but to the virtual template device group and cRTP is disabled. If the device groups already exist from the previous scenarios, the simplest way to proceed is to add the Frame Relay (parent) interface to the corresponding existing device group and to do the same for the virtual template interface. This way, only one new device group needs to be created (Frame Relay Subinterfaces), not three. The more consolidated the device groups are, the easier they are to manage. New interfaces can be added to existing device groups by simply right-clicking on the existing device groups (for example on the Frame Relay Parent Interfaces device group) and selecting Add/Remove Members. This will open the box shown in the Scaling QoS Management Using Device Groups section on page A1-13 as Figure 1-13. When all new interfaces have been added to the device group, click OK. A conrmation prompt will appear, as shown in Figure 3-20. Click Yes to conrm the additions of the new interfaces to the device group.
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0
A3-26
78-11549-01
Chapter 3
Repeat for the Virtual-Template device group. Create the only new device-group for all Frame Relay Subinterfaces internetworked to ATM. Set the Interface Type to frame-relay and under the Group Contains section, select the radio button for Sub Interfaces with FRTS. Set the QoS Property to Class-based QoS. The box to Enable Frame-Relay Trafc Shaping should already be checked and grayed-out (inherited property from parent interface). Enter the Rate (CIR) and the Burst Size (Committed Burst rate, or Bc). The Device Group properties box should correspond to Figure 3-21.
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0 78-11549-01
A3-27
WAN QoS
Do not create any additional QoS policies on this Frame Relay-to-ATM device group.
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0
A3-28
78-11549-01
Chapter 3
A preview deployment of the ATM-Frame Relay (remote) QoS policy set appears in Figure 3-22.
Figure 3-22 Previewing the CLI for ATM-Frame Relay WAN (remote side)
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0 78-11549-01
A3-29
WAN QoS
These commands are consistent with the recommendations of the Cisco IP Telephony QoS Design Guide for ATM-Frame Relay links (pages 5-39 and 5-40 in the Guide).
Cisco IP Telephony QoS Design Guide Appendix A: Conguring QoS for IP Telephony with QPM 2.0
A3-30
78-11549-01