Advanced VoIP Tuning and Troubleshooting



Similar documents
This topic lists the key mechanisms use to implement QoS in an IP network.

Policing and Shaping Overview

How To Configure Voip Qos For A Network Connection

Application Note. Configuring WAN Quality of Service for ShoreTel. Quality of Service Overview. Quality of Service Mechanisms. WAN QoS for ShoreTel 5

Routing. Static Routing. Fairness. Adaptive Routing. Shortest Path First. Flooding, Flow routing. Distance Vector

Network administrators must be aware that delay exists, and then design their network to bring end-to-end delay within acceptable limits.

How To Configure Qos On A Network With A Network (Cisco) On A Cell Phone Or Ipad On A Pq-Wifi On A 2G Network On A Cheap Cell Phone On A Slow Network On An Ipad Or Ip

Requirements of Voice in an IP Internetwork

Quality of Service. Traditional Nonconverged Network. Traditional data traffic characteristics:

- QoS and Queuing - Queuing Overview

Encapsulating Voice in IP Packets

Optimizing Converged Cisco Networks (ONT)

"Charting the Course to Your Success!" QOS - Implementing Cisco Quality of Service 2.5 Course Summary

IMPLEMENTING CISCO QUALITY OF SERVICE V2.5 (QOS)

Implementing Cisco Quality of Service QOS v2.5; 5 days, Instructor-led

Curso de Telefonía IP para el MTC. Sesión 2 Requerimientos principales. Mg. Antonio Ocampo Zúñiga

Quality of Service (QoS)) in IP networks

Clearing the Way for VoIP

Case in Point. Voice Quality Parameter Tuning

PC-over-IP Protocol Virtual Desktop Network Design Checklist. TER Issue 2

Optimizing Converged Cisco Networks (ONT)

5. DEPLOYMENT ISSUES Having described the fundamentals of VoIP and underlying IP infrastructure, let s address deployment issues.

DS3 Performance Scaling on ISRs

Quality of Service Analysis of site to site for IPSec VPNs for realtime multimedia traffic.

Chapter 2 - The TCP/IP and OSI Networking Models

VoIP Bandwidth Considerations - design decisions

This topic describes the basic purpose and function of AutoQoS. One command per interface to enable and configure QoS

Distributed Systems 3. Network Quality of Service (QoS)

Technote. SmartNode Quality of Service for VoIP on the Internet Access Link

QoS Parameters. Quality of Service in the Internet. Traffic Shaping: Congestion Control. Keeping the QoS

Highlighting a Direction

Improving Quality of Service

End-to-End QoS Network Design

Optimizing Converged Cisco Networks (ONT)

Ethernet Overhead Accounting

Description: To participate in the hands-on labs in this class, you need to bring a laptop computer with the following:

Cisco Quality of Service and DDOS

Chapter 7 outline. 7.5 providing multiple classes of service 7.6 providing QoS guarantees RTP, RTCP, SIP. 7: Multimedia Networking 7-71

ISTANBUL. 1.1 MPLS overview. Alcatel Certified Business Network Specialist Part 2

VoIP Quality of Service - Basic Theory

QoS issues in Voice over IP

Configuring an efficient QoS Map

PCoIP Protocol Network Design Checklist. TER Issue 3

Nortel Technology Standards and Protocol for IP Telephony Solutions

Challenges and Solutions in VoIP

Quality of Service in the Internet. QoS Parameters. Keeping the QoS. Traffic Shaping: Leaky Bucket Algorithm

The Basics. Configuring Campus Switches to Support Voice

VoIP Configuration. Prerequisite Tasks CHAPTER

Configuring QoS and Per Port Per VLAN QoS

Cisco CCNP Optimizing Converged Cisco Networks (ONT)

Multiservice Access Technologies

Voice Over IP Per Call Bandwidth Consumption

Components of a VoIP Network

Quality of Service (QoS) Networking

Improving QOS in IP Networks. Principles for QOS Guarantees. Principles for QOS Guarantees (more) Principles for QOS Guarantees (more)

CS640: Introduction to Computer Networks. Why a New Service Model? Utility curve Elastic traffic. Aditya Akella. Lecture 20 QoS

IBM. Tivoli. Netcool Performance Manager. Cisco Class-Based QoS Technology Pack. User Guide. Document Revision R2E1

Cisco Networks (ONT) 2006 Cisco Systems, Inc. All rights reserved.

Echo Analysis Case Study

Network Considerations for IP Video

ILTA HAND 8 QoS/CoS. Agenda. What is it?

Frame Relay and Frame-Based ATM: A Comparison of Technologies

QoS: Color-Aware Policer

Lecture 16: Quality of Service. CSE 123: Computer Networks Stefan Savage

Configuring QoS. Understanding QoS CHAPTER

CCNP: Optimizing Converged Networks

Voice over IP Manual

Configuring T1 and E1 WAN Interfaces

Analysis of IP Network for different Quality of Service

Implementing VoIP support in a VSAT network based on SoftSwitch integration

Best Practice Recommendations for VLANs and QoS with ShoreTel

Voice over IP (VoIP) and QoS/QoE

VoIP QoS on low speed links

Planning Networks for VOIP. An Introduction

Quality of Service versus Fairness. Inelastic Applications. QoS Analogy: Surface Mail. How to Provide QoS?

VoIP: How to Plan for the Bandwidth and Calculate the Cost Savings

Class of Service Data Collection Document. For AT&T Managed Internet Service (MIS)

02-QOS-ADVANCED-DIFFSRV

Voice over IP. Overview. What is VoIP and how it works. Reduction of voice quality. Quality of Service for VoIP

Course 4: IP Telephony and VoIP

SIP Trunking and Voice over IP

Indepth Voice over IP and SIP Networking Course

12 Quality of Service (QoS)

Real-time apps and Quality of Service

Advanced Networking Voice over IP: RTP/RTCP The transport layer

Network Scenarios Pagina 1 di 35

Configuring Voice over IP

Curso de Telefonía IP para el MTC. Sesión 1 Introducción. Mg. Antonio Ocampo Zúñiga

Calculating Bandwidth Requirements

! encor en etworks TM

QoS Switching. Two Related Areas to Cover (1) Switched IP Forwarding (2) 802.1Q (Virtual LANs) and 802.1p (GARP/Priorities)

MLPPP Deployment Using the PA-MC-T3-EC and PA-MC-2T3-EC

Voice over IP: RTP/RTCP The transport layer

Please purchase PDF Split-Merge on to remove this watermark.

18: Enhanced Quality of Service

Transcription:

1 Advanced Vo Tuning and Troubleshooting Session 2.scr 1

Tuning for Voice Quality Problem Avoidance Analyze problem sources and proper design tool/guidelines to ensure voice quality 3 More Than Just Providing QoS The World Is Not All Point-to-Point Links Sender Receiver PBX V T1 V V WAN 128 kbps PBX Whew, We Made It Hmmmm, Voice Packets, My Favorite! Chomp, Chomp, Chomp! 4.scr 2

Agenda Vo Requirements and Challenges /Switch Egress QoS Study WAN QoS Design Considerations Tuning Audio Level and Echo Best Practice Recommendations 5 Data and Voice Opposite Needs/Behavior Data Bursty Greedy Drop sensitive Delay insensitive TCP retransmits Voice Smooth Benign Drop insensitive Delay sensitive UDP best effort 6.scr 3

Voice over Protocols Vo Is Not Bound to H.323 (H.323 Is a Signaling Protocol) Many Other Signaling Protocols MGCP, SGCP, S, Etc. Commonality Voice Packets Ride on UDP/RTP Voice Payload Transport Network Link Physical G.711, G.729, G.723(.1) RTP/UDP MLPPP/FR/ATM AAL1 7 Payload Bandwidth Requirements for Various Codecs Encoding/Compression G.711 PCM A-Law/u-Law G.726 ADPCM G.727 E-ADPCM G.729 CS-ACELP G.728 LD-CELP G.723.1 CELP Resulting Bit Rate 64 kbps (DS0) 16, 24, 32, 40 kbps 16, 24, 32, 40 kbps 8 kbps 16 kbps 6.3/5.3 kbps 8.scr 4

Vo Packet Format Vo Packet Link Header X Bytes UDP RTP Header Header Header 20 Bytes 8 Bytes 12 Bytes Voice Payload X Bytes Payload size, PPS and BPS vendor implementation specific For example: Not Including Link Layer Header or CRTP Cisco at G.711 Cisco at G.729 Cisco Phone at G.711 Cisco Phone at G.723.1 = 160 Byte Voice Payload at 50 pps (80 kbps) = 20 Byte Payload at 50 pps (24 kbps) = 240 Byte Payload at 33 pps (74.6 kbps) = 24 Byte Payload at 33 pps (17k bps) Note Link Layer Sizes Vary per Media 9 Various Link Layer Header Sizes Varying Bit Rates per Media Example G.729 with 60 Byte Packet (Voice and Header) at 50 pps (No RTP Header Compression) Media Ethernet Link Layer Header Size 14 Bytes Bit Rate 29.6 kbps PPP Frame Relay ATM 6 Bytes 4 Bytes 5 Bytes Per Cell 26.4 kbps 25.6 kbps 42.4 kbps Note For ATM a Single 60 Byte Packet Requires Two 53 Byte ATM Cells 10.scr 5

Domains of QoS Consideration Requirement - End to End Quality of Service (QoS) Multilayer Campus WAN Multilayer Campus Campus WAN Edge/Egress WAN Backbone Avoiding Loss, Delay and Delay Variation (Jitter) Strict Prioritization of Voice 11 Loss Sources of Packet Loss Congestion Multilayer Campus WAN Multilayer Campus Edge/Egress 1. Congestion on WAN Link 2. Proper QoS Mechanisms Not Deployed 3. Campus Congestion Less Concerning WAN 1. Global WAN Congestion 2. Central to Remote Circuit Speed Mismatch 3. Remote Site to Central Site over Subscription 4. Improper PVC Design/Provisioning 12.scr 6

Delay Fixed Sources of Fixed Delay Multilayer Campus WAN Multilayer Campus Edge/Egress Codec Processing Packetization (TX) Serialization De-Jitter Buffer WAN Propagation Delay 6us per Km Serialization Delay 13 Delay Budget Goal < 150 ms Cumulative Transmission Path Delay Avoid the Human Ethernet High Quality Satellite Quality CB Zone Fax Relay, Broadcast 0 100 200 300 400 Delay Target Time (msec) 500 600 700 800 ITU s G.114 Recommendation = 0 150 msec 1-Way Delay 14.scr 7

Delay Variable Sources of Variable Delay Multilayer Campus WAN Multilayer Campus Queuing Delay (Congestion) De-Jitter Buffer No or Improper Traffic Shaping Config Large Packet Serialization on Slow Links Variable Size Packets Less Common in Campus Edge/Egress WAN Global WAN Congestion Central to Remote Site Speed Mismatch (Fast to Slow) PVC Over Subscription (Remote to Central Site) Bursting Above Committed Rates 15 Large Packets on Slow Links 56 kbps Line Real-Time MTU Elastic Traffic MTU 214 ms Serialization Delay for 1500 Byte Frame at 56 kbps Large Packets Freeze Out Voice Results in Jitter 16.scr 8

QoS Needs Campus Bandwidth minimizes QoS issues WAN edge QoS starts in the WAN a must WAN considerations Often forgotten or misunderstood a must 17 Agenda Vo Requirements and Challenges /Switch Egress QoS Study WAN QoS Design Considerations Tuning Audio Level and Echo Best Practice Recommendations 18.scr 9

Headquarters Si Catalyst 6500 Campus Case Study: End-to-End Quality of Service Cisco 7500 High-Speed WAN Backbone > 2 Mbps High-Speed Backbone Regional Office Cisco 7200 Low Speed Central Site T1 Point-to-Point 256 kbps Frame Relay Cisco 2600 128 kbps Cisco 3600 WAN Provisioning and Design ATM Branch Office s Low Speed Remote Sites Cisco 3600 Applying Proper Tools in Proper Location 19 /Switch Egress QoS Tools Three Classes of QoS Tools Vo SNA 1 1 2 2 V V V 2 1 3 1 2 1 Data 3 3 3 3 Prioritization Low Speed WAN, High Speed WAN, Campus Link Efficiency Fragment and Interleave, Compression, VAD Traffic Shaping Speed Mismatches + To Avoid Bursting 20.scr 10

Prioritization Low Speed WAN Egress QoS Two MB or Less precedence RSVP Class-cased weighted fair queuing - CBWFQ 21 Weighted Fair Queuing (WFQ) Treats Flows with same Precedence Equally 24 kbps Voice Flow Queue Structure Processor 2 1 2 2 2 2 1 Dequeue 2 2 2 2 500 kbps Flow Classify Interface Queues Dynamic Queue Per Flow 1 1 Transmit Scheduling Default on Links 2 MB or Less 24 kbps Flow Gets 28 kbps (Only Needs 24 kbps) 500 kbps Flow Gets 28 kbps Therefore = Fair 2 1 2 1 2 1 56 kbps Line Speed High Speed Input Ethernet T1 etc. When Congestion Exists Queues share Bandwidth Equally i.e. Fair Queuing in a TDM Fashion Low Speed Output 56 kbps Not as Effective When Many Flows 22.scr 11

Displaying WFQ Emphasizing the Fair in Weighted Fair Queuing Note: The Lower the Weight of a Flow, the More Bandwidth it Gets HUB3640#show queue se 0/0 Input queue: 0/75/0 (size/max/drops); Total output drops: 0 Queuing strategy: weighted fair Output queue: 31/64/0 (size/threshold/drops) Conversations 2/4 (active/max active) Reserved Conversations 0/0 (allocated/max allocated) (depth/weight/discards/interleaves) 24/6/0/0 Conversation 184, linktype: ip, length: 1504 source: 10.1.5.2, destination: 10.1.6.1, id: 0x04CF, ttl: 31, TOS: 0 prot: 6, source port 1503, destination port 21 (depth/weight/discards/interleaves) 2/6/0/0 Conversation 227, linktype: ip, length: 68 source: 10.1.1.2, destination: 10.1.1.1, id: 0xFCCF, ttl: 31, TOS: 0 prot: 17, source port 49608, destination port 49608 Weight = 6/(1+ Prec) High Bandwidth Flow Vo Flow 23 Traffic Differentiation Mechanisms Precedence and 802.1p Layer 2 802.1Q/p Three Bits Used for CoS (User Priority) Data Packet PREAM. SFD DA SA TAG 4 Bytes PT DATA FCS Version Length ToS 1 Byte Len Layer 3 V4 ID offset TTL Proto FCS -SA -DA Data Standard V4: Three MSB Called Precedence (DiffServ Will Use Six D.S. Bits Plus Two for Flow Control) Layer 2 mechanisms are not assured end-to-end Layer 3 mechanisms provide end-to-end classification 24.scr 12

Precedence Controlling WFQ s De-queuing Behavior Packet Data Weight = 6 (1 + Precedence) Precedence Weight 3 Bit Precedence Field ToS Field 0 6 1 2048 2 1365 3 1024 4 819 5 682 6 585 7 512 Precedence Not a QoS Mechanism turned on in the router In Band QoS Signaling Set in the End Point 25 Displaying Effects of Precedence This Is Using the Weight in Weighted Fair Queuing HUB3640#show queue se 0/0 Input queue: 0/75/0 (size/max/drops); Total output drops: 0 Queuing strategy: weighted fair Output queue: 9/64/0 (size/threshold/drops) Conversations 2/7 (active/max active) Reserved Conversations 0/0 (allocated/max allocated) (depth/weight/discards/interleaves) 1/585/0/0 Conversation 90, linktype: ip, length: 68 source: 10.1.5.2, destination: 10.1.6.1, id: 0x0064, ttl: 255, TOS: 192 prot: 17, source port 16384, destination port 16384 (depth/weight/discards/interleaves) 8/6/0/0 Conversation 219, linktype: ip, length: 1504 source: 10.1.1.2, destination: 10.1.1.1, id: 0x1C7E, ttl: 31, TOS: 0 prot: 6, source port 49604, destination port 21 Vo Flow FTP Flow 26.scr 13

Precedence with WFQ Calculating Given Flow Bandwidth Based on Precedence Under Congestion Flow A BW = ( ) X Flow A Parts Sum of all Flow Parts Circuit Bandwidth Individual Flow Parts = 1 + Precedence Precedence Flow Parts 0 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 27 Precedence Flow Bandwidth Calculation Example Flow A BW = ( ) X Flow A Parts Sum of all Flow Parts Circuit Bandwidth Example A 56 kbps Link 2 Vo Flows A+B at 24 kbps ( Prec 0) 2 FTP Flows at 56 kbps ( Prec 0) 14 kbps = ( 1 X 56 kbps 4 ) 14 kbps Not Suitable for a 24 kbps Flow Example of Many Flows with WFQ and Equal Precedence Flows Weighted Fair Queuing Example B 56 kbps Link 2 Vo Flows A+B at 24 kbps ( Prec 5) 2 FTP Flows at 56 kbps ( Prec 0) 24 kbps = ( 6 X 56 kbps 14 ) 24 kbps Suitable for a 24 kbps Flow WFQ Preferring Precedence 28.scr 14

Precedence No Admission Control Moral of the Story: Know Your Environment, Voice Traffic Patterns etc. Recommendations for Certain Bandwidth s to Follow Example C 56 kbps Link 2 Vo Flow s at 24 kbps ( Prec 5) 4 FTP Flows at 56 kbps ( Prec 0) 21 kbps = ( 6 16 ) X 56 kbps 21 kbps Not Suitable for a 24 kbps Flow RTP Header Compression Would Help Since it Would reduce Vo Flow to 11.2 kbps Also RSVP or CBWFQ 29 Class-Based Weighted Fair Queuing CBWFQ Queues represent classes that have an associated minimum bandwidth in kbps Traffic assigned to classes via a policy-map Max 64 classes which support: WFQ between classes RED per class 30.scr 15

Class-Based Weighted Fair Queuing CBWFQ class-map data match input-interface Ethernet0/0 class-map class-default match any class-map voice match access-group 101!! policy-map WAN class voice bandwidth 80 class data bandwidth 48! interface Serial0/1 ip address 10.1.6.2 255.255.255.0 bandwidth 128 no ip directed-broadcast service-policy output WAN! 1 2 2 1 2 1 access-list 101 permit ip any any precedence critical Classify Class-Based WFQ Class-Map Voice = 80 kbbs 1 1 2 2 Class-Map Data = 48 kbbs Dequeue 31 128 kbps Any Packet with Precedence = 5 Gets Assigned to a Class That will Get a Minimum of 80 kbps on a 128 kbps Circuit 31 31 RSVP: Resource Reservation Protocol IETF signaling protocol Reservation of bandwidth and delay Flow can be signaled by end station or by router (static reservation) Basically reserves queue space End Points Send Unicast Signaling Messages (RSVP PATH + RESV) Admit One Non RSVP Enabled s Pass the Vo Flow as Best Effort FXS RSVP PATH Message FXS RSVP RESV Message RSVP Enabled See the PATH and RESERVE Messages and Allocate the Appropriate Queue Space for the Given Flow 32.scr 16

Configuring RSVP Interface Command ip rsvp bandwidth [interface-kbps] [single-flow-kbps] interface Serial0/0 ip address 10.1.1.2 255.255.0.0 ip rsvp bandwidth 96 96 bandwidth 128 fair-queue 64 256 1000 Greatest BW Reservation RSVP Flow on the link Weight = Conversation BW Make Sure the Bandwidth Statement Accurately Reflects the Circuit Bandwidth By Default 75% of the Bandwidth Statement Is Reservable bottom#sho ip rsvp installed BPS To From Protoc DPort Sport Weight Conversation 24K 10.1.1.1 10.1.1.2 UDP 16384 16384 4 264 33 Monitoring RSVP Queue Operation bottom#sho que se 0 Input queue: 0/75/0 (size/max/drops); Total output drops: 0 Queueing strategy: weighted fair Output queue: 23/64/0 (size/threshold/drops) Conversations 3/5 (active/max active) Reserved Conversations 1/1 (allocated/max allocated) (depth/weight/discards/interleaves) 21/6/0/0 Conversation 195, linktype: ip, length: 1504 source: 10.1.5.1, destination: 10.1.6.1, id: 0xD5E8, ttl: 31, TOS: 0 prot: 6, source port 1503, destination port 21 FTP Flow (depth/weight/discards/interleaves) 2/4/0/0 Conversation 264, linktype: ip, length: 68 source: 10.1.1.2, destination: 10.1.1.1, id: 0xAFE9, ttl: 31, TOS: 0 prot: 17, source port 16348, destination port 16384 Reserved Vo Flow 34.scr 17

Prioritization High-Speed WAN Egress QoS Greater than 2 MB Distributed weighted fair queuing WRED to ATM CoS At High-Speeds Processor Oriented QoS Mechanisms Not Efficient 35 High-Speed Prioritization Distributed Weighted Fair Queuing (DWFQ) V2-40 or Better (Versatile Interface Processor) Flow-Based DWFQ QoS-Group-Based DWFQ ToS-Based DWFQ 1 1 1 Classify 5 4 5 2 2 3 3 4 4 5 5 6 6 Classify 1 1 1 2 2 Classify 1 4 1 1 2 2 3 3 4 4 Dequeue Dequeue Dequeue 1 Queue Per Flow Precedence Does Not Get Priority (i.e. Fair Queuing ) Define Queue Classes and weight in Percent Policy Routing Assigns Flows to Queues 4 Queues Based on ToS 2 MSB Can Weight the 4 Queues Accordingly to Percent Cannot be configured on sub-interfaces yet 36.scr 18

ToS-Based DWFQ Configuration Example interface Serial1/1/0 ip address 10.1.5.1 255.255.255.0 no ip directed-broadcast ip route-cache distributed fair-queue tos fair-queue tos 1 weight 20 fair-queue tos 1 limit 197 fair-queue tos 2 weight 30 fair-queue tos 2 limit 197 fair-queue tos 3 weight 40 fair-queue tos 3 limit 197 Queue Bandwidth in Percent 7500#sho queu se 1/1/0 Serial1/1/0 queue size 54 packets output 1859402, wfq drops 0, nobuffer drops 0 WFQ: aggregate queue limit 395, individual queue limit 197 max available buffers 395 Data Flow Voice Flow Class 0: weight 10 limit 197 qsize 61 packets output 600387 drops 0 Class 1: weight 20 limit 197 qsize 1 packets output 529548 drops 0 Class 2: weight 30 limit 197 qsize 0 packets output 1610 drops 0 Class 3: weight 40 limit 197 qsize 0 packets output 0 drops 0 37 Weighted RED WRED: In the event packets need to be dropped, what class of packets should be dropped Packets Classified as Blue Start Dropping at a 50% Queue Depth. Drop Rate Is Increased as Queue Depth Is Increased Packets Classified as Gold Are Dropped at 90% Queue Depth WRED Benefit for Vo: Maintain Room in Queue, and if Packets Must be Dropped Avoid Dropping Voice 38.scr 19

WRED Congestion Avoidance Maximize Data Goodput Adjustable Drop Probabilities (from show interface ) Queuing strategy: random early detection (RED) mean queue depth: 56 drops: class random tail min-th max-th mark-prob 0 4356 0 20 40 1/10 Data 1 0 0 22 40 1/10 Flow 2 0 0 24 40 1/10 Prec = 0 3 0 0 26 40 1/10 4 0 0 28 40 1/10 5 0 0 30 40 1/10 Voice 6 0 0 33 40 1/10 Flow 7 0 0 35 40 1/10 Prec = 5 rsvp 0 0 37 40 1/10 Uncontrolled Uncontrolled Congestion Congestion Managed Congestion Managed Congestion Accommodate burstiness Less drop probability for higher priority flows (Vo) Does not protect against flows that do not react to drop For example, extremely heavy UDP flow can overflow WRED queue 39 Make Sure That QoS Policies Are Preserved in an ATM Network -ATM CoS: Differentiated services over standard ATM Requires PA-A3/deluxe PA precedence to ATM CoS mapping RSVP to ATM services 40.scr 20

Precedence to VC Mapping Si VC Bundle VC1 VC2 VC3 VC4 ATM Network Assign to VC Based on: Precedence RSVP Policy Routing Note: WAN QoS is Only as Good as Specified ATM VC Parameters VC bundle multiple VCs for each adjacency Separate VC for each CoS WRED, WFQ, or CBWFQ runs on each VC queue 41 to ATM Egress QoS Tools to ATM CoS Interworking ATM VC1 0/35 VC2 0/36 Data PVC Voice PVC VC Bundle interface ATM0/0/0.7 point-to-point ip address 10.1.40.1 255.255.255.0 no ip directed-broadcast bundle gene protocol ip 10.1.40.2 broadcast encapsulation aal5snap pvc-bundle 0/35 other pvc-bundle 0/36 precedence 5-7 Only One Routing Adjacency per Bundle Bundle Appears as One Logical Interface If High Precedence VC Fails, it Can Bump Traffic to a Lower Precedence VC, or Entire Bundle Can be Declared Down Data PVC All Low Priority Traffic Assigned to this PVC Voice PVC High Priority Traffic Assigned to VC Based on Precedence (5 7 in This Case) 42.scr 21

Prioritization Campus QoS Needs Catalyst 6XXX Two queues + two drop thresholds per port Classification + policing Catalyst 8500 Four queues Catalyst 5XXX 1 queue WRED four drop thresholds Reclassification Campus QoS Need Based on Customer Environment Server Farm Campus Backbone Wiring Closet 43 Link Efficiency Low-Speed WAN QoS Tools Fragmentation and interleave (LFI) RTP header compression (CRTP) Voice Activity Detection (VAD) 44.scr 22

Fragmentation and Interleave Only Needed on Slow Links Before Real-Time MTU Elastic Traffic MTU 214 ms Serialization Delay for 1500 byte Frame at 56 kbps After Elastic MTU Elastic MTU Real-Time MTU Mechanisms Elastic MTU Point-to-Point Links MLPPP with Fragmentation and Interleave Frame Relay FRF.12 (Voice and Data Can Use Single PVC) ATM (Voice and Data Need Separate VC s on Slow Links) 45 Configuring Multilink PPP Fragmentation and Interleave Hub Remote interface Virtual-Template1 ip unnumbered Loopback0 bandwidth 128 fair-queue 64 256 1000 ppp multilink ppp multilink fragment-delay 10 ppp multilink interleave! interface Serial0 no ip address encapsulation ppp bandwidth 128 no fair-queue ppp multilink Desired Max Blocking Delay in ms Fragmentation Size a Result of this and Bandwidth Statement interface Virtual-Template1 ip unnumbered Loopback0 bandwidth 128 fair-queue 64 256 1000 ppp multilink ppp multilink fragment-delay 10 ppp multilink interleave! interface Serial0 no ip address encapsulation ppp bandwidth 128 no fair-queue ppp multilink Note: Issues with multiple links in a bundle and CRTP at the same time 46.scr 23

Low Speed Frame Relay FRF.12 Configuration Hub3640# interface Serial0/0 no ip address encapsulation frame-relay bandwidth 1300000 frame-relay traffic-shaping! interface Serial0/0.1 point-to-point ip address 10.1.1.1 255.255.255.0 no ip directed-broadcast bandwidth 1300000 frame-relay class gene map-class frame-relay gene frame-relay fragment 70 no frame-relay adaptive-shaping frame-relay bc 2000 frame-relay mincir 56000 frame-relay fair-queue Remote3640# interface Serial0/0 no ip address encapsulation frame-relay bandwidth 56000 frame-relay traffic-shaping! interface Serial0/0.1 point-to-point ip address 10.1.1.2 255.255.255.0 no ip directed-broadcast bandwidth 56000 frame-relay class gene map-class frame-relay gene frame-relay fragment 70 no frame-relay adaptive-shaping frame-relay bc 2000 frame-relay mincir 56000 frame-relay fair-queue Note: Bc set lower than the default of 1/8th the CIR Lower interval better on high speed links with low CIR (can result in quicker credit exhaustion) 47 Setting Fragment Size Based on Minimum Desired Blocking Delay 56kbps 70 Byte Frag A B C If Fragment Gets De-Queued Right Before Voice Packet 70 Byte Packet Takes 10 ms to De-Queue at 56 kbps 56kbps 70 Byte Frag A B C 20 ms 20 ms + Frag 30 ms total Note: Blocking delays are always present 48.scr 24

Assuming 10 ms Blocking Delay per Fragment Link Speed 56 kbps 64 kbps 128 kbps 256 kbps 512 kbps 768 kbps 1536 kbs Fragment Size Matrix Fragment Size 70 Bytes 80 Bytes 160 Bytes 320 Bytes 640 Bytes 1000 Bytes X 2000 Bytes Fragment Size = 10 ms Time for 1 Byte at BW Example: 4 G.729 Calls on 128 kbps Circuit Fragment Blocking Delay = 10 ms (160 bytes) Q = (Pv*N/C) + LFI Q = (480 bits*4/128000) + 10 ms = 25 ms Worst Case Queuing Delay = 25 ms Q = Worst Case Queuing Delay of Voice Packet in ms Pv = Size of a Voice Packet in Bits (at Layer 1) N = Number of Calls C = Is the Link Capacity in bps LFI = Fragment Size Queue Delay in ms 49 When Is Fragmentation Needed? Frame Size 1 64 128 256 512 1024 1500 Byte Bytes Bytes Bytes Bytes Bytes Bytes 56 kbps 14364 128 256 512 1024 us 9 1500 ms 18 ms 36 ms 72 ms 144 ms Bytes Bytes Bytes Bytes Bytes Bytes 214 ms 64 kbps 125 us 9ms 8 ms 16 ms 32 ms 64 ms 128 ms 187 ms 18ms 36ms 72ms 144ms 214ms Link 128 kbps 62.5 us 4 ms 8 ms 16 ms 32 ms 64 ms 93 ms 8ms 16ms 32ms 64ms 128ms 187ms Speed 256 kbps 31 us 2 ms 4 ms 8 ms 16 ms 32 ms 46 ms 4ms 8ms 16ms 32ms 64ms 93ms 512 kbps 15.5 us 1 ms 2 ms 4 ms 8 ms 16 ms 23 ms 768 kbps 1536 kbs 2ms 4ms 8ms 16ms 32ms 46ms 10 us 640 us 1.28 ms 2.56 ms 5.12 ms 10.24 ms 15 ms 1ms 2ms 4ms 8ms 16ms 23ms 5 us 320 us 640 us 1.28 ms 2.56 ms 5.12 ms 7.5 ms 768kbps 10us 640us 1.28ms 2.56ms 5.12ms 10.24ms 15mss Depends on the queuing delay caused by large 1536kbs frames 5usat a given 320us speed fragmentation 640us 1.28ms 2.56ms 5.12ms generally 7.5ms not needed above 768 kbps 50.scr 25

RTP Header Compression Overhead 20 ms @ 8 kbps yields 20 byte payload 40bytes per packet header 20; UDP header 8; RTP header 12 2X payload! Header compression 40 Bytes to 2 4 much of the time Hop-by-hop on slow links CRTP compressed real-time protocol Version IHL Type of Service Total Length Identification Flags Fragment Offset Time to Live Source Port Length Protocol Source Address Destination Address Options Header Checksum Padding Destination Port Checksum V=2 P X CC M PT Sequence Number Timestamp Synchronization Source (SSRC) Identifier 51 Traffic Shaping Why? 128 kbps Result: Buffering = Delay or Dropped Packets Remote Sites 256 kbps 512 kbps Frame Relay, ATM 768 kbps T1 T1 Central Site Central to remote site speed mismatch Remote to central site over-subscription Prohibit bursting above committed rate What are you guaranteed above you committed rate? 52.scr 26

Understanding Shaping Parameters Frame Relay Traffic Shaping Average Traffic Rate Out of an Interface Challenge Traffic Still Clocked Out at Line Rate CIR (Committed Information Rate) Average Rate over Time, Typically in Bits per Second Bc (Committed Burst) Amount Allowed to Transmit in an Interval, in Bits Be (Excess Burst) Amount Allowed to Transmit Above Bc per Second Interval Equal Integer of Tme Within 1 sec, Typically in ms. Number of Intervals per Second Depends on Interval Length Bc and the Interval Are Derivatives of Each Other Interval Bc Example 8000 bits = 125 ms = CIR 64 kbps 53 Example Traffic Shaping in Action High Volume Data Flow Towards a 128 kbps Line Rate Shaping to 64 kbps 0 Bits per Interval of bits Time at 128 kbps Rate Bc 8000 bits Interval = CIR 125 ms Interval = 64000 bps Cisco Default Bc=1/8 CIR = 125 ms Interval 16000 bits 32000 bits 48000 bits 64000 bits 80000 bits 96000 bits 112000 bits 128,000 bits Line Rate 128 kbps Net Result: 8000 X 8 = 64 bkps When 8000 bits (Bc) Transmitted Credits Are Exhausted and No More Packet Flow in that Interval. This Happens at the 62.5 ms Point of the Interval. 62.5 ms 0 ms 125 ms 250 ms 375 ms 500 ms 625 ms 75 0ms 875 ms 1000 ms Time 1 Second When a New Interval Begins Bc (8000 bit). Credits Are Restored and Transmission May Resume. Pause in Transmission Is 62.5 ms in the Case. 54.scr 27

Bc setting Considerations for Vo Traffic Flow Set Bc Lower if Line Rate to CIR Ratio Is High Example: T1 Line Rate Shaping to 64 kbps Bc = 8000 8000 Bc 125ms Interval = 64kbps CIR T1 can transmit 193,000 bits in 125 ms 0 bits 193000 bits 125 ms Interval Bc = 1000 1000 Bc 15ms Interval = 64kbps CIR T1 can transmit 23,000 bits in 15 ms Bits per increment of time at 128kbps 0 bits 120 ms 10 ms Traffic Flow 23000 bits 15 ms Interval Time At T1 Rate 8000 Bits (Bc) Are Exhausted in 5 ms. Halting Traffic Flow for that PVC for the Rest of that Interval. Even for Voice! 5 ms 0 ms 125 ms 120 ms of Potential Delay for Voice Until New Interval Begins and Bc Credits Are Restored.6 ms Time 0 ms 15 ms At T1 Rate 1000 Bits (Bc) 10 ms of Potential Delay Still Are Exhausted in 5 ms. for Voice Until New Interval Halting Traffic Flow for that PVC Begins and Bc Credits for the Rest of that Interval. Are Restored Even for Voice! 55 Traffic Shaping Configuration Shaping to 56 kbps with No Bursting FRTS# interface Serial0/0 no ip address encapsulation frame-relay bandwidth 1300000 frame-relay traffic-shaping! interface Serial0/0.1 point-to-point ip address 10.1.1.1 255.255.255.0 bandwidth 56000 frame-relay class gene map-class frame-relay gene frame-relay fragment 70 no frame-relay adaptive-shaping frame-relay bc 2000 frame-relay cir 56000 frame-relay mincir 56000 frame-relay fair-queue Frame Relay Traffic Shaping GTS# interface Serial0/0 ip address 10.1.1.2 255.255.255.0 bandwidth 512 traffic-shape rate 56000 2000 0 Can Work on Non Frame Relay Interfaces Anywhere Throttling Needs to Occur traffic shape rate [average] [interval] [burst] Generic Traffic Shaping 56.scr 28

Verifying Traffic Shaping Operation HUB3640#sho frame pvc 100 PVC Statistics for interface Serial0/0 (Frame Relay DTE) DLCI = 100, DLCI USAGE = LOCAL, PVC STATUS = STATIC, INTERFACE = Serial0/0.1 input pkts 149427 output pkts 835851 in bytes 9948250 out bytes 1042695469 dropped pkts 622090 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 1325 out bcast bytes 110227 pvc create time 013442, last time pvc status changed 013145 fragment type end-to-end fragment size 70 cir 56000 bc 2000 be 0 limit 250 interval 35 mincir 56000 byte increment 250 BECN response no pkts 48669 bytes 4146936 pkts delayed 24334 bytes delayed 2072716 shaping active Byte Increment = Bc Amount to be Credited to Bc for Next Upcoming Interval. Value Gets Decreased Upon Receipt of BECN or CLLM Messages. This Is How Gets Throttled Back Due to Congestion Indication. 57 Cisco IOS Support WFQ 11.0 Precedence 11.0 RSVP 11.2 MLPPP + Frag 11.3 Traffic Shaping 11.2 FRF.12 12.0(4)T WRED 12.0 DWFQ 12.0(3)T to ATM QoS 12.0(3)T 58.scr 29

Agenda Vo Requirements and Challenges /Switch Egress QoS Study WAN QoS Design Considerations Tuning Audio Level and Echo Best Practice Recommendations 59 WAN QoS Considerations High-speed to low circuits Remote to central site over subscription Over subscription carrier To burst or not to burst? 60.scr 30

Anatomy of a Carrier Customer Premises Equipment Access Lines Inter-Node Trunks The Cloud/Carrier Frame Relay, ATM WAN Switch Fabric Inter-Node Trunk Over Subscription Often 3:1 or Higher 61 WAN Queuing and Buffering WAN Switch Access IGX/8400 T1 Inter-Nodal Trunk WAN Switch IGX/8400 Access 56kbps T1 Ingress Queue Trunk Queue Trunk Queue Egress 56 Queue kbps Packets Arrive at Line Rate Placed in Ingress Queue Packets De-Queue at Line Rate Packets Leak into Trunk at PIR (Peak Information Rate) Typically Lowest Access Rate 56 kbps 62.scr 31

Where WAN Congestion and Delay Can Occur WAN Switch Access IGX/8400 T1 Inter-Nodal Trunk WAN Switch IGX/8400 Access 56kbps T1 Ingress Queue Trunk Queue Trunk Queue Egress 56 Queue kbps T1 Ingress Queue Packets Arrive at Greater than PIR or CIR PIR = Peak Information Rate Global Trunk Congestion Egress Port Congestion VC Over Subscription 63 Bursting What Is Your Guarantee? Options WAN Switch Access IGX/8400 T1 Inter-Nodal Trunk WAN Switch IGX/8400 Access 56kbps T1 Ingress Queue Trunk Queue Trunk Queue Egress 56 Queue kbps Shape to CIR No Bursting The Safest Not Popular Mark Data DE (Discard Eligible) Only Drop Data Upon Congestion Data Gets Dropped 1st Compared to Other Subscribers Two PVC s Data + Voice Voice Keep Below CIR Data Allow for Bursting Need DLCI Prioritization at WAN Egress Active Traffic Management ABR, FECN/BECN, ForeSight Only Invoked when congestion/delays has Already Occurred 64.scr 32

Congestion Detection and Feedback Effectiveness Depends on Round Trip Delay WAN Switch Access IGX/8400 T1 Inter-Nodal Trunk WAN Switch IGX/8400 Access 56kbps T1 Ingress Queue Trunk Queue Trunk Queue Egress 56 Queue kbps ABR/ Foresight ABR/ Foresight ABR/ Foresight FECN/ BECN ABR Available Bit Rate Can Send a Rate Down from Point of Congestion FECN/BECN Notification Requires Far End to Reflect a FECN and Send and BECN Back to Source Indicating a Rate Down Foresight/CLLM Can Send a Rate Down from Point of Congestion Speeds up Rate Down Time over FECN/BECN Congestion Must Occur to Invoke, Congestion Relief Can be as Long as One Round Trip Time 65 FRF.8 ATM/FR Service Interworking From a Frame Relay Perspective ATM Sites Logically Look Like a Frame Relay Site FRF.8 Service Inter-working Occurs in the Carrier SAR ATM Frame Relay From an ATM Perspective Frame Relay Sites Logically Look Like an ATM Site Caution: If FRF.12 needed at remote then its fragment re-assembly must occur before SAR in carrier Two PVC s required for Interleaving ATM must not interleave cells from different packets 66.scr 33

Agenda Vo Requirements and Challenges /Switch Egress QoS Study WAN QoS Design Considerations Tuning Audio Level and Echo Best Practice Recommendations 67 Audio Level Adjustment/Tuning Sender Receiver 0db PBX T1 WAN 56 kbps PBX -12db 1. 0DB from Tone Generator 2. Set for -3DB into network. If input or output adjustment made hang up call and measure again show call active voice 3. Set for 12DB at phone. Set output attenuation accordingly show call active voice 68.scr 34

Echo How Does it Happen? Echo Is Due to a Reflection 2 Wire Local Loop Rx and Tx Superimposed Central Office/ PBX 2w-4w Hybrid Receive Direction 4 Wire Circuit Transmit Direction Impedance mismatch at the 2w-4w hybrid is the most common source of echo Echo is always present. A function of the echo delay, and the magnitude of the echo 69 If I Hear Echo, its Your Problem Talker: Boy, this Echo Is Bad A WAN/PSTN B PBX Echo Receiver Echo Echo PSTN Echo Tail Circuit Where 4w to 2w Conversion Takes Place PBX, PSTN, 2w Port on 4 Wire Circuit Low Delays Here Can Mask Echo Problems Tail Circuit Where 4w to 2w Conversion Takes Place (PBX, PSTN, 2w Port on ) ERL (Echo Return Loss) Possible Echo Sources ITU-T G.131 states ERL of a device should be greater than 15 dbmo Echo cancellers typically give 25 db additional echo reduction 70.scr 35

Types of Echo WAN/PSTN WAN/PSTN Loud Echo Long Echo 0DB -7DB ERL should be greater than 15 DB 0DB at Time 0-30DB 100 ms Later PSTN PBX Echo Tail Circuit Typical echo canceller adds about 25 DB of echo reduction Solution fix echo source Echo Echo Echo Echo exceeds coverage range Cisco echo coverage is 32 ms 71 Echo Loudness to Echo Delay Relationship 60 db 50 db 40 db 30 db 20 db 10 db Irritation Zone ITU-T G.131 Low Delay Masking: Side Tone + Low WAN/Terrestrial Link Delay 0 db 0 ms 50 ms 100 ms 150 ms 200 ms 250 ms 300 ms 72.scr 36

Echo Troubleshooting Example Loud Echo Inject 1000 Hz Test Tone at 0DB PBX Philadelphia TX Audio Philadelphia Belgium Cisco AS5300 Cisco 3640 Network PBX Philadelphia#sho call active voice CoderTypeRate=g729r8 NoiseLevel=0 ACOMLevel=0 OutSignalLevel=-79 InSignalLevel=-3 Note Input Level from Test Set 4W E+M Belgium#sho call active voice CoderTypeRate=g729r8 NoiseLevel=0 ACOMLevel=0 OutSignalLevel=-7 InSignalLevel=-14 InfoActivity=2 ERLLevel=7 (-7) - (-14) = 7DB ERL >15DB needed Result = Noticeable Echo Level OUT of Level IN from Note Output Level and Insufficient ERL 73 Inject 1000 Hz Test Tone at 0DB Solution: Performs 4w to 2W Conversion PBX Philadelphia TX Audio Philadelphia Belgium Cisco AS5300 Cisco 3640 Network PBX FXS Reading#sho call active voice Belgium#sho call active voice CoderTypeRate=g729r8 NoiseLevel=0 ACOMLevel=0 OutSignalLevel=-79 InSignalLevel=-3 CoderTypeRate=g729r8 NoiseLevel=0 ACOMLevel=0 OutSignalLevel=-7 InSignalLevel=-27 InfoActivity=2 ERLLevel=20 Note Output Level and Sufficient ERL (-7) - (-27) = 20DB ERL ERL >15DB Good Result No Noticeable Echo 74.scr 37

Agenda Vo Requirements and Challenges /Switch Egress QoS Study WAN QoS Design Considerations Tuning Audio Level and Echo Best Practice Recommendations 75 Summary: QoS Best Practice Example Headquarters Si Catalyst 6500 Campus Cisco 7500 High-Speed WAN Backbone > 2 Mbps High-Speed Backbone Regional Office Cisco 7200 Low-Speed Central Site T1 Point-to-Point 256 kbps Frame Relay Cisco 2600 128 kbps Cisco 3600 WAN Provisioning and Design ATM Branch Office s Low-Speed Remote Sites Cisco 3600 Applying Proper Tools in Proper Location 76.scr 38

Low-Speed WAN Frame Relay Example Regional Office Cisco 7200 Central site considerations Prioritization Prec/RSVP Link efficiency FRF.12 T1 PVC s to low speed remotes must use FRF.12 VAD (If desired) CRTP (If desired) Traffic shaping Frame Relay traffic shaping Shape to CIR on Voice PVC Frame Relay Remote Branch Considerations Prioritization Prec/RSVP Link efficiency Frame Relay traffic shaping 128 kbps Shape to CIR on Voice PVC Cico 3600 Branch Office FRF.12 VAD (If desired) CRTP (If desired) Traffic shaping 77 Low Speed WAN ATM Example Regional Office Cisco 7200 ATM Cico 3600 Central Site + Remote Branch Considerations (ATM Typically Greater than T1) Prioritization -ATM CoS Link efficiency T1 and above typically not needed Traffic shaping Shape to VC parameters Branch Office 78.scr 39

Low Speed WAN Pt to Pt Example Regional Office Cisco 7200 256 kbps Cico 3600 Branch Office Point-to-Point Considerations Prioritization Prec/RSVP Link efficiency MLPPP with fragmentation and interleave VAD (if desired) CRTP (if desired) Traffic shaping N/A 79 High Speed WAN Backbone Frame Relay/ATM Example Cisco 7500 Headquarters > 2 MB High-Speed WAN Cisco 7200 Regional Office ATM Prioritization -ATM CoS Link efficiency N/A Traffic shaping Shape to VC parameters Frame Relay Prioritization Prec/RSVP Link efficiency FRF.12 if remote low-speed Traffic shaping Frame Relay traffic shaping Shape to CIR Point to Point Prioritization Prec/RSVP Link efficiency N/A Traffic shaping N/A 80.scr 40

WAN Provisioning/ Design Considerations 128 kbps Remote Sites 256 kbps 512 kbps Frame Relay, ATM 768 kbps T1 T1 Central Site Central to Remote Speed Mismatch Traffic Shaping Prevents Delay or Loss in WAN A A Must Remote to Central Over Subscription Do Not Add additional T1 s at Central Site, or Traffic Shaping from Remotes at Reduced Rate (< Line Rate) 81 Bursting Considerations Guidelines Single PVC limit bursting to committed rate (CIR) The safest you are guaranteed what you pay for Single PVC mark data discard eligible Your data gets dropped first upon network congestion Single PVC utilize BECN s, foresight or ABR Only invoked when congestion has already occurred Round trip delays Congestion indication must get back to source Dual PVCs one for voice and one for data One for data (may burst), one for voice (keep below CIR) Must Perform PVC prioritization in frame cloud (Cisco WAN gear does) Fragmentation rules still apply for data PVC Moral of the Story Know Your Carrier 82.scr 41

In Conclusion Prioritization Link efficiency mechanisms Traffic shape Know your WAN! 83 Please Complete Your Evaluation Form Session 84.scr 42

85.scr 43