Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Volume 1
Course Introduction
1
Overview 1
Learner Skills and Knowledge 3
Course Goal and Objectives 4
Course Flow 5
Additional References 5
Cisco Glossary of Terms 6
Your Training Curriculum
1-1
Introduction to Voice Gateways
mm CiscoUnified Communications Gateways
Gateway Functionality
VoIPSignalingProtocols
*" Gateway Deployment Example
Gateways in Cisco Unified Communications Deployment Models i-
Single-Site Deployment ]~^j
Multisite WAN with Centralized Call Processing -
* Multisite WAN with Distributed Call Processing ]'&
*"* Clustering over the IP WAN
Gateway Hardware Platforms
Gateway Operational Modes
J" Voice Gateway Call Legs
" Voice-Switching Gateway J"^
VoIP Gateway ]"
Cisco Unified Border Element j"j'
t Summary " _
* References
Examining Gateway Call Routing and Call Legs 1^2
Objectives^ ^ ^ ^ ]^
1-41
1-42
1-43
1-44
1-45
1-46
1-47
1-49
1-52
1-53
Gateway Call-Routing Components
Most Prevalent Dial-Peer Types
Dial Peers
VoIP Dial Peers
VoIP Dial Peer Examples
End-to-End Call Routing
Call Routing
Call Legs
Configuring POTS Dial Peers
Dial Peer Matching
String-Matching Characters
Number-Matching Characters ]*^
Matching Inbound Dial Peers !"^
Matching Outbound Dial Peers y
Default Dial Peer
Direct Inward Dialing ]jj*j
Two-Stage Dialing
One-Stage Dialing 1"71
1"1
Overview ^
Module Objectives
Understanding Cisco Unified Communications Networks and theRole of Gateways 1-3
Objectives ,'_^
Cisco Unified Communications
Cisco Unified Communications Overview
Cisco Unified Communications Architecture
Cisco Unified Communications Business Benefits Vjj
1-11
1-13
1-18
1-6
1-7
1-26
1-28
1-33
1-34
Summary
Configuring Gateway Voice Ports
Objectives
1-75
1-77
Voice Ports Overview 4~-,n
Voice Trunk Example
Installing Voice Ports
Analog Voice Ports
Analog Signaling Overview ,' gf
Analog Signaling
Address SignalingDTMF
Call Progress Tones
Configuring Analog Voice Ports ^gg
Configuring FXS Voice Ports 19q
Configuring FXO Voice Ports 1"91
Configuring FXS-DID Voice Ports 1.g2
Configuring E&M Voice Ports 1_93
Configuring CAMA Voice Ports 1g4
Digital Voice Ports 1g5
Digital Circuit Types 1 qfi
T1 CAS Overview
T1 CAS SF Format
T1 CAS ESF Format
E1 CAS Overview
1-78
1-81
1-82
1-83
1-85
1-87
1-E
1-98
1-99
1-100
E1 CAS Multiframe Format 1-102
Understanding ISDN 1 103
ISDN BRI and PRI Interfaces ^-,05
ISDN Architecture -j ^07
Non-Facility Associated Signaling 1_108
Configuring Digital Voice Ports 1-109
Configuring Digital Ports 1-110
Configuring ISDN 1-116
ISDN BRI Configuration -j 1ig
ISDNE1 PRI Configuration ^g
Fine-Tuning Analog and Digital Voice Ports 1_121
Fine-Tuning Analog Voice Ports 1-123
Echo Cancellation 1-126
Talker Echo 1-127
Listener Echo 1-128
Echo Cancellation 1-129
Echo Canceller Parameters 1_130
Configuring Echo Cancellation 1-132
Verifying Analog and Digital Voice Ports 1^33
showvoice port summary Command 1-134
Verifying Analog Voice Ports ^-^35
Verifying Voice Ports 1-136
Summary 1-142
Understanding DSP Functionality. Codecs, and Codec Complexity 1-143
Objectives 1-143
Voice Codecs -\-\AA
Voice Codec Packet Rates and Payload Sizes 1-148
Evaluating Quality ofCodecs 1_14g
Mean Opinion Score 1-149
Perceptual Evaluation of Speech Quality 1-149
Perceptual Evaluation of Audio Quality 1-150
CodecQuality 1-151
Evaluating Overhead 1-152
Per-Call Bandwidth Using CommonCodecs 1-156
Digital Signal Processors 1-157
DSP Modules -!_161
Implementing Cisco Voice Communications and QoS (CVOICE) v8.0 2010 Cisco Systems.
1 1fi9
DSPModule Comparison "
Codec Complexity 1 1fiI-
Packet Voice DSP Module Conferencing ^^
DSP Calculator ^_^7
Configuring DSPs . 1fifi
Configuring DSP Services for Voice Termination ' "
CodecComplexity Configuration "
Configuring DSP Resources for Transcoding, Conferencing, and MTP i-1/u
Transcoding and Conferencing Example ^73
Verifying DSPs 1175
Summary 1-175
References 1-177
Module Summary 1-177
References ^^9
Module Self-Check ".
Module Self-Check Answer Key
VoIP Call Legs
2-1
2-1
Overview 2 1
Module Objectives
Examining VoIP Call Legsand VoIP Media Transmission . ZA
" 2-3
Objectives 2_d
VoIP Overview - _
Major Stages of Voice Processing in VoIP *-?
VoIPComponents '
Converting Voice to VoIP
Sampling
Quantization
>2010 Cisco Systems, Inc. Implementing Cisco Voice Communications and QoS (CVOICE) v8.0
2-8
2-9
2-12
Encoding 13
Compression
VoIP Packetization
Packetization Rate
Codec Operations
Packetization and Compression-G.729 Example
VoIP Media Transmission ^"Jn
Real-Time Transport Protocol
Real-Time Transport Control Protocol
Compressed RTP
Secure RTP
Secure RTP Packet Format j~jz
VoIP Media Considerations ^"^
Voice Activity Detection
Bandwidth Savings
Voice Port Settings for VAD
Summary
Explaining H.323 Signaling Protocol
Objectives
H.323 Architecture
H.323 Advantages
H.323 Network Components
H.323 Gateways
H.323 Gatekeepers
H.323 Multipoint Control Units
H.323 Multipoint Conferences
H.323 Regional Requirements Example
2-14
2-15
2-16
2-17
2-19
2-20
2-21
2-22
2-27
2-28
2-29
2-30
2-31
2-31
2-32
2-33
2-35
2-36
2-37
2-38
2-39
2-40
H.323 Call Flows 2-41
H.323 Slow Start Call Setup
H.323 Slow Start Call Teardown f
H.225 RAS Call Setup 2-44
H.225 RAS Call Teardown
Codecs in H.323
Negotiation in Slow Start Call Setup
H.323 Fast Connect
H.323 Early Media
Configuring H.323 Gateways
H.323 Gateway Configuration Example
Customizing H.323 Gateways
H.323 Session Transport
Idle Connection and H.323 Source IP Address
H.225 Timers
H.323Gateway Tuning Example
Verifying H.323Gateways
Summary
Explaining SIP Signaling Protocol
Objectives
SIP Architecture
Signaling and Deployment
SIP Architecture Components
SIP Servers
SIP Architecture Examples
SIP Call Flows
SIPCall Setup Using Proxy Server
SIP Call Setup Using Redirect Server
SIP Addressing
Address Registration
Address Resolution
Codecs in SIP
SDP Examples
Delayed Offer
Early Offer
Early Media
Configuring Basic SIP
User Agent Configuration
Dial Peer Configuration
Basic SIP Configuration Example
Configuring SIP ISDNSupport
Calling Name Display
Calling Name Display Commands
Calling Name Display Configuration
Slocking and Substituting Caller ID
Blocking and Substituting Caller ID Commands
Blocking and Substituting CallerID Configuration
Configuring SIP SRTP Support
SIPS Global and Dial Peer Commands
SRTP Global and Dial Peer Commands
SIPS and SRTP Configuration Example
Customizing SIP Gateways
SIP Transport
SIP Source IP Address and UA Timers
SIP UA Timers
SIP Early Media
Gateway-to-Gateway Configuration Example
UA Example
Verifying SIP Gateways
SIP-UA General Venfication
SIP-UA Registration Status
SIP-UA Call Information
SIP Debugging Overview
Examining the INVITE Message
Implementing Cisco Voice Communications and QoS (CVOICE) v8 0
2-46
2-47
2-48
2-49
2-50
2-51
2-52
2-53
2-54
2-55
2-56
2-57
2-58
2-59
2-61
2-61
2-62
2-64
2-65
2-66
2-67
2-68
2-70
2-71
2-72
2-73
2-74
2-75
2-76
2-77
2-78
2-79
2-81
2-82
2-83
2-84
2-85
2-86
2-87
2-88
2-89
2-90
2-91
2-92
2-93
2-94
2-95
2-96
2-97
2-98
2-99
2-100
2-101
2-102
2-103
2-104
2-105
2-106
2-107
2-109
2010 Cisco Systems, Inc.
_ 2-110
Examining the 200OK Message 2-111
Examining the BYE Message 2-112
Summary 2-113
m Explaining MGCP Signaling Protocol ^77^
Objectives 2-114
MGCP Architecture 2-115
MGCP Key Features 2-117
MGCP Components 2-119
MGCP Gateways 2-120
MGCP Endpoints 2-121
MGCP Package Types 2-122
MGCP Call Flows 2-125
Residential Gateway toResidential Gateway 2127
Trunking Gateway toTrunking Gateway 2-128
MGCP Special Considerations _ Qmni0\ 2-129
m Codec Negotiation (Residential Gateway-to-ResidenHal Gateway Example) 2129
Digit Collection 2-131
Configunng MGCP Gateways 2A32
MGCP Commands 2-133
mm Customizing MGCP Gateways 2134
Package Configuration 2-135
SelectedPackageTypes 2-136
Residential Gateway Example 2-137
w Trunking Gateway Example 2-138
Verifying MGCP Gateways 2_139
show mgcp Command 2-140
show ccm-manager Command 2-141
mm show mgcp endpoint Command 2-142
show mgcp statistics Command 2-143
Summary
* Describing Requirements for VoIP Call Legs *=1*|
Objectives 2_146
Audio Clarity 2-148
*. Delay 2_149
Delay Types 2_150
^ Acceptable Delay (G.114) 2152
Jitter 2^ 53
Packet Loss 2 154
r Bandwidth Requirements 2155
""* QoS Requirements 2-157
QoS Objectives 2 158
Transporting Modulated Data over IP Networks
J_ Differences from Fax Transmission in the PSTN 5g
, Fax Services over IP Networks
Understanding FAX/Modem Pass-Through, Relay, and Store and Forward 2-ibU
Pass-Through Topology 2]163
f Pass-Through 2_165
" Relay Topology 2166
Relay ,. 2-168
Store-and-Forward Fax fiq
S: Gateway Signaling Protocols, and Fax and Modem Pass-Through and Relay 2-iby
1mm Cisco Fax Relay 2 173
T.38 Fax Relay 2 179
DTMF Support 2 180
6 DTMF Support 2-184
^" Summary
2010 Cisco Systems, Inc. Implementing Cisco Voice Communications and QoS (CVOICE) v8.0
Configuring Vp|p Call Lpg<t
Objectives
2-185
Configuration Components ofVoIP Dial Peer
VoIP Dial Peer Characteristics 2~186
Configuring DTMF Relay 2"187
DTMF Relay Configuration Example 2"188
Configuring FAX/Modem Support 2~189
T.38 Fax Relay Configuration 2~190
Fax Relay Speed Configuration 2~191
Fax Relay SG3 Support Configuration 2"]92
Fax Support Configuration Example i']T*
Configuring Modem Support ^~194
Modem Pass-Through and Modem Relay Interaction I'lll
Modem Support Configuration Example i~\zz
Configuring Codecs 2-199
Codec-Related Dial Peer Configuration 2"^?
Codec Configuration Example *~zil
Limiting Concurrent Calls 2"202
Summary 2-203
Module Summary 2-204
Module Self-Check 2"205
Module Self-Check Answer Key 2"2^
Implemenling Cisco Vorce Communications and QoS (CVOICE! v8.0 2010 Cisco Systems Inc
CVOICE
Course Introduction
Overview
Implementing Cisco Ioice Communications and QoS (CVOICE) v8.0 teaches learners about
voice gateways, characteristics of VoIP call legs, dial plans and their implementation, bastc
implementation of IP phones in aCisco Unified Communications Manager Express
environment, and essential information about gatekeepers and Cisco Unified Border Element.
The course provides learners with voicc-relatcd quality of service (QoS) mechanisms, which
are required in Cisco Unified Communications networks.
Learner Skills and Knowledge
This subtopic lists the skills and knowledge that learners must possess to benefit fully from this
course. The subtopic also includes recommended Cisco learning offerings that learners should
first complete before taking the course.
Learner Skills and Knowledge
Working knowledge of fundamental terms and concepts of
computer networking, including LANs, WANs, and IP
switching and routing
Ability to configure and operate Cisco IOS routers in an IP
environment at the Cisco CCNA Routing and Switching level
Basic knowledge of traditional voice, converged voice, and
data networksat the Cisco CCNA Voice level
Learner Skills and Knowledge (Cont)
Cisco learning offerings:
Introducing Cisco Voice and Unified Communications
Administration (ICOMM)
Implementing Cisco Voice Communications andQoS (CVOICE] v8 0
2010Cisco Systems, Inc
Course Goal and Objectives
This topic describes the course goal and objectives.
"To provide learners with the necessary knowledge to
implement and operate gateways, gatekeepers, Cisco
Unified Border Element, Cisco Unified Communications
Manager Express, and QoS in a voice network
architecture''
>rrp:wm-rg Qscc Vo.ce Communicate and QoS .CVOICE) 8.0
Upon completing this course, you will be able to meet these objectives:
. Explain what avoice gateway is, how it works, and describe its usage, components, and
features
Describe the characteristics and configuration elements of VoIP call legs
. Describe how to implement IP phones using Cisco Unified Communications Manager
Express
. Describe the components of adial plan, and explain how to implement adial plan on a
Cisco Unified voice gateway
Explain what gatekeepers and Cisco Unified Border Elements arc, how they work, and
what features they support
. Describe why QoS is needed, what functions it performs, and how it can be implemented in
a Cisco Unified Communications network
i 2010 Cisco Systems, Inc.
Course Introduction
Course Flow
This topic presents the suggested ilow ofthe c
course materials.
tmethMh- mmended structure for this course. This structure allows enough
" I " I0 ^T, "K Kl,rSe 'n,0nmti0n md fr >10 rk *B" the lab^
dem tics. Ihe exact timing of the subject materials and labs depends on the pace of vour
^p^cinc ciuss.
Implementing Cisco Voice Communications and QoS (CVOICE) v8 0
2010 Cisco Systems, Inc
Additional References
This topic presents the Cisco icons and symbols that are used in this course, as well as
information on where to find additional technical references.
Cisco Icons and Symbols
Cisco Unified
Presence
Cisco Unrty
Connection
Csco Unified
Messaging
Gateway
CecoASA
Ad*(^Security
Appliance
Cisco Unified
commrni cations
Manager
Cisco Unified
Border Element
Cisco Unified
Personal
Communicattr
Cisco unified
SRST Router
SAF- Erabled
Router
Network
Cloud
Gatekeeper
Switch Router
Cisco Unified
Communi cations
Manager Express
Cisco Unified
Communications
Manager Expresswith
Cisco UnrtyExpress
Cisco Glossary of Terms
For additional information on Cisco terminology, refer to the Cisco Internetworking Terms and
Acronyms glossary at /ttai
hUp:^ocvuki.c1sco.com/,,ki/Calegor>:tn{emetwt)rk,ng.Jem,s^and_AcronymsjnA).
i 2010 Cisco Systems, Inc.
Course Introduction
Your Training Curriculum
This topic presents the training curriculum for this course.
You are encouraged to join the Cisco Career Certification Community, adiscussion forum that
r^;.to i Ul, ls ldi^ avalid nCareer Certification (such as Cisco CC
CCNA.CC DA" CCNP". CCDP\ CCIP\ CCVP\ or CCSP"). It provides agating place
or ,Sco cert-tied profes.onals to share uuestions. suggestions, and information about CisT
Caitcr Ccrtihcat.on programs and other certification-related topics. For more information visit
"Up: uuu.^Nco.tvm tin certifications.
Implementing Cisco Voice Communications and QoS (CVOICE) v8 0
)2010 Cisco Systems, Inc
Cisco Career Certifications: CCNP Voice
Expand your professional options and advance your career
Professional-level recognition in voice networking
Expert
Professional
Associate
Voice Nefwwking
i 2010 Cisco Systems, Inc.
Recommended TnitoWgThrough
Ctsco teaming Partners
Implementing Cisco Volet Commanicalkms
and QOS
imptomonting Cisco UnmH Commuricatons
Manager, Pm 1
trnpiamomm Cisco UMffiW CotmartcaSom
rmi*SfW(#nj Ciscoumt
Commurtcafcm
integrating oaoo Unified Cenwiuntoafiono
Applications
hiIp.//www.cisco.com/go/certitications
Course Introduction
Implementing Cisco Voice Communications and QoS (CVOICE) v8 0 2010 Cisco Systems. Inc.
Module 11
Introduction to Voice Gateways
Overview
Cisco Unified Communications gateways play an important role in the Cisco Unified
Communications environment. Their primary function is to convert voice formats, s.gnals, and
transmission methods as voice information travels over various network types.
This module describes the various types of voice gateways and how to deploy them in different
Cisco Unified Communications environments. Furthermore, itexplains the call routing process,
the direct inward dialing (DID) feature, the various types ofvoice ports and their
characteristics, coder-decoders (codecs), digital signal processors (DSPs), and their
implementation.
Module Objectives
Upon completing this module, you will be able to explain what avoice gateway is. how it
works, and describe its usage, components, and features. This ability includes being able to
meet these objectives:
Describe the characteristics and historical evolution ofunified communications networks,
the three operational modes of gateways, their functions, and the related call leg types
Fxplain how gateways route calls and which configuration elements relate to incoming and
outgoing call legs
Describe how to connect agateway to traditional voice circuits using analog and digital
interfaces
Define DSPs and codecs, and explain different codec complexities and their usage
1-2 Implementing Cisco Voice Communications and QoS (CVOICE) v8 0
2010 Cisco Systems. Inc.
Lesson 1
Understanding Cisco Unified
Communications Networks
and the Role of Gateways
Overview
This lesson describes the operational modes of a voice gateway and how it fits intheCisco
Unified Communications architecture. It explainsthe voicegateway functions ineach Cisco
Unified Communications deployment model andthecall legsthat areassociated with each
operational mode.
Objectives
Upon completing this lesson, you will beable toexplain what a voice gateway is, how it works,
and describe its usage, components, and features.
This abilityincludes beingable to meet these objectives:
Describe the architecture and components of CiscoUnified Communications architecture
Describe the function of voicegateways and their major roles in Cisco Unified
Communications networks
Identify theroleof thegateways infour supported Cisco Unified Communications
deployment models
Briefly describethe differentCiscovoice gateway platforms
Identity the call legsthat are createdby a voice gateway in eachoperational mode
Cisco Unified Communications
1-4
1his topicdescribes the Cisco Unified Communications architecture and its evolution from
traditional telephony.
Traditional Telephony Networl
i ns
[Wees
*'-* Siwinj'" "Swicn"
r>/
San Jose
\V
PSTN
n
1 s
Boston
The figure illustrates the typical components of a traditional telephony network:
Telephones: Analog telephones arc the most common type of phone in a traditional
telephony network. Analogphones directlyconnect to the publicswitched telephone
network (PSTN).
Central office (CO) switch: These switchesterminate the local loopand manage
signaling, digil collection, call routing, call setup, and call teardown.
PBX: A PBX is a privately ownedswitch that is located on the customerpremises. A PBX
is a smaller, privately owned version of the COswitches that telephone companies (teleos)
use. Many businesses still have a PBXtelephone system. Largeoffices with more than 50
telephones or handsets still use a PBX to connect users, both in-house and to the PSTN.
Trunk: Trunks provide the path between two switches and can be of different types:
CO trunk: A CO trunk is a direct connection between a local CO and a PBX. which
can be analog or digital.
Tie trunk: A tie trunk is a dedicated circuit that connects PBXs to each other.
Interoffice trunk: An interoffice trunk is typically a digital circuit that connects the
COs of two local teleos.
Traditional telephony differs in many aspects from modem unified communications. One
important difference is the closed nature of traditional telephony. Integration with modem
software applications, databases, and a rapidly evolving computing environment is difficult.
Traditional telephony uses circuit-switching technology to establish a voice channel end-to-end.
Ihis approach does not allow sharing of the network infrastructure for emerging applications
and services.
Implementing Cisco Voice Communications and QoS (CVOICEI u8 0 ) 2010 Cisco Systems. Inc
Atraditional telephony environment addresses these areas:
Signaling- Signaling is the ability to generate and exchange the control information that
will be used to establish, monitor, and release connections between two endpoints. Voice
signaling requires the ability to provide supervisory, address, and alerting functionality
between nodes The PSTN network uses Signaling System 7(SS7) to transport control
messages. SS7 uses out-of-band signaling, which, in this case, is the exchange or call
control information ina separate dedicated channel.
Database services: Database services include access to billing information, caller name
(CNAM) delivery, toll-free database services, and calling-card services. An example is
providing acall notification service that places outbound calls with prerecorded messages
at specific times to notify users of such events as school closures, wakeup calls, or
appointments,
Bearer control: Bearer control defines the bearer channels that carry voice calls. Proper
supervision of these channels requires that the appropriate call connect and call disconnect
signaling is passed between end devices. Correct signaling ensures that the channel is
allocated to the current voice call and that the channel is properly deallocated when either
side terminates the call. Connect and disconnect messages are carried by SS7 mthe PSTN
network.
2Q10 Cisco Systems, Inc. Introduction to Voice Gateways 1-5
Cisco Unified Communications Overview
This subtopic provides an overview ofCisco Unified Communications.
Cisco Unified Communications
* Integrated solution
Includes voice, video, data, and mobile applications
Builds on CiscoBorderless Networks as a secure network
architecture for all communications
MtUfr
IB*
J-rL-Muia M**> *.
"** .V.!
The Cisco Unified Communications system fully integrates communications by enabling data
voice. and video lo be transmitted over asingle network infrastructure using standards-based
IP. Ihe Cisco Unified Communications system incorporates and integrates the following
communications technologies:
IP communications is the technology that transmits voice and video communications over a
network using IPstandards. Cisco Unified Communications includes hardware and
software products, such as call-processing agents. IP phones (both wired and wireless),
voice-messaging systems, video devices, and many special applications.
Mobile applications enhance access to enterprise resources, increase productivity, and
increase the satisfaction of mobile users,
Customer care enables efficient and effective customer communications across aglobally-
capable network. This strategy allows organizations to draw from abroader range of
resources to sen-ice customers. They include access to alarge pool ofagents and multiple
channels ofcommunication, aswell ascustomer self-help tools.
1elepresence and conferencing enhance the virtual meeting environment with an integrated
set ofIP-based tools for voice, video, and web conferencing.
Messaging prov ides the functionality for sending and managing ofvoice and video
messages for users.
F.nterprise social software includes applications that enable communications with the
enterprise that are not strictly limited to business-orientedactivities.
Implementing Cisco Voice Communications and OoS(CVOICE) v80
2010 Cisco Systems, Inc.
Cisco Unified Communications Architecture
This subtopic describes the Cisco Unified Communications architecture.
Leveraging the framework provided by Cisco IPhardware and software products, the Cisco
Unified Communications system has thecapability to address current andemerging
communications needs inthe enterprise environment. TheCiscoUnified Communications
family of products isdesigned tooptimize feature functionality, reduce configuration and
maintenance requirements, and provide interoperability with a wide variety of other
applications. The Cisco Unified Communications system consists of these logical layers:
Infrastructure: Infrastructure consists of Cisco network components. It provides and
maintains a highlevel of availability, quality of service (QoS), andsecurity for the
network.
Services: Services areresponsible for providing thecore functionality of Cisco Unified
Communications, such as signaling and call routing.
Applications: Applications include a wide array of software thatoffers rich features to the
users.
Endpoints: Hndpoints include end-user hardware and software products that constitute
attachment pointsto the Cisco Unified Communications system.
) 2010 Cisco Systems. Inc.
Introduction to Voice Gateways 1-7
Cisco Unified Communications Business Benefits
This subtopic describes the Cisco Unified Communications business benefits.
Cisco Unified Communication;
Business Benefits
Cost savings
Flexibility
Advanced features
Advanced call routing
Unified messaging
Integrated information systems
Long-distance toll bypass
Voice security
Customer relationship
Telephony application services
Telepresence
Conferencing
The business advantages that influence the implementation of Cisco Unified Communications
have changed over time. Starting with simple media convergence, these advantages have
evolved to include call-switching intelligenceand the total user experience.
Originally, return on investment (ROI) calculations centered on toll-bypass and converged-
network sa\ ings. Although these savings are still relevant today, advances in voice
technologies alloworganizations and service providers to differentiate their product offerings
by providing these advanced features:
Cost savings: Traditional time-division multiplexing (fDM). which is used in the PSfN
environment, dedicates 64 kb/s of bandwidth per voice channel. This approach results in
unused bandwidth when there is no voice traffic. VoIP shares bandwidth across multiple
logical connections, which makes more efficient use of the bandwidth and therefore
reduces bandwidth requirements. A substantial amount of equipment is needed to combine
64-kb/s channels into high-speed links for transport across the network. Packet telephony
uses statistical analysis to multiplex voice traffic alongside data traffic. This consolidation
results in substantial savings on capital equipment and operations costs.
Flexibility: The sophisticated functionality of IP networks allows organizations to be
flexible in the types of applications and services that they provide to their customers and
users. Service providers can easily segment customers. This segmentation helps them to
providc different applications, custom services, and rates, depending on the traffic volume
needs and other customer-specific factors.
Implementing Cisco Voice Communications and QoS (CVOICE) v8 0 ) 2010 Cisco Systems, Inc.
Advanced features: Here are some examples ofthe advanced features provided by Cisco
Unified Communications:
Advanced call routing: When multiple paths exist toconnect acall toits
destination, some of these paths may bepreferred overothers based oncost,
distance, quality, partner handoffs, traffic load, orvarious other considerations,
Least-cost routing and timc-of-day routing aretwoexamples of advanced call
routing that can beimplemented lodetermine the best possible route for each call.
Cnified messaging: Unified messaging improves communications and productivity.
Itprovides asingle user interface for messages that have been delivered over various
media. For example, users can read their email, hear their voice mail, and view fax
messages by accessing a single inbox.
Integrated information systems: Organizations use Cisco Unified
Communications toaffect business process transformation. These processes include
centralized call control, geographically dispersed virtual contact centers, andaccess
to resources and self-help tools.
Long-distance toll bypass: Long-distance toll bypass isanattractive solution for
organizations thatplace a significant number of calls between sites that arccharged
traditional long-distance fees. Inthiscase, it may bemore cost-effective touse VoIP
toplacethose callsacross the IPnetwork. If the IPWAN becomes congested, calls
can overflowinto the PSTN, ensuring that there is no degradation in voice quality.
Voice and video security: There are mechanisms inthe IP network that ensure
secureIPconversations. Encryption of sensitive signalingheaderfields and message
bodies protects thepackets incaseof unauthorized packet interception.
Customer care: The abilityto providecustomersupport through multiple media,
such as telephone, chat, andemail, builds solidcustomer satisfaction andloyalty. A
pervasive IPnetwork allows organizations to provide contact centeragents with
consolidatedand up-to-date customer records along with the related customer
communication. Access to this informationallows quick problem solving, which, in
turn, builds strong customer relationships.
Telepresence and conferencing services: Theseservices savetime and resources
by providing a media-rich communications platform forusers ina distributed
enterprise environment.
2010 Cisco Systems, Inc. Introduction to Voice Gateways 1-9
Cisco Unified Communications Gateways
This topicdescribes the roles and functionality of gateways inthe CiscoUnified
Communications svstem.
Gateway Functionaiity
Unified communication gateways
connect voice-enabled
communication networks together.
Specifically, they can fulfill these
tasks:
Switch voice channels between
connected analog and digital
voice circuits
Convert voice formats between
traditional and VoIP networks
Interconnect two logically
separate VoIP networks
Unified communications gateways are connection points between different communications
networks. Depending on the deployment type, a gateway can perform one or several of these
functions:
Act as a voice switch that interconnects multiple traditional telephony circuits. The circuits
can be analog or digital. The gateway participates in signaling and may have to convert the
media channels. Gateways provide physical access for local analog and digital voice
devices such as telephones, fax machines, key sets, and PBXs.
Act as a PS I N-to-VolP gateway that provides translation between VoIP and non-VoIP
networks, such as the PSTN. In addition to the functionality of traditional voice switches,
the PS l'N-to-IP gateways enable voice and video communications between traditional
PSTN infrastructure and converged IP networks.
Act as a Cisco Unified Border [ lenient that interconnects two IP networks and allows
communications between endpoints distributed among them. The Cisco Unified Horder
Flemenls may implement filtering, address translation, and security-related functions.
Implementing Cisco Voice Communications and QoS (CVOICE) v8 0 >2010Cisco Systems. Inc.
Gateway Functionality
This subtopic describes the gateway functionality.
Gateway Functionality (Cont.)
Supports these VoIPsignaling protocols:
- H.323
- MGCP
- SIP
- SCCP
Works with redundant Cisco Unified Communications
Managers
Enables call survivability
Provides analog/digital interfaces to a PBX and the PSTN
Provides fax/modem services
Cisco Unified Communications gateways support these signaling protocols:
H.323: H.323 is a standard that specifies the components, protocols, and procedures that
provide multimedia communication servicesreal-time audio, video, and data
communicationsover packet networks, including IP networks. H.323 is part of a family
of ITU-T recommendations called H.32x that provides multimedia communication services
over a variety of networks. It is actually an umbrella of standards that define all aspects of
synchronized voice, video, and data transmission. It also defines end-to-end call signaling.
MGCP: Media Gateway Control Protocol (MGCP) is a method for PSTN gateway control
or thin device control. Specified in RFC 2705, MGCP defines a protocol that controls VoIP
gateways that arc connected to external call control devices, referred to as call agents.
MGCP provides the signaling capability for less-expensive edge devices, such as gateways,
that may not have a complete voice-signaling protocol such as H.323 implemented. For
example, any time an event such as off hook occurs at the voice port of a gateway, the
voice port reports that event to the call agent. The call agent then signals that device to
provide a service, such as dial tone signaling.
SIP: Session Initiation Protocol (SIP) is a detailed protocol that specifies the commands
and responses to set up and tear down calls. SIP also details features such as security,
proxy, and transport control protocol (TCP or User Datagram Protocol fUDP]) services.
SIP and its partner protocols. Session Announcement Protocol (SAP) and Session
Description Protocol (SDP), provide announcements and information about multicast
sessions to users on a network. SIP defines end-to-end call signaling between devices. SIP
is a text-based protocol that borrows many elements of HTTP, using the same transaction
request-and-response model and similar header and response codes. It also adopts a
modified form of the URL addressing scheme that is used within email, which is based on
Simple Mail Transfer Protocol (SMTP).
>2010 Cisco Systems, Inc. Introduction to Voice Gateways 1-11
SCCP: Skinny Client Control Protocol (SCCP) is a Cisco proprietary protocol used
between Cisco Unified Communications Manager and Cisco Unified IP phones. Cisco
Unified IP phones that use SCCP arc called Skinny clients. The client communicates with
Cisco Unified Communications Manager using connection-oriented (TCP/IP-based)
communication to establish a call with another end station.
Cisco Unified Communications gateways provide highly available communications platforms
using several methods, such as support for redundant Cisco Unified Communications Manager
systems and taking over some of the functionality of Cisco Unified Communications Manager
when it is not reachable due to network failure. The gateways provide a wide array of advanced
features, such as support for fax and modem communications.
1-12 Implementing Cisco VoiceCommunications and QoS (CVOICE) v8.0 2010 Cisco Systems. Inc.
VoIP Signaling Protocols
This subtopic describes the VoIP signaling protocols.
VoIP Signaling Protocols
H.323: Peer-to-Peer Gateway Architecture
Each gateway maintains the dial plan.
Q.931
HV>1 is asuite of protocols defined by the ITU for multimedia conferences over LANs. The
II 3^3 protocol was designed by the ITU-T and initially approved in February 1996. It was
developed as aprotocol that provides IP networks with traditional telephony functionality.
Today. H.323 is the most widely deployed standards-based voice and videoconferencing
standard for packet-switched networks.
The protocols specified by H.323 include the following:
H225 call signaling is used to establish aconnection between two H.323 endpoints. This
connection is achieved by exchanging H.225 protocol messages on the call-signaling
channel. The call-signaling channel is opened between two H.323 endpoints or between an
endpoint andthe gatekeeper.
H225 Registration. Admission, and Status (RAS) is the protocol between endpoints
(terminals and gateways) and gatekeepers. The RAS is used to perform registration,
admission control, bandwidth changes, and status and disengage procedures between
endpoints and gatekeeper. An RAS channel is used to exchange RAS messages. 1his
signaling channel is opened between an endpoint and agatekeeper before the establishment
of any other channels.
11 245 control signaling is used to exchange end-to-end control messages governing the
operation of the H.323 endpoint. These control messages carry information related to the
following:
Capabilities exchange
Opening and closing oflogical channels used to carry media streams
Flow-control messages
General commands and indications
>2010 Cisco Systems, Inc.
Introduction to Voice Gateways
1-13
1-14
third" nTTitfTenvironme;;ts-H323 is ^^* ^ &^^ m^P^. ^
third-part^ 11..23 chenls. especially video terminals. Connections are configured between
dev ices using staticdestination IPaddresses.
Implementing Cisco Voice Communications and QoS (CVOICE) v8 0 2010 Cisco Systems Inc
VoIP Signaling Protocols (Cont.)
MGCP: Client Server Architecture
Cisco Unified Communications Manager maintains the dial
plan.
Residential Gateway
E&u
MGCP
Trunking Gateway
PSTN
Q.921
Q.931
MGCP is a client-server call control protocol builtoncentralized control architecture. 1his
centralized control architecture hasthe advantage of centralized gateway administration and
prov ides for largely scalable IP telephony solutions. All the dial plan information resides on a
separate call agent. The call agent, which controls the ports on the gateway, performs call
control. The gateway does media translation between the PSTN and the VoIP networks for
external calls. In a Cisconetwork, CiscoUnified Communications Managersystems function
as the call agents.
MGCP isa plain-text protocol used by call control devices tomanage IPtelephony gateways.
MGCP was definedunder RFC2705 (MGCP Version 1.0),whichwas updatedby RFC3660
(Basic MGCP Packages), and superseded by RFC 3435 (MGCP Version 1.0). which was
updated by RFC 3661 (MGCP Return Code Usage).
With this protocol, Cisco Unified Communications Manager controls individual voice ports on
the gateway. MGCP allows complete control ofthe dial plan from Cisco Unified
Communications Manager. It gives Cisco Unified Communications Manager pcr-port control
of connections to thePSTN, legacy PBX, voice-mail systems, plain oldtelephone service
(POTS) phones, and soon. This control is implemented bya series of plaintext commands sent
over UDP port2427between CiscoUnified Communications Manager andthe gateway.
A PRI and BRI backhaul is an internal interface between the call agent (such as Cisco Unified
Communications Manager) and Cisco gateways. It isa separate channel forbackhauling
signaling information. APRI backhaul forwards PRI Layer 3(Q.931) signaling information via
a TCP connection.
An MGCP gateway is relatively easy to configure. Because the call agenthas all thecall-
routing intelligence, you do not need toconfigure the gateway with the complete dial plan that
it would otherwise need.
) 2010 Cisco Systems, Inc Introduction to Voice Gateways 1-15
VoIP Signaling Protocols
SIP: Peer-to-Peer GatewayArchitecture
Each gateway maintains the dial plan.
IETF RFC. ASCII-text-based, WWW logic.
SIP isa protocol developed by the Internet Engineering Task Force (IETF) Multiparty
Multimedia Session Control (MMUSIC) workinggroupas an alternative lo 11.323. SIPfeatures
arccompliant with IETF RFC 2543. published inMarch 1999. RFC 3261, published inJune
2002. and RFC3665. published in December 2003. SIP is a common standard based on the
logic of the World Wide Web and very simple to implement. SIP iswidely used with gatewavs
and proxy servers w[thin service provider networks for internal and end-customer signaling.
SIPis a pecr-lo-peer protocol whereuser agents(UAs) initiate sessions, like H.323. But unlike
H.323. SIP uses ASCII text-based messages tocommunicate. Therefore, you can easily
implement and troubleshoot it. andanalyze the incoming signaling traffic content.
Because SIP is a peer-to-peer protocol. Cisco Iinified Communications Manager doesnot
control SIPdevices, and SIPdevices do not registerwithCiscoUnified Communications
Manager. As with H.323 gateways, only the IPaddress is required on Cisco Unified
Communication* Manager for the communication between Cisco Unified Communications
Manager and the SIP voice gateway.
Implementing Cisco Voice Communications and QoS (CVOICE) v8.0 2010 Cisco Systems. Inc.
j^^_I
VoIP Signaling Protocols (Cont.)
SCCP: Client Server Architecture
Cisco Unified Communications Manager servers maintain the
dial plan.
SCCP
SCCP
FXS
SCCP is aCisco proprietary protocol that is used for communications between Cisco Unified
Communications Manager'and terminal endpoints. SCCP is astimulus protocol, meaning that
any event (such as the phone is on hook or off hook, buttons have been pressed, and so on)
causes amessage to be sent to Cisco Unified Communications Manager. Spec.fic instructions
are then sent from Cisco Unified Communications Manager back to the device to tell it what to
do about the event. Therefore, each press on aphone button causes data traffic between Cisco
Unified Communications Manager and the terminal endpoint.
SCCP is vvidelv used with Cisco Unified IP phones. The major advantage of SCCP within
Cisco Unified Communications Manager networks is the broadest range of features that Cisco
Unified IPphones support viaSCCP.
SCCP is asimplified protocol used in VoIP networks. Cisco Unified IP phones that use SCCP
can coexist in an H.323 environment. When used with Cisco Unified Communications
Manager, the SCCP client can intemperate with H.323-compliant terminals.
12010 Cisco Systems, Inc.
Introduction to Voice Gateways
1-17
Gateway Deployment Example
This subtopic prov ides an example of how gateways are deployed in an enterprise with mulfipk
locations
Gateway Deployment Example
Headquarters
IP WAN
PSTN-
H 323,'SIP f
Gateway
Branch
Gateway sare usually deployed as edge devices on anetwork. Because they typically interface
with both the PSTN and the company WAN. they must have the appropriate hardware and
utilize the appropriate protocol for that network. The figure represents ascenario in which two
different ty pes ol gateways are deployed in two locations for VoIP and PSTN interconnections,
fhe headquarters uses aCisco Unified Communications Manager environment with agateway
that connects the headquarters network to the PSTN and to the IP WAN and directs the calls '
through one ofthem. The gateway can be MGCP-controlled by Cisco Unified Communications
Manager or it can use one of the peer-lo-pecr signaling protocolsH.323 or SIP. With pecr-to-
peer signaling, the gateway will communicate not only with the Cisco Unified Communications
Manager but also with the branch gateway. The signaling communication with the branch
gateway occurs over the IP WAN. The headquarters gateway may use (he same protocol
(11.323 or SIP) for signaling exchange with the Cisco Unified Communications Manager and
the branch gateway, or it may use one protocol with Cisco Unified Communications Manager
(for example H.323) and the other protocol with the branch gateway (for example SIP). Ifthe
gateways in the headquarters and the branch use ditTerent protocols (one uses 11.323, the other
uses SIP), aCisco Unified Border Element is needed to translate the signaling information from
one protocol to another.
Ihe branch uses Cisco Unified Communications Manager Express on the voice gateway and
controls the Cisco Unified IP phones via SCCP and SIP. The gatewav can use SIP orH.323
when communicating with the headquarters. ACisco Unified Border Element may be needed
mease the branch and the headquarters use different signaling protocols.
18 Implementing Cisco Voice Communications andQoS (CVOICE) v8.0
2010 Cisco Systems. Inc
Gateways in Cisco Unified Communications
Deployment Models
This topic describes the voice gateway functions in the four common IP telephony deployment
models.
Cisco Unified Communications
Deployment Models
Gateways support these IP telephony deployment models:
Single-site deployment
. Multisite WANwithcentralized call processing
Multisite WAN withdistributedcall processing
Clusteringovet the IPWAN
Applications
Cisco Unified Communications can be deployed in four models. Each deployment model
differs in die type oftraffic that is carried over the WAN, the location ofthe call-processinf
agent, and the'size of the deployment. Cisco Unified Communications supports these
deployment models:
Single-site
Multisite with centralized call processing
Multisite with distributed call processing
Clustering over the IP WAN
i 2010 Cisco Systems, Inc.
Introduction to Voice Gateways 1-19
Single-Site Deployment
This subtopic explains the gateway functions in the single-site deployment model
Overview
Cisco Unified Communications
Manager servers, applications,
and DSP resources at the same
physical location
IP WAN used for data traffic only
* PSTN used for all external calls
PSTN-
Cisco Unified
Communications
Manager Cluster
The single-site model for Cisco Unified Communications consists of acall-processing agent
cluster located at asingle site, with no telephony services provided over an IP WAN.
An enterprise would typically deploy the single-site model over aLAN or metropolitan-area
network (MAN), which carries the voice traffic within the site. Gateway trunks that connect
directly to the PSTN process all external calls. Ifan IP WAN exists between sites, itis used to
carry data traffic only: no telephony serv ices are provided over the WAN.
Single-site deployment offers aself-contained approach. There is no dependency for service in
the event ofan IP WAN failure orinsufficient bandwidth, and there is no loss ofcall-
processing senice orfunctionality. The main benefits ofthe single-site model are as follows:
Lase of deployment.
Acommon infrastructure for a converged solution.
Simplified dial plan. The dial plan describes how toforward calls that are based onthe
calling and called number. Because all external calls arc sent out over the PS'I'N trunk, the
dial planis easy to implement.
1-20 Implementing Cisco Voice Communications and QoS(CVOICE) 1/8 0
12010 Cisco Systems. Inc
Single-Site Deployment (Cont.)
Gateway Functions
Cisco Unified Communications gateway:
Uses H.323 or MGCP for PSTN gateways
- Maintains the dial plan with H.323 or SIP
- Receives instructions fromthe MGCP call agent
Uses a single best-quality codec for all endpoints (G.711).
Provides DSP resources for conferencing and media
termination
Offers appropriate services:
- HSRP for gateway high availability
QoS mechanisms
- Security
In the single-site model, the voice gateway fulfills these functions:
Uses 11.323 or MGCP for the PSfN. MGCP simplifies the configuration, because the call
agent maintains the dial plan. The gateway must maintain the dial plan if H.323 or SIP is
used. SIP is typically deployed when connecting to an Internet telephony service provider
(ITSP).
Uses the G.711 codec for all endpoints. This practice eliminates the need to convert one
codec to another.
Offers enough DSP resources for the required media termination and conferencing.
Provides highly available, fault-tolerant network service based on a common infrastructure
philosophy. It implements the recommended QoS mechanisms and provides secure
platform communications.
>2010 Cisco Systems. Inc
Introduction to Voice Gateways 1-21
Multisite WAN with Centralized Call Processing
This subtopic explains the gateway functions in the multisite centralized IPtelephony
deployment model.
1-22
Multisite WAN with Centralized Cal
Processing
Overview
* Cisco Unified Communications
Manager at central site;
applications centralized or
distributed
* IP WAN carries voice traffic
and call control signaling
Call Admission Control
(limit number of calls per site)
SRST for remote branches
AAR used if WAN bandwidth is
exceeded
The multisite WAN deployment model with centralized call processing consists of a single call-
processing agent cluster that provides services for many remote sites and uses the IP WAN to
transport Cisco Unified Communications traffic between the sites. The IP WAN also carries
call control signaling between the central site and the remote sites. The figure illustrates a
typical centralized call-processing deployment, with a Cisco Unified Communications Manager
cluster as the call-processing agent at the central site and an IP WAN to connect all the sites.
The remote sites rely on the centralized Cisco Unified Communications Manager cluster to
process their call processing. Applications such as voice mail, Cisco Unified Presence,
interactive voice response (IVR) systems, and so on, are typically also centralized to reduce the
overall costs of administration and maintenance.
The primary path for call control signaling and voice traffic is the IP WAN. To avoid
oversubscribing the WAN links with voice traffic and deteriorating the quality of established
calls. Call Admission Control (CAC) must be implemented.
In addition to IP WAN. Cisco gateways provide the remote sites with PSTN access. When the
IP WAN is down, or if all the available bandwidth on the IP WAN has been consumed, the
calls from users at the remote sites will be automatically redirected over the PSTN. The Cisco
Unified Sun. ivable Remote Site Telephony (Cisco Unified SRST) feature is available for both
SCCP and SIP phones. It provides call processing at the branch offices for Cisco Unified IP
phones if they lose their connection to the Cisco UnifiedCommunications Manager cluster or if
the WAN connection is down. Automated alternate routing (AAR) allows the central site
endpoints to communicate with the endpoint in the remote locations via the PSTN network.
Implementing Cisco Voice Communications and QoS (CVOICE) v8.0 2010 Cisco Systems. Inc.
mm
Multisite WAN with Centralized Call
Processing (Cont.)
Gateway Functions
Cisco Unified Communications gateway:
Uses H.323 or MGCP for PSTN gateways
AppliesQoS to minimize delay between
Cisco Unified Communications Manager and remote
locations to reduce voice cut-through delays
At the remote sites, uses SRST, Cisco
Unified Communications Manager Express in SRST mode,
SIP SRST. and MGCPgateway fallbackto ensure call-
processingsurvivability inthe event ofa WAN failure
Runs HSRP for redundancy and high availability
Provides DSP resources for conferencing and media
termination
In the multisite model with centralized call processing, the voice gateway fulfills these
functions:
Uses H.323 or MGCP between Cisco Unified Communications Manager and the voice
gateway.
Minimizes delay between Cisco Unified Communications Manager and remote locations to
reduce voicecut-through delays. Ciscorecommends 150ms maximum one-way.
Runs Hot Standby Router Protocol (HSRP) to provide voice gateway redundancy.
Provides enough digital signal processor (DSP) resources fortherequired media
termination (converting voice wavelengths to VoIP packets) andconferencing. The DSPs
for conferencing aretypically located onthecentral sitegateway. TheDSPs aredescribed
in a later lesson.
At the remote sites, uses these Cisco Unified SRST features to ensure call processing
survivability intheevent of a WAN failure (these features can beactivated simultaneously
on die same Cisco voice gateway):
for SCCP phones, uses Cisco Unified SRST on a CiscoIOS gateway or Cisco
Unified Communications ManagerKxpress runningin SRSTmode
For SIP phones, uses SIP SRST
For MGCP phones, uses MGCPgateway fallback
) 2010 Cisco Systems, Inc.
Introduction to Voice Gateways 1-23
Multisite WAN with Distributed Call Processing
1-24
This subtopic explains the gateway functions in the multisite IP telephony deployment model
withdistributed call processing.
Multisite WAN with Distribute*
Processing
Overview
Cisco Unified
Communications
Manager and
applications
located at each
site
IP WAN carries
intercluster call
control signaling
* Scales to
hundreds of sites
* Transparent use
ofthePSTNifthe
IP WAN is
unavailable
I .CiscoUnified '
CommunicationsL
Manager Cluster
Cisco Unified
Communications
Manager Cluster
Gatekeeper
Themodel for a multisite WAN deployment with distributed call processing consists of
multiple independent sites. Each site has its own call-processing agent cluster connected to an
IP WAN that carries voice traffic between the distributed sites.
Thedistributed call-processing site may consist of any of the following:
Asingle sitewith itsowncall-processing agent, which canbeoneof the following:
Cisco UnifiedCommunications Manager
Cisco Unified Communications Manager Express
Other IP PBX
A centralized call-processing site with its associated remote sites
A legacy PBX with a VoIP gateway
An IP WANinterconnects all the distributed call-processingsites. Typically, the PSTNserves
as a backup connection between the sites in case that the IP WAN connection fails or does not
have any more available bandw idth. Asite connected onlythrough the PSTN is a standalone
site and is not covered by the distributed call-processing model.
Multisitedistributed call processing allows each site lo he completely self-contained. In the
event of an IP WAN failure or insufficient bandwidth, the site does not losecall-processing
service or functionality. Cisco Unified Communications Manager simply sends all calls
between the sites across the PSTN.
Implementing Cisco Voice Communications and QoS (CVOICE) v8 0 2010 Cisco Systems, Inc.
Multisite WAN with Distributed Call
Processing (Cont.)
Gateway Functions
Cisco Unified Communications gateway:
Uses H.323 or MGCP for PSTN gateways
Participates in H.323 gatekeeper-based CAC
Usesa single low-bandwidth WAN codec tosave bandwidth
and minimize transcoding
Provides DSP resources for transcoding, conferencing, and
media termination
Applies QoS for low latency in the IP WAN toensuretimely
VolPforwarding
Runs HSRPforredundancy and highavailability
Inthemultisite WAN with distributed call control, theCAC is implemented by thegatekeeper
that isconnected totheWAN, Thegatekeeper acts asthebandwidth broker and simplifies the
call routing across the IP WAN.
Inthe multisite WAN with distributed call processing, the Cisco Unified Communications
gateway fulfills these functions:
Uses H.323 or MGCP between Cisco Unified Communications Manager andthegateway.
Participates inthe gatekeeper-based CAC for intcrsite calls through the IP WAN.
Gatekeepers require that H.323 isused for intersite VoIP signaling.
Uses only one low-bandwidth codec for media transport over the IP WAN. This approach
reduces the need to convert one codec to another, and saves bandwidth.
Provides sufficient DSP resources tosupport therequired media termination, conferencing,
and transcoding. The DSPs for conferencing and transcoding are typically located onthe
central site gateway.
Ensures timelyVoIPforwarding throughthe IP WAN.
Runs HSRP to provide redundancy andhigh availability.
i 2010 Cisco Systems, Inc.
Introduction to Voice Gateways 1-25
Clustering over the IPWAN
This subtopic explains the gateway functions in the clustering over the IP WAN deployment
model.
Clustering over the IP
Overview
Applications and Cisco Unified Communications Manager
systems of the same cluster distributed over the IP WAN
* IP WAN carries intracluster communication in addition to call
signaling and media
- CallAdmission Control (limit number of calls per site)
AAR used if WAN bandwidth is exceeded
PSTN
SIP or SCCP
SIP or SCCP
Cisco supports Cisco Unified Communications Manager clusters over a WAN. In the clustering
over the IP WAN model, a single CiscoUnified Communications Managerclusterand its
subscriber servers are split across multiple sites connected via a QoS-enabled WAN. The IP
WANcarries intracluster control traffic in addition lo call signaling and voice traffic.
Aspecial requirement of this model is low latency through the IPWAN, The maximum one
way delay between any Cisco Unified Communications Manager servers for all priority Intra
clusterCommunications Signaling (ICCS) traffic should notexceed XO-ms round-trip time
(R'I'T). Delay for other ICCS traffic should be kept reasonable to providetimelydatabase
access.
CAC protects the IP WAN fromoversubscription with too many calls. When the IP WAN is
down or the maximum supported number of calls is reached, the AAR redirects the calls from
one site to another v ia the PSTN.
Implementing Cisco Voice Communications and QoS (CVOICE) v8.0 2010 Cisco Systems, Inc
Clustering over the IP WAN (Cont.)
Gateway Functions
Cisco Unified Communications gateway:
Uses H.323 or MGCP for PSTN gateways
Applies QoS for low latency in the IP WAN:
- 80-ms maximum RTTfor ICCS traffic between anytwo
Cisco Unified Communications Manager serversinthe
cluster.
The ICCS traffic types are classified as either priority or
best-effort. Priority ICCS traffic is marked with IP
Precedence 3(DSCP 24orPHB CS3). Best-effort ICCS
traffic is marked with IP Precedence 0 (DSCP 0 or PHB
BE).
- Expedited forwarding ofVoIP packets.
Provides DSP resources for conferencing and media
termination.
Runs HSRPforredundancyand highavailability.
In the clustering over the IP WAN model, H.323 or MGCP can be used for signaling between
Cisco Unified Communications Managerand the gateway.
The IP WAN must be engineered to timely forward the delay-sensitive traffic types.
The gateways should provide sufficient DSP resources for conferencing and media termination.
and use HSRP tooffer a redundant and highly available solution.
) 2010 Cisco Systems. Inc.
Introduction to Voice Gateways 1-27
Gateway Hardware Platforms
This topic describes the Cisco gateway hardware platforms.
Gateway Hardware Platform:
Modern Enterprise Models
;iSco2S0O Series Routers
Cisco 3900 Series Roulers
Ihe figure depicts some of the modern enterprise models that are usuallv used within enterprise
networks.
Cisco 2900Series Integrated Services Routers
Ihe Cisco 2900 Series Integrated Serv ices Routers comprise four models: Cisco 2901
Integrated Serv ices Router. Cisco 2911 Integrated Sen ices Router. Cisco 292 I Integrated
Serv ices Router, and Cisco 295 1Integrated Serv ices Router. These Integrated Services Routers
Generation 2platforms are future-enabled with multicore CPUs, support for high capacity
DSPs for future enhanced video capabilities, high-powered service modules with improved
availability, and Gigabit Ethernet switching with enhanced Power over Ethernet (Pofi).
Additionally, anew Cisco IOS Software Universal Image and Services Ready Engine module
enables you to decouple the deploy ment ofhardware and software. This decoupling provides a
flexible technology foundation that can quickly adapt to evolving network requirements.
All Cisco 2900 Series Integrated Services Routers offer embedded hardware encryption
acceleration, voice- and video-capable DSP slots, optional firewall, intrusion prevention, call
processing, voice mail, and application services. In addition, the platforms support the industrv -
widest range of wired and wireless connectivity options such as TI/EI. xDSL. and both copper
and fiber Gigabit Ethernet.
Cisco 3900 Series Integrated Services Routers
The Cisco 3900 Series Integrated Serv ices Routers comprise two models: Cisco 3925 and Cisco
3945 Integrated Sen ices Routers. In addition to providing the functionality ofthe Cisco 2900
Series Routers, the Cisco 3900 Series Routers ol'ler superior performance and flexibility for
network deploy merits from small business offices to large enterprise offices, while providing
industry-leading investment protection.
1-28 Implementing Cisco Voice Communications andQoS (CVOICE) uB.O
2010 Cisco Systems, Inc.
Gateway Hardware Platforms (Cont.)
Weil-Known Older Enterprise Models
Cisco 2600 Series Routers Cisco 3800 Series Routers
Thefigure shows theenterprise models of Cisco modular access routers thathave voice
gateway capabilities. These modelsare well-known and widelyused.
Cisco 2800 Series Integrated Services Routers
Cisco2800Series Integrated Services Routers comprise four models: Cisco2801 Integrated
Seniccs Router. Cisco2811 Integrated Services Router, Cisco2821 Integrated Services
Router, andCisco 2851 Integrated Services Router. Theseriesmaintains support for most of
the more than 90 modules that are available for the Cisco 1700 Series Modular Access Routers.
Cisco 2600 Series Multisenice Platforms, and Cisco 3700 Series Multiservice Access Routers.
The Cisco 2800 Series routers can deliver simultaneous, high-quality, wire-speed services up to
multiple Tl/El or xDSL connections. Therouters offerembedded encryption acceleration and.
on the motherboard, voice DSP slots, as well as the following:
Intrusion prevention system(IPS) and firewall functions
Optional integrated call processing and voice-mail support
High-density interfaces for a wide range of wired and wireless connectivity requirements
Sufficient performance and slot density for future networkexpansion requirements and
advanced applications
Cisco 3800 Series Integrated Services Routers
Cisco3800 Series Integrated Services Routers also feature embedded securityprocessing,
significant performance and memory enhancements, and newhigh-density interfaces. These
features deliver the performance, availability, and reliability that are required lo scale mission-
critical security. IP telephony, business video, network analysis, and web applications in the
most demanding enterprise environments. The Cisco 3800 Series Routers deliver multiple
concurrent seniccs at wire-speed T3/E3 rates.
2010 Cisco Systems. Inc. Introduction to Voice Gateways 1-29
The Integrated Sen ices routing architecture of the Cisco 3800 Scries Routers is based on the
architecture of the Cisco 3700 Series Routers. The routers aredesigned loembed and integrate
security and voice processing with advanced wired and wireless services for rapid deployment
ol newapplications, including application layer functions, intelligent networkservices, and
converged communications. TheCisco3800 Series Routers supportthe bandwidth
requirements for multiple East Ethernet interfaces perslot. TDM interconnections, and fully
integrated power distribution to modules supporting 802.3af PoE. It also supports the existing
portfolio of modular interfaces. This accommodates network expansion or changes in
technology as newsen ices and applications are deployed. Byintegrating the functions of
multiple separate dev ices into a single compact unit, the 3800 Series Router reduces the cost
and complexity of managing remote networks.
The Cisco 3800 Series models include the Cisco 3825 IntegratedServices Router and the Cisco
3845 Integrated Serv ices Router, available withthreeoptional configurations for ACpower.
AC power with integrated inline power support, and DCpower.
Implementing Cisco Voice Communications and QoS (CVOICE) v8.0 2010 Cisco Systems, Inc.
Gateway Hardware Platforms (Cont.j
Special Voice Gateways
Cisco AS5350XM
Seres Gateways
Cisco A554C0XM
Series Gateways
Cisco VG24B Gateway
Cisco 7200 Series Routers
To fit special needs within thecustomer unified messaging system, Ciscooffers standalone
voice gateways for specific purposes. Each of these voice gateways fulfills adifferent need,
such as theintegration of analog devices intotheunified messaging system, enhanced
performance, business-class functionality, adaptability, serviceability, and manageability.
Cisco ATA 186
TheCisco Analog Telephone Adaptor 186 (Cisco ATA 186) is a handset-to-Ethernet adapter
that allowstraditional telephone devicesto function as VoIPdevices. Customers can use IP
telephony applications byconnecting theiranalog devices toanalog telephone adapters,
The Cisco ATA I86supports twovoice ports, eachof which has an independent telephone
number anda single I0BASE-T Ethernet port. This adapter canmake useof existing Ethernet
LANs, in addition to broadband pipes suchas DSL, fixed wireless, and cable modem
deployments.
The CiscoATA180Seriesproductsare standards-based IPcommunications devicesthat
deliver VoIP terminations to businesses and residences.
Cisco VG248 Analog Phone Gateway
Cisco VG248 Analog Phone Gateway provides support for traditional analog devices while
taking advantage of thenewcapabilities that CiscoUnified Communications affords. TheCisco
VG248 AnalogPhone (iateway offers 48 fully featured analogports for use as extensions to the
Cisco Unified Communications Manager system in a compact 19-inchrack-mount chassis.
>2010 Cisco Systems, Inc. Introduction to Voice Gateways
Cisco AS5350XM Series Universal Gateway
The CiscoAS5350XM Gateway is theonly one-rack-unit gateway that provides data, voice,
andfax seniccs. as weli as Session Border Controller (SBC) functionality. TheSBC feature is
usedat prov ider interconnects and typically provides complete sessionstate, security, and
reporting sen ices. Ihe CiscoAS5350XM offershighreliability in a compact, modulardesign.
This cost-effective platform is ideallysuited for ISPs and enterprises that require innovative
universal or voicesen ices. The CiscoAS5350XM supports PSTN signaling, gateway
signaling, voicecodecs, fax. VoiceXML. RADIUS. Tool Command Language (Tel), and
interactive voiceresponse. The SBCfunctionality provides additional opportunities for IP-to-IP
trunking applications.
Cisco AS5400 Series Universal Gateway Platforms
The Cisco AS5400XM I 'nivcrsal Gateway offers unparalleled capacity in only 2 rack units
(Rl s) and provides data, voice, and faxseniccs. as well as SBCfunctionality. High-density,
low-power consumption, and a robust feature set make the Cisco AS5400XM Series Universal
Gateway ideal for several network deployment architectures, especially foreolocation
environments and for large points of presence (POPs). The Cisco AS5400XM Universal
(iateway offers reliable, scalable data and voice gateway functions and SBC services. The
Cisco AS5400XMsupports PSTNsignaling, gateway signaling, voice codecs, tax, VoiceXML.
RADIUS. Tel. and IVR.
Cisco 7200 Series Routers
Cisco 7200 Series Routers are sen ices routers for enterprise edge and service provider edge
applications. These compact routers provide serviceability and manageability coupled with
high-performance modular processors. The Cisco 7200 Series Routers offer a wide range of
gateway functions for voice, video. and data integration, and a comprehensive list of voice port
adapters that can be installed in the TDM-enabled VXR chassis. Due to its high performance,
this platform is well-suited to act as a Cisco Unified Border Element or H.323 gatekeeper.
1-32 Implementing Cisco Voice Communications and QoS (CVOICE) v8 0 2010 Cisco Systems. Inc.
Gateway Operational Modes
This topic describes the three operational modes ofvoice gateways.
Voice Gateway Overview
Three operational modes:
Voice switching
- Switches between multiple
traditional voice networks
VoIP gateway
- Converts between traditional
telephony and VoIP
Cisco Unified Border Element
IP-to-IP gateway
Converts parameters between
multiple VoIP networks
PBX
PSTN
Voice gateways can bedeployed inthree modes. Asingle gateway can operate in one mode or
inmultiple modes at the same time. These modes areas follows:
Avoice-switching gateway connects various analog and digital voice circuits. This
functionality isequivalent totheoperation of central office switches and PBXs in
traditional telephony.
AVoIP gateway connects thetraditional telephony network lo the IP network. It converts
the signaling and media transmission methods used onone side tothe other side. VoIP
gateways provide physical access for local analog and digital voice devices such as
telephones, faxmachines, keysets, and PBXs.
Cisco Unified Border Element interconnects two IP networks. It terminates the signaling
sessionsandeither passesthroughor terminates the mediachannels.
) 2010 Cisco Systems, Inc.
Introduction to Voice Gateways 1-33
Voice Gateway Call Legs
This topic explains the concept ofacall leg and describes the call leg types associated with
eachof the three voicegateway operational modes.
1-34
Voice Gateway Call Let
Gateway calf
processing:
Connects incoming call
leg to outgoing call leg
Two major call leg types
are POTS and VoIP
Applies parameters to
both call legs
VoIP parameters are
negotiated.
Inbound
Outbound
Voice
Gateway
_Ji_
Incoming
Call Leg
Outgoing
Call Leg
Avoice call over a packet or traditional telephony network is segmented intodiscrete call legs.
\\ hen a gateway receives a call setup, it performs a routing decision and sends the call setup
request tothenext dev ice. Theincoming part of thecall is referred toas theincoming call leg
and theoutgoingpart of the call is referred to as the outgoingcall leg.
OnCisco 10S routers, the call legs areassociated with dial peers. One dial peer corresponds to
onecall leg. Acall leg is a logical connection between twogateways or between a gateway and
a telephony device. If thegateway receives or fonvards thecal! overananalog or digital voice
circuit, the corresponding call leg is referred lo as POTS. If the gateway receives or fonvards
the call overan IP interface, the correspondingcall leg is referred to as VoIP.
Ihe call legsare relev ant for call routing. Beforea gateway makes the call-routing decision, it
mustapply thesettings defined intheincoming call leg. Inthecaseof POTS incoming call
legs, these parameters define howthe gateway collects the dialed digits and optional
applications. In the case of VoIP incoming call legs, these parameters describe the voice
transmission methods, such as codec, voice activity detection (VAD). and dual tone
multifrequency (DTMF)-related features. Theseparameters must be successfully negotiated
between the local andpreceding gateway before thecall can be forwarded to the next gateway
in the path.
Implementing Cisco Voice Communications and QoS (CVOICE) v8 0 2010 Cisco Systems, Inc
Voice-Switching Gateway
This subtopic explains the call legs associated with the voice-switching gateway.
Voice-Switching Gateway
Call Legs
Voice-Switching Gateway:
* Signals calls
- Analog signaling
SS7, ISDN, QSIG
* Converts between:
- Signaling types
- Voice format (analog,
digital)
- Interface types (T1/E1,
FXO, FXS, E&M)
Uses plain old telephone
service (POTS) call legs
L
Voice-Switching
Gateway
tl_ 1
Outgoing
Call Leg:
POTS
Incoming
Call Leg:
POTS
Avoice-switching gateway has traditional telephony interlaces. Multiple call signaling
protocols exist, such as SS7, ISDN. QSignaling (QSIG), and the analog signaling methods,
including supervisory signaling (loop-start, ground-start, immediate-start, wink-start, delay-
start), address signaling (pulse, DTMF) and informational signaling. The voice-switching
gateway receives and fonvards the call setup request over analog ordigital voice circuits. The
gateway may have toconvert the call signaling and the voice fonnal when the call traverses the
gateway from one port to another. The incoming and the outgoing call legs are the POTS call
legs.
i 2010 Cisco Systems, Inc.
Introduction to Voice Gateways
VoIP Gateway
This subtopic explains the call legs associated with the VoIP gateway.
Call Legs
' . IP
Originating
Gateway
I tl__
Terminating
Gateway
tt_ J
Call Leg 1 Call Leg 2 Call Leg 3
(POTS) (VoIP) (VoIP)
R1 Inbound R1 Outbound R2 Inbound
Call Leg 4
(POTS)
R2 Outbound
Ihe gateway provides translation between VoIP and non-VoIP networks such as the PSTN. It
converts the signaling and voicesignal between traditional telephony circuitsand the VoIP
transmission inan IPnetwork. One of thecall legs is a POTS call leg. while theotheris a VoIP
call leg.
Inthe figure, theoriginating gateway hasthe POTS incoming call legandthe VoIP outgoing
call leg. The VoIP terminating gateway has the VoIP incoming call legand the POTS outgoing
call leg. Bothgateway s must first successfully negotiate the VoIPparameters associated with
theirrespective outgoing andincoming call legs before theVoIP tenninating gateway can
fonvard the call to the destination PSTN network.
Implementing Cisco Voice Communications and QoS (CVOICE) v8.0 2010 Cisco Systems, Inc.
Cisco Unified Border Element
This subtopic explainsthe call legs associated with Cisco Unified Border Element.
Cisco Unified Border Element
Call Legs
Cisco Unified Border
Element:
Proxies signaling
May use different
IP
signaling on both
sides
Proxies or passes media
- May hide addresses of
media channels
Uses VoIP call legs
- Negotiates VoIP
parameters
Cisco Unified
Border Element
tl J
Incoming
Call Leg:
VoIP
Outgoing
Call Leg:
VoIP
Cisco Unified Border Element fonvards an incoming VoIP call as another, outgoing VoIP call.
It receives a call setup request, negotiates parameters, and forwards the call setup request to the
next gateway. The incomingsignaling protocol may differ fromthe outgoing signaling
protocol. When the call is successfully signaled end-to-end, Cisco Unified Border Element may-
cither proxy the media channelwhich is referred to as flow-around-orlet the media channel
pass through the gateway without any modificationwhichis referred to as flow-through. The
media proxy function is necessary when the VoIP traffic parameters of the incoming call leg
differ from the VoIP parameters of the outgoing call leg. When Cisco Unified Border Element
proxies the media channel, it changes the IP addresses of the media packets. This feature is
very useful for security or connectivity reasons. Both call legs of a Cisco Unified Border
Element are VoIP call legs.
) 2010 Cisco Systems. Inc. Introduction to Voice Gateways
Summary
This topic summarizes the key points that were discussed in this lesson.
References
Summary
Cisco Unified Communicationsarchitecture integrates IP
communications, mobile applications, customer care,
telepresence, conferencing, and messaging.
Cisco Unified Communications gateways connect voice-
enabled communication networks
Gateways are deployed in one of four modes: single-site,
multisite with centralized processing, multisite with distributed
processing, or clustering over the WAN.
The newest family of enterprise gateways, Cisco 2900 and
3900 Series Integrated Services Routers, offers rich unified
communications features.
The incoming and outgoing call leg describes the input and
output procedure for a call processed by the voice gateway.
for additional information, refer to these resources:
Cisco 2900 Series integrated Senices Routers:
http: www cNco.com 'goO'XHl
Cisco 3900 Series Integrated Services Routers:
http:1 www eisco.com;go.'3900
Cisco 2800 Series Integrated Services Routers:
hitp:' www.cKeo.com'go'2 8t)0
Cisco 3800 Series Integrated Services Routers:
hup:' www cisco.com go-3800
Cisco ATA 186:
http: .www.cisco.com go'ataUS')
Cisco AS5350 Universal Gateway :
http:1 www eis.co.com.'go.'asXoO
Cisco AS5-400 Series Universal (iateway platforms:
http:- www.cisco.com'go/as5-100
Cisco 7200 Series Routers:
http:;'w ww. cisco.com 'go/720(1
Cisco Unified Border Element:
http: www u-co.cum go'eiibe
1-38 Implementing Cisco Voice Communications and QoS (CVOICE) u8.0 )2010 Cisco Systems, Inc
Lesson 2
Examining Gateway Call
Routing and Call Legs
Overview
Aprimary function of the Cisco Unified Communications gateways istoroute calls. The
process ofcall routing includes the processing ofincoming and outgoing call legs. This lesson
describes how call legs arecreated when inbound and outbound dial peers arematched. It
provides details about thedial-peer matching process and explains thedirect inward dialing
(DID) feature.
Objectives
Upon completing this lesson, you will be able todescribe how gateways route calls and which
configuration elementsrelateto incoming and outgoingcall legs.
This abilityincludes beingable to meet these objectives:
Describe the functionsof POTS, VoIP dial peers, and call legs as components of a simple
VoIP network
Explain howgateways route calls end-to-end
Describe how to configure POTS dial peers
Explain howtousedestination-pattern options toassociate a telephone number with a
givendial peer, and describethe number matching process
Describe how the router matches inbound dial peers
Describe how the router matches outbound dial peers
Describe howthedefault dial peer is used in a gateway,when it is employed, and which
default commands are used
Explain the DIDfeature, describethe differences betweentwo-stage and one-stagedialing,
and explain what the DID feature does
Gateway Call-Routing Components
This topic describes dial peers and explains how they are involved incall routing onCisco
Unified Communications satewavs.
Inbound and Outbound Dial Peers
Adial peer is an addressable call endpoint.
Dial peers establish logical connections between call legs to
complete an end-to-end call
* Agateway uses two dial peers for each call:
Inbound: matches the incoming call
Outbound: matches the call destination
Call Selup Message
inbound Dial Poor
Dial peers are essential to implementingdial plans and providingvoice seniccs over an IP
packet network. Dial peers are used to identify call source and destination endpoints and to
define the characteristics that tire applied to each call leg in the call connection.
A traditional voice call over the public switched telephone network (PSfN) uses a dedicated
64-kb/s end-lo-end circuit. In contrast, a voice call over the packet network is made up of
discrete segments or call legs. A call leg is a logical connection between two routers or between
a router and a telephony device. bach voice gateway establishes at least two call legs.
['he incoming call leg is associated with the inbound (source) dial peer, while the outgoing call
leg is associated with the outbound (destination) dial peer, as shown in the diagram in the
figure. Attributes that are defined in a dial peer are applied to that call leg.
Call legs are router-centric. When an inbound call arrives on a gateway, the gateway finds the
inbound dial peer and processes its settings. IIThe settings are acceptable, the gateway finds the
outbound dial peer, establishes the outgoing call leg. and the call is switched fromthe incoming
call leg to the outgoing call leg. You need to configure dial peers to enable call routing on a
gatew av.
1-40 Implementing Cisco Voice Communications and QoS (CVOICE] v8.0 )2010 Cisco Systems, Inc
Most Prevalent Dial-Peer Types
This subtopic describes the various types ofdial peers.
Most Prevalent Dial-Peer Types
Typeof Pal Peer [Network Technology
Plain old telephone
service (POTS)
VoIP
Multimedia Mail
overlP(MMolP)
Maps a dial stringto a specificvoice port on fte local
gateway. Thevoiceportconnectsthe gatewaytothe
PSTN, PBX, or analog telephone.
Points to the IP address or DNS name of the destination
VoIP device that terminates the call. This mapping
applies to VoIP protocolssuch as H.323or SIP.
Thedial peer is mappedtotie emailaddress ofthe
SMTPserver. This type of dial peer is used for
store-and-forward fax (on-ramp and off-rampfaxing).
Dial peers are generally classified into plain old telephone service (POTS) dial peers and
network dial peers.
POTS dial peers define the characteristics ofatraditional telephony network connection. The
POTS dial peer maps adial string to aspecific voice port on the local gateway. Normally, the
voice port connects the gateway tothe local PSTN, PBX, oranalog telephone.
The specific type ofnetwork dial peer used depends on the network transport technology. The
VoIP dial peer isby far the most common network type. The most prevalent network dial peers
are the following:
VoIP: The dial peer is mapped totheIPaddress, Domain Name System (DNS) name, or
server type of thedestination VoIP device thatterminates the call.
Multimedia Mailover IP (MMoIF): The dial peeris mapped totheemail address of the
Simple Mail Transfer Protocol (SMTP) server. This type ofdial peer isused for store-and-
forward fax (on-ramp and off-ramp faxing).
) 2010 Cisco Systems, Inc.
Introduction to Voice Gateways
Dial Peers
This subtopic provides an overview of the two most common dial peers: POTS and VoIP.
POTS and VoIP Dial Peei
Telephone ^^^
1001 bfc/**^ ^
1/0/0 dUtiiwteq^dMth 11
Voice
Gateway
VoIP
session large! tpv4*l/2 16 1.1
destination-pattern 2Q01
Voice
Gateway
Telephone
2001
In the diagram, an analog telephone is connected to the Cisco Unified Communications
gateway. The gateway needs two dial peers. The POTS dial-peer configuration includes at least
the telephone number of theanalog telephone andthe voice portto which it is attached. Based
onthis information, the gateway forwards calls destined lo the defined telephone overthe
specified port.
The VoIP dial peer isconnected tothe IP network. The VoIP dial-peer configuration includes
at least the destination telephone number (or range of numbers) and thenext-hop IPaddress or
name used to progress the call further.
For call routing tosuccessfully forward calls inboth directions, at least these call-routing
elements are needed in every \oice-processing system:
Anappropriate POTS dial peerthatspecifies towhich voice portthetelephone is attached.
This applies only to the edge voice-processingsystems.
An appropriate VoIP dial peer that specifies the recipient destination address, or at least the
address of the next hop.
1-42 Implementing Cisco Voice Communications and QoS (CVOICE) v8 0
2010 Cisco Systems, Inc
VoIP Dial Peers
This subtopic provides detailsabout the VoIPdial peers.
VoIP Dial Peer
* Points to either H.323 or SIP device
- MGCPconfiguration does not use voice network dial
peers
Sets the attributes of the network connection, such as:
- VoIP codec
- Capability to use voice activitydetection (VAD)
- Capabilityfor dual tone multifrequency (DTMF) relay
The dial-peerparameters varybasedon the dial-peertype. AVoIPdial peer can point to either
an 11.323or Session Initiation Protocol (SIP) device. A Media Gateway Control Protocol
(MGCP) device is not an option due lo its call agent-centric nature. When Cisco Unified
Communications Manageruses MGCP to control the voicegateway, the dial plan is maintained
and Cisco Unified Communications Manager makes the routing decisions. The gateway merely
receives instructions on how to process the voice circuits.
VoIP dial peer parameters include coder-decoder (codec), quality of service (QoS), voice
activity detection (VAD). dual tone multifrequency (DTMF) relay, and fax rate.
>2010 Cisco Systems. Inc. Introduction to Voice Gateways 1-43
VoIP Dial Peer Examples
This subtopic prov ides typical examples of VoIP dial peers.
VoIP Dial Peer Exampl
Cisco Unfed Communications
Manager Cluster
Voice Gateway
Voice-Mail Server
H.323 Gatekeeper
VoIP dial peers map a dial string to a remote network device. Some examples of these remote
network devices are as follows:
Cisco Unified Communications Manager cluster
Another voice gatew ay
SIP proxy
Voice-mail server
H.323 gatekeeper
1-44 Implementing Cisco Voice Communications and QoS (CVOICEI v8 0 2010 Cisco Systems. Inc
mm
<*
*te
End-to-End Call Routing
This topic describes the key differences between IP packet routing and call routing.
iP and Call Routing Comparison
wmm IP routina [Call routing H
Static or dynamic Onty static.
IP routing table Dial plan.
IP route Dial peer.
Hop-by-hop routing
each router makes an
independent decision
Inbound and outbound call legs. The gateway
negotiates VoIP parameters with preceding and
next gateways before a call is forwarded.
Destination-based routing Called number, matched by destination pattern, is
one of many selection criteria.
Longest-match rule The longest-match rule for destination pattern
exists but other criteria have higher priority.
Equal paths Preference can be applied to equal dial peers. Ifall
criteria are the same, random selection.
Defauit route Possible. Often points at external gateway or
gatekeeper.
Acomparison of IPpacket routingand call-routing principlesis helpful to understand the call-
routing process.
The entries that define where to forward calls are the dial peers. All dial peers together build
the dial plan, whichis equivalentto the IP routingtable. The dial peers are static in nature.
Hop-by-hopcall routing builds on the principle of call legs. Before a call-routing decision is
made, the gateway must identify the inbound dial peer and process its parameters. This process
may involve VoIP parameter negotiation.
The call-routing decision is the selection of the outbound dial peer. This selection is commonly
based on the called number when the destination-pattern command is used. The selection may
be based on other information, and that other criteria may have higher precedence than the
called number. When the called number is matched to find the outbound dial peer, the longest
match rule applies.
If more than one dial peer equally matches the dial string, all the matching dial peers are used
to forma so-called rotary group. The router attempts to place the outbound call leg using all the
dial peers in the rotary group until one is successful. The selection order within the group can
be influenced by configuring the preference.
A default call route can be configured using special characters when matching the number.
2010 Cisco Systems. Inc. Introduction to Voice Gateways 1-45
Call Routing
This subtopic introduces the taskof pathselection when routing calls
Call Routint
Multiple Paths
Minolta
Dial2001 2009K
^
1/0/0
Primary path
Secondary path, call forwarded to 300 555-2001
(requires digit manipulation for routing through PSTN)
2001
2002
2003
The VoIP gateway is often faced with the task of selecting the best path for a given destination
number. Such a requirement arises when the prelerred path goes through the IP WAN, and the
backup PSTN path should be chosen when the IP WAN is either unavailable or lacks the
needed bandwidth resources.
The figure illustrates a scenario with two locations connected to the IP WAN and PSTN. When
the call goes through the PSTN, its numbers (both calling and called) may have to be
manipulated so that they are reachable within the PSfN network. Otherwise, the PSTN
switches will not recognize the called number and the call will fail.
Implementing Cisco Voice Communications and QoS (CVOICE) v8 0 2010 Cisco Systems, Inc
r~*
Call Legs
This subtopic explains the call legs on apair of VoIP gateways that participate in an cnd-to-cnd
call.
Call Legs
Source Gateway Perspective
ir
Dial2O01 RV 10.1.1.1
Inbound * l Outbound Call Leg
CaH L (VoIP Dial PeerinPrimary Path.
(POTS Dial POTS Dial Peer in Secondary Path)
Peer)
IP WAN
PSTN
^
2002
2003
The figure illustrates the call legs that are processed ona gateway that receives acall from a
locally attached telephone and originates aVoIP session. These call legs are created when the
telephone (1001) attached toan Rl gateway dials atelephone number in another location
(2001). When a call arrives onRl. the gateway creates aninbound call leg that corresponds to
the inbound dial peer, makes a routing decision by finding an outbound dial peer, and creates
anoutbound call legbyforwarding the call toward thedestination. Iftherouting decision
chooses an IPWAN. theoutbound call legwillbe VoIP; if therouting decision chooses a
PSTN, the outbound call leg will be POTS.
>2010 Cisco Systems. Inc.
Introduction to Voice Gateways 1-47
Cal! Legs (Cont.)
Destination Gateway Perspective
Dial 2001 ri 101.1.1
InboundCall Leg +i Outbound
(VoIP Dial Peer in Primary Path. callLeg
POTS Dial Peer inSecondary Path) (POTS Dial
Peer)
IP WAN
PSTN
ir
2001
The figure illustrates the call legsthat are processed on the gateway that terminates the VoIP
session and fonvards the call to the locally attached telephone with extension 2001. The
inbound call legis createdwhenthe call arrives either through the IP WAN or the PSTN
network. Thegateway makes therouting decision byselecting theoutbound dial peer. The
outbound call legcorresponds to a POTS dial peer that points to the voiceport I/0/0. wherethe
recipient telephone is attached. Thegateway signals anincoming call on that port, andthe
telephone rings.
Implementing Cisco Voice Communications and QoS (CVOICE) v8 0 2010 Cisco Systems. Inc
Configuring POTS Dial Peers
This topic outline the objectives of call rooting through the PSTN network and desenbes the
corresponding configuration process.
Configuring POTS Dial Peers
Call Routing Through PSTN
Dial 2001
PSTN Path
(requires digit manipulation for routing through PSTN)
^
2001
2002
2003
This lesson explains how to configure the POTS dial peers that effectively enable call
fonvaSing along the PSTN path. The configuration of the primary VoIP path will be covered
in detail in alater lesson. The digit manipulation requirement is not covered at this time.
i 2010 Cisco Systems, Inc.
Introduction to Voice Gateways 1-49
Configuring POTS Dial Peer*
Unidirectional Call Routing
=nfig) dial-peer voice 1
RKconfig-dialpe
Rl(config-dialpe
RUconf ig-dialpe
Dial 2001
on-pattern 2001
ill forward-digits
) port 1/1/C
R2(cc.nig)# dial-peer voice 1 pots
R2{config-dialpear)lf destination-patte
K2(config-dialpeerl# port 1/0/1
2001
Tli^figure illustrates ihe configuration that enables calling from extension 1001 to extension
The outbound dial-peer type is POTS because the destination number 2001 is reachable over a
1OISvoice port 1,1/0. Ihere are two basic parameters that need to be specified on this dial
peer: the telephone number and ihe voice port.
The destination-pattern command is used to match the called telephone number The Rl
gateway uses the destination pattern "2001".
The port command specifics the respective voice port. In this example, port 1/1/0 defines that
the port is on module 1. voice interface card (VIC) slot 1. and voice port 0.
The forward-digits all command makes the gateway send the entire called number in the call
signal to the next gateway. By default, the explicitly matched digits are discarded when the call
ts forwarded over an outbound POTS call leg. In this case, the destination pattern "2001"
matches explicitly all tour digits, so the gateway would not send any digits when forwarding
the call through the PSTN. The digit consumption rule applies only to outbound POTS call
legs. \\hen acall ,s forwarded over an outbound VoIP call leg, no digit consumption occurs bv
default, and all digits are sent to the next VoIP device.
Implementing Cisco Voice Communications and QoS (CVOICE! v8 0
2010Cisco Systems, Inc
Configuring POTS Dial
Bidirectional Call Routing
dial-peer vc ice 1 pots
deBtinotioc -pa Item 2001
forward-dig its all
port 1/1/0
dial-peer v= ice 2 pOtH
destination -pattern 1001
port 1/0/0
PSTN
2001
2/1/0
dial-paar voica 1 pots
deBtination-patfeam 1001
forward-digits all
port 2/1/0
dial-paer voice 2 pots
dastination-pattsrn 2001
port 1/0/1
The figure illustrates theconfiguration that enables call routing both ways. Additionally, the Rl
gateway has the POTS dial peer2 that matches extension 1001 and points tothevoice port
1/0/0. where thetelephone is attached. The R2gateway, inaddition to having the POTS dial
peerthat points totheattached telephone, has the POTS dial peer2, which matches the
extension 1001 and points toward the PSTN.
The forward-digits all command is usedon both gateways inthe dial peers pointingto the
PSfN. Without this command, the gateways woulddiscardthe explicitly matcheddigits when
sendingthe call to the PSTN. Nodigits wouldbe forwarded.
12010 Cisco Systems, Inc. Introduction to Voice Gateways
Dial Peer Matching
This topic liststhedial peer commands that matchtelephone numbers.
Use of String Matching
* Called number: Dialed Number Identification Service (DNIS)
"Calling number: Automatic Number Identification (ANI)
router(config-dialpeer] #
destination-pattern string
* Matches called number in outbound dial-peer
* Matches calling number in inbound dial-peer
router(config-dialpeer] #
I incoming called-number string
Matches called number in inbound dial-peer
router {conf ig- dialpeer) tt
answer-address string
Matches calling number in inbound dial-peer
When configuring dial peers on a Cisco Unified Coninuinications gateway, you can use three
commands that match telephone numbers. Two telephone numbers are usually sent with the
call: the calling number, known in ISDN as the Automatic Number Identification (ANI). and
the called number, referred to as the Dialed Number Identification Service (DNIS). Both
numbers can be used lo find the inbound and outbound dial-peer.
I he obvious usage of the destination-pattern command is to match the outbound dial-peer
based on die called number. The command is also considered when matching the inbound dial-
peer, but then the destination pattern string is matched against the calling number.
The incoming called-number command is only considered when selecting the inbound dial-
peer. It matches the original called number.
The answer-address command is only considered when selecting the inbound dial-peer. It
matches the original calling number.
1-52 Implementing Cisco Voice Communications and QoS (CVOICE) vB.O 2010 Cisco Systems. Inc.
String-Matching Characters
This subtopic describes the regular expressions
that areused tomatch number strings.
String-Matching Characters
Plus sign (+)
Period(.)
Percent sign (%)
Question mart (?)
CrcumttexO
Dollar sign ($)
T
Backslash (\)
Brackets 1]
Parentheses ()
As first character, indrates E.164 standard number; otherwise,
speeffles that the preceding dotoccurred one or more times
Matches any entered dial (used as a widcard)
Indicates that the preceding digit occurred zero ormore times
Indicates that the preceding digit occurred either zero orone time
Press Ctrt-vto disable context-sensibve help and enter ?character
Indicates a match tothebeginning ofthestring .
Matches the null string at the endofthe string
Timer character, indicates a variable-length delstring. Makes the
router wart until al digits arereceded before rouBng call
Followed by a single character, matches that character
Indicates a range
Indicates a pattern
The three string-matching commands, destination-pattern, incoming called-number. and
answer-address, have astring parameter. The gateway compares the received numbers with
the strings defined in the respective commands. The string may explicitly match the characters
in the telephone numbers (0-9. A-D. *. #), and it can contain special regular expressions:
. Plus sign (+): The plus sign in front of astring specifies that the string must conform to
E. 164. E.164 is the ITU-T recommendation for the international public telecommunication
numbering plan.
. Aperiod {.) matches any single entered digit from 0to 9, and is used as awildcard. The
wildcard can be used to specify agroup of numbers that may be accessible via asingle
path Apattern of "200." allows for 10 uniquely addressed devices, while apattern oi
"20 "can point to 100 devices. If one site has the numbers 2000 through 2049, and another
site has the numbers 2050 through 2099, the bracket notation would be more efficient.
. Brackets (I ]) indicate arange. Arange is asequence of characters that are enclosed in the
brackets. Onlv single numeric characters from 0to 9arc allowed in the range In the
previous example, the bracket notation could be used to specify exactly which range of
numbers is accessible through each dial peer. For example, the first site pattern would be
2010-41" and the second site pattern would be "20[5-91.'\ In both cases, aperiod is used
in the last digit position to represent any single digit from 0to 9. The bracket notation
offers much more flexibility in how numbers can be assigned.
12010 Cisco Systems, Inc
Introduction to Voice Gateways
1-53
ii . ,CHT-{ } aClCr iS inc,uded at thc end of the destination pattern the router
oolees dtaleddigtts until the interdigit timer expires (10 seconds, bv del ult) o1"
press the number terminate character (the default is #,. The timer character must be an
uppercase I.
Question mark ,?,: In string matching, this character indicates that the preceding character
occurred zero or one time Cisco IOS CI. however, uses this character to invoJcontext
Z ^ i P" ^ '[ 8nd ' ke>'S simultanl>-t0 Usable the context-sensitive help
and allow the question mark to be entered in the character string.
Note
An asterisk () and pound sign {#) are not considered special characters They appear on
standard touch-tone dial pads and may be used when passing acall to an automated
application that requires these characters to signal the use of aspecial feature For
example, when auser calls an interactive voice response (IVR) system that requires acode
for access, the number dialed might be "5551212888T, which would initially dial the
telephone number "5551212" and input acode of "886" followed by the pound key to
terminate the IVR input query
Implementing Cisco Voice Communications and QoS (CVOICE) V8 0 2010 Cisco Systems. Inc.
Number-Matching Characters
This subtopic presents examples of number matching.
Number-Matching Examples
mmm Nnmh-Rhino 1Matching telephone numbers
5551234 Matches single number 5551234
A5551234$ Matches single number 5551234
555123(5-9] Matches the numbers 5551235-5551239
55512[3-4j. Matches 7-digit numbers where the first 5 digits are 55512, the
sixth digit is 3 or 4, and the last digit is any digit
T Matches any number with the length of 1 to 32 digits
(200)75551234 Matches the numbers 2005551234 and 5551234
1(2-3]%4 Matches numbers that start with 1, have any number of
occurrences of the digit 2 or 3. and end with 4
The table provides examples of number matching:
String Matching Telephone Numbers
5551234 This pattern matches one telephone number exactly, 5551234.
This destination pattern is typically used when there is a single device, such as a
telephone or fax, connected to a voice port.
*5551234$ This pattern matches the number 5551234 using an explicit match of the beginning
and the end of the string.
555123(5-9] This pattern matches the number range 5551235 to 5551239.
55512[3-4], This destination pattern matches a 7-digit telephone number where the first 5 digits
are 55512, the sixth digit can be a 3 or 4, and the last digit can be any digit.
This destination pattern is used when telephone number ranges are assigned to
specific sites. In this example, the destination pattern is used in a small site that does
not need more than 30 numbers assigned.
T This destination pattern matches any telephone number that has at least 1 digit and
can vary in length from 1 to 32 digits.
This destination pattern is used for a dial peer that services a variable-length dial
plan for local, national, and international calls. It can also be used as a default
destination pattern so that any calls that do not match a more specific pattern will
match this pattern and can be directed to an operator.
(200)75551234 Matches the numbers 2005551234 and 5551234. This expression uses a pattern
(200) that can occur 0 or 1 time.
1[2-3]%4 Matches numbers that start with 1, have any number of occurrences of the digit 2 or
3, and end with 4. This expression uses a range [2-3] that can occur o or more
times
>2010 Cisco Systems, Inc. Introduction to Voice Gateways 1-55
Matching Inbound Dial Peers
This topicdescribes the rules used by a Cisco Unified Communications gateway to matchan
inbound dial peer.
Matching inbound Dial Peers
Elements in the Call Setup Message
To match inbound call legs to dial peers, the gateway
uses one of three elements (ISDN example):
Called number (DNIS)
Derived from the ISDN setup message or channel
associated signaling (CAS) DNIS
Calling number (ANI)
Derived from the ISDN setup message or CASANI
- Inbound voice port
Call Setup Message " one
1
The inbound dial peer determines thecal! properties for the incoming side of the call. To match
inbound call legs to dial peers, the router uses three elements in the call setup message and live
configurable dial-peer attributes. The three call setup elements are, in the example of ISDN, as
follows:
Called number (OMS): Specifies the destination, which is derived from the ISDN setup
message or channel associated signaling (CAS) DNIS
Calling number (AM): Denotes the origin, which is derived from the ISDN setup
message or CAS AN!
Voice port: Carries die incoming call
1-56 Implementing Cisco Voice Communications and QoS (CVOICE) u8.0
2010 Cisco Systems. Inc
Matching Inbound Dial Peers (Cont)
Relevant Dial-Peer Attributes
Precedence of matching criteria for inbound dial peers:
incoming called-number: Matches called number
- Most explicit match
',' answer-address: Matches calling number
Most explicit match
3 destination-pattern: Matches calling number
- Most explicit match
port. Matches the dial peer with the inbound voice port (POTS
only)
If multiple dial peers have the same port, selects the dial peer
added to the configuration earlier
: default dial peer: Predefined parameters
* Only one condition must be met.
The gateway stops searching when a dial-peer match is found.
The gateway selects an inbounddial peer by matchingthe informationelements in the setup
messagewiththe dial-peerattributes. The gateway matches these itemsin the following order:
1. Called number with incoming called-number
First, the gateway attempts to match the called number of the call setup request with the
configured incoming called-number parameterof eachdial peer. This attribute has
matching priority over the answer-address and destination-pattern matching. If multiple
incoming called-number attributes match the DNIS, the longest match wins.
2. Calling number with answer-address
If no match is found in Step 1, the gateway attempts to match the calling number of the call
setup request with the answer-address of each dial peer. This attribute may be useful in
situations where you want to match calls based on the calling number. If multiple answer-
address attributes match the ANI, the longest match wins.
3. Calling number with destination-pattern
If no match is found in Step 2, the gateway attempts to match the calling number of the call
setup request to the destination-pattern of each dial peer. If multiple destination-pattern
attributes match the DNIS, the longest match wins.
4. Voice port (associated with the incoming call setup request) with the configured dial peer
port parameter (applicable for inbound POTS call legs)
If no match is found in Step 3, the gateway attempts to match the configured dial-peer port
parameter lo the voice port associated with the incoming call. If multiple dial peers have
the same port configured, the dial peer first added in the configuration is matched.
5. If there is no match, the default dial peer is used. The default dial peer is explained later in
this lesson.
Only one condition must be met. The gateway stops searching when a dial-peer match is found.
>2010 Cisco Systems. Inc Introduction to Voice Gateways
Matching Inbound Dial
Example
P .., PSTN
dial-pear voice 1 pots
destination-pattern 20C
forward-digits all
pore i/i/O
Which inbound dial peer
is selected'
(answer-address)
2/1/0
dial peer vo ice 1 pots
destination -pa ctern 2001
port 1/0/0
dial peer vo ice 2 pots
ansv er-addrCBS 100.
port 2/1/0
dial peer vo ice 3 pcta
inc. ming enlled-number 100.
por 2/1/0
dial peer vo ice 4 pota
destination -pattern 100.
ton ard-dig its all
por 2/1/0
The figure illustrates an example of matching inbound dial peers. When the destination
gatewa; receives the call setup request, it looks for the inbound dial peer. The ANI is 1001: the
DNIS is 2001. The incoming called-number command has the first precedence and exists in
dial peer 3 but does not match the DNIS. The answer-address command has the second
precedence, exists in dial peer 2. and matches the ANI. Therefore, dial peer 2 is selected as the
incoming dial peer.
1-58 Implementing Cisco Voice Communications and QoS (CVOICE) v8 0
2010 Cisco Systems, Inc.
mi
Matching Inbound Dial Peers (Cont.)
Guidelines
answer-address
- Useful for matchingthe geographical regionof caller
Callers from a givencountrydirected at the appropriate
language-speaking team
Callers froma specific region directed at the regional
sales staff
incoming called-number
- Recommended for most configurations
- Useful for service selection
Different numbers for sales and technical support
- Differentnumbers for shipping order, tracking, and
cancellation
Usethe answer-address command whenmatchingthe geographical regionof the caller. This
approach is recommended in thesesituations:
Callers from a given country should be directed to theappropriate language-speaking team.
Callers from a specific region should bedirected tothe regional salesstaff.
Usethe incoming called-number command wheneverpossible. Because all types of call setup
messages and signalsalways include the DNISinformation, Ciscorecommends usingthe
incomingcalled-numbercommand for inbound dial peer matching. Inparticular, the
incoming called-number command is useful for serviceselection, such as in thesesituations:
Different numbers are available to reach the sales and technical support.
DitTerent numbers exist for shipping order, tracking, and cancellation.
2010 Cisco Systems. Inc. Introduction to Voice Gateways 1-59
Matching Outbound Dial Peers
This topic describes the rules used bya Cisco Unified Communications gateway tomatch an
outbound dial peer.
Matching Outbound Dial Peers
Criteria required for outbound dial peers:
' destination-pattern
Uses the called number to match the outbound dial peer
Most explicit match rule applies
Whena call setup request arrives on a voice gateway, the gateway uses the incomingdial string
to match the destination pattern in the outbound dial peer. Both dial peersPOTS and VoIP
are considered together for outbound dial peer matching.
Once the outbound dial peer is found, the call setup is progressed lo the next device along the
path. On outbound POTS dial peers, the port command is used to forward the call. On
outbound VoIP dial peers, the session target command is used to forward the call.
1-60 Implementing Cisco Voice Communications and QoS (CVOICE) vS.O >2010 Cisco Systems. Inc
Matching Outbound Dial Peers (Cont.
Example
dial-peer voiCB 1 pots
destination-pattern ,T
port 1/1/0
dial-poor voice 2 pots
destination-pattern 20[0-11.
forward-digits all
port 1/1/0
dial-poor voice 3 pots
destination-pattern 200.
forward-digits all
port 1/1/0
dial-peer voice * pots
destination-pattern 2001
forward-digits all
port 1/1/0
Dialed number 2001 matches dial peer 4.
Dialed number 2002 matcties dial peer 3.
Dialed number 2011 matcties dial peer 2
Dialed number 2111 matches dial peer 1
2001
2O02
2011
2111
The figure illustrates an example of outbound dial peer matching. Four calls are made from the
telephone withextension1001:
The userdials 2001. Thebestmatch is found withdial peer4.
The user dials 2002. Dial peer 1matches that number, but the match isthe least specific.
Dial peer 2matches that number and also atotal of20 numbers (2000 to 2019). Dial peer 3
matches that number and also atotal of 10 numbers (2000 to2009). Dial peer 3yields the
best match.
The user dials 2011. Dial peers I and 2match the number, with the latter offering the
longest match.
The user dials 2111. Only dial peer 1 matches.
i 2010 Cisco Systems. Inc.
Introduction to Voice Gateways 1-61
Default Dial Peer
This topic describes the default dial peer and its usage when no explicit dial peer ean be
matched.
Default Dial Peer
No explicit match for inbound dial peer configured
dial-peer vo ice 1 pots
destination -pa teem 200.
orard-dig its all
port 1/1/0
Dial 2001
1/0/0 1/1/0 -RSTN-
R1
What are the inbound dial peers
when extension 1001 calls 2001?
2001
2002
2/1/0
2003
dial-peer v ics 1 pots
destinatio -pattern 2001
port 1/0/0
Ihe ligure illustrates the situation inwhich thecal! routing works only inonedirection. This
scenario brings up the question about the inbound dial peers selected on both gateways.
1-62 Implementing Cisco Voice Communications and OoS (CVOICE) v8.0
2010 Cisco Systems, Inc
Default Dial Peer (Cont.)
Features
When no explicit inbounddial peer is configured, the
gateway uses the default dial peer:
Also called dial peer 0
Fails to negotiate any nondefault parameters
Inbound VoIP dial peer 0
psfaneters
G.729orG.711 codec
No DTMF relay
IP precedence 0
VAD enabled
NoRSVP support
Fax-rate voice
in&ound POTS dial peer 0
parameters
No applications
No DID
Ifnoinbound peer can bematched by the defined criteria, the gateway resorts tothe default
dial peer. The default dial peer isreferred toasdial peer 0. Default dial peers are used for
inbound matches only. They never match outbound calls. Thecharacteristics of dial peer0
cannot be changed.
Dial peer 0 for inbound VoIPpeers has this configuration:
G.729 and G.711 codecs are supported.
IP precedence is set to 0.
VAD is enabled.
RSVP is not supported.
Fax-rate service is supported.
Dial peer 0 for inboundPOTS peers has this configuration:
No applications
No direct inward dialing
Youcannot changethe default configuration for dial peer 0. Defaultdial peer 0 fails lo
negotiate nondefault capabilities, services, andapplications, suchas DTMF relay or disabled
VAD.
Whenthe default dial peer is matched on an inbound POTS call leg, there is no default IVR
application enabled ontheport. Asa result, the usergetsa dial tone andproceeds to dial digits.
>2010 Cisco Systems. Inc. Introduction to Voice Gateways 1-63
Defauft Dial Peer (Conf.)
Guidelines
Avoid using dial peer 0
Calls with nondefault parameters will fail.
Incoming called-number ensures a match with the
desired parameters.
Many errors are due tocodec, VAD, and DTMF-relay
misconfigurations when dial peer 0 is matched.
Cisco AS5350, AS5400, andAS5850 Universal Gateways
require explicit inbound dial peers matching:
To accept incoming POTS calls as voice calls.
Ifthere is no inbound dial peer match, the call is treated
and processed as a dialup (modem) call.
Avoid using dial peer 0. Having theincoming called-number parameter configured correctly
ensures that thedial peer is alwav s matched with theparameters thatyouwant when placing
outbound calls through a gatewa>, Many problems with calling out through a Cisco IOS
gateway aredueto codec. VAD. and DIMF-relay misconfigurations when dial peer0 is being
matched.
When theCisco AS5350. AS5400. or AS5850 Iiniversal Gateway platforms do notexplicitly
match an incoming dial peer, dial peer 0 is matched and the call is treated as a dial modem call.
This call treatment can result in getting modemtones rather than a dial tone for inbound calls.
The explicitinbound dial peer matching on theseplatforms matches onlythe first three criteria
(incoming called number, answer address, destination pattern) andignores the incoming port
information. Therefore, if the incoming called-number. answer-address, and destination-
pattern commands do not match, the call is treated as a modem call.
1-6d Implemenling Cisco Voice Communications and QoS (CVOICE) v8 0 2010 Cisco Systems. !nc
Direct Inward Dialing
This topic describes DID and explains the differences between one-stage dialing and two-stage
dialing.
Direct Inward Dialing
Two-Stage Dialingand One-Stage Dialing
Two-stage dialing
- When a call arrives on a POTS voice port
POTS voice port is seized inbound
Gateway presents dial tone and collects digits
One-stage dialing
- When a call arrives on a DID-enabled voice port
Gateway does not present a dial tone
Gateway receives the entire called number
Enabled through DID on inbound POTS dial peers
DIDnot supported on FXS/FXO/E&Manalog ports
DIDavailable on FXS-DID and digital circuits
In the early days of traditional telephony, enterprises used two-stage dialing to allowoutside
callers to reach internal telephones. An enterprise PBX was connected to the PSTN over an
analogor digital trunk. Whenthat trunkreceived an inbound call, the centraloffice (CO) switch
seized the voice port. The PBXpresented a dial tone and started collecting digits. The caller
heard a secondary dial tone fromthe enterprise PBXand dialed the number required to reach
the internal telephone.
With the invention of DID in the 1970s, one-stage dialing was made possible. With one-stage
dialing, the callersenter the entirecalledpartynumber, including the numberrequiredto reach
the internal telephone. They do not hear a secondary dial tone. The PSTNCO switch sends the
entire DNIS to the PBX. which forwards the call to the internal telephone.
Voice gateways can use DID if it is enabled on inbound POTS dial peers. It is supported on all
digital voice ports and the analog FXS-DIDports. It is not supported on analog Foreign
Exchange Station (FXS). Foreign ExchangeOffice (FXO), and ear and mouth (E&M) voice
ports.
) 2010 Cisco Systems, Inc Introduction to Voice Gateways
Two-Stage Dialing
This subtopic describes the process of two-stage dialing.
Overview
User dials 555
/ PSTN delivers call, gateway sends dial tone and starts
collecting remaining digits
User hears secondary dial tone and dials 2001
Gateway matches the outbound dial peer and signals the call
2001
dial-pser vc ioe 1 pots
destinatio -pattern 2001
port 1/1/1
The tlgure illustrates die process of two-stage dialing.
This process is depicted b\ the following steps:
1. The user takes the phone off-hook, recch es dial lone, and dials 555.
2. The PSTN receives the digits and delivers to the destination gateway. The trunk line to the
destination gaiewa\ is seized by the adjacent CO switch. The destination gateway presents
the secondary dial tone and starts collecting digits until it can identify an outbound dial
peer. Whether the digits are dialed with irregular intervals by humans or in a regular
fashion by telephonj equipment that sends the preeolleeled digits, dial-peer matching is
done digit-b>-digit. This means that the gateway attempts lo match a dial peer after each
digit is received.
3. The user hears the secondary dial tone and dials 200!.
4. The gatewa> uses the number 2001 to match the outbound dial peer.
The destination gateway signals an incoming call to the telephone on port 1/1/1. and the
telephone rings.
Implementing Cisco Voice Communications and QoS (CVOICE) v8 0 i 2010 Cisco Systems, Inc
Two-Stage Dialing (Cont.)
Digit-by-Digit Collection
Digitsare collected in-band
Outbounddial peer matchingdone on a digit-by-digit basis
Gateway matchesdial peer after receiving each digit
- Routing when a matchis found 2002-2009
Dial 555-2001
dial-peer voiaa 1 pots
de Btination-pattern
2001
port 1/1/1
dial-pear voice 2 pots
destination-pattern 200
port 1/1/0
Ihe figure illustrates a potential issue related totwo-stage dialing. Thedestination gateway
uses an incorrectly designed dial pian. Because the destination gateway collects the dialed
digits in-band. onadigit-by-digit basis, it matches dial peer 2before the complete number has
been received. The call cannot be delivered to its intended recipient.
) 2010 Cisco Systems, Inc.
Introduction to Voice Gateways
Two-Stage Dialing (Cont.)
Wildcard Use
* Most explicit match rule applies
Destination gateway matches dial peer 1 for the outbound
call leg
Dial 555-2001
dial-peer vt ice 1 po
destinatior -patt rn 2001
port 1/1/1
dial-peer v; ice 2 po s
defltinatior -pattern 200.
port 1/1/0
2001
Tosolve the problem of theincorrect Kdesigned dial plan andtwo-stage dialing, youshould
use a wildcard inthedestination pattern of thedial peer2. 'fhis causes thedestination gateway
to wait for four digits before making the call-routing decision. With this solution, the call can
be deli\ ered to its intended recipient.
Implementing Cisco Voice Communications and QoS (CVOICE) v8 0 12010 Cisco Systems, Inc.
Two-Stage Dialing (Cont.)
Gateway-by-Gateway Processing
ooo
Dial 55 4 2001
dial-peer voice 1 pots
destination-pattern 55
port 1/0/1
...Irregular interval a-
0 0 0 0 0 0-0
..IicvguldE IntarVila
*>2> 0 0 0 0 0
dial-peer voice 1 pots,
destination-pattern A
port 1/0/1
...Irregular interval*.. R3
0 0"00
<C
dial-peer voice 1 pots
dentinalion-pattern 2001
port 1/0/1
1/0/1
2001
The figure illustrates the process of two-stage dialing ona gateway-by-gateway basis:
1. The usertakesthephone off-hook andreceives thedial tonefrom local gateway Rl.
2. The user dials 55 by enteringthe digits in irregular intervals.
3. Rl collects thetwodigits (55), matches theoutbound dial peer, andseizes thetrunk line
1/0/1 toward R2.
4. R2 presents the second dial tone.
5. The user hears the secondary dial tone and dials 4.
6. R2 matches the outbound dial peer. R2 seizes the trunk line 1/0/1 to R3.
7. R3 presents the third dial tone.
8. "Iheuser hears the third dial tone and dials 2001 by entering the digits in irregular intervals.
9. R3 keepscollecting digits until the number2001 has beenreceived. That numbermatches
the outbound dial peer.
10. R3signalsan incoming call to the voiceport 1/0/1. The recipientphonerings.
2010 Cisco Systems, Inc Introduction to Voice Gateways 1-69
Two-Stage Dialing (Cont.)
Variable-Length Numbers
The gateway waits for remaining digits.
The default interdigit timeout is 10 seconds.
The interdigit timeout can be modified using the timeouts
interdigit command in voice-port configuration mode.
Dial 555 2001
PSTN
dial-peer voice 1 pots
Incoming called-number
I
dial-peer voice 10 pots
destination-pattern .T
port 1/0/0
0l" 0^0 00 0
Thereare situations in which expected dial stringsdo not havea set numberof digits. Insuch
cases, it is usually best to use variable-lengthdial peers by configuring the T terminator on the
dial-peer destination-pattern command. When the timer (T) character is included at the end
of thedestination pattern, therouter collects dialed digits until theinterdigit timer expires (10
seconds. b\ default) or until the termination character (the default is #) is dialed.
1-70 Implementing Cisco Voice Communications and QoS (CVOICE) v8 0 J2010Cisco Systems. Inc
One-Stage Dialing
This subtopic explains DID and how one-stage dialing differs from two-stage dialing.
One-Stage Dialing
DID Overview
User dials 555-2001
PSTN sends the entire called number in one call setup
message to destination gateway (ifdigital circuit)
Destination gateway matches the outbound dial peer and
signals the call
Dial 555-2001
dial-pear voice 1 pots
incoming called-number
direct-inward-dial
dial-peer voice 2 pots
destination-pattern 2001
port 1/1/1
One-stage dialingis enabledwhen the DIDfeature is configured on the inboundPOTS dial
peer of the destination voicegateway. With one-stage dialing,the destination gatewaydoes not
present thedial tone. Therefore, thecallerenters theentirenumber without hearing any
secondary dial tone. The PSTN can deliver the callednumberto the destination gateway intwo
ways:
Over digital interfaces: The COswitchsends a call setupmessagethat containstheentire
DNIS. The DNIS is mapped to the outbound dial peer. The gateway forwards the call
direct!} to the configured destination.
Over analog interfaces (FXS-DID): The digits are automatically signaled to the
destination gateway by the switch, without the requirement of the secondary dial tone.
The figure illustrates one-stage dialing:
1. Ihe user takes the phone off-hook, receives the dial tone, and dials 555-2001.
2. The PSTN delivers the call to the destination gateway. The destination gateway receives
the last four digits of the called number in one call setup message or over an analog FXS-
DID trunk.
3. The destination gateway matches the outbound dial peer and signals an incoming call to
port 1/1/1. The recipient phone rings.
i 2010 Cisco Systems, Inc. Introduction to Voice Gateways
One-Stage Dialing (Cont)
Matching with Complete Called Number
With DIDconfigured in the inbound POTS dial peer, the
router uses the complete called number to match the
outbound dial peer n
K 2002 2009
Dial 555-2001
-3&
PSTN
(-<$?
dial-peer v nice 1 pota
incoming e illed-number .
direct-inw ird-dial
dial-peer v >ice 2 pots
destinatjo i-pattern 2001
port 1/1/1
dial-peer v iice 3 pots
destinatio -pattern 200
port 1/1/0
Ihe figure illustrates how DID manages the problem of incorrectly designed dial plans. The
destination gatewa> is connected to the PSTN o\era digital trunk and has the DID feature
enabled on the inbound POT'Sdial peer. Because the PS'I'N has consumed the tirst digits from
the called number, the destination gateway receives the lasl four digits in one call setup
message. 1 he destination gateway selects dial peer 2 as the best match. The call reaches the
intended recipient.
1-72 Implementing Cisco Voice Communications and QoS (CVOICE) v8 0 2010 Cisco Systems, Inc
One-Stage Dialing (Cont)
Gateway-by-Gateway Processing
dial-peer voica 1 pots
destination-pattern 55.
port 1/0/1:0
The figure illustrates theprocess of one-stage dialing on a gateway-by-gateway basis:
1. The user takes the phone off-hook and receives the dial tone fromthe local gateway Rl.
2. The user dials 554-2001 by entering the digits in irregular intervals.
3. Rl collects the number, matches the outbound dial peer, and finds tliat the outgoing call leg
goes over the digital trunk 1/0/1:0. Because the outgoingvoiceport is a digital circuit, Rl
sends the entire called number in one call setup message. Rl does not forward the first two
digits(55) becausethey are explicitly matchedby the destination patternand are consumed
by default (forward-digits all is not configured).
4. R2 receives the called number (4-2001), matches the outbound dial peer I, and forwards
the called number (2001) in a single call setup message over the outgoing digital trunk, to
R3. The first digit (4) is consumed throughtheexplicit matchby the destination pattern.
5. R3 receives the called number (2001) in a single message and matches the outbound dial
peer.
6. R3 signals an incoming call to port 1/0/1 and the recipient phone rings.
Note Ifanalog trunks were used in this example, the digits would be sent sequentially. The caller
would not hear any secondary or tertiary dial tones.
) 2010 Cisco Systems. Inc Introduction to Voice Gateways 1-73
One-Stage Dialing (Conl
Configuring DID
PSTN
String Description
dial-peer v >ice 1 pots
incoming c illed- umber .
direct-inw td-dial
dial-peer v ice 1 pots
deatinatio -pattern .T
port 1/0/0
Matches any number with at least one digit. Useful for outbound
(destination-pattern) and especially Inbound matching (incoming called-
number).
Matches any number with at least one digit. The timer character matches
either the interdigit timeout or the termination character (#). Useful for
outbound matching (destination-pattern).
I he DID feature is configured using the direct-inward-dial command in the incoming dial
peer. The inbound dial peer can be matched in various ways. The recommended method to
match inbound dial peers is to use the incoming called-number command. The figure displays
two most common]} found DID configurations, while the method using the incoming called-
number command is preferred. Note that the Time character (T) is not used in the incoming
called-number command, although it is used in destination patterns.
The following is the explanation of the two strings:
The string . (single period) matches any number with at least one digit. It is useful for
outbound matching using the destination-pattern command, and especially for inbound
matching \\ ith the incoming called-number command.
The string .1 (single period followed by '[') matches any number with at least one digit. The
timer character matches either the interdigit timeout or the termination character (#). The
string is useful for outbound matching using the destination-pattern command.
1-74 Implementing Cisco Voice Communications and QoS (CVOICE) vB.O )2010 Cisco Systems, Inc.
Summary
This lopic summarizes the key points that were discussed in this lesson.
Summary
The most common dial peer types are VoIPand POTS.
In call routing, each gateway identifies the inbound and
outbound dial peer.
POTS dial peers facilitate calling over POTS ports.
Telephone numbersare matchedusinga sequence of
standard and special characters.
The matching orderfor inbound dial peer is: incoming dialed-
number, answer-address, destination-pattern, and port.
The outbounddial peer is found by using the longest match
of the destination-pattern command.
Ifno explicit inbound dial peer is identified, the default peer 0
is used to set the parameters to predefined values.
DID enables the matching of the entire number instead of
digit-by-digit matching.
>2010 Cisco Systems, Inc.
Introduction to Voice Gateways
Implementing Cisco Voice Communications and QoS (CVOICE) v8.0 2010 Cisco Systems, Inc
Lesson 3
Configuring Gateway Voice
Ports
Overview
Connecting voice devices to a networkinfrastructure requiresan in-depth understanding of the
signalingand eharactcri stiesthat are specificto eachtype of interface. Digital trunks arc used
to connectto the publicswitched telephone network (PSTN), to a PBX, or to the WAN, andare
widelyavailable worldwide. This lessonmapsout analoganddigital interfaces; examines
analog voice ports, analog signaling, and configuration parameters for analog voice ports; and
explains how to implement and verify digital trunks.
Objectives
Upon completing this lesson, you will be able to describe how to connect a gateway to
traditional voice circuits using analog and digital interfaces. This ability includes being able lo
meet these objectives:
Position the various types of analog and digital voice port interfaces in enterprise scenarios
Describe the various types of analog voice ports and their characteristics
Configure the analog voice ports
List the types of digital voice ports and describe their major characteristics
Describe ISDN and ISDN signaling
Configure Tl and El trunks to the PSTN
Configure ISDN PRI and BRI trunks
Tune various timers and parameters on analog and digital voice ports
Explain and configure echo cancellation
Verify analog and digital voice port configuration
Voice Ports Overview
This topic describes the ditTerent voice ports available on Cisco UnifiedCommunications
gateways and their deployment.
Voice Port Overview
Connecting End User Equipment
+*L
-y
^
>*
-*y
**
*>A
-^
^
FXS
(Analog)
Tl orEtor
'SON (Digrtali
Voice Port Vcuce Fort
FXS
(Ariatot
\ FXO
(Analog)
Voice ports on gatewavs emulate physical telephony switch connections, so that voice calls and
their associated signaling can be transformed between a packet network and a circuit-switched
network. Io make a voice call, certain information, such as the telephone on-hook status, the
availability of the line, and whether an ineoming eall is trying to reach a device, must be passed
between the end telephony devices. This information is referred lo as signaling, and to process
it correctly, the directly connected devices must use the same type of signaling.
Circuit-switched signaling is accomplished by installing appropriate voice hardware in the
router or access server and by configuring (he voice ports that connect lo telephony devices or
to the circuit-switched network.
The figure shows how traditional end-user equipment is commonly connected lo the PSTN.
Analog telephones are connected to the analog Foreign Exchange Station (FXS) interface
installed on the gateway . The gateway can then provide PSTN connectivity via either digital
circuits (II. El. and ISDN), or an analog Foreign Exchange Office (FXO) interface. Digital
circuits support man; connections over the same port. Analog ports support only one call per
port. The FXO interface can be deployed in tandem with an FXS-direct inward dialing (DID)
port, which would increase the number of simultaneous connections to two. In that case, the
FXS-DID port prov ides inbound connectivity while the FXO supports outbound calls.
Implementing Cisco Voice Communications and QoS (CVOICE) v8.0 ) 2010 Cisco Systems. Inc
This subtopic explains how PBXs are connected tothe PSTN.
Voice Port Overview (Cont.)
PBX Trunks
T1. E1,or ISDN
(Digital)
Voice Port Voice Port
FXO (Analog) *
additional FXS-DID
possible
Voice Port
T1.E1.W ISDN ^
(Digital) '
PSTN
PSTN
The figure shows the typical PBX connections. Most commonly, digital circuits are used to
carry many simultaneous calls over one voice port. Digital signaling interfaces include Tl, El.
and ISDN. Digital circuits can beenabled for QSignaling (QSIG) toexchange an extended set
ofprivate PBX features. Other connectivity options include the analog voice ports: FXO and
ear and mouth (E&M). It is important toknow which signaling method thatthe telephony side
of the connection isusing, and tomatch the router configuration and voice interface hardware
to that signaling method.
>2010 Cisco Systems. Inc.
Introduction to Voice Gateways
This subtopic describes Centralized Automated Message Accounting (CAMA).
Voice Port Overview (Cont.)
Centralized Automated Message Accounting Trunks
1
t-
y
Tl PRI lor Standard Cais
PSTN
CAMA Trunk
for EmergerKy
Calls
J*1
Ci-'.i~ '~*^H Public Safety
MU mat Answering Point
Centralized Automated Message Accounting (CAMA) available in Morth America only
ACAMA trunk isa special analog trunk type that is now mainly used for emergency call
services. Use CAMA ports toconnect toa public safely answering point (PSAP) for emergency
calls. ACAMA trunk canonly send outbound Automatic Number Identification (ANI)
information (callingnumber), which is required by the local PSAP. CAMAis available in
North America only.
Ihe calling number is needed at the PSAP for two reasons:
The catling number is used to reference a database to find the exact location of the caller
and an; extra information about the caller.
The calling number is used as a callback number in case that the call is disconnected.
The figure shows a voice gateway connecting an enterprise lo an Enhanced911 (E911)
network. Callsto emergency services are routed basedon the callingnumberrather thanthe
called number. The calling number is checked against a database of emergency service
providers that cross-references the service prov iders for the caller location. When this
information is determined, the call is thenroutedto the proper PSAP. whichdispatches serv ices
to the caller location.
Implementing Cisco Voice Communications and QoS (CVOICE) v8 0 2010 Cisco Systems. Inc
Voice Trunk Example
Thissubtopic provides anoverview of howtrunks are used inanenterprise environment.
Voice Trunk Example
Chicago
"CAS = Channel assodated signaling
"CCS = Common channel signaling
A voice trunk (also called tie-line) is an analog or digital voice circuit that connects a gateway
to the PS'I'N. PBX. or another gateway. Lines connecting end-user devices are not called
trunks.
Trunk ports can be analog or digital and use various signaling protocols. Signaling can be done
using either the voice channel (in-band) or an extra dedicated channel (out-of-band). The
available features depend on the signaling protocol in use between the devices.
The diagram in the figure illustrates various possible trunk connections:
If a subscriber at the London site places a call to the PSTN, the gateway uses one voice
channel of the El R2 trunk interface.
If a subscriber of the legacy PBX system at the Chicago site needs to place a call to a
subscriber with an IP phone that is connected to the Chicago gateway, the call will route
via one channel of the E&M trunk between the legacy PBX and the gateway.
The Denver and the Chicago sites are connected to San Jose via QSIG to build up a
common private numbering plan between those sites. Because the Cisco IP telephony
introduction in Denver has not started yet, the QSIG trunk is established directly between
the San Jose gateway and the Denver legacy PBX.
2010 Cisco Systems, Inc. Introduction to Voice Gateways 1-81
Installing Voice Ports
This subtopic describes how voice ports are installed in Cisco router chassis.
^tailing Voice Ports
Cisco 2921/2951 Series router rear panel
"fhis figure illustrates the rear panel of ihe Cisco 2921/2951 Series router, a diagram of a voice
network module and of a voice interface card. The router includes two slots for Service
Modules and four slots for Enhanced High Speed WAN Interface Cards (EHWIC). The number
of supported modules and interface cards varies depending on the router platform. The slots are
typically numbered from right to left (when viewed from the rear) and from bottom to lop.
This figure depicts how the identifier of the voice port in the router configuration relates to the
physical voice port position in the router. In this example, the voice-port 2/0/1 command
indicates these parameters:
Voice port is installed in service module or network module inserted in module slot 2
The port interface card is installed in interface card slot 0 of that module.
The given port is the second interface from the right.
1-82 Implementing Cisco VoiceCommunications and QoS (CVOICE] v8.0
12010 Cisco Systems, Inc
>
Analog Voice Ports
fhis topic describes thetypes and characteristics of analog voice ports.
Analog Voice Ports
FXS
FXS: Connects directly to end-user equipment such as
telephones, tax machines, or modems
FXO iFXO
^
PSTN
FXO: Used for trunk, or tie-line, connections to a PSTN CO or to
a PBX that does not support E&Msignaling
, E&M !?fe
E&M: Used for trunk circuits to connect telephone switches to
each other
Analog voice port interfaces connect routers in packet-based networks to analog two-wire or
four-wire analog circuits in telephony networks. There are three types of analog voice
interfaces that Cisco gateways support:
FXS interfaces: An FXS interface connects the router or access server to end-user
equipment such as telephones, fax machines, or modems. The FXS interface supplies ring,
voltage, and dial tone to the station and includes an RJ-11 connector for basic telephone
equipment, key sets, and PBXs.
FXO Interfaces: An FXO interface is used for trunk connections to a PSTN central office
(CO) or to a PBX lhat does not support E&M signaling. This interface is of value for off-
premises station applications. A standard RJ-11 modular telephone cable connects the FXO
voice interface card to the PS'I'Nor PBX through a telephone wall outlet.
K&M Interfaces: Trunk circuits connect telephone switches to each other. They do not
connect end-user equipment to the network. The most common form of analog trunk circuit
is the E&M interface, which uses special signaling paths that arc separate from the trunk
audio path to convey information about the calls. The signaling paths are known as the
E-lead and the M-lead. E&M connections from routers to telephone switches or to PBXs
are preferable to FXS and FXO connections because E&M provides better answer and
disconnect supervision.
The name E&M derives from the names of the two signaling leads, car and mouth, bul the
name "recEive and transMit" is also common.
Like a serial port, an E&M interface has a DTE or DCE type of reference. In the
telecommunications world, the trunking side is like the DCF and is usually associated with CO
functionality. The router acts as this side of the interface. The other side is referred to as the
signaling side, like a DTE. and is usually a device such as a PBX.
>2010 Cisco Systems, Inc. Introduction to Voice Gateways 1-83
Analog Signaling Overview
This subtopic explains the analog signaling methods.
Analog Signaling Overview
* Supervisory signaling forFXO/FXS
Loop-start
Ground-start
Address signaling
Pulse
Dual tone multifrequency
Informational signaling
Call progress tones
Voice ports on routers and access ->er\ers physically connect the router or access server to
telephony devices such as telephones, fax machines. PBXs. and PSTN CO switches. These
devices may use any of several types of signaling inlerfaces to generate information about on-
hook status, ringing, and line seizure.
Signaling techniques can be placed into one of three categories:
Supervisory: Involves the detection of changes to the status of a loop or trunk. Once these
changes are detected, the supervisory circuit generates a predetermined response. FXO and
FXS interfaces indicate on- or off-hook status and the seizure of telephone lines by one of
two access-signaling methods: loop-start or ground-start.
Addressing: Involves passing dialed digits (pulsed or tone) lo a PBX or CO. These dialed
digits provide the switch with a connection path to another phone or customer premises
equipment (CPF).
Informational: Provides audible tones, which indicate certain conditions such as an
ineoming call or a busy phone, to ihe user.
iplementmg Cisco Voice Communicationsand QoS (CVOICE) v8.0
2010 Cisco Systems. Inc.
mt
<*
Analog Signaling
This subtopic compares the supervisory signaling on the analog voice ports.
Analog Signaling
Supervisory Signaling Compar son
^M
FXS / FXO
E&M
Wiring
RJ-11,two voice wires, 8-pin modular, up to S wires in
used for both total: 2 or 4 voice wires {half or
supervisory signaling fullduplex audio path) + 2 half or
and voice modulation full duplex wires for supervisory
signelingfM-iead, E-lead) + 2 for
voice modulation
Types of Loop-start (more Type I, II, III, IV. V, SSDC5
supervisory
common), ground-start
signaling
Supervisory Differences in voltage Differences in vottage and
signaling and grounding on the tip grounding on the M-tead and E-
differences and ring lines lead
Access signaling N/A
Immediate-start wink-start, delay-
start followed by pulse or DTMF
rI*he figure summarizes the major wiring and supervisory signaling differences between the
FXS and FXO. and the E&M voice ports.
TheFXS and FXO voice ports use standard RJ-11 modular telephone cable and use two wires
to connect to the adjacent telephony device.
The phy sical E&M interface isan eight-pin modular connector that connects toPBX trunk
lines, which are classified as either two- or four-wire. This refers to whether the audio path is
full duplex onone pair of wires (two-wire) orontwo pair of wires (four-wire). Aconnection
may be called a four-wire E&M circuit even though it actually has six toeight physical wires.
The equipment and the type ofservice from the CO determine the type ofaccess signaling on
FXS and FXO ports. Standard home telephone lines use the more common loop-start, but
business telephones can use ground-start lines instead. Both signaling types differ involtage
levels and the grounding of the tipand ring lines. Ground-start signaling reduces glare, a
condition inwhichbothends attemptto seizea trunk at the sametime. Therefore, it is better
suited for lines between PBXs and in businesses with substantial call volume.
The E&M supervisory signaling isclassified as type I, II, III, IV, V, or Signaling System Direct
Current No. 5 (SSDC5). Thesetypes differintheconnections of E&M leads to battery and
ground. E&M interfaces can indicate on- oroff-hook status and telephone line seizure by using
any of the following three types of access signaling:
Immediate-start: Immediate-start is the simplestmethodof F.&M access signaling. The
callingside seizesthe line by goingoff-hookon its E-lead and sends dual tone
multifrequency (DTMF) digits, following a short, fixed-length pause.
) 2010 Cisco Systems, Inc.
Introduction lo Voice Gateways
Wink-start: Wink-start is the most commonly used method for E&M access signaling, and
is the default for E&M voice ports. Wink-start minimizes glare. The calling side seizes Inc
line by going off-hook onits E-lcad. then waits for a short temporary off-hook pulse, or
"w ink." from the other end onits M-lead before sending address information. The switch
interprets the pulse as an indication lo proceed and then sends the D'I'MF digits.
Delay-dial: In delay-dial signaling. Ihe calling station seizes the line by going off-hook on
its F-lead. Altera timed interval, the callingside looksat the statusof the calledside. If the
called side ison-hook. the calling side starts sending information as DTMF digits. Ifthe
called sideis off-hook, thecalling sidewaits until thecalled sidegoeson-hook andthen
starts sending address information.
Implementing Cisco Voice Communications and QoS (CVOICE) v8 0 2010 Cisco Systems, Inc
Address SignalingDTMF
This subtopic covers analog address signaling.
Address SignalingDTMF
697 >
770 >
852
941 >
1209 1336 1447
I I I
v *
nil
mmm
Frequency Tone Matrix (Hz]
The dialing phase allows the subscriber to enter aphone number (address) ofatelephone at
another location, fhe customer enters this number witha touch-tone phone that generates tones.
Telephones use two different types ofaddress signaling to notify the telephone company where
a subscriber is catling:
Legacypulse dialing
DTMF dialing
These pulses or tones arc transmitted to the CO switch across atwo-wire twisted-pair cable (tip
and ring lines).
Current analog circuits use DTMF tones toindicate the destination address. DTMF assigns a
specific frequency (consisting oftwo separate tones) to each key on the touch-tone telephone
dial pad. The combination ofthese two tones notifies the receiving subscriber ofthe digits
dialed.
The table inthe figure shows the frequency tones that arc generated by DTMF dialing.
i 2010 Cisco Systems, Inc
Introduction to Voice Gateways J-87
Call Progress Tones
fhis subtopic covers informational signaling.
Call Progress Tones
North American call progress tones example:
Frequency (Hz) |Ori
Continuous Continuous
0.5 0.5
2 4
1 3
0.2 0.3
03 0.2
0.1 0.1
Dial 350+440
Busy 480+620
Ringback, normal 440 +480
Ringback, PBX 440 +480
Congestion (toll) 480 +620
Reorder (local) 480 + 620
Receiveroff-hook 1400 + 2060 +
2450 + 2600
No such number 200-400
Continuous, 1- Continuous, 1-Hz
Hz frequency frequency
modulation modulation
1he FXS port prov ides informational signaling using call progress tones. These call progress
tones are audibleand are usedby the FXS-connected dev ice lo indicate the statusof calls. The
progress tones listed in die table are for North American phone systems. The phone systems in
other countries use adifferent set ofprogress tones. The call progress tones are as follows:
Dial tone: Indicates that the telephone company is ready to receive digits from the user
telephone
Busy tone: Indicates that a call cannot becompleted because the telephone at the remote
end is alreadv in use
Ringback (normal or PBX) tone: Indicates that the telephone company isattempting to
complete a call on behalf of a subscriber
Congestion progress tone: Used between switches toindicate that congestion in the long
distance telephone network currently prevents a telephone call from being progressed
Reorder tone: Indicates that all the local telephone circuits are busy, and thus prevents a
telephone call frombeing processed
Receiveroff-hook tone: The loud ringing that indicates thai the receiver of a phone is left
off-hook for an extended period of time
No such number tone: Indicates that the number dialed cannot be found in the routing
table of a switch
-88 Implementing CiscoVoice Communications and QoS (CVOICE) v8.0
2010 Cisco Systems. Inc
Configuring Analog Voice Ports
This topic describes the configuration ofanalog voice ports on Cisco Unified Communications
gateways.
Configuration Overview
Configuration tasks:
FXS
- CP tones, signaling{loop-start, ground-start)
FXO, FXS-DID
- Signaling (loop-start, ground-start)
E&M (Ear and Mouth)
- Operation (two-wire, four-wire)
Type (1,2.3,5)
- Signaling (immediate-start, wink-start, delay-start)
Centralized Automated Message Accounting
- Signaling (CAMA)
- ANI mapping
There are similarities and differences in the configuration of analog ports.
"Ihe call progress tones and ringcadences areconfigured ontheFXS ports because thephones
are attached to them.
The FXS. FXO. andFXS-DID ports share thesame signaling options: loop-start andground-
start.
The E&M voice ports define theoperation mode (two-orfour-wire), thetype (I, 2. 3. 5),and
the signaling method(immediate-start, wink-start, delay-start)
CAMA trunks areeonfigured for CAMA signaling andwith an ANI mapping definition.
>2010 Cisco Systems, Inc.
Introduction to Voice Gateways
Configuring FXS Voice Ports
This subtopic explains theconfiguration of FXS ports.
Configuring FXS Voice Ports
I
/
^
voice-port 0/2/0
signal loopaCart
cpCone GB
ring cadence patternOl
no ahutdown
The figure shows how 10 configure a voicegalewav to routecalls to a traditional telephone
connected to an FXS port in Great Britain. The port is configured withthesesettings:
FXS voice port position: module II. voice interface card (VIC) slot 2. andvoice port 0.
Supervisor} signaling: loop-start
Call progress tones: specific lo Great Britain
Ring cadenee: pattern 1
The pattern.V.Vkev wordprovides preset ringcadeneepatterns for use on any platform, fhe
define kevword allows vouto createa custom ringcadence. On the router, onlyone or two
pairs of digits can be entered under the define keyword.
Finally. thevoice port canbedisabled using theshutdowncommand or activated using the no
shutdown command.
Implementing Cisco Voice Communications and QoS (CVOICE) v8 0
2010Cisco Systems. Inc
Configuring FXO Voice Ports
This subtopic explains how to configure an FXO port for outbound and inbound private line,
automatic ringdown (PLAR) connections.
Configuring FXO Voice Ports
FXO emulates end-user equipment connectedtothe COswitch.
DIDnot supported on FXO
DNIS not received from CO switch
Incoming callsdirectedto internal numberusingprivateline, automatic
ringdown (PLAR)
voics-port 0/0/0
signal loopatart
connection plar opx 4001
dial-peer voice SO pots
deatination-pattera 9T
port 0/O/0
Iftheoffice has only FXO trunks, thedirect inward dialing capability isnot available. 'Ihe
DialedNumberIdentification Service(DNIS) is signaled for outbound calls only, while
inbound calls carry only theANI. This scenario iscommon fora small standalone office or a
small branch of a bigger network that hasonly a few business tines from the local CO.
Because DID is not supported on FXO trunks, thecallers musteitherbe presented a secondary-
dial tone, or the inbound calls must be autotcrminated on a predetermined destination, most
often the autoattendantor the receptionist extension. This can be achieved withan optional
PI .AR configuration, using the connection plaropx command onthe voice port eonnecting to
the PSTN. The particular destination extension isassociated with thetrunk, and all calls
arriv ing onthat trunk areswitched as if they had dialed theconfigured extension. In this
example, all inbound callsareforwarded tothereceptionist extension 4001.
2010 Cisco Systems. Inc.
Introduction to Voice Gateways 1-91
Configuring FXS-DID Voice Ports
This subtopic describes the configuration of FXS-DID ports.
Configuring FXS-DiD Voice Ports
501-1001 ^/
501-1002
Vo FXQ^utoQ^^tE^
voice-port 0/0/0
fligna1 did wink-start
voice-port 0/1/0
signal grounds tart
dial-peer voice 1 pota
incoming called-number
direct-iu-atd-dial
dial-peer voice 2 pots
destination-pattern S|2-81
port 0/1/0
I'v picallv. FXS ports connedtoanalog phones, butsome carriers otTer FXS trunks that support
DID. An FXS DID trunk can only receive inbound calls, thus a combination of FXS DID and
FXO ports is required for inbound andoutbound calls. FXS-DID supports the same supervisory
signaling asregular FXS and FXO ports: loop-start and ground-start, with ground-start being
the preferred method.
Thediagram inthe figure showsan analogtrunk usingan FXSDID trunk for inbound calls and
a standard FXO trunk for outbound calls.
1-92 Implementing Cisco Voice Communicationsand QoS (CVOICE)
2010 Cisco Systems. Inc
Configuring E&M Voice Ports
This topic explains the configuration of E&M voice ports.
Configuring E&M Voice Ports
/L
\
Irfcoinfl DNIS
Outbouno DNIS
voice-port 1/1/1
aignal nink-atart
operation 2-wlre
type 1
do shutdown
exit
dial-peer voice 1 pots
iacoming called-number
direct-imcard-dial
dial-peer voice 2 pota
destination-pattern 1...
forward-digito all
port 1/1/1
The key configuration parameters of anE&M analog trunk areas follows:
The F&M signaling type
Two- or four-wire operation
The F&M type
The figure shows anexample of anE&M portthat provides connectivity toa PBX. In this
example, the voice gateway connects via an E&M trunk toa PBX toallow the IP phones tocall
the POTSphones using a four-digit extension.
"fhe voice port is configuredwith these settings:
Signaling: wink-start
Operation mode: two-wire
E&M signaling: Type I
Both sides of the trunk need to have a matching configuration, fhis example configuration
showsan F&Mtrunkusingwink-start signaling, E&M Type I, and two-wire operation.
) 2010 Cisco Systems, Inc
Introduction to Voice Gateways
Configuring CAMA Voice Ports
This subtopic describes CAMA trunkconfiguration.
Configuring CAMA Voice Ports
m
4.
RTP aream
Called Party
SIP Early Media was originally defined in RFC 3960 as a facility for PSTNinterworking. Early-
Media allows the sending of media from the called party or an application server to the caller.
even before the call is accepted. The most common reasons for using Early Media include the
following:
The called device might want to establish an Earty Media RTP path lo reduce the effects of
audio cut-throughdelay (clipping) for calls experiencing long signaling delays or to
provide a network-based voice message to the caller.
The calling device might want to establish an Early Media RTP path to access a dual tone
multifrequency (DTMF) or voice-driven interactive voice response (IVR) system.
Cisco gateways support Early Media for both Early Offer and Delayed Offer calls.
If no media is available for streaming at this early stage, the early media channels carry silence.
Voice activity detection (VAD). if negotiated, would in that case prevent bandwidth
consumption by dropping silence packets.
With Early Offer (default on Cisco gateways), the SDP offer is carried in the INVITE message.
In Early Media with Delayed Offer, both messages can transport the initial SDP offer: 183
Session Progress response or 180 Ringing response. 183 Session Progress is stipulated by the
IETF and is more common. The 183 Session Progress response indicates that infonnation about
the call state is present in the message body media information. The SDP media response is
exchanged in an additional pre-ACK message, after which the endpoints can establish the RTP
streams.
i 2010 Cisco Systems, Inc. VoIP Call Legs 2-79
Early Media (Cont.:
180 Ringing Option
Calling Party
SIP Gateway
JETF draft allows
olher-than-183
messages to cariy
SDP Some
implementations use
180 Cisco gateways
accept the 180
methcd by default (in
addition to 1831 This
method can he
disabled on Cisco
galeways
100 Trying
180 Ringing (SDP Media Offer)
Pre-ACK (SDP Media Response)
RTP Stream
200OK
ACK
SIP Gateway Called Party
IP
To facilitate Earlv Media v\ ith Delayed Offer, the IETEdraft allows the use of other messages
than the 183 Session Progress response. Some implementations use the 180 Ringing response
to send the initial SDP media offer. The 180 Ringing message is a provisional or informational
response that is used to indicate that the INVI IT' message has been received by the user agent
and that alerting is taking place. Cisco gateways support both 180 and 183 methods to negotiate
Early Media.
Cisco gatewav s. bv default, process a 180 Ringing response with SDP in the same manner as a
183 Session Progress response: thai is. ihe SDP is assumed to be an indication that the far end
would send carlv media. This behav ior can be changed so that a gateway ignores the presence
or absence of SDP in 180 messages, and as a result. Ireat all 180 messages in a uniform manner.
Implementing Cisco Voice Communications and QoS (CVOICE) v8 i 2010 Cisco Systems, Inc
a^tf
Configuring Basic SIP
Thistopic describes howloconfigure basicSIPfunctionality on voice gateways.
Basic SIP Configuration Overview
Configure SIP User Agent (UA):
- Authentication
- SIP servers
Configure SIP-related dial peer parameters:
- Session protocol
- Session target
A SIPconfiguration consists of twoparts: the SIP UAand the VoIPdial peersthat select SIPas
the session protocol.
The basic UAC configuration includes the following:
Authentication parameters: username and password
SIP servers (registrar and proxy)
SIP dial peers have these two basic parameters that are specific to SIP:
Session protocol
Session target
) 2010 Cisco Systems, inc. VoIP Call Legs 2-81
User Agent Configuration
This subtopic explains the basic configurationof a SIP user agent.
2-82
User Agent Configurate
route r(config)#
sip-ua
Enters SIP UA configuration mode
router(config-sip-ua)#
registrar { dhcp [index] registrar-address [.-port]
* Register E 164 numbers on behalf of analog phones (FXS), IP phone
virtual voice ports (EFXS), and SCCP phones with an external SIP
proxy or SIP registrar
Up to six configurable registrars, can be obtained via DHCP
router (e on fig -sip-ua) # _____^
authentication username username password [0)7] password I
Enables SIP digest authentication
Only one username can be configured globally in SIPUA
To configure SIP user agent parameters, enter SIP UA conliguralion mode using the sip-ua
command.
The registrar command enables the gatewav to register L.I 64 numbers on behalf of analog
telephone voice ports (foreign Exchange Station [FXS]), IP phone virtual voice ports
(enhanced FXS [FFXS]). and Skinny Client Control Protocol (SCCP) phones with an external
SiPproxv or SIP registrar. It defines the IP address of the registrar server.
1 le full command svntax is registrar [dhcp | \registrar-index] registrar-server-
address\:port]\ [expires seconds] [random-contact] [refresh-ratio ratio-percentage J [scheme
{sip | sips!] [tcp] [type] [secondary]
fhe registrar address can be obtained via DHCP, ihe registrar-index option allows the
configuration of up to six registrars that can be used concurrently for redundancy and load-
balancing purposes. Further options allow the use of Secure SIP, TCP transport, and the
definition of a registrar pair (primary and secondary) instead of multiple indexed servers.
To enable useniamc-based message digest authentication ofthe user agent, configure the
authentication username command in UA configuration mode. This command delines the
username and password that the gateway uses to authenticate on the registrar server.
implementing Cisco Voice Communications and QoS (CVOICE) v8 0 2010 Cisco Systems, Inc
Dial Peer Configuration
This subtopic describes the SIP-related parameters in basic SIP configuration.
Dial Peer Configuration
router(config-sip-ua)#
sip-server {dns:boat-name \ ipv4:ipv4-address |
ipv6:[ipv6-addrass][:port-num]}
Defines a SIP server to be referenced in dial peers
router(config-dial-peer)#
session target sip-server
References the configured SIP server instead of its IP address
router(config-dial-peer)#
session protocol sipv2
Defines SIPv2 as session protocol
The sip-server command is a time-saving method. If you use this command, you can also use
the session target sip-server command on each dial peer instead of repeatedly entering the SIP
server interface address for each dial peer. Configuring a SIP server as a session target is useful
if the gateway acts as a UAC and makes calls over a SIP proxy. Multiple dial peers can
reference the same proxy server.
The session protocol sip\2 command enables a dial peer to use SIP version 2 as the signaling
protocol for a particular dial peer. The default value is H.323.
i 2010 Cisco Systems, Inc. VoIP Call Legs 2-83
Basic SIP Configuration Example
This subtopic presents a basic configurationexample of SIP functionalityon a voice gateway,
Cisco Untied
Communications Manager
10 1115
192 168 1 100 ,
jthentication username JDoa password
registrar 10.1.1.15
sip-seiver 10.1.1.15
dial-peer voice 2001 voip
destination-pattern 2...
session protocol sipv2
I
dial-peer voice 2002 voip
destination-pattern 9T
session target ipv4:192.16B.1.100
session protocol aipv2
SIP ITSP
I ie figure shows a voice galewav that communicates via SIP with two external SIP servers:
Cisco Unified Communications Manager and a SIP service that is operated by an ITSP.
fie Cisco I inified Communications Manager (with IP address 10.I.I. 15) includes two
collocated components: SIP registrar and SIP proxy. The SIP UA refers to the registrar
component using the registrar command and references the proxy component using the sip-
server command. The I'A configured on the gateway uses the dial peer 2001 to match the
destination patterns 2... and connect to the SIP proxy running on the Cisco Unified
Communications Manager (session target sip-server command points lo the address set with
sip-server command in sip-ua mode). The gateway will register on the Communications
Manager using the credentials that are defined in the authentication command.
For all other destinations that use the prefix 9 to represent the outside world, the dial peer 2002
points via SIP version 2 to the ITSP SIP proxv.
Implementing Cisco Voice Communications and QoS (CVOICE) v8.0 2010 Cisco Systems. Inc
Configuring SIP ISDN Support
This topicdescribes howto configure SIP ISDN support.
SIP ISDN Support Configuration Overview
SIP features for ISDN support:
- ISDN calling name display
Blocking caller IDwhen privacy exists
- Substituting the calling number for the display name,
if display name unavailable
SIPcanbe configured for variousISDN features. The most relevant ISDN functions that apply
to most situations are as follows:
ISDN calling name display
Blockingcaller ID when privacy exists.
Substitutingthe calling number for the display name, if the display name is unavailable
) 2010 Cisco Systems, Inc. VoIP Call Legs 2-85
Calling Name Display
This subtopic describes the ISDN calling name display feature.
Calling Na
Enables SIP
for calls that
me Display
P phones to display caller-name identification
originate on an ISDN network
i, cs -en Incoming Call
y -~^ -T-..S- PRIORI ^L
Called SP SiP Gateway SIPGaleway ' Caller
Plane
In ISDN networks, caller ID (sometimes called calling line ID [CI.IDJ or incoming calling line
icentification [ICLIDJ) is a service thai is offered by a central office (CO) to supply calling
partv infonnation to subscribers. Caller IDallows the calling parly number and name to appear
on a device such as a telephone displav.
ISDN messages signal call control and are composed of infomialion elements that specify
screening and presentation indicators. ISDN messages and their information elements are
passed in Generic Transparency Descriptor ((il D) format. GTDenables transport of signaling
data in a standard fonnat across network components and applications. The standard fonnat
enables other dev ices to scan and interpret the data. The SIP network extracts the calling name
from the G'l'D fonnat and sends the calling name infonnation to the SIP endpoint.
Implementing Cisco Voice Communicalions and QoS (CVOICE] vB.O '2010 Cisco Systems. Inc
Calling Name Display Commands
This subtopic explains how toconfigure the SIP ISDN calling name display feature.
Calling Name Display Commands
router(conf-vol-serv)#
I signaling forward {none | unconditional}
Specifies whether or not the originatinggateway forwards the signaling
payload to the terminating gateway
None-do not pass the signaling payload to terminating gateway
- Forward the signaling payload unconditionally
- Configured in voice service voip configuration mode
router(config-if)#
isdn flupp-service name calling
Sets the calling-name display parameters sent from an ISDN serial interface
Configured in serial interface created on a channelized E1 or channelized
T1 controller
Whenan ISDNsubscriber placesa call to a SIPendpoint,the subscribercallingnumberis by
default supplied tothe SIP endpoint andappears onthedisplay when thecall comes in. The
calling name is typically not forwarded bydefault. Twocommands are needed toenable the
calling name display:
signaling forward: Thiscommand is issued in thevoice service VoIP configuration mode.
It specifies whethertheoriginating gateway forwards the signalingpayloadto the
terminating gateway. Keywords are as follows:
none: Prevents the gateway frompassing the signaling payload to die terminating
gateway.
unconditional: Forwards the signaling payload received in the originating gateway
to the terminating gateway, even if the attached external routeserver has modified
the CiID payload.
isdn supp-scrvice name calling: lhis command is issued in the configuration mode ofthe
serial interface that is created on a channelized FIAT controller. The command sets the
calling-name display parameters that are sent out an ISDNserial interface.
) 2010 Cisco Systems. Inc. VoIP Call Legs
Calling Name Display Configuration
This subtopic prov ides a configurationexample for the calling name display feature.
ling Name Dm
Called SIP SIP Gateway
Phone
Incoming Call
SIPGateway
ignaling forward unconditional
iterface serial 1/0:23
isdn supp-service name calling
The figure shows how to configure the calling name display feature on a voice gateway that is
connected to the PSTN via a Tl channelized controller using ISDN PRI signaling. The serial
interfaceand the voice service VoIP are configured to unconditionally forward the signaling
information that results in the calling name being displayed on the SIP endpoint when a call
arrives.
Implementing Cisco Voice Communications and QoS (CVOICE] v8.0 2010 Cisco Systems, Inc.
Blocking and Substituting Caller ID
This subtopic explains how toblock orsubstitute the caller ID.
Blocking and Substituting Caller \D
ISDN has a private setting to protect caller ID.
SIP does not hide the private information:
- Just sets a field to mark as private and not to display it
~ Data still viewable in the SIP message requests
Blockoption deletes the caller ID information fromthe SIP message
requests so that it cannot be read on the network.
With substitution, ifthere is no Display Name field but there is a number,
the number is copied intothe Display Name fieldand presented on the
displayof the recipient.
Called SP SIP Gateway
Phone
SIP Gateway
Incoming Call
ThecallerIDinformation is private information. InISDN, there is a private setting that canbe
set to protect this information. However, when SIPgetsthecallerIDinformation, it doesnot
hide the private infonnation. Rather, itjust setsa field to reflect that it is private and not to
display it on a caller IDdisplay. Butthe data is still viewable inthe SIPmessagerequests.
The block option allows thegateway todelete thecallerIDinformation from theSIPmessage
requests so that it cannot be read on the network.
Thesubstitution option is helpful if there is no Display Name field but there is a number and
the presentation is not prohibited. Inthatcase it copies the number into the Display Name field,
so that the number is displayedon the caller IDdisplay ofthe recipient. The Ciscogateway
omits the Display Name field if no display information is received.
i 2010 Cisco Systems, Inc.
VoIP Call Legs 2-89
Blocking and Substituting Caller ID Commands
This subtopic presents the commands that areneeded toconfigure CLID blocking and
substituting CLID for the display name.
2-90
Blocking and Substituting Cai
Commands
router(conf-vol-serv)#
router(config-dial-peerI#
did strip pi-restrict
Block caller ID information when privacy exists
- Available in voice service voip and dial peer configuration modes
router(cont-vol-serv)#
router(config-dial-peer)#
did substitute name
Substitutes the calling number for the display name when the display name
is unavailable
Available in voice service voip and dial peer configuration modes
This figure presents thecommand sv nla\ fortwofeatures. You canenable both, eitherglobally
or on specific dial peers, I he global setting is configured in the voice service VoIP
configuration mode. The dial peer setting is configured in the dial peer configuration mode.
Issue the did strip pi-restrict command lo enable CLID blocking when privacy exists.
Issue the did substitute name command lo enable substitutionof CLID for the displav
name v\hen the display name is unavailable.
Implementing Cisco Voice Communications and QoS (CVOICE) v8.0 2010 Cisco Systems. Inc
Blocking and Substituting Caller ID Configuration
This subtopic presents an example ofblocking CLID with privacy and substituting CLID for
thedisplav name if thedisplay name is unavailable.
Blocking and Substituting Caller
Configuration
Incoming Call
voice service voip
did substituta name
dial-peer voice 1 voip
destination-pattern 1...
session protocol sipv2
session target ipv4:10.1.1.1
clid strip pi-restrict
line figure showsan examplewithtwo features enabled:
The feature to substitute CLIDfor the displayname whenthe displayname is unavailable
is enabled in the voice service VoIP configuration mode and applies to all calls processed
by the gateway.
The feature to blockCLIDwhenprivacyexists is enabledin the dial peer configuration
modeand appliesto the calls forwarded usingthis specificVoIPdial peer setting.
i 2010 Cisco Syslems, Inc. VoIP Call Legs
Configuring SIP SRTP Support
2-92
This topicdescribes how to configure securesignaling and securemedia inthe SIP
env ironmcnt.
SIP SRTP Support Overvie
Two independently configured security areas:
- Signaling
SIP Secure protected using TLS
Media
Secure RTP (AES encryption, HMAC-SHA1 authentication)
ESim&) srtp
On On
Off On
On Off
Off Off
Signaling and media are secure.
Signaling is insecure or secured with other methods.
Media is secure wltt Cisco IOS Release 12.4(22)T and
later. Media falls back to RTP or fails m earlier versions.
Media insecure (RTP-only)
Signaling and media insecure
SIP offers two methods to secure voice communications:
SIP secure (SIPS) offers signaling authentication and encryption using the Transport l.aver
Security (TLS) protocol. When TLS is used, the cryptographic parameters that are required
to successful!} negotiate Secure Real-Time Transport Protocol (SRTP) relv on the
cryptographic attribute in the SDP, To ensure the integrity of cryptographic parameters
across a network. SRTP uses the SIPS schema.
SRTP offers media authentication (Hashed Message Authentication Code-Secure Hash
Algorithm I [IIMAC-SHA-L|) and encryption (Advanced Encryption Standard [AKSJ) to
secure the media flow between two SIP endpoints. lypically, SRTP is used in combination
with SIPS, although SIPS is no longer required for SRTP in Cisco IOS Release 12.4(22)1
and later. Calls established with SIP (and not SIPS) can still successfully negotiate SRTP.
In such cases, the signaling should be protected using a different protocol, such as IPscc.
fhe table in the figure shows various combinations ofthe SIPS and SRI T settings. The second
combination (SIPSdisabled. SRI Penabled) results in varying behavior, depending on the
Cisco IOS release. With Cisco IOS Release 12.4(22)Tand later, the signaling is in elearlexl and
the media is encrvpted. With earlier releases, the calls either fall back to RTPor fail, depending
on the securcrtp fallback command.
Implementing Cisco Voice Communications and QoS (CVOICE) v8 0 i 2010 Cisco Systems, Inc
SIPS Global and Dial Peer Commands
This subtopic explains the commands that are needed toconfigure SIPS and SRTP.
SIPS Global and Dial Peer Commands
router(conf-dial-peer)#
voice-clase aip
Enters dial peer SIP configuration mode
router(conf-voi-eer)#
router(conf-dial-peer)#
sip
Enters SIP configuration mode, in:
- Voice service VoIP configuration mode, or
- Dial peer voice dass SIP configuration mode
router(conf-ser-flip)*
url sips
Enables SIPS by generating URLs in SIPS format for VoIPcalls
Available globally or in dial peer configuration mode
SIPS functionality was introduced inCiscoIOS Release 12.4(15)1. Youcanconfigure secure
signaling onbotha global level (in SIPmode) andon anindividual dial peerbasis, lo
configure SIPS globally, youmust firstenterthevoice service VoIP configuration mode (voice
service voip command) and then the SIPconfiguration mode(sip command). To enable SIPS.
issue the url sips command.
Thedial peersettingoverwrites theglobal setting, which is useful when disabling SIPS on
selecteddial peers whenSIPSis enabledglobally. To configureSIPSfor a dial peer, you must
first enterthedial peervoice classSIPconfiguration mode(voice-class sip command, followed
by the sip command) from the dial peer configuration mode. To enable SIPS invoice-class SIP.
issue the url sips command.
) 2010 Cisco Systems, Inc.
VoIP Call Legs
SRTP Global and Dial Peer Commands
"I his subtopic describes the commands that are needed for configuring SRTP
router(conf-dial-peerI #
voice-class sip
Enlers dial peer SIP configuration mode
router{conf-vol-ser)#
router(conf-dial-peer)#
securertp
* Configures secure RTP media, in.
Voce service VoIP configuration mode, or
Dal peer voce class SIP configuration mode
router(conf-vol-ser 11
router(conf-dial-peer]#
Iaecurertp fallback
Enables fallback to RTP calls in case secure RTP calls fail due to lack of support
from anendpoint
Available globally or in dial peer configuration mode
SRTP was introduced in Cisco IOS Release 12.4(15)1. You can configure the secure media
transport on both a global level (in SIP configuration mode) and on an individual dial peer
basis. The dial peer setting overwrites the global setting. To configure SRTP for a dial peer,
vou musl first enter the dial peer voice class SIP configuration mode from the dial peer
configuration mode. To configure SRTP globally, you must first enter the voice service VoIP
configuration mode (voice service voip command) and then the SIP configuration mode (sip
command). To configure SRTP in either mode, issue the securertp command. If you configure
the gatewav for SRTP (globally or on an individual dial peer) and end-to-end TLS, an outgoing
1NV1TL message has cryptographic parameters in the SDP.
You can also configure the gateway (or dial peer) either to fall back to (nonsecure) RTP or to
reject (fail) the call in cases where an endpoint does not support SKIP, "fhis behavior is
configured v\ ith the securrtp fallback command, issued either in SIP or dial-peer voice-class
sip configuration mode. If you use the srtp fallback command and the called endpoint does not
support SRTP (offer is rejected with a 4xx class error response), the gateway sends an RIP
offer SDP in a new INVITh request.
Implementing Cisco Voice Communications and QoS (CVOICE) v8 0 ) 2010 Cisco Systems. Inc
SIPS and SRTP Configuration Example
This subtopic presents a configuration example for SIPS and SRTP.
SIPS and SRTP Configuration Example
1001 SIPGWMvay
voice nervine voip
sip
url sips
sec rertp
see rertp fallback
dial-peer v ice 1 vo IP
dest natio -pattern 2.. .
sess on protocol Sipv2
session target ipv4 10.2.1.1
dial-peer voice 1 voip
destination-pattern 1...
session protocol sipv2
session target ipv4:lD.1.1.1
voice-class sip
eecurertp
securortp fallback
sip
url sips
The figure shows die configurationof two voice gateways that are configured for SIPS and
SRTP. The gateway on the left has the settings configured globally, while the right gateway is
configured on a specific dial peer. Both support fallback to RTP in case SRTP is not supported
by the other endpoint.
>2010 Cisco Systems, Inc. VoIP Call Legs 2-95
Customizing SIP Gateways
This topic describes the tuning options in SIP.
2-96
SIP Gateways Tuning Overview
Tuning Options:
* SIP transport
Global SIP
Dial peer
User agent
* Source IP address
Global SIP
SIP Timers
User agent
* Early media
Handling of 180 Ringing responses with SDP
flic most common SIP customization tasks include the following:
Defining the session transport protocol: I'CP. I'CP-TLS. or UDP. fhis setting can be
applied in global SIP. dial peer, or UA configuration mode.
Selecting a source IP address bv binding the gateway functionality to a network interface.
This option is available onlv in global SIP configuration mode.
Tuning SIP timers: I hesc parameters are tunable in the UA configuration mode.
Defining which call treatment, earlv media, or local ringback. is provided for 180 Ringing
responses with SDP.
Implementing Cisco Voice Communications and QoS (CVOICE) v8 0 '2010 Cisco Systems, Inc
SIP Transport
This subtopic describes how to configure SIP transport protocol
SIP Transport
router(conf-voi-eer)#
router(conf-dial-peer)#
session transport {system | top tls | udp}
Defines SIP transport globally or for dial peer
- In SIP mode without system option
- System option (in dial peer mode) refers to SIP global mode
Applies to outgoing signaling
Default: UDP
router(conflg-slp-ua)#
transport {top tls | udp}
Enables the UAto receive signaling messages for inbound calls
overTCP, TCP TLS, or UDP. Uses port 5060.
Bydefault, all three transports are enabled.
The configuration of SIP session transport refers to two aspects of signaling:
Outbound signaling: Default is UDP. The transport for outgoing SIP messages can be
configured globally, in SIP configuration mode, and in the dial peer configuration mode.
The system option in the dial peer mode applies the global option to a specific dial peer and
is used as a time saver. Instead of configuring a non-UDP option repeatedly for each dial
peer, you can configure the global setting and apply it to the required dial peers.
Inbound signaling: This option is configured in the SIP UA configuration mode. It
specifies the transport methods accepted for receiving inbound calls. The default is lo
accept all three transports: UDP. TCP, and TCP TLS, on port 5060.
2010 Cisco Systems, Inc.
VoIP Call Legs 2-97
SIP Source IP Address and UA Timers
This subtopic describes how to configure the interface binding feature and tune SIP timers.
router(conf-vol-ser)#
bind {control media all} source-interface interface-id
[ ipv4- address ipv4-addreBs | ipv6-address ipvfi-address]
Binds the source address for signaling and media packets to the
address of a specific interface
router(config-sip-ua)#
Configures various timers for the SIP UA
fhe interface binding feature sets the IP address for outgoing SIP-related traffic. To configure
the interface binding feature, issue die bind command in the global SIP configuration mode.
You have the option to hind either signaling, media, or both, using the control, media, and all
kevwords. The command points to an interface and specifics its IPv4 or IPv6 address that
should be used as the source IP address for outgoing traflic.
To tune SIP timers. \ou must enter the SIP UA configuration mode.
2-98 Implementing Cisco Voice Communicalions and QoS (CVOICE) vS 0 2010 Cisco Systems, Inc.
SIP UA Timers
This subtopicexplainssome SIP UAtimers.
SIP UA Timers
Timer I Description
Default
connect Time (in milieeconds) to wait for a 200 response to an
ACK request
500
disconnect Time (in miliseconds) to wait for a 200 response to a BYE
request
500
expires Time {inmiliseconds) for which an INVTTE request is valid 180000
hold Time to wait during hold before disconnecting (in minutes) 2880
notify Time to wa9 before NOTIFY retransmission 500
refer Time to wait before REFER retransmission. Refer request
is sent by the originating gateway to the receiving gateway
and initiates call forward and call transfer capacities
500
register Time to wa before REGISTER retransmission 500
trying Time (in miliseconds) lo wait for a 100 response loan
INVITE request
500
The default values of SIP timers work well in most environments and should not be changed
unless the administrator identifies a specific requirement. These timers can be set in the SIP UA
configuration mode:
Connect: Time (in milliseconds) to wait for a 200 response to an ACK request. Range is
from 100 to 1000. The default is 500.
Disconnect: Time (in milliseconds) to wait for a 200 response to a BYE request. Range is
from 100 to 1000. The default is 500.
Expires: Time (in milliseconds) for which an INVITE request is valid. Range is from
60000 to 300000. The default is 180000.
Hold: Time (in minutes) to wail before disconnecting a held call by sending a BYE
request. Range is from 15 to 2880 minutes. The default is 2880.
Notify: lime (in milliseconds) to wait before retransmitting a Notify message. Range is
from 100 to 1000. The default is 500.
Refer: Time (in milliseconds) to wait before retransmitting a Refer request. Range is from
100 to 1000. The default is 500.
Register: Time (in milliseconds) to wait before retransmitting a Register request. Range is
from 100 to 1000. The default is 500.
Trying: lime (in milliseconds) to wait for a 100 response to an INVITE request. Range is
from 100 to 1000. The default is 500.
>2010 Cisco Systems. Inc. VoIP Call Legs 2-99
SIP Early Media
fhis subtopic describes howto disable SIP Earlv Media for 180 Ringing messages.
router{config-sip-ua)#
disable-early-media 180
Disables early media cut-through treatment for SIP 180 Ringing
messages with SDP
Configured in SIP user agent mode
Does not affect treatment of SIP 183 Session Progress messages
* Early media enabled by default for SIP 183 Session Progress
messages
180 response with SOP Enabled (default)
180 response with SDP Disabled
180 response without SDP Not affected
183 response with SDP Not affected (default enabled)
Earty media cut-through
Local ringback
Local ringback
Early media cut-through
I he SIP Enhanced 180 Provisional Response 1landhng feature provides the ability to enable or
disable earlv media cut-through on Cisco IOS gatewavs for SIP 180 response messages. This
leature allows vou to speeifv whether 180 messages with SDP are handled in the same way as
183 responses with SDP, The 180 Ringing message is a prov isional or informational response
that is used to indicate that the INVITE message has been received by the user agent and that
alerting is taking place, fhe 183 Session Progress response indicates that information about the
call state is present in the message body media information. Both 180 and 183 messages ma\
contain SDP. which allow an earlv media session to be established prior to the call being
arswered.
Bv default. Cisco gatewavs handle a 180 Ringing response with SDP in the same manner as a
IS3 Session Progress response: that is. the SDP is assumed to be an indication that the far end
would send early media. Cisco gatewavs handle a 180 response without SDP by providing local
ringback. rather than early media cut-through, fhis feature provides the capability to ignore the
presence or absence of SDP in 180 messages, and as a result, treat all 180 messages in a
uniform manner. The disahle-early-media 18(1 command allows specifying which call
treatment, earlv media, or local ringback is provided for 180 responses with SDP.
2-100 Implementing Cisco Voice Communications and QoS (CVOICE) vB.O i 2010 Cisco Systems, Inc.
Gateway-to-Gateway Configuration Example
This subtopic presents a gateway-to-gateway configuration example.
Gateway-to-Gateway Configuration Example
LoopbaekC
irj01 10 111
voice service voip
Hip
session transport top
bind all source-interface
lookback 0 ipv4-address 10.1.1.1
I
dial-peer voice 1 voip
destination-pattern 2...
session protocol Bipv2
BBBsion target ipv4:10.2.1.1
sip-ua
disabla-early-madia ISO
LoopbaekO
1021 1 2001
voice
aip
bind all source-interface
loopbaek 0 ipv4-address 10.2.1.1
1
dial-peer voice 1 voip
destination-pattern 1...
session protocol Sipv2
session target ipv4slO.1.1.1
session transport top
1
sip-ua
disabla-early-madia ISO
ervic =ip
This example shows two voice gateways that signal calls via SIP. Both gateways source the
signaling and media traffic from the IP addresses configured on their respective loopback 0
interfaces. Both gateways use TCP as the transport protocol for outbound signaling. The dial
peer I on Rl refers to the system setting that is configured in the SIP mode. The dial peer I on
R2 has the transport that is configured in its dial peer settings. If dial peer 1on Rl would not
have the session transport system command, it would signal calls to R2 using UDP transport.
R2 would accept that traffic, because the supported transports for inbound signaling are
configured in sip-ua mode and, by default, include all three options: UDP, TCP, and TCP TLS.
SIP 180 Ringing responses carrying SDP media offers are ignored.
) 2010 Cisco Systems, Inc. VoIP Call Legs 2-10!
UA Example
2-102
This subtopic prov ides a configurationand tuning example for a SIP UA.
!
192 16S 1.100 ,
SIP ITSP
bind all source-interface loopbackO ipv4-address 10.1.1.1
authentication username JDue password
registrar 10.1.1.15 expires 3600
sip-server 10.1.1.35
timers connect 1000
timers register 300
dial-peer voice 10 voip
destination-pattern 9T
session target ipv4:192.1SB.1.100
session protocol sipv2
session transport top
The example in the figure shows some customization commands on a voice gateway that
communicates \ ia SIP with an external SIP servor operated by an ITSP.
All outgoing SIP and media communications are sourced from the Eoopback 0 address
10.1.1.1.
The SIP EA specifies the authentication parameters, which include the SIP registrar and SIP
proxy. "fhe connect and register timers are tuned to nondefault values.
The E'A uses the dial peer 10 to match all external destinations, points via SIP version 2 to the
ITSP SIP proxv. and uses I'CP as the transport protocol when signaling outbound calls.
Implementing Cisco Voice Communications and QoS (CVOICE) v8 0 2010 Cisco Systems. Inc
Verifying SIP Gateways
This topic describes how to verity the operations of voice gateways in aSIP environment.
show sip-ua Command Overview
Command
show sip-ua service
show sip-ua status
show sip-ua regtoterstatus
show sip-ua timers
show sip-ua connections
show sip-ua calls
show sip-us statistics
DescripSon
Displays thestatusofthe SIPseivice
Displays the status ofthe SIP UA
Displays thestatusofE.164 numbers thata
SIP gateway hasreglstefadwith anexternal
primary SIP registrar
Displays SIP UAtimers
Displays active SIPUA connections
DisplaysactiveSIP UA calls
DisplaysSIP traffic statistics
The show commands that are listed in the table in the figure allow you to examine the status of
SIPcomponents andto troubleshool.
)2010 Cisco Systems. Inc.
VoIP Call Legs 2-103
SIP-UA General Verification
This subtopic explains how to verify general SIP UA status and settings.
2-104
S^P-UA General Verification
router# show eip-ua status
SIP User Agent status
SIP User Agent for UDP ; ENABLED
SIP User Agent for TCP : ENABLED
SIP User Agent (or TLS over TCP : ENABLED
SIP User Agent bind status [signal ing) : ENABLED 10.1.250.101
SIP User Agent Oind status(media): DISABLED
SIP early-media for 180 reapor.
ith SDP; ENABLED
SDP appil
nmespec line l"_ = ) required
Media supported, audio video image
Network types supported: IN
Address types supported: IP4 IP6
Transport types supported: RTP/AVP udptl
Ihe shovt sip-ua sen ice command displays the status of SIP call service on aSIP gatewav
Ihe sip-ua service isup when the VoIP service has not been shut down in the voice service
voip configuration mode. By default. VoIP service is enabled, and therefore SIP service is up.
The show sip-ua status command displavs the status for the SIP user agent. It shows which
transports are accepted for incoming calls. This output shows the default setting, which isto
accept UDP. TCP. and TCP TLS. Next, the interface binding information is displayed. In this
case, the signaling traffic is sourced from the address 10.1.250.101, and the media will be
sourced from the outgoing interface IP address. The command informs about the gatewav
support for SIP earlv media using 180 Ringing responses with SDP. It is enabled by default.
Ihe show sip-ua status command reports the required and supported SDP options'
Implementing Cisco Voice Communications andQoS(CVOICE) v80
2010 Cisco Systems, Inc
SIP-UA Registration Status
This subtopic displays the F.I 64 numbers that arc registered on an external SIPregistrarserver.
SIP-UA Registration Status and Timers
router# show sip-ua register status
Line peer expires{sac) registered
4001 20001 596 no
4002 20002 596 no
51001 596 no
9998 2 596 no
router# show sip-ua timers
SIP DA Timer Values (millisecs)
trying 500, expires 180000, connect 500, disconnect 500
comet 500, prack 500, rellxx 500, notify 500
refer 500, register 500
fhe show sip-ua register status command displays the status of E.164 numbers that a SIP
gateway has registered with an external SIP registrar server. SIP gateways can register E. 164
numbers on behalf of analog telephone voice ports (FXS), IP phone virtual voice ports (EFXS).
and SCCP phones with an external SIP proxy or SIP registrar. The command show sip-ua
register status is only for outbound registration, so if there are no SCCP phones or FXS dial
peers to register, there is no output when the command is run. In this example, some endpoints
are attached to the SIP gateway, but they have not been registered with an external SIP
registrar.
The show sip-ua timers command displays the current settings for the SIP user-agent timers.
In this example, die command output shows the default values ofthe timers.
) 2010 Cisco Systems, Inc. VoIP Call Legs 2-105
SIP-UA Call Information
This subtopic shows how to view the calls that are processed by a SIP UA.
SiP-UACail Information
router! alww aip-ua calls
SIP UAC CALL INFO
Number of SIP Ui[ Agent CllontfUAC] eel1b: 0
SIP UAS CALL INFO
Cell ;
SIP Cell in :D215P;;-7B5A11EJC-8005EJ>1A- 6ABP4ADS10 .10 ID.!
Stece of the ell . STATE ACTIVE CJ>
Calling Number J81S93I001
Celled HiBi^er : 1003
source IP Addrs. iSig 1. 10.10 10.1
De.tn SIP Req AddE.Port . 10.10 10.2:5060
Destn SIP P-esp Addi .Port . 10 10 . 10. 2 : 5 6 39e
[Mtinitloa Ku : 10.10.10.2
Wuuifcer of Hdi SlieuiB : 1
ItaMI of Active Stream. 1
Hedie Straui 1
suit ;i th* eram - stream active
Slr.j. Oil ID : 1
Striffi Type voice-only ID)
tiegotieted Codec . g72SrB (JO byteBi
Cwiee Peyloed Typ - IS
Necktie ted Dtui-teley : lDbind -voice
Kedi. Source IP Addr:Port: 10 10.10.1:190 50
Hodie Deet IP Addr:Port : 10.10.10.2:16522
fhe show sip-ua callscommand displavs active UAC and UAS calls and their parameters. The
output includes informationabout IPv6. Resource Reservation Protocol (RSVP), and media
forking (splitting the mediasession in multiple sessions) for each call on the deviceand for all
media streams associated with the calls. There can be any number of media streams associated
vsith a call, of which tvpically onlv one is active. A call can include up to three active media
streams if the call is media-forked.
2-106 Implemenling Cisco Voice Communications and QoS (CVOICE) v8 0
2010 Cisco Systems. Inc.
SIP Debugging Overview
This subtopic explains how to debug SIP operations.
SIP Debugging Overview
Command
debug ccsip
debug voip ccapi inout
Description
For general SlPdebugging; has
many detailed options, for example
for viewing direction-attribute settings
andportandnetwork address-
translation traces
Showseveryinteraction with the call
control API
debug voip ccapi protoheaders Displays messages sent between the
a originating and terminating gateways
The debug commands that are listed here are valuable when examining the status of SIP
components and troubleshooting:
debug ccsip command has various options as follows:
- debug ccsip all: This command enables all ccsip-type debugging. This debug
command is very active; you must use it sparingly in alive network,
- debug ccsip calls: This command displays all SIP call details as they are updated in
the SIP call control block. You must use this debug command to monitor call
records for suspicious clearing causes.
- debug ccsip errors: This command traces all errors that are encountered by the SIP
subsystem.
- - debug ccsip events: This command traces events, such as call setups, connections.
and disconnections. An events version ofadebug command is often the best place
tostart, because detailed debugs provide much useful information.
- debug ccsip info: This command enables tracing of general SIP security parameter
index (SPI) information, including verification that call redirection is disabled.
- debug ccsip media: This command enables tracing of SIP media streams.
debug ccsip messages: This command shows the headers of SIP messages that are
exchanged between a client and a server.
debug ccsip preauth: This command enables diagnostic reporting of authentication,
audiorization. and accounting (AAA) forSIP calls.
- debug ccsip states: This command displays the SIP states and state changes for
sessions within the SIP subsystem.
)2010 Cisco Systems. Inc
VoIPCall Legs 2-107
~ debug ccsip transport: This command enables tracing ofthe SIP transport handler
andtheTC Por UDP process.
debug voip ccapi inout: This command shows every interaction with the eall control
application programming interface (API) on both the telephone interface and on the VoIP
side B> monitoring the output, you can follow (he progress of acall from the inbound
interlace or \ olP peer to the outbound side ofthe call. This debug command is verv active-
you must use it sparingly in a live network.
debug voip ccapi protoheaders: This command displays messages that are sent between
the originating and terminating gateways. Ifno headers are being received bv the
terminating gateway. vcrify that the header-passing command is enabled on the
originating gateway.
2-108 Implemenling Cisco Voice Communicalions and OoS (CVOICE) v8 0
2010 Cisco Systems, Inc.
Examining the INVITE Message
This subtopic shows how to view the SIP INVITE message.
Examining the INViTE Message
router! debug ccsip messages
INVITE Hip:366 0210166. 34.2 45.2 3l!usei:"plione ; phone -contax tunknown
SIP/2.0
Via: SIP/2.0/UDP 166.34 .345.230:55820
From: 3660110- tsip:3660110*166.34.245.230>
To: <sip:3660210*16.34.245.23ljuser-phonoiphons-contaut-unknowns
Content-Type: application/adp
v-0
CiscoSyBtamsSIP-GH-oaaiAgant 4629 354 in ip4 55.1.1.42
s-SIP Call
e.IN IP4 55. 1. 1.42
t-0 0
m-audio 19978 RTP/AVP 0 100
c-IN IP4 10.1.1.42
artpmap:0 PCNU/SD0O
a-itpmapilOO Z USE/8000
The figure shows the output ofthe debug ccsip messages command. It shows the beginning of
a SIP INVITE message being sent from the endpoint with address 166.34.245.230 to the
endpoint with address 166.34.245.231. This example includes the description ofthe message
originator, the intended recipient, and, among other parameters, the content type, which is
application/sdp. The SDP description ofthe media capabilities is truncated in this output.
)20I0 Cisco Systems, Inc. VoIP Call Legs 2-109
Examining the 200 OK Message
I his subtopic explains how to examine the 200 OK message.
Examining the 200 OK IVlessi
route r# defcug ccsip messages
SIP/2 0 20 0 OK
Via; a IP/2 . 0/UDP 166.34 .245.230:55820
From : 3660110" <sip:3660110ei66.34,245.230s
To; < Bips3660210ei66.34.245.231fUBer.phon8;phone -
conteitunknowns;tag=27DHC6DS-13 57
Date : Hon, 08 Mar 1993 22:45:12 GMT
Call- ID: ABBJlE7AP-B23100E2-C-lCD274BCei72 18 . 192 . 194
Timeg tamp: 731427554
Serve r: Cisco VOIP Gateway/ IOS 12.x/ SIP enabled
Coat a ct : t sip: 36 0 210*166.34.245.231:5060 user^phone >
CSeq: 101 INVITE
Conte nt-Type: application/sdp
Conte nt-Length: 138
v=C
o=Cis coSystemsSIP-3W-UserAgent 1193 7927 IN IP4 166.34.245.231
s=SIP Call
t-0 0
C*IN P4 166.34.245.231
m=aud lO 20224 ETP/AVP 0
The ligure shows the output ofthe debug ccsip messages command. It shows a SIP 200 OK
message being sent in response to an earlier SIP INVITE7 message. The INVITI: message was
sent from 166.34,245.230 lo 166.34.245.23 1. and this address sel is retained in the 200 OK
message, with the addition ofthe Contact field that defines the originator of the 200 OK
message (166.34.245.231). The content ofthe 200 OK message includes, among other
parameters, the content tvpe. which is application/sdp. The second part ofthe output shows the
SDP description ofthe media. The media endpoint (the device that responds with the 200 OK
message) is 166.34.245.231. It will use UDP/RTP port 20224. The AVP is 0. which means the
call will use (i.711 mu-law.
2-110 Implementing Cisco Voice Communications and QoS (CVOICE) v8 0
)2010 Cisco Systems, Inc.
Examining the BYE Message
This subtopic describes the BYE message.
Examining the BYE Message
router* debug ccsip messages
BYE sip;3660110166.34.245.230:5060iuser=phone SIP/2.0
Via: SIP/2.0/UDP 166.34.2*5.231:53600
Prom: <Hip:3660210166.34.245.231|User=plioneiphone-
context =un)cnown>; tag=27DBC6D8- 13 57
To: "3660110" eslp : 3660110*166 .34 .245. 230>
Date; (ton, 08 Mar 1993 22:45:14 GMT
Call-ID: ABBAE7AF-82 310 0E2-0-1CD274BC172.1B.192.19 4
User-Agent: Cisco VoIP Gateway/ IOS 12.x/ SIP enabled
Man-forwards: 6
Times tamp; 731612717
CSeq: 101 BYE
Content - Length: 0
The figure shows the output ofthe debug ccsip messages command. It shows the BYE
message that is sent when a call participant terminates the call.
) 2010 Cisco Systems, Inc. VoIP Call Legs 2-111
Summary
This topic summarizes the key points that were discussed in this lesson.
Summary
SIP is a widely supported, still evolving signaling protocol.
SIP has three call setup models: direct gateway-to-gateway, connect over
proxy server and connect over redirect server
SIP address formats are FQDN, .164. and mixed.
SIP early media starts RTP flows before the call is answered
Basic SIP configuration may include UAsettings for communication over
a registrar or proxy server, and dial peers for direct gateway-to-gateway
calls
SIP ISDN support includes calling name display, blocking CLID when
privacy exists, and substituting the calling number for the display name,
if display name is unavailable
SIP secunty options relate to SIPS and SRST.
SIP gateway can be configured to use UDPn~CP/TLS transport, a specific
IP address, and modified timers
SIP operations can be verified using show and debug commands.
Implemenling Cisco Voice Communications and OoS (CVOICE) v8 0 2010 Cisco Systems, loc
Lesson 4
Explaining MGCP Signaling
Protocol
Overview
The Media Gateway Control Protocol (MGCP) enables the remote control and management of
voice and data communications devices at the edge of multiservice IP packet networks.
Because of its centralized architecture, MGCP overcomes the distributed configuration and
administrationproblems inherent in the use of protocols such as H.323. This lesson describes
how to configure MGCP on a gateway, and the features and functions ofthe MGCP
environment.
Objectives
Upon completing this lesson, you will be able to describe the characteristics of MGCPand
explain when to use it in a VoIP environment. This ability includes being able to meet these
objectives:
Describe MGCP, its components, and the advantages of MGCP as a voice gateway
protocol
Hxplain MGCPsignaling messages and the interactions between an MGCP call agent and
its associated gateways
Describe die process of codec negotiation in MGCP and explain how DTMF digits are
collected in MGCP
Configure an MGCP residential and trunking gateway
Describe how to configure the MGCP interlace binding and other parameters to conform to
the requirements ofthe call agent, trunks, or lines that are being used with the gateway
Describe major commands that are used to verify an MGCP gateway
MGCP Architecture
['his topic describes the MGCP, its architecture and operations.
Media Gateway Coi
Centralized device control with simple endpoints forbasicand
enhanced telephony services
An extension of Simple Gateway Control Protocol (SGCP) and
supports SGCP functionality in addition to several enhancements
a Allows remote control of various devices
* Stimulus protocol
Endpoints and gateways cannot function alone
Uses IETF SDP
Addressing by E.164 telephone number
* Defined in RFC 3435 and 2805
MGCP is an Internet irigineering I ask Force (ll.TF) -defined centralized device control
protocol. The MGCP protocol allows a central control component, or eall agent, to remotely
control various devices. The protocol is referred to as a stimulus protocol because the endpoints
and gatewavs cannot function alone. MGCP incorporates the IFTF Session Description
Protocol (SDP) to describe the tvpe of session to initiate.
MGCP is a plaintext protocol that uses a server-to-clienl relationship belween the call agent and
the gatewav to i'ullv control the gateway and its associated ports. The plaintext commands are
sent to gatewavs from the call agent using User Datagram Protocol (UDP) port 2427. Port 2727
is also used to send messages from the gateways to the call agent.
An MGCP gateway manages translation between audio signals and the packet network.
Gateways interact with a call agentalso called a media gateway controller (MGC)that
performs signal and eall processing on gateway calls. In the MGCP configurations that Cisco
[OS Software supports, a gateway can be a Cisco router, access server, or cable modem, and
the call agent is a server from a third-party vendor.
MGCP is an extension ofthe earlier version ofthe protocol Simple Gateway Control Protocol
(SGCP) and supports SGCP functionality in addition to several enhancements. Systems using
SGCP can easily migrate to MGCP, and MGCP commands are available to enable SGCP
capabilities. MGCP is similar to another standards-based protocol, Megaco.
2-114 Implementing Cisco Voice Communications and OoS (CVOICE) v8 0 2010 Cisco Systems Inc
MGCP Key Features
This subtopic explainsthe key features of MGCP.
MGCP Key Features
Alternative dial tone for VoIP environments (provider
competition)
Simplified configuration for dial peers
Simplified migration
Centralized dial plan configuration on the Cisco Unified
Communications Manager
Centralized gateway configuration on the Cisco Unified
Communications Manager
Simplified Cisco IOS configuration
Supports QSIGsupplementary services withCisco Unified
Communications Manager
Uses UDP transport
There are several advantages to using MGCP-controlledgateways as voice gateways:
Alternative dial tone for VoIP environments: Deregulationin the telecommunications
industry gives competitive local exchange carriers(CLECs) opportunities to providetoll
bypassfrom the incumbent local exchangecarriers(ILHCs) with VoIP. MGCP enablesa
VoIPsystemto control call setupand teardown and CustomLocal AreaSubscriber
Services (CLASS) features for less sophisticated gateways.
Simplified configuration for dial peers: Whenyou use an MGCP call agent ina VoIP
environment, you do not need to configure static VoIP network dial peers. Residential
gateways need POTS dial peers, but their configuration is simplified. Trunking gateways
do not need any POTS dial peer configuration.
Migration paths: Systems usingearlierversionsofthe protocol can migrateeasily to
MGCP.
Centralized dial plan configured on the Cisco Unified Communications Manager: A
centralizeddial plan configurationon the Cisco UnifiedCommunications Manager enables
you to handle and manage the entire dial plan configurationon the Cisco Unified
Communications Manager cluster within a multisite network. This simplifies the
management and troubleshooting of a company telephone network.
Centralized gateway configuration on the Cisco Unified Communications Manager:
As in the case ofthe dial plan, centralized gateway configurations for all gateways arc
managed through one central configuration page, which simplifies the management and
troubleshootingof a company telephone network.
) 2010 Cisco Systems. Inc. VoIP Call Legs 2-115
Caution Some network management tools donotwork correctly when performing theconfiguration
through Cisco Unified Communications Manager. In such cases, youmayneed to manually
configure the gateway for MGCP without using the configure network command.
Simple Cisco IOS gateway configuration: liecausethe gateway configuration is mostly
done on the Cisco UnifiedCommunications Manager, far fewer Cisco IOS router
commands are necessan to bring up the gateway than in any other gateway type.
Supports Q Signaling (QSIG) supplementary services with Cisco Unified
Communications Manager: With the support of QSIG supplementaryservices. MGCP is
a protocol that vou can use to interconnect a Cisco UnifiedCommunications Manager
environment with a traditional PBX.
Implementing Cisco Voice Communications and QoS (CVOICE! v8 0 2010 Cisco Systems, Inc.
MGCP Components
This subtopic describes the MGCP components.
IGCP Components
Cisco Voice
Gateways Can Agent (MGCP] Cisco Unified
Communications
Manager
I FXS= ForeignExchangeStatiwi
The distributed system is composed of a call agent (also called Media Gateway Controller), at
least one Media Gateway that performs the conversion of media signals between circuits and
packets, and at least one signaling gateway (SG) when connected to the PSTN.
MGCP defines a number of components and concepts. You must understand the relationships
between components and how the components use the concepts to implement a working MGCP
environment.
Here are the components that are used in an MGCP environment:
Call agent: A call agent exercises control over the operation of a gateway and its
associated endpoints by requesting that a gateway observe and report events. In response to
the events, the call agent instructs the endpoint what signal, if any, the endpoint should
send to the attached telephone equipment. This requires a call agent to recognize each
endpoint type that it supports and the signaling characteristics of each physical and logical
interface that is attached to a gateway. The call agent can audit the current state of
endpoints on a gateway. A call agent uses its directory of endpoints and the relationship
that each endpoint has with the dial plan to determine appropriate call routing. Call agents
initiate all VoIP call legs.
Gateways: Gateways manage the translation of audio between the SCN and the packet
network. The gateway uses MGCP to report events (such as off-hook or dialed digits) to the
call agent. The two main types of gateways are residential and trunking gateways. The
main types of MGCP gateways are as follows:
Residential gateway: A residential gateway provides an interface between analog
(RJ-11) calls from a telephone and the VoIP network. The interfaces on a residential
gateway may terminate a plain old telephone service (POTS) connection to a phone
or a PBX.
>2010 Cisco Systems. Inc. VoIP Call Legs 2-117
Trunking gateway: A trunking gateway provides an interface between PSTNtrunks
and a VoIP network. A trunk can be a digital service level 0 (DSO). Tl. or Rl line.
Kndpoints: Endpoints represent the point of interconnectionbetween the packet network
and the traditional telephone network.
The figure slums an MGCP env ironment withall threecomponents. Ciscovoice gateways act
as MGCPgatewavs. and Cisco UnifiedCommunications Manager acts as the MGCPcall agent.
2-118 Implemenling Cisco Voice Communications and QoS (CVOICE) v8.0 2010 Cisco Systems, Inc
MGCP Gateways
Thissubtopic describes theroleof MGCP gateways.
MGCP Gateways
Call processing is done by a call agent suchas Cisco Unified
Communications Manager.
MGCPuses endpoints and connections to construct a call.
- Endpoints:
Sources of data or destinations for data
- Physical or logical locations in a device
- Connections:
Point-to-point
Multipoint
InMGCP, the call agent plays acentra! role by controlling the setting up and tearing down of
connections between theendpoints ina VoIP network andendpoints in the PSTN, while
managing all dial-plan configuration elements, The calls are routed via route patterns onthe
call agent, not by dial peers onthe gateway. The gateway voice ports must beconfigured for
proper signaling. There are no dial peers for MGCP except when arouter isusing Cisco
Unified Survivable Remote Site Telephony (Cisco Unified SRST)for fallback.
MGCP uses endpoints and connections toconstruct a call. Endpoints aresources ofdata or
destinations for data and canbe physicalor logicallocations ina device.
MGCP gateway connections can bepoint-to-point ormultipoint. Apoint-to-point connection is
anassociation between twoendpoints with thepurpose of transmitting databetween these
endpoints. Data transfer between these endpoints can take place after this association is
established for both endpoints. Amultipoint connection isestablished byconnecting the
endpoint toa multipoint session. Connections can beestablished overseveral types of bearer
networks:
Transmission of audio packets using Real-Time Transport Protocol (RTP)/UDP overan IP
network.
Transmission of packets over aninternal connection. This method is used, inparticular, for
"hairpin" connections thatareconnections that terminate ina gateway butareimmediately
rerouted over the telephone network.
>2010 Cisco Systems, Inc.
VoIP Call Legs 2-119
MGCP Endpoints
This subtopic explains the MGCP endpoints and their identifiers.
SVSU1/DSM@gw1 .domain.com
AALN/S2/SUV1@gw1.domain.com
Subunrt 1
v..MS2/tfU1/1@flwS.domain com
Port 1
Porl 1
iVSU1/r)S'-1@aw1 dom*fi com
When interacting with a gateway, the call agent directs itscommands tothe gateway for
managing anendpoint or a group of endpoints. An endpoint identifier, as itsname suggests,
identifies endpoints.
Hndpoint identifiers consisl of two parts: a local name ofthe endpoint inthecontext ofthe
gatewav andthedomain name ofthe gateway itself. Thetwopartsareseparated by an"at" sign
(" a"). If the local part represents a hierarchy, thesubparts ofthe hierarchy arcseparated bya
slash (/). Inthe figure, the local IDmav berepresentative of a particular "gateway/circuit #."
and the "circuit *"ma\ in turn be representative of a "circuit ID/channel #".
2-120 Implementing Cisco Voice Communicalions and QoS (CVOICE] v8 0 >2010Cisco Systems, Inc
MGCP Package Types
This subtopic explains the MGCP package types.
MGCP Package Types
Groups of event and signal definitions:
- Compatibility
Modularity
* Enabledwith the mgcp package-capability command:
- Trunk
- Line
- Dual-tone multifrequency (DTMF)
- Generic media
- Real-Time Transport Protocol (RTP)
- Announcement server
- Script
Creating a call connection involves aseries ofsignals and events that describe the connection
process. Each event causes signal messages tobe sent tothe call agent, and associated
commands aresent back. The signals and events thatcompose theconnection process might
include indicators suchas theofT-hook eventthattriggers a dial tonesignal. These events and
signals are specific tothe type ofendpoint that isinvolved in the call. MGCP groups these
events and signals into packages.
Atrunk package, for example, isagroup ofevents and signals relevant toa trunking gateway;
an announcement package is a group of events andsignals relevant to anannouncement server.
These packages arc enabled by using the mgcp package-capability command. MGCP supports
thefollowing seven package types using theprovided command example:
Trunk: mgcp package-capability trunk-package
Line: mgcp package-capability line-package
Dual tone multifrequency (DTMF): mgcp package-capability dtmf-package
Generic media: mgcp package-capability gm-packagc
RTP: mgcp package-capability rtp-packagc
Announcement server: mgcp package-capability as-package
Script: mgcp package-capability script-package
Thetrunk package andline package aresupported bydefault on certain types of gateways.
Although configuring a gateway with additional endpoint package information isoptional, you
maywant tospecify packages foryourendpoints to addinformation, or youmay wantto
override the defaults on some ofthe packages.
) 2010 Cisco Systems, Inc.
VoIP Call Legs 2-121
MGCP Call Flows
This topic describes the process ofsetting up and tearing down calls, and explains the messages
that are involved in this process.
Audit End point (AUEP)
AuditConnection (AUOQ
Endpoin Configuration (EPCF)
CreateConnection (CRCX)
ModifyCoroectton (MDCX|
DeleteConnection (DLCX)
NolocationRe quest (RQNT)
Notify (NTFY)
RestartinProgress (RSP)
Call agent requests thostalus of an endpoint
Call agenl requests the status o(a connection
Call agent instructsihe gateway about the codingcharacteristics
expected by the "line-side"'ol the endpoint
Call agent instructs trie gateway to establish a correction wrth an
endpoml
Call agent instructsthe gateway to update its connection parameters
for a previously established connection
Gateway or call agent reports that it no longer has the resources to
sustain the call and intorms the recipient to delete connection
Call agent instructs the gateway to watch for events on an endpolnl
and the action to take when they occur
Gateway informs the call agent of an event for which notification was
requested
Gateway notifies the call agent that the gateway and rls endpoints are
removed from service or are being placed hack in service
MGCP packets are unlike what is found in manv other protocols. Usually wrapped in UDP port
2427. the MGCP datagrams are formatted withwhitespace, similarto what you wouldexpect
to find in TCPprotocols. An MGCP packet is either a command or a response.
Acall agent usescontrol messages to direct its gateways and their operational behavior.
Gatewav s use the control messages inresponding to requests from a call agent and notifying
the call agent of events and abnormal behavior.
Ihcreare multiple MGCP messages, twoof which arc used bv a call agent toquery Ihe state of
a Media Gatewav:
Auditl'ndpoint (Al'KP): fhis message requests the status of an endpoint. The call agent
issues the command. The following endpoint info can be audited with this command:
KequestedHvcnts. DigitMap. SignaiRequests. Rcquestldenlilier, QuarantineIIandling.
Notiliedfintity. Conneetionldentiliers. DetectEvenls. Observed Events, FvcntStates,
Bearerlnformation. KestartMethod. Rcstartl>ela>. ReasonCode, Packagel.isl.
MaxMGCPDatagram. and Capabilities. The response will in turn include infonnation about
each ofthe items for which auditing info was requested.
Autoconnection (Al'CX): This message requests the status of a connection. 1he call
agent issues the command.
Implementing Cisco Voice Communications and QoS (CVOICE) vS.O 2010 Cisco Systems, Inc
One message is used bya call agent tomanage a media gateway:
tndpointConfiguration (El'CF): The EndpointConfiguration command can be used to
specifv the encoding ofthe signals that will be received by the endpoint. For example, in
certain international telephony configurations, some calls will carry mu-law encoded audio
signals, while others will use A-law. The Call Agent can use the EndpointConfiguration
command to pass this information tothegateway. Theconfiguration may vary ona call-by-
call basis, but can also be used in the absence of any connection.
Three messages are used bya call agent to manage an RTP connection on a Media Gateway. (A
Media Gateway can also send a DUCX when it needs todelete a connection for itsself-
management):
CreateConnection(CRCX): fhis message instructs thegateway to establish a connection
withanendpoint. Thecall agent issues thecommand. Aconnection is defined by its
endpoints. Theinput parameters inCreateConnection provide the data necessary to build a
gateway "view" of a connection. Theparameters include thecodec, packetization period.
foSmarking, usage of echo cancellation, silence suppression, gain control, RTP security,
and resource reservation.
DeleteConnection(DLCX): This messageinformsthe recipientto deletea connection.
fhe call agent or the gateway can issuethe command. Thegateway or the call agent issues
the command to advise that it no longer has the resources to sustain the call. As a side
effect, the call agent collectsstatisticson theexecution ofthe connection. The statistics
include numberof packets sent, received, and lost, interarrival jitter, and average
transmission delay.
ModifyConnection(MDCX): This messageinstructs thegatewayto updateits connection
parameters for a previously established connection. The call agent issuesthe command.
The parameters usedare the sameas in the CreateConnection command, withthe addition
of a Conncctionld that identifies the connection within the endpoint.
One message is usedby a call agent to request notification of eventson the MediaGatewayand
to request a Media Gateway to apply signals:
NotificationRequest (RQNT): This messageinstructs the gateway to watch for eventson
an endpoint andthe actionto take whenthey occur. For example, a notification may be
requested for when a gateway detects that an endpoint is receiving tones associated with
fax communication. The entity receiving this notification may then decide to specify use of
a ditTerent type of encoding method in the connections bound to this endpoint and instruct
thegatewayaccordingly witha ModifyConnection command.
One message is usedby a MediaGateway to indicate to the call agent that it has detectedan
event for which notification was requested by the call agent (via the RQNT message):
Notify(NTFY): This message informs the call agent of an event for whichnotification was
requested, 'fhis message carries a list of events that the gateway detected and accumulated.
Asingle notification may report a list of events that will be reported in the order in which
they were detected (FIFO).
>2010 Cisco Systems. Inc. VoIP Call Legs 2-123
One verb isused bv a Media Gatewav to indicate tothe call agent thai it isinthe process of
restarting:
RestartlnProgress (RSIP): Thismessage notifies thecall agent that thegateway andits
endpoints are removed from service or are being placed back inservice, fhe gateway
issues the message. Themessage carries an EndPointld to identify theendpoint(s) that are
put in-serv iceor out-of-scrv ice. The RestartMethod parameter specifies the type of restart.
The following values have been defined:
"Graceful" restart method indicates that the specified endpoints will be taken out-of-
scrvice after the specified delav.
"forced" restart method indicates that the specified endpoints arc taken abruptly out-
of-servicc. The established connections, if any. are lost.
"Restart" method indicates that servicewill be restored on theendpoints after the
specified "restart delav."that is. the endpoints will be in-service. The endpoints are in
their clean default state and there are no connections that arc currently established on
the endpoints.
"Disconnected" method indicates that ihe endpoint has become disconnected and is
now tn ing lo establish connectivitv. The "restart delay" specifies the number of
seconds the endpoint has been disconnected. F.slablished connections are not
affected.
"Cancel-graceful"method indicates that a gateway is canceling a previously issued
"graceful" restart command. The endpoints are still in-service.
2-124 Implementing Cisco Voice Communications and QoS (CVOICE) v8 0 2010 Cisco Systems Inc
Residential Gateway to Residential Gateway
This subtopic describes the process ofsetting up and tearing down calls when two residential
gateways communicate over thecall agent.
MGCP Call Flows
Residential Gateway to Residential Gateway
The figure illustrates a dialogbetween a call agent and two residential gateways:
Step 1 The call agent sendsan RQNTto each gateway. Because they are residential
gateways, the request instructs the gateways to wait for an off-hooktransition
(event). When the off-hook transition event occurs, the call agent instructs the
gateways tosupply a dial tone(signal), 'fhe call agent asksthegateway tomonitor
for odier events as well. By providing a digit map in the request, the call agent can
have the gateway collect digits before il notifies the call agent.
Step 2 The gateways respond to the request. At this point, the gateways and the call agent
wait for a triggering event.
Step3 Auser on gateway Agoes off'hook. As instructed by the call agent in its earlier
request the gateway provides a dial tone. Because thegateway is provided witha
digit map. it begins to collect digits (as they are dialed) until either a match is made
or no match is possible. For the remainder of this example, assume that the digits
match a digit map entry.
Step 4 Gateway A sends an NTFY to the call agent to advise the call agent that a requested
event was observed, 'fhe NTFY identities the endpoint, the event, and in this case,
the dialed digits.
Step 5 After confirming that a call is possible based on the dialed digits, the call agent
instructs gateway A to create a connection (by sending CRCX) with its endpoint.
Step 6 The gateway responds with a session description if it is able to accommodate the
connection. The session description identifies at least the IP address and UDP port
for use in a subsequent RTP session. The gateway does not have a session
description for the remote side ofthe call, and the connection enters a wait state.
) 2010 Cisco Systems, Inc. VoIP Call Legs 2-125
Step 7 The call agent prepares and sends a connection request togateway B. Inthe request,
the call agent prov ides the session description that isobtained from gateway A. The
connection request is targeted lo a singleendpoint (if onlyone endpoint is capable of
processing the call) or to anv one of a set of endpoints. The call agent alsoembedsa
notification request that instructs the gateway about the signalsand eventsthat it
should now considerrelevant. In this example, wherethe gateway is residential, the
signal requests ringing and the event is an off-hook transition.
Note The interaction between gateway Band its attached user has been simplified.
Step8 Gatewav Bresponds to the request with its session description. Noticethat gateway
B has both session descriptions and recognizes how lo establish its RTP sessions.
Step 9 fhe call agent relays the session description to gateway A in an MDCX. This
request may contain an encapsulated NTFY request that describes the relevant
signals and events at this stageofthe call setup. Now gateway Aand gateway B
have the required session descriptions to establish the RIP sessions over which the
audio travels.
Step 10 At the conclusion ofthe call, one ofthe endpoints recognizes an on-hook transition.
In the example, the user on gatewav A hangs up. Becausethe call agent requested
the gateways to notify the call agent in such an event, gateway A notifies the call
agent.
Step 11 The call agent sends a Dl.CX requesl to each gateway.
Step 12 The gatewavs delete the connections and respond.
2-126 Implementing Cisco Voice Communications and QoS (CVOICE) vS.O 2010 Cisco Systems, Inc.
Trunking Gateway to Trunking Gateway
This subtopic describes the process ofsetting up and tearing down calls when two trunking
gateways communicate overthecall agent.
MGCP Call Flows (Cont)
Trunking Gateway to Trunking Gateway
Gateway^
CRCX (SDP) i
'CRCX Response (SDP)!
Q931 Setup
i '
! Q931 Alerting ;
] !
' !
Q931 Connect ;
"fhe figure illustrates a dialog between a call agent and twotrunking gateways:
Step1 AQ931 Setup message comes in tothecall agent on anISDN trunk. Thisaction
triggers the call agent toanalyze the Setup message and decide how tomanage it by
consulting its local configuration. Thelocal configuration tellsthecall agent toset
upa call between two specific endpoints onGateways Aand B.
Step 2 The call agent sends two CRCX messages thataresimilar to the call flow illustrated
for residential-to-residential scenario.
Step3 Both gateways respond with a session description thatcontains the IPaddress and
UDPport for use inthe subsequent RTPsession.
Step 4 When the destination endpoint seizes theline, the destination central office (CO)
switch sends the Q.931 Alerting message to the eall agent.
Step 5 The call agent sendsan MDCX to gateway A. The ConneetionMode is nowset to
recvonly. Thisis because, at thispoint, only theringing loneneeds to flow back to
the originating side. Theoriginating side cannot sendaudioyet.
Step 6 Afterthe terminating phoneis pickedup, the destination COsendsthe Q931
Connect message to the call agent.
Step7 The call agent sends an MDCX logateway A, setting themode tosendrccv. This
step completes the setup of gateways for two-way audio.
>2010 Cisco Systems. Inc
VoIP Call Legs 2-127
MGCP Special Considerations
This topic describes the ISDN PRI Backhaul feature, the codec negotiation, and the digit
collection process in MGCP.
PRI Backhaul
D-channel call-setup signals
need to be earned in their
raw form back to the Cisco
Unified Communications
Manager to be processed
Gateway terminates data
link layer and passes the
rest of signals (0 931 and
above) to Cisco Unified
Communications Manager
via TCP port 2428.
D-channel will be down
unless it can communicate
with Cisco Unified
Communications Manager
Cisco Unified
Communications
Manager
A PRI backhaul is an interna] interface between Cisco Unified Communications Manager and
CiscoMGCP galewav s (that is. a separate channel lor backhauling signaling infonnation). It
forwards l.aver 3 PRI (0-931) backhaulcdover a TCP connection. Layer 3 informationis
forwarded independent of the native protocol that is used on the PSTN time-division
multiplexing (TDM) interface.
A PRI is distinguished from other interfaces by ihe fact that data received from the PSTN on
the D-channel must be carried in its raw form back to fhe Cisco Unified Communications
Manager to be processed, 'fhe gateway does not process or change this signaling data, it simply
passes it onto the call agent through I'CPport 2428. The gateway is still responsible for the
terminationofthe l.aver 2 data. That means that all the Q.921 data link layer connection
protocols are terminatedon the gatewav. bul evcrv'lhing above that (Q.931 network layer data
and beyond) is passed ontothe call agent. This also means that the gateway does not bringup
the D-channel unless it can communicate with Cisco UnifiedCommunications Manager to
backhaul the Q.931 messages, contained in the D-channcl. The figure illustrates these
relationships.
2-128 Implementing Cisco Voice Communications and QoS (CVOICE) v8 0 )2010 Cisco Systems. Inc
Codec Negotiation (Residential Gateway-to-Residential
Gateway Example)
This subtopic explains the codec negotiation in MGCP. This example shows how residential
gateways communicate over a call agent.
Codec Negotiation (Residential
Gateway-to-Residential Gateway)
Cffl Hook and
Dialed 5551234
MGCP uses SOP lo describe
and negotiate media
parwnetera: RTPjRTCP ports
and codecs.
Codec proposals are sen!
OGW->CA->TGW.
Codec corflkmaUon is sen
TGW->CA-OGW.
On Hook
DLCX
CRCX (SOP.
npcfl Pponse CSPP); Encapsulated
-DICX_
Ringing,
Then Answer
MGCP supports
early media. Ifearly
media is negotiated,
media channel is
established before
the call is accepted.
This subtopic explains the codec negotiation in MGCP between residential gateways. The
figure showstwo residential gateways communicating over a call agent, but the sameprocess is
involved with other gateway combinations. Like in Session Initiation Protocol (SIP), MGCP
gateways use SDPtoexchange mediacapabilities. The figure illustrates the SDPmessages that
carry the mediacodec information, and RTP/UDP port numbers. The codecproposalsand port
numbers ofthe originating gateway are sent in the CRCX response lo the first CRCXmessage,
and then forwarded to the terminatinggateway in the subsequent CRCX message. The
terminating gateway encapsulates the selectedcodecand its RTPport numbers inthe CRCX
Response lo the call agent, and this information is then forwarded to the originating gateway in
the MDCX message.
Like 11323 and SIP, MGCP supports early media. If early media is successfully negotiated, the
gateways start streaming the media before the call is answered.
) 2010 Cisco Systems, Inc. VoIP Call Legs 2-129
Digit Collection
This subtopic explains ihe digit collection process in MGCP
Digit Collection
Gait-
AgBftt:
=' Notilication Requesl (RQNT)
NTFY (Off-hookl
- b D 1C
li
1 '2 -3
1-
a s 4 E
- 8 P 1"
1-
z 12 '4 *
The figure illustrates the concept ofvoice translation profiles and rules. Each voice translation
rule can have up to 15 individual subrules. Amaximum of128 translation rules are supported.
The \ oice translation rule isthen referenced by a voice translation profile for called, calling,
and redirected called number.
Note lhat the same voice translation rule can bereferenced bymultiple voice translation
profiles.
Note Although you can have up to 15 subrules within a voice translation rule, the first matching
rule will beapplied and no further subrules will beconsidered. __
>2010 Cisco Systems, Inc.
Dial Plan Implementation 4-73
Voice Translation Rule Regular Expressions
This subtopic describes the regular expressions that arc used by voice translation rules.
Voice Translation Rule Re<
* Matchthe expressionst the start of a line,
$ Malchihe expression at Ihe end of the line
/ Delimiter marking start and end ofboth matching and replacement strings.
\ Escape Ihe special meaningofthe nextcharacter.
Indicates a range when used withinbrackets.
[list] Match a single character in a list.
['Hist] Donotmatch a single characterspecified inIhelist
M3tch any single character
Repeattheprevious regular expression zeroor morelimes.
+ Repeat the previous regular expression one or more times
, Repeat theprevious regular expression zerooronelime (useCtfl-V inorder
to enter in Cisco !OS Software)
() Groups regular expressions UseV1-9 torefer lomatched groups.
& Match thesubstring (matched string) You may alsouse\0.
Voice translation rules use regular expressions for match-and-replace operations, "fhe table
describes themost important regular expressions.
Regular Expressions for Voice Translation Rules
Voice Translation
Rule Character
[list]
Alist]
Description
Match the expression at the start of a line
Match the expression at the end of the line.
Delimiter that marks the start and end of both the matching and replacement
strings
Escape the special meaning of the next character.
Indicates a range when not in the first/last position. Used with '[' ,and ']
Match a single character in a list.
Donot matcha single character that is specifiedinthe list.
Match any single character
Repeat the previous regular expression zero or more times
Repeat the previous regular expression one or more times.
Repeat the previous regular expression zero times or one time
Groups regular expressions.
4-74 Implementing CiscoVoice Communications and QoS (CVOICE) v8.i
>2010Cisco Systems, Inc.
Voice Translation Rule Operations
Thissubtopic explains voice translation ruleoperations.
Voice Translation Rule Operations
PSTN-Out
The rule rule 1 /rt821 S/ /3005551 / says
match 82 I.
Site A, DID: 200-555-3xxx
1xxx
User dials 821001 to
reach a Site B user but
call goes through PSTN
and change to 3005551
SiteB
Intersite Prefix: 8
Site Code: 21
DID; 300-555-1xxx
PSTN-ln
The rule rule 1 /A2005553 S/ /1 / ^VS
match 2005553 and change to 1..
Use the voice translation-rule command to create the definition of a translation rule. When the
router evaluatesa translation rule, it is reallyonly performing a "matchthis and changeto this"
operation on the regular expression.
Consider the following examples:
This rule will be used to change die outgoing called number to a 10-digit number for
routingacrossthe PSTN. The rule will be appliedoutgoingon an interface, port, or dial
peer,
Router(config)# voice translation-rule PSTN-out
Router(config)# rule 1 /A821...$/ /3005551.../
This rule will be used to change the incoming calling number to a four-digit number after
routingacrossthe PSTN. Therule will be appliedincomingon an interface, port, or dial
peer.
Router(config)# voice translation-rule PSTN-in
Router(config)U rule 1 /"2005553...$/ /l.../
This table shows ihe match-and-replace operations for each rule:
Rule Match This Change To
/"821 S//3005551 ../ 821... 3005551...
/A200553...$//!.../ /2005553.../ /!../
>2010 Cisco Systems. Inc Dial Plan Implementation
Prepending Digits
fhis subtopic explains howto use voice translation rules for prepending digits.
ing Digits
\ = escape character
User sees
93005551234 m
thecal! lisl and
can call hack
Calling number:
93005551234 Gateway prepends 9 to
incoming calling number
for calling back
-PSTW-
Calling number.
3005551234
3005551234
Voice translation rules provide a handy way to prepend a 9 to all outgoing calls. It would not be
feasible to use indi\ idual translation rules for each number because ofthe number of rules
needed. The following is an example of voice translation rules:
rule 1 /30C5550100/ /93005550100/
rule 2 -'3005550101/ /93005550101/
rule 3 ''3005550102/ /93005550102/
Using a \ariable simplifies the configuration effort. Translation rule expressions can be divided
into sections b> using an "escape"" character to create these variables. The regular expression
escape character is "V.
For example. \ou may use the following translation rule lo prepend a 9 lo outgoing calls for
routing through the PS'I'N:
rule 1 /\("[2-9] \)/ /9\l/
This rule would prepend a 9 to whatever was matched in the first set of parenthesis (\l). In
other words, it would replace \! with A[2-9j ) and add a 9 to the beginning.
4-76 Implementing Cisco Voice Communications and QoS (CVOICE) v8 0 2010 Cisco Systems. Inc.
Voice Translation Rule Search-and-Replace Examples
This subtopic provides common usage examples of voice translation rules.
Voice Translation Rule Search-and-
Replace Examples
1*911/
/*2001//3001/
/1231...//4D0a
/"2...//801SJ
/*2...//801\Qf
/.V/91&/type national
national
& ix '0 rnii he used to
replace Iheoriq'na! digits
in out
mj _ 913005552001 type
3005552001 type national nMQMi
The table lists sonic search-and-replace operations that use voice translation rules.
Examples of Voice Translation Rules
Rule
Input String
Output String
/A9/ //
913005550123
13005550123
/A2001//3001/ 2001
3001
/*[23]...//4000/ 2025 or 3051 4000
/A2...//801&/ 2001
8012001
/A2...//80t\0/
2001
8012001
A(9\)\([A10].*\)/A114Q8\2/ 95551234
914085551234
/,*/ /91&/ type national national
3005552001 type national 913005552001 type national
12010 Cisco Systems, Inc.
Dial Plan Implementation 4-77
Voice Translation Rule Search-am
Replace Examples (Cont.)
Translation Rule: A(9\)\([A01 ].*\)/ A1130012/
Search
Replace
1300
Input
Output
1300
This example shows acomplex search-and-replacc operation in which this rule is configured:
rule 1 /\(9\)\(["01].*\)/ /\11300\2/
Theexample would begood for prepending a long distance T' andanareacodetoa dialed
number that is exiling die network viathePSTN andaccessing a long-distance subscriber, 'fhe
user would be dialing a 9 plus seven digits to access outside numbers.
If the input string95550134 is used, the operation proceedsas follows:
Step 1 The 9 will be reinserted using the \l.
Step 2 This entry is followed by the digits 1300.
Step3 fhis entry is thenfollowed by 5550134. whichis referenced by the \2.
Step 4 Theresulting string would be 913005550134.
Note
Tne first set of parentheses is referenced as \1 and the second set as \2
Implementing Cisco Voice Communications and QoS (CVOICE) v8 0
2010 Cisco Systems, Inc.
Assigning Rules to Profiles
This subtopic explains how toassign rules to profiles.
Assigning Rules to Profiles
Attribute Description
called Definesthe translation profile rule forthe
called number
calling Defines the translation profile rule for the
calling number
redirect-caled Definesthe translation profile rule for the
redirect-called number
The voice translation profiles collect asetof rules that, taken together, translate the called,
calling, and redirected numbers in specific ways. Up to 1000 profiles can be defined. Each
profile must have a unique name. After atranslation profile isdefined, it can be attached to
these elements:
Trunk Group: Two different translation profiles can bedefined ina trunk group inorder
to perform number translation for incoming and outgoing POTS calls.
Source IPGroup: Atranslation profile can beattached toa source IPgroup inorder to
perform number translation for ineoming VoIP calls.
Dial Peer: Twodifferent translation profilescanbe definedin a dial peer in order to
perform number translation forincoming and outgoing calls.
Voice Port: Two different translation profiles can bedefined ina dial voice port inorder to
perform number translation for incoming and outgoing calls. If a voice portis also a trunk
group member, then the incoming translation profile ofa voice port overrides the
translation profile of a trunk group.
NFASInterface: Thetranslation profilecanbe attachedto an NFAS interface.
>2010 Cisco Systems. Inc
Dial Plan Implementation 4-79
Translation Profile Processing Order
This subtopic discusses the processing order of multiple translation profiles that are attached to
various elements.
Translation Profile Processing Order
JPOTS J POTS 1POTS J VoIP
Voice Port Trunk Group NFAS Interface Source Group
4
Inbound Dial Peer
\
Outbound Dial Peer
Ipots j pots 4pots I
Voice Port Trunk Group NFAS Interface I
voip
|P0TS JPOTS JPOTS
When a POTS call arri\es ongateway, the gateway tirst checks the incoming voice translation
profile ofthegiven voice port. Ifthe incoming call arrives through a port without anincoming
translation profile but belongs toa trunk group with such a profile, thetrunk group profile is
used. If the POTS call arri\es overan NFAS interface, its incoming profile is applied. The
general ruleisthat themore specific setting overwrites themore generic configuration. If the
call arrives as VoIP, the incoming Source (irouptranslation profile is applied tothecall if the
source address ofthe VoIPcall is matchedbv the SourceGroupdefinition.
Next, the incoming translation profile that is applied tothe inbound dial peeris processed,
followed bv the outgoingtranslation profile inthe outbound dial peer. If the call is forwarded as
a POTS call, it is still processed by the outgoing translation profilelhal is configured on the
givenvoiceport, trunk group, or NFAS interface. The voiceport settingoverrides the trunk
group configuration, if both are available.
Implementing Cisco Voice Communications and QoS (CVOICE] v8.0
2010 Cisco Systems, Inc.
Incoming PSTNCall Example 1
This subtopic provides an example of called number translation for ineoming PSTN calls
Incoming PSTN Call Example 1
Translation Profile Applied to Inbound Dial Peer
It
voice translation-rule 1
rule 1 /-2005552/ /I/
I
voice translation-profile pstn-io
translate called 1
I
dial-peer voice 1 pots
translation-profile incoming pstn-in
incasing called-number .
DID.2D05552XXX
VV
PSTN
Phone rugs
Profile moaties called number
to 1001
User dials
12005552001
The example inthe figure illustrates how voice translation profiles are used totranslate the
called number.
The incoming call is processed inthe following order:
Step 1 A PSTNuser dials 1-200-555-2001.
Step 2 The call isrouted toCisco Unified Communications Manager Express, which has a
DID range of 42005552XXX. Thevoice translation profile modifies the called
number to 1001, which matches the dial peer ofthe registered phone.
Step 3 The Cisco Unified IP phone rings.
>2010 Cisco Systems. Inc.
Dial Plan Implementation
Incoming PSTN Call Example 2
This subtopic provides an example oftranslating both the calling and called number for
incoming PSfN calls.
Incoming PSTN Call Example
Translation Profile Applied to Voice Port
voice trail elation-rule 1
rule 1 /* 2005552/ 12!
voice ttanElation-rule 2
rule i r . / /9s/ type sub scriber nub riber
rula 2 / .'/ /SIS/ type na tional r ati ll
rule i i .*/ /9011s/ type nterna ional international
voice tranelation-profile p tn-in
trail slate called 1
ttan late calling 2
voice port 0/0/0:15
tran lati on-profile incoming pstn in
Inthisexample, the\oice translation profile is required toperform the following
manipulations:
The incoming called number 2005552XXX should be modified to 2XXX,
fhe incoming calling number should be prefixed with theappropriate PSTN access code
and identifier;
local calls: Prefix 9
National calls: Prefix 91
International calls: Prefix 9011
An inbound PSTN call is processed as follows:
Step 1 A PSTN user dials l-200-555-2001 from 300-555-0123.
Step 2 The gatewav accepts the call and modifies the calling and called numbers. The rule
/A2005552/ IIImodifies thecalled number to 2001. and therule/W/9I&/ type
national national modifies the calling number to 9-1-300-555-0123.
Step 3 The internal phone rings.
Implementing Cisco Voice Communications and QoS (CVOICE) v8 0
2010 Cisco Syslems. Inc
Incoming PSTN Call Blocking Example
This subtopic provides an example of how to selectively block incoming PSTN calls.
incoming PSTN Call Blocking Example
Block calls from PSTN area code 399-555
voice translation-rule 1
rule 1 reject /'3S9555/
voice translation profil* bloc*
translate calling 1
dial-peer voice 1 pota
call-block translation-profile incoming block
call-block disconnect-cause incoming invalid_number
incoming called-number .
Calls can beblocked when arriving onthe gateway. Outgoing calls cannot beblocked. From
the perspective ofthe gateway, the incoming direction can be either ofthe following:
Incoming from a voice port
Incoming over an inbound VoIPcall froma peer gateway
In this call-blocking example, the gateway blocks any incoming call that successfully matches
inbound dial peer 1and has a calling number that starts with 399555. Acomponent ofthecall-
block command isthe ability toreturn adisconnect cause. These values include call-reject,
invalid-number, unassigned-number, and user-busy. In this example, when the dial peer 1
matches acall and the calling number starts with 399555, the gateway will reject the call and
return a disconnect cause of "invalid number' to the source ofthe call.
i 2010 Cisco Systems, Inc
Dial Plan Implementation 4-83
Digit Manipulation Using dialplan-pattern
Command
This topic describes digit manipulation using the dialplan-pattern command.
Digit Manipulation Using dialplan-
pattern Command
routerlconfig-telephony)#
router(config-register-global)#
dialplan-pattern tag pattern extension-length extension-length
[extension-pattern extension-pattern | no-reg] [demote]
* Expands extension numbers into fullyqualified E 164 numbers
Creates another dial peer for everySCCP and SIP directory
number
pattern. PSTN area code, prefix, and the first one or two digits of
the extension number, plus dots (.)for remainingextension digits
no-reg option prevents the E.164 numbers from registering with
gatekeeper
demote keyword enables "+"E.164 inbound dialing
Availablefor SCCP (telephony-service) and SIP (voice register
global) Cisco Unified Communications Manager Express endpoints
* Does not apply for analog endpoints attached to FXS ports
Alternative voice translation profiles
The dialplan-pattern command, available inCisco Unified Communications Manager F.xpress
mode fbr SCCP (telephony-service) and SIP (voice register global) endpoints. creates a pattern
forexpanding internal extensions into fully qualified E.164 numbers.
The command maps internal extensions toDID numbers. This mapping isdone by dynamically
creating a new dial peer that has the DID number ol'a phone asthedestination pattern. Ihis dial
peeris alsoused for outbound callsto present thecorrect calling number andcanbe used to
register the full DIDnumber with a gatekeeper.
If multiple dial-plan patterns aredefined, thesystem matches extension numbers against the
patterns insequential order, starting with the lowest numbered dial-plan pattern tagfirst. Once
a pattern matches an extension number, the patternis usedto generatean expanded number. If
additional patterns subsequently match the extension number, theyare not used.
Thenumber expansion does not cover extensions of KXS ports andvoice-mail pilots.
fhe demote option enables the internal endpoints tobereached from PS'I'N using L. 164
numbers with the- prefix. Thedialplan-pattern command is then used in theopposite wav.
because the endpoints are configured using L.164numbers, and as such can be reached from
the PSTN. The internal users, however, candial each other by usingshorterextensions defined
by the extension-length kevword.
As an alternative to the dialplan-pattern command, voice translation profiles can be
configured to mapthe internal extensions to DIDnumbers. The voicetranslation profiles,
however, are more complex and do not register theexpanded numbers onthegatekeeper.
4-84 Implemenling Cisco Voice Communications and QoS (CVOICE) vS.O
2010 Cisco Systems, Inc
Digit Manipulation Using dialplan-pattern Command Example 1
This subtopic presents an example ofhow to use the dialplan-pattern command.
Digit Manipulation Using dialplan-
pattern Command Example 1
Leading Extension Digits Match DID Range
voice register global
aialplan-pattera 1 2005552... extanaion-langth 4
I
telephony-service
dialplan-pattsro 1 2005552... extension-length 4
The figure shows how to use the dialplan-pattern command when the leading extension digits
match the DID range,
An incoming PSTN call is processed in the following order:
Step1 A PSTN user dials 1-200-555-2001.
Step 2 The call isrouted toCisco Unified Communications Manager Express, which has a
DIDrange of 2005552XXX.
The gateway matches the outbound dial peer for the called number 200-555-2001
that is automatically created by the dialplan-pattern command for Ihe registered
phonewithextension2001.
Step 3 The registered phone with extension 2001 rings.
Note Analog phones thatare connected to FXS ports are notservedbythiscommand.
) 2010 Cisco Systems, Inc.
Dial Plan Implementation 4-85
Digit Manipulation Using dialplan-pattern Command Example 2
Ihis subtopic provides an example for using the dialplan-pattern command with the
extension-pattern option.
Digit Manipulation Using dialplan-
pattern Command Example 2
Leading Extension Digits Do Not Match DID Range
voice register global
dialplan- pattern 1 2005552... extension- length 4 extension-pattern 1
I
tele phony-service
dialplan-pattern 1 2005552... extension-length 4 extension-pattern 1.,
The figure illuslrates how to use the dialplan-pattern command when the leading extension
digits do not match the DIDrange.
The difference from the prev ious example is inhow ihegateway infiates the number. Instead of
just prepending the DID prefix, the internal range IXXX is mapped tothe DID range
2005552XXX,
4-86 Implemenling Cisco VoiceCommunicalions and QoS (CVOICE] v8.0
)2010 Cisco Systems, Inc
mm
Digit Manipulation Using dialplan-pattern Command Example 3
This subtopic provides an example for using the dialplan-pattern command to support
inbound E. 164 "+" dialing.
Digit Manipulation Using dialplan-
pattern Command Example 3
Dialing Using + Prefix
i/oica register global
dialplan-pattern 1 42005552... extension-length 4 denote
telepbony-aervice
dialplan-pattern 1 2D0S552... extanaion-length 4 demote
o
Phone mgs
+2005552001 DO *2005552XXX
Internal endpoints can cal
each other using internal
extensions, such as 2001
Vv
Dialplan-pattem does nol
modify the called number
PSTN
y\_
User dials
2005552001
This figure illustrates how the demote option enables the PSTN toreach the Cisco Unified
Communications Manager Express endpoints using E.164 withthe+ prefix.
The dialplan-pattern command can beused intheopposite way byadding thekeyword
demote to the end ofthe command. In this case it demotes IP phone directory numbers that are
specified inE.164 fonnat with a+prefix toshorter extensions, which are tobeused internally.
External callers placecalls to thephones using E.164 format with a + prefix. If thecallsare not
natively received inthis format from thePSTN you have totransform thecalled number using
other methods, suchas translation profiles. Internal users, however, can dial eachother by
using shorter extensions, which areset upbythedialplan-pattern command.
Inthis example, thephones areconfigured with directory numbers +200555.... and have to be
called like that from the outside. Internal users, however, can call each other by using the last
four digits,
>2010 Cisco Syslems, Inc.
Dial Plan Implementation 4-87
Verifying Digit Manipulation
This topic describes hov\ tovcrifv digitmanipulation.
Verifying Digit Manipulation Overview
Command
showdial plan number
show voice translation-profile
show voice translation-rule
test voice translation-rule
Description"
Displaysthe matching outgoingdial peer for
a telephone number
Displays all or selected voice translation
profiles
Displays all or selected voice translation
rules
Tests Ihe operation of a voice translation rule
for a specific telephone number
Cisco Unified Communications Manager Express allows verification and testing of digit
manipulation using the show dialplan number, show voice translation-rule, show voice
translation-pro file, and test voice translation-rule commands.
Implementing Cisco Voice Communicalions and QoS (CVOICE] v8 0 2010 Cisco Systems, Inc
II
Verifying Dial Plan
This subtopic explains how toverify the dial plan.
Verifying Dial Plan
router# show dialplan number 913005551234
Macro Exp.: S13005551234
VoiceBncapPeer91
peer type - voice.
information type = voice.
description = ~',
tag = 91, destinati
answer-address = ~' , preference*!).
CLID Restriction - Nona
CLID Network Dumber = '5551234'
CLID Second Number sent
CLID Override RDNIS . disabled.
The show dialplan number command displays which outgoing dial peer isreached when a
particular telephone number is dialed. This command is useful for testing whether the dial plan
configuration is valid and working as expected. Itincludes various additional parameters,
including the CLID options that aresetfora particular dial peer.
>2010 Cisco Systems. Inc.
Dial Plan Implementation
Verifying Translation Rules and Profiles
This subtopic describes how toverify translation rules and proliles.
router* show voice translation r le 1
Tiansllticn-ruls tag: 1
Rule ::
Match pattern: *55S\I.
\)
Replace pattern; 444V1
Ma ten type: none
Replace type: none
Match plan: none
Replace plan: none
Rule 2
Match pattern: 777
Replace pattern: 8S8
Match type: national Replace type: unknown
Match plan: any
Replace plan: ifidn
router* show voice translation- profJle
Translation Profile: swap prefi X
Rule (ot Calling number
Rule for Called number: 1
Theshow voicetranslation-rule command displavs oneor more translation rules. Il canbe
used for viewing a particular translation rule or all translation rules that aredisplayed in
ascending or descending order. The output also lists the numbered subrules.
The show voice translation-profile command displays one or more translation profiles. It can
be used for viewing a particular translation profile orall translation profiles that are displaved
in ascending or descending order.
4-90 Implemenling Cisco Voice Communications and QoS (CVOICE] vB.O
'2010 Cisco Systems, Inc
Testing Translation Rules
This subtopic explains how totest translation rules.
Testing Translation Rules
router* test voice translation-rule 5 2015550101
Matched with rule 5
Original numberi2015550101 Translated number:1025550101
Original number type: none Translated number type: none
Original number plan: none Translated number plan; none
router* test voice translation-rule 5 2125550101
2125550101 Didn't match with any rules
The test voice translation-rule command is usedto test the functionality of a translation rule.
'fhe complete command syntax is as follows:
test voicetranslation-rule number input-test-string [typematch-type [plan match-type] ]
The number type and calling plan are optional parameters that are defined ina translation rule.
Ifeither parameter isdefined, the call must match the match pattern and the type orplan value
in order to be selected for translation.
Validvalues for the type match-type argument are as follows:
abbreviated: Abbreviated representation ofthe complete number
any: Any type of called number
international: Number called to reach a subscriber in another country
national: Numberto reacha subscriberin the samecountry but outsidethe local network
network: Administrative or service number specific to the serving network
reserved: Reserved for extension
subscriber: Number called to reach a subscriber in the same local network
unknown: Number of a type lhat is unknown to the network
Valid values for the plan match-type argument are as follows:
any: Any type of called number
data: Number called for data calls
ermes: European Radio Message standard numbering plan
isdn: Called number for an ISDN network
) 2010 Cisco Systems. Inc.
Dial Plan Implementation
national: Number called toreach a subscriber inthe same country buloutside the local
network
private: Number called for a private network
reserved: Reserved for extension
telex: Numbering plan lor telex equipment
unknown: Number of a type thai is unknown to the network
4-92 Implementing Cisco Voice Communications and QoS (CVOICE) v8 0 2D1D Cisco Systems. Inc
Summary
This topic summarizes the key points that were discussed in this lesson.
Summary
Thegateway typically collects digits ona digit-by-digit basis.
En bloc collection is characteristic for SIP INVITE messages
from simple SIPphonesand call setupmessages received
over digital PSTN trunks.
Digit manipulation canbe applied globally, toVoIP calls
originated from specific IP addresses, todial peers(inbound
and outbound), and voice ports(inbound and outbound).
Digit stripping in called numbers is controlled by thedigit-
strip and forward-digits command.
1The forward-digit command defines how many digits ofthe
called number are forwarded and has different defaults for
POTS and VoIP dial peers.
Summary (Cont.)
) 2010 Cisco Systems. Inc.
The prefix commandis used to prepend a prefix to the called
number.
Number expansion convertsa particular set of numbers into
a defined destination pattern.
The did command is used to modifycalling line ID
information.
Voice translation rules and profiles are used to manipulate
the calling, called, and redirect numbers.
The dialplan pattern commandadds fully qualified E.164
numbers for registered Cisco Unified Communications
Manager Express endpoints.
Verification ofdigit manipulation may involve the viewing of
the dial plan and testing of translation rules.
Dial Plan Implementation 4-93
4-94 Implementing Cisco Voice Communicationsand QoS (CVOICE) v8.0 2010 Cisco Systems, Inc.
mm
Lesson 41
Configuring Path Selection
Overview
Path selection isoneofthe most important aspects of a well-designed VoIP system. High
availability is desirable so that there is usually more than one path for acall to take to ils final
destination. Multiple paths provide several benefits, including redundancy in case ofa link
failure or insufficient resources on that linkand a reductionin toll costs of a call. This lesson
introduces the path selection strategies and methods toimplement them.
Objectives
Upon completing this lesson, you will be able todescribe how agateway can be configured to
perform path selection. This ability includes being able tomeet these objectives:
Describe how the voice gateways select thecorrect path when routing voice calls
Explain how agateway matches dial peers todetermine path selection
Describe die variouspathselection strategies
Describe the characteristicsof site-code dialing and toll bypass
Describe howto configure site-codedialingand toll bypassin a gateway
Explain theprinciple andcharacteristics of TF.110
Describe how to configure TEHO
Call Routing and Path Selection
This topic provides an overview ofcall routing and path selection.
Call Routing and Path Selection
Relies on dial peers
Route to;
Digital or analog voice circuits
- VoIP peers (H.323 or SIP)
Registered Cisco Unified IP phones
* One dial peer associated with each call leg
Thecall-routing logicon Cisco IOS gateways relieson the dial-peerconstruct. Each cal!
passing through the Cisco IOS router isconsidered tohave two call legs, one entering the router
and one exiting the router, fhe call legentering therouter istheincoming call leg. while the
call legexiting the router is the outgoing call leg.
fhere are two main tvpes of call legs:
Traditional telephony calllegs: Connect tothepublic switched telephone network
(PSTN). analog phones, or PBXs
IP call legs: Connect the routerto other gateways, gatekeepers, or Cisco Unified
Communications Manager F.xpress systems
Dial peers are of two main types:
Plain oldtelephoneserv ice(POTS) dial peers: Associated with traditional telephony call
legs
VoIP dial peers: Associated v\ith IP call legs
Cisco Unified Communications Manager Express implements theendpoints differently
depending on the signaling protocol, as follows:
CiscoUnified Communications ManagerF-xpress createsPOTS dial peers for Skinny
Client Control Protocol (SCCP) endpoints. Therefore, (heir call legs are considered POTS,
although SCCP is a VoIP protocol.
Cisco UnifiedCommunications Manager Express creates VoIPdial peers for Session
Initiation Protocol (SIP) endpoints. Communicationbelween SIP phones and other VoIP
dev ices musl be explicitly permitted by the allow-conneetions sip to h323 and allow-
connections sip to sip commands in voice service voip mode.
4-96 Implementing Cisco Voice Communications and QoS (CVOICE] v8.0
2010 Cisco Systems, Inc
Dial-Peer Matching
This topic describes how dial-peer matching isrelated topath selection.
Matching Dial Peers
Incoming Outgoing
Call Leg Call Leg
\ /
Incoming Outgoing
Dial Peers Dial Peers
H.323/SIP Gateway
Gateways must match Ihe correct inbound and outbound dial peers tosuccessfully complete a
call. Eor all calls going through thegateway, theCisco IOS gateway associates onedial peerto
each call leg. The figure shows examples of different types of calls going through a Cisco IOS
gatewav'.
>2010 Cisco Systems, Inc.
Dial Plan Implementation 4-97
Dial Peer Matching Refresher
This subtopic prov idesa refresher of dial-peer matching.
Dial-Peer Matching Refresher
Inbound dial-peer matching:
Called numberwith incoming called-number
.':. Calling numberwith answer-address
Calling number with destination-pattern
'-. For POTS: voice-port matches with dial-peer port
": Still no match: default dial peer 0 is used
Outbound dial-peer matching:
i Gateway tries to match the called number with
destination-pattern
7 By default, if multiple matches are found, the best
(numerically lowest) preference wins
s By default, if equal preferences are found, a random dial
peer is chosen.
The figure provides a rev iew of inbound andoutbound dial-peer matching.
Inbound Dial-Peer Matching
Inbound dial-peermatching for digital POTS and VoIPdial peers is prioritized as follows:
1. If thecalled number matches theincomingcalled-numberconfiguration on a dial peer,
thisdial peerwill beselected as theinbound dial peer. Nofurther matching is perfomied.
2. If no dial peer has been found, the calling number is checked. If the answer-address
configuration of a dial peer is matched, this dial peer will be seiecledand no further
matching is performed.
3. If the callingnumbermatches vsith the destination-pattern configuration of a dial peer,
this dial peer uill be selected and no further matching is performed.
4. If none ofthe above were successful and thecall is inbound on a POTS port, a dial peer
v\ith a matching voice-port configuration is searched.
5. If a match is still not found, the default dial peer 0 is used.
The routerneeds lo matchonlyone of theseconditions. It is nol necessary for all theattributes
to be configured in the dial peer or that every attribute match Ihc call setup infonnation. The
router stops searching as soon as one dial peer is matched, and the call is routed according lo
the configured dial-peerattributes. Evenif there are other dial peersthat wouldmatch, onlythe
first match is used.
Note Atypical misconception about inbound dial-peer matchingis that the session-target of a
dial peer is used This is not true, instead, use the incoming called-number or answer-
address command to ensure that the correct inbound dial peer is selected.
Implementing Cisco Voice Communications and QoS (CVOICE) v8 0
2010CISCO Systems. Inc.
Inbound dial-peer matching for dial peers pointing to analog voice ports is prioritized as
follows:
1. If thestation-id number has been set onthe portandif the calling number matches withthe
destination-pattern configuration ofadial peer, this dial peer will be selected and no
further matching is performed.
2. If the abovewas not successful and the call is inbound on a POTS port, a dial peer witha
matching voice-port configuration is searched.
Outbound Dial-Peer Matching
Outbound dial-peermatching is prioritized by default as follows:
1. The gateway searches through all dial peers and tries tomatch the called number with the
destination-pattern configuration. Thedial peerwith themost specific match isselected.
2. By default, if multiple equal matches arefound, thedial peerwith thelowest preference
configuration wins.
3. Bydefault, if equal preferences are found, a random dial peeris selected.
12010 Cisco Systems, Inc Dial Plan Implementation 4-99
Matching Dial-Peer Commands Refresher
This subtopic prov ides arefresher ofthe dial-peer commands relevant for dial-peer matching.
ching Dial Peer Comi
router(con fig-dial-peer I#
incoming called-number 1+]sainglT]
Specifies the incoming called number that will be used during
inbound dial-peer matching
router(contig-dial-peer)#
answer-address [+] stringlT]
Specifies the incoming calling number that will be used
during inbound dial-peer matching
router(con fig-dial-peer|#
destination-pattern [ +] st.ri/ig[T]
Defines the destination pattern of a dial peer that will be used
during inbound and outbound dial-peer matching
"Ihe figure shows commands that are used to configure calling andcalled number matching on
dial peers.
Calling and Called Number Matching on Dial Peers
Command Description
destination-
pattern
[ +]stringlT]
Use this command in dial-peer configuration mode to specify
either the prefix or the full E.164 telephone number to be used
for a dial peer. To disable the configured prefix or telephone
number, use the no form of this command.
incoming
called-number
[ +]scring[T]
Use this command in dial-peer configuration mode to specify
a digit string that can be matched by an incoming call to
associate the call with a dial peer. To reset to the default, use
the no form of this command.
answer-
address
[+]stringlT]
Use this command in dial-peer configuration mode to specify
the full E.164 telephone number to be used to identify the dial
peer of an incoming call. To disable the configured telephone
number, use the no form of this command
4-100 Implementing Cisco Voice Communications and QoS (CVOICE] v8.0 2010 Cisco Systems. Inc
Matching Dial Peer Commands (Cont)
router(config-dial-peer)#
direct-inward-dial
Enables DID on inbound POTS dial peers
Used to prevent two-stage dialing
router(config-dial-peer)#
preference [0-9]
Specifies the preference of a dial peer; default =0
router(config)#
no dial-peer outbound status-check pots
Disablesstatus checkingof outbound POTSdial peers duringcall setup
Includes POTS dial peers in call routing, even if status is down
Useful for some ISDN BRI links that deactivate Layer 1 during inactivity
The figure shows commands that areused toconfigure direct inward dialing (DID), dial-peer
preferences, and outbound status checks.
direct-inward-dial and dial-peer matching Commands
Command Description
direct-
inward-dial
Use this command to enable the DID call treatment for an
incomingcalled number. When this feature is enabled, the
incoming call is treated as ifthe digits were received from the
DIDtrunk. The called number is used to select the outgoing
dial peer. Nodial tone is presented to the caller.
preference
[0-9]
Use this command in dial-peer configuration mode to indicate
the preferred order of a dial peer within a hunt group. To
remove the preference, use the no formof this command. The
default is 0 and is not displayed in a configuration.
no dial-peer
outbound
status-check
pots
Use this command in privileged EXEC mode to disable the
checking of the status of the outbound POTS dial peers during
call setup and to allow for that call any dial peers whose status
is down.
This may be required on some ISDN links where the central
office (CO) ISDN switch activates the ISDN layer only if activity
is detected on the link.
2010 Cisco Systems, Inc. Dial Plan Implementation 4-101
Outbound Dial-Peer Matching Order
This subtopic explains how todefine the matching order for outbound dial peers.
Outbound Dial-Peer Matchinq Ordi
router(config]#
dial-peer hunt hunt-order-number
Specifies the hunt selection order fordial peers
Hunt-order- Description
number
Longest match inphone number, explicitpreference, random
selectiontne default hunt order number
Longest match in phone number, explicit preference, least recent use
Explicit preference, longest malch in phone number, random selection
Explicit preference, longest match in phone number, least recent use
Least recent use, longest match in phone number, explicit preference
Least recent use. explicit preference, longest malch in phone number
Random selection
Least recent use
The dial-peer hunt command specifies the hunt selection order for outbound dial peers, when
multiple outbound dial peers provide a potential match. The defined selection order applies to
all tvpes of dial peers: VoIP. POTS, and Multimedia Mail over IP (MMolP). The available
options are described in the table.
Hunt Order
Number
Description
0 Longest match in phone number, explicit preference, random
selectionthe default hunt order number
1 Longest match in phone number, explicit preference, least recent use
2 Explicit preference, longest match in phone number, random selection
3 Explicit preference, longest match in phone number, least recent use
4 Least recent use, longest match in phone number, explicit preference
5 Least recent use, explicit preference, longest match in phone number
6 Random selection
7 Least recent use
4-102 Implementing Cisco Voice Communications and QoS (CVOICE) vS.O 2010 Cisco Systems. Inc
Best Practices
This subtopic provides recommendations for dial-peer configuration.
Best Practices
Default POTS dial peer with the direct-inward-dial attribute
Provide Cisco Unified Communications Manager redundancy
Primary Unified
Communications Manager
1010 102
Secondary Unified
Communication s Manager
10 10 10.3
dlal-paac voiea 1 pota
Incovtng callad-rounbar
dlrct-inward-dil
vole claai MS3 1
h225 elBBUC tcp aatabllah 3
illil-pHi volea 100 voip
pEiltnjiQ* 1
d.tintlon-pttrii 1. ..
....ion tarjat ip.4.10 .10 . 10.2
voka-clui h323 1
dial-paar vole. 101 voip
praEaranc* 2
d a at 1 rut ion-pat tarn 1. . -
ten taigat ipv*:io.io.10.3
volca-claaa h223 1
iPSTffe
Pfimsry united
Communroafions Managar
Server
Co rrimtifi ica Son s Manager
Server
Best practices should befollowed when configuring dial peers ona gateway. Toensure that
incoming PSTN calls aredirectly routed totheir destination based onthe called number
information, createa default POTSdial peer withthe direct-inward-dial attribute.
Note This should be the first POTSdial peer that youconfigureon the gateway. It should be the
onlydial peer that containsa period (.} forthe destination pattern and directinward dial. It
should not contain a port number.
Intheexample, dial peer 1is used toroutecallsaccording totheircalled number.
When configuring a gateway for interoperability witha CiscoUnified Communications
Manager cluster, provide redundancy byconfiguring at leasttwoVoIP dial peerswith thesame
destination pattern pointing totwodifferent CiscoUnified Communications Manager servers.
Use thepreference attribute to select thepriority orderbetween primary andsecondary Cisco
Unified Communications Manager servers.
In the example, dial peers 100and 101 are usedto route calls to IheprimaryCisco Unified
Communications Manager cluster unless it has lostconneetivily. If thecluster lost connectivity,
they are then routedto the backup or secondary CiscoUnifiedCommunicalions Manager
cluster.
The voiceclass configuration is usedto set the H.225timeout to the minimum recommended
value of 3 seconds. This setting reduces the fallback delay to the secondary Cisco Unified
Communications Manager serverwhenthe primary server fails. Bydefault, the 11.225 ICP
timeout is 15 seconds.
2010 Cisco Systems, Inc.
Dial Plan Implementation 4-103
Path Selection Strategies
This topic describes common path selection strategies that are deployed in enterprise VoIP
env ironments.
ion btra
PSTN Requirement
Site-code dialing
Toll bypass
Tail-end hop-off (TEHO)
Call muting and path selection for Intersite calls
Digit manipulation to support site-codedialing
Call routing and path selection to route intersite
calls over WAN links with PSTN fallback
Digit manipulation to route calls over the WAN or
PSTN
Can routing and path selection to route PSTN
callsover the cheapest possible path
Digit manipulation to support PSTN fallback
When remote sites are involved, different path selection strategies are required. Multisitedial
plans include all ofthe requirements of a single-site dial plan, as well as theserequirements:
Site-code dialing: A tvpical requirement is the support of site-code dialing. Site-code
dialing allows users to place an intersite call by dialing a site code thai is typically three to
four digits long, followed bv the actual extension ofthe remote-site user. Call routing and
path selection can support this by using digit manipulationto prefix and strip off site codes
where necessary.
Toll bypass: foil bypass uses the WAN link for eall routing to avoid PSTNcharges for
intersite calls. This includes call routing and path selection for the actual call-routing
process, including fallback PS'I'N routing in case the WAN link fails. Digit manipulation is
also required to ensure proper number formatting.
Tail-end hop-off (TEHO): TF.HO is similar to toll bypass but extends the WANusage for
PSTN calls as well. The PSTN breakout should be as close as possible to the final PSTN
destination to decrease phone charges. The same requirements exist as with toll bypass.
4-104 Implementing Cisco Voice Communications and QoS |CVOICE| v8 0 2010 Cisco Systems, inc
Site-Code Dialing and Toll Bypass
This topic describes site-code dialing and toll bypass principles.
Site-Code Dialing and Toll Bypass
Requirements
Used primarily to solve overlapping numberingplan issues.
Users dial <intersite prefix> + <site code> + <user extension>
to reach a user in a specific site.
- <Site prefix> = <intersite prefix> + <site code>
For example: 802 = 8 and 02
Site codes may have different lengths.
Useful for few large and many small sites
Ambiguity must be avoided
The calling number should also includethe site code of the
calling party.
- This can be done via digit manipulation.
You may use site-code dialing tosolve issues with overlapping numbering plans. Because all
extensions of a site areprefixed with a unique sitecode, anoverlapping numbering plan (where
extensions inmultiple sitesoverlap) canbeturned intoa unique numbering plan.
When vou use site-code dialing, each site isassigned a unique site code. An intersite prefix
verifiesthat site codes are dialed. For example, a networkwiththreesites couldhave the
intersite prefix 8 and site codes 01, 02, and 03, resulting insite prefixes 801, 802, and 803. If a
user wants toplace a call to a remote siteuser, thedialed number would bethe intersite prefix
(8). followed by site code (forexample, 01)followed bytheactual extension. This form of
abbreviated dialing greatly improves theend-user experience byproviding shorter dialable
numbers.
Ihe calling-party number must include theappropriate sitecode. Thisallows called users to
call backthecalling party directly using theirmissed call list andreceived call list. Youcanuse
digit manipulation to support this as well.
>2010 Cisco Systems, Inc.
Dial Plan Implementation 4-105
Site-Code Dialing and Toll Bypass Example
This subtopic prov ides anexample of site-code dialing and toll bypass.
Site-Code Dialing and Toll Bypass
Necessary site prefix manipulation.
Prepend source-site prefixin callingnumber (originating gateway)
Stnpdestmation-site prefix incalled number(originating or terminating gateway)
Site A
Site Ptefix 801
dial-peer voice 302 voip
destination-pattern SQ2.,,.
session target ipv4:ID.10.0.2 IP WAN
SiteB
Site Prefix 802
dial-peer voice 801 voip
destination-pattern 801....
session target ipv4:10,10.0.1
1he figure shows a sample scenario for site-code dialing with toll bypass. Theenterprise uses 8
as the intersite prefix. Site A uses site code 01. Site B uses site code 02. Intersite calls arc
processed in the following order:
Step 1 A user in site B places a cal! from extension 2002 to extension 2001 in site A. fhe
user must prepend the intersite prefix and the site code of site A to the actual
extension, and therefore dials 8012001. When the originatinggateway sends the call
to the tenninatinggateway, it modifies the callingnumberby prepending its site
prefix. Such a modified calling number allows callback.
Step2 The call is routed over the IP WANlink to site A. The destination phone rings and
displavs the calling number 8022002that is, the site code 802 of site B followed
by the internal extension 2002.
Note The intersite prefix must be stripped fromthe called number for successful routing to the
internal extension This stripping can be configured either on the originating gateway or
terminating gateway. Stripping on the originating gateway can be implemented using the
outgoing translation profile that is attached to the outbound VoIP dial peer. Stripping on the
terminating gateway can be best achieved by an incomingtranslation profilethat is applied
to a source group. A source group can use an access list to specify the sources from which
the calls should be subjected to the incoming translation profile.
4-106 Implementing Cisco Voice Communications and OoS (CVOICE) vS.O 2010 Cisco Systems. Inc.
Site-Code Dialing and Toll Bypass with Backup Example
This subtopic provides an example of site code dialing and toll bypass with PSTN backup.
Site-Code Dialing and Toll Bypass wi
Backup Example
Site A
Site Prefix1 S01
DID; 2005552xxx
WAN is the preferred
patti wth preference 0.
dial-peer voice 801 voip
destination-pattern 801....
seHoioa-target ipv4:10.10.0.1
dial-peer voice 200 pots
destination-pattern 801....
prefix 1200555
preference 1
port 0/0/0:23
The figure shows an example of site-code dialing with PSTN backup. The PSTN is used as the
redundant path for intersite calls ifthe IP WAN fails. Intersite calls are processed in this order:
Auser in site Bdials 8012001to reachan extension in site A. Theoriginating
gateway matches the VoIP dial peer 801 as the best dial peer for the call, but the
WANis unavailable so the redundant POTS dial peer 22 is used instead. Digit
manipulation that isconfigured on that dial peer prepends the required PSTN prefix
to the called number and the call is sent into the PSTN.
The call is routed over the PSTNto site A. The terminating gateway adjusts the
called and calling numbers and delivers the call totheintended recipient.
Stept
Step 2
Note
Digit manipulation that isrequired in this scenario isdescribed later in the lesson.
) 2010 Cisco Systems. Inc.
Dial Plan Implementation 4-107
Configuring Site-Code Dialing and Toll Bypass
fhis topic describes how to configure site-code dialing and toll bypass.
Site-Code Dialing and Toll Bypass
Configuration Overview
i Configure voice translation rules and profiles for VoIP
intersite routing.
'2 Define dial peers for VoIP intersite routing.
:> Configure voicetranslation rules and profiles for PSTN
backup routing.
^ Define dial peers for PSTNintersite routing.
Follow thesestepsto configure site-code dialingand toll bypass:
Step 1 Configure voice translationrules and profiles for inbound and outbound VoIP
intersite routing.
Step 2 Define thedial peers for VoIPintersite routingthat routethe call over the WAN.
Step 3 Configure voicetranslation rules and voicetranslation profiles for inbound and
outbound PSTN intersite routing(PSTN backup).
Step4 Define the dial peers for POTS intersite routingthat routethe call usingthe PS'I'N.
Implementing Cisco Voice Communications and QoS (CVOICE) vS.O
12010 Cisco Systems, Inc
Step 1: Configure Voice Translation Rules and Profiles for VoIP
Intersite Routing
This subtopic explains the firsi step in site-code dialing and toll bypass configuration, in which
the VoIP translation rulesandprofiles aredefined.
Step 1: Configure Voice Translation Rules
and Profiles for VoIP Intersite Routing
Site A
Site Prefix: 801
Ext: 2xxx
IPWAItf
SiteB
Site Prefix: 802
Ext: 2xxx
voice translation-rule 1
tula 1 /*!/ /B012/
voice translation-rule 2
rule 1 /"8012/ /2/
voice translation-profile inter-out
translate calling 1
voice translation-profile inter-in
translate called 2
voioo translation-rule 1
rule 1 /'2/ /8022/
voice translation-rule 1
rule 1 /*8022/ nl
voice translation-prof ile inter-out
translate calling 1
voice translation-profile inter-in
translate called 2
Follow these steps at each site to configure translation rules and profiles for WAN routing:
Step 1 Create a rule that prefixes the site code tothe calling number.
Step 2 Create arule that strips offthe site code from the called number.
Step 3 Create avoice translation profile to prefix the site code to the outbound calling-party
number.
Step 4 Create avoice translation profile to strip off the site code from the inbound called-
party number.
) 2010 Cisco Systems, Inc.
Dial Plan Implementation 4-109
Step 2: Define Dial Peers for VoIP Intersite Routing
This subtopic explains the second step in site-code dialing and toll bypass configuration,
which the VoIP dial peers are defined.
Step 2: Define Dial Peers for
intersite Routing
Site A
Site Prefix: 801
Ext: 2xxx IP WAN
SiteB
Site Prefix: 802
Ext: 2xxx
When the \ oice translation profiles for VoIP routing aredefined, the VoIP dial peers for
intersite routing \ ia the WAN must beconfigured. In this example, thecalled numbers are
modified on theterminating gateways in theinbound dial peers.
4-110 Implementing Cisco Vorce Communications and QoS (CVOICE) v8.0
2010Cisco Systems. Inc
Step 3: Configure Voice Translation Rules and Profiles for
PSTN Intersite Routing
This subtopic explains the third step in site-code dialing and toll bypass configuration, in which
the PSTN translation rules and profilesare defined.
Step 3: Configure VoiceTranslation Rules
and Profiles for PSTN Intersite Routing
Site A
Site Prefix: 801
Ext: 2xxx
IP WAN
SiteB
Site Prefix: 802
Ext: 2xxx
voice translation-rule 3
rule 1 !"2/ /2005552/
voice translation-rule 4
rule 1 /"8022/ /13005552/
voice translation-profile 802PSTN
translate calling 3
translate called 4
voice translation-rule 3
rule 1 /"2/ /3005552/
voice translation-rule 4
rule 1 /"S012/ /12005552/
voice translation-profile 801PSTN
translate calling 3
tran slate called 4
To support PSTN fallback routing if the WAN link fails, two additional voice translation rules
and oneprofile must bedefined foreach site. This manipulation adjusts thecalling and called
numbers to the public numberingscheme used in the PSTN.
Note Thesetting ofthe calling party numberis not mandatory because the telcosets the calling
number when the call enters the PSTN network. It is recommended in situations when a
range of DID numbers is available to select the appropriate number for callback.
) 2010 Cisco Systems, Inc.
Dial Plan Implementation 4-111
Step4: Define Dial Peers for PSTN Intersite Routing
This subtopic explains the fourth step in site-code dialing and toll bypass configuration, in
which the PSTNdial peers are defined.
Define Dial Peers
ng Intersite Routi
Site A
Site Prefix 801
Ext: 2xxx
dial-peer voice 8022 pote
destination-pattern SO22...
port 0/0/0:23
preference 1
translation-profile outgoing
IP WAN
Site B
Site Prefix: 802
Ext: 2xxx
dial -peer voice 8012 pots
dea tinatio -pattern 8012.
por t 0/0/0 23
preference 1
tra nslatio -profile outgoing 801PSTN
Final!;. the PSTN translation profile is applied totheoutbound dial peers pointing tothe PSTN
network. The destination pattern of those peers matches the called number, because the users
dial the intersite prefixand thesite codeto place intersite calls independently ofthe path that
thecall takes. The POTS dial peers areconfigured with a worse preference, that is. numerically
higher, than the default value of 0.
4-112 Implementing Cisco Voice Communications and QoS (CVOICE) v8 0 )2O10 Cisco Systems. Inc
Outbound Site-Code Dialing Example
fhis subtopic explains the site-code dialing operations for outbound calls.
Outbound Site-Code Dialing Example
voice translation-rule 1
rule 1 /'2/ /8012/
voice translation-profile inter-out
translate calling 1
dial-peer voice 802 voip
destination-pattern 8022...
session-target ipv*;10.10.0.2
translation-profile outgoing inter-
Site Prefix 801
A DID 200-555-xxxx
voice translation-rule 3
rule 1 /'2/ /200SSS2/
voice translation-rule 4
rule 1 /*8022/ /13005552/
voice translation-profile 802PSTN
translate calling 3
translate called 4
dial-peer voice 8021 pots
destination-pattern B022...
preference 1
port 0/0/0:23
translation-profile outgoing 802PSTN
incoming Outgoing
Called number 8022001 . 8022001
Calling number 2001 8012001
Site Prefi a- 802
. { DID: 300-555-xxxx
IP-WAI^ ; 10.10.0.2
Incoming outgoing
Called number B022001 13005552001
Callingnumber 2001 2005552001
The figure summarizes theprocessing for outbound intersite callsas follows:
Step1 A userwith extension 2001 insiteAdials 8022001 toreachanendpoint in the
remote site. Tlie originating gateway receives a call withthe called number 8022001
andthecalling number 2001. Thecalled number matches twodial peers: 802and
8022. Dial peer802is matched because it has thebest preference, andthetranslation
profile inter-out is applied totheoutbound call. Thus, thecall is routed tothe
remote site with the called number 8022001 (unchanged) and the calling number
8012001 (modified by the translation rule).
Step2 If theWAN fails, thecall will be routed using dial peer8021 withpreference1. Ihe
translation-profile 802PSTN is used, whichmodifiesthe callingnumber to
12005552001 and the called number to 1-300-555-2001that is, the call can be
routedby the PSTN to the remotesite.
Note The calling number for the PSTNpath can be adjusted inthe outgoingtranslation profile that
is attached to the voice port instead of the setting inthe outbound POTS dial peer.
2010 Cisco Systems, Inc.
Dial Plan Implementation 4-113
Inbound Site-Code Dialing Example
This subtopic explains site-code dialing operations for inbound calls.
inbound Site-Code Dialing Exampl
S*te Prefix 801
DID 20Q-555OUHX
,3-001 \9-WAH
Called number 8022001 2001
Calling number 8012001 6O1Z001
Sile Prefi;, 802
DID. 300-555-xxxx
101002
ce tranelation-rula 2
le 1 /'B022/ 111
ce translation-profile inter-ir
analate called 2
1-peer voice 8011 voip
Btination-pattarn 8012...
ssion-target ipv4:10.10.0,1
coming called-number 802
anslation-profile incoming inte
The figure summarizes theprocessing for inbound intersite calls. Thisexample illustrates the
option thattransmits the sitecode in thecalled number, andthesileprefix is stripped on the
terminating gateway in the inbound dial peer.
4-114 Implementing Cisco Voice Communications and QoS (CVOICE) v8 0 2010 Cisco Systems, Inc
Tail-End Hop-Off
This topic describes the characteristics oftail-end hop-off (TEHO).
Tail-End Hop-Off
- Extends the concept of toll bypass
Uses the WANfor PSTN calls as much as possible
Uses PSTN breakouts closest to the final PSTN destination
Uses PSTN paths as possible backup
TEHO extends theconcept of toll bypass. Instead of routing only intersite calls overanIP
WAN link. TEHOalso usesdie IP WANlink for PSTN calls, 'fhe goal is to route a call
through the IP WAN as far as possible and break out to the PSTN on the gateway nearest to the
destination. Aswith toll bypass, PSTN fallback should always bepossible incase theII' WAN
link fails.
Caution Some countries do nol allowTEHO. When implementingTEHO, ensure that the deployment
complies with national legal requirements.
>2010 Cisco Systems, Inc
Dial Plan Implementation 4-115
TEHO Scenario
This subtopic provides asample scenario that illustrates a typical TEHO implementation.
TEHO Scenario
Site A gateway is
used as the PSTN
breakout
7^
SiteAmAieaA
200555
Call is routed lo site A via tha WAN
IP WAN
The figure illustrates call forwarding in a TEHO scenario, as follows:
Stepl User in site 13 dials 9-1-200-555-1 111 to reach a PS'I'N subscriber in the same area
as site A.
Step 2 Ihe eall is routed to site A using the IP WAN link.
Step 3 Tlie gatewax in site A fonvards the call as a local call to the PSTN subscriber.
Step 4 The PSTN phone rings.
4-116 Implementing Cisco Voice Communications and QoS (CVOICE) v8 0 2010 Cisco Systems, inc
Configuring TEHO
This topicdescribes howlo implement TEHOon Ciscovoicegateways.
TEHO Configuration Overview
Define the VolP outbound digit manipulation for TEHO.
Define the outbound VoIP dial peerforTEHO.
Define the outbound POTS dial peer for TEHO.
Follow these steps to configure TEHO functionality:
Step 1 Define the VoIP outbound digit manipulation.
Step 2 Define the outbound VoIP dial peer.
Step 3 Define the outbound POTS dial peer.
>2010 Cisco Systems, Inc. Dial Plan Implementation 4-117
TEHO Configuration Example
Thissublopic pro\ idesa sample configuration that illustrates a typical TEHOimplementation.
iqu
IP WAN
Site B in Area B -r
\ \piD 300555xxx- ^
\ \ 101002
V
R2
translation-rule 10
1 /'2/ /13005S52/
translation-profile pstn-out
late calling 10
1-peer voice 912001 voip
destination-pattern 91200
session-target ipv4:10.10.0.1
translation-profile outgoing pstn-out
The figure illustrates the eon figuration ofthe 1EHO components:
1. A translation profile is needed lo adjust the calling number ofthe caller to the PSfN
numbering scheme. I he calling number includes the DID prefix ofthe originating site.
2. A VoIP dial peer is defined to match the PS I N numbers that should be redirected via the
VoIP path to the remote break-out gateway, fhis dial peer has the outgoing translation
profile attached that sets the calling number to the appropriate PSTN number.
3. A POTS dial peer is configured on the break-out gateway that matches the called number
of long-distance PS'I'N calls and forwards the TEHO calls to the PSTN while keeping the
calling number that as set by the originating gateway.
Note Depending on the enterprise policy, the calling number for the TEHO calls could be set to
the DID number of the break-out gateway This approach is less common, however,
because it creates potential issues with the return path for callback.
4-118 Implementing Cisco Voice Communications and QoS (CVOICE) v8.0 2010 Cisco Systems, Inc
Summary
This topic summarizes thekey points thatwere discussed inthis lesson.
Summary
) 2010 Cisco Systems. Inc.
The call routing logicof Cisco voicegateways is based on dial peer
matching.
Routers must match the inbound and outbound dial peers to
successfully complete a call.
The common path selection strategies of a multi-site environment
are site-code dialing, toll bypass, and TEHO.
Site-code dialing uses the concept of prefixing remote extensions
with a site code and can be combined with toil bypass to route calls
over the WAN instead of the PSTN.
Site-code configuration requires that each site be assigned a unique
site code.
TEHOextends the concept of toll bypass by routingcalls over the
WAN to the closest PSTN breakout.
TEHO configuration requires that all calls be routed over the
WAN unless the WAN is down or has been oversubscribed.
Dial Plan Implementation 4-119
4-120 Implementing Cisco Voice Communications and QoS (CVOICE) vS.O 2010 Cisco Systems, Inc
Lesson 51
Configuring Calling Privileges
Overview
Calling privileges on Cisco IOS gateways are dial plan components that define the types of
calls that aphone, or group of phones, is able to place. This lesson describes the concept ot
calling privileges and how they can be implemented on Cisco IOS gateways using class of
restriction (COR).
Objectives
Upon completing this lesson, you will be able to describe how to configure calling privileges in
agateway. This ability includes being able to meet these objectives:
Describe calling privileges characteristics and explain their operations
Describe how toimplement calling privileges onCisco IOS gateways
Describe how to implement calling privileges in Cisco Unified SRST and Cisco United
Communications Manager Express and how it differs from the implementation on voice
gateways
Describe how to configure COR
Describe how to verify COR
Calling Privileges Characteristics
This topic describes the concept ofcalling privileges.
Calling Privileges
Characteristics ofcalling privileges:
Define the destination that a user is allowed to dial
Implemented on Cisco IOS gateways using COR
Relyon proper call routing
Require high dial-peer granularity
Different destinations defined inseparate dial peers
Calling privileges define the destination to which auser is allowed to dial and connect. COR is
aCisco voice gateway feature that enables class of service (CoS) or calling privileges to be
assigned to users. Calling privileges are implemented on Cisco IOS gateways using COR. COR
is most commonly used with Cisco Unified Communications Manager Express, hut can be
applied to any dial peer.
COR is dependent on properly configured call routing. Ifyour calling privileges are not being
enforced effectively, the problem may be linked lo an incorrect call routing configuration.
COR requires agranular dial-peer configuration. The common 9T destination pattern cannot be
used as a"catch all" outgoing dial peer to the PSTN. More specifie dial peers are necessary to
distinguish between internal calls, local calls, long-distance calls, international calls, and
services suchas emergency 911.
4-122 Implementing Cisco Voice Communications andQoS (CVOICE) v8.0
2010 Cisco Systems, Inc
mm
r-
fa^^
Dial-Peer Granularity
This subtopicdescribes the requirement for dial-peergranularity whendeploying calling
privileges.
Dial-Peer Granularity
niemational Calls (Variable Length)]
dial-peer voice 911 jots
destination-pattern 911
forward-digito all
port 0/0/0:23
dill-peer voice 9311 pots
dee tioatioa-pattern 9911
forward-oigl te 3
port 0/0/0:23
dial-peer voice 97 pots
dsetioation-pattarn 912-91
port 0/0/0:23
dial-peer voice 910 pota
deetiDation-pattern 912-9] .. [2-9]
port 0/0/0:23
dial-peer voice 9110 pots
dee tiost ion-pattern 91[2-9]..[2-9]
pretix 1
port 0/0/0:23
dial-peer voice 9011 pote
destination-pattern 9011T
prefix 011
port 0/0/0:23
The figure illustrates dial-peer granularity when deploying calling privileges. The dial plan
consists of multiple public switched telephone network (PSTN) dial peers that establish a
baseline for COR settings. This example is specific to the North American Numbering Plan
(NANP) and will be constructeddifferently in other parts ofthe world.
The 911 dial peer is used for emergency calls to ihe PSTN. The forward-digits all command
sends all matched digits (911, in this case) to the PSTN. Without this command, the dial peer
would be matched, but no digits would be sent to the PSTNbecause ofthe default digit-strip
command.
The 9911 dial peer is also used for emergency calls, but this time it includes the PSTN access
code 9. Only three digits are sent to the PSTNas a result ofthe forward-digits 3 command.
The PSTNaccess code 9 musl not be included in the call setup.
The 97 dial peer is used for PSTNlocal calls for seven-digit dialing in the United Stales.
"fhe910 dial peer is used for PSTNlocal calls fbr 10-digit dialing in the United States.
fhe 9110 dial peer is used for PSTNnational or long-distance calls for 1l-digit dialing in the
United States. Because the exactly matched digits are 91, the national identifier 1 needs to be
prefixed. This is done using the prefix 1 command.
The 9011 dial peer is used for PSTNvariable-length international calls fromthe United States.
Because 9011 will be stripped due to Ihe digit-strip setting, the prefix 011 command is used to
prefix the correct international identifier to the called number.
) 2010 Cisco Systems. Inc.
Dial Plan Implementation 4-123
Implementing Calling Privileges on Gateways
This topic describes how to implement calling privileges on voice gateways.
Calling Privileges on Gateways
* Calling privileges are implemented using COR.
COR lists contain CORs and are used to control call routing.
COR lists are assigned to dial peers:
Incoming COR list
Outgoing COR list
* For each call, the incoming COR list is matched against the
outgoing COR list;
If the outgoing COR list is a subset of the incoming COR
list, the call is routed.
If no incoming COR list is configured, the call is always
routed.
The COR feature provides the ability lo deny certain eall attempts based on the incoming and
outgoing CORs pro\ isioned on the dial peers.
The COR is used to speeifv which incoming dial peer can use which outgoing dial peer Lo make
a eall. Each dial peer can be provisioned with an incoming and an outgoing COR list. COR
functionalilv provides the abilitv to deny certain call attempts based on the incoming and
outgoingCORs that are prov isionedon the dial peers. This functionalityprovides flexibility in
network design, allows users to block calls (for example, calls lo 900 numbers), and applies
different restrictions to call attempts from different originators.
Ihe fundamental mechanism at the center ofthe COR functionality relies on the definition of
incoming and outgoing COR lists. F.ach COR list is defined lo include a number ol'members,
which are simpK tags previously defined within Cisco IOS Software. Multiple CORs are
defined, and COR lists are configured that contain these CORs. F.ach COR list is then assigned
to dial peers as an incoming or outgoing list using the corlist incoming or eorlist outgoing
command.
When a call goes through the router, an incoming dial peer and an outgoing dial peer are
selected based on the Cisco IOS dial-peer routing logic. If COR lists are associated with the
selected dial peers, the followingadditional check is performed before extending the call:
If the CORapplied on an incoming dial peer (for incomingcalls) is a superset or equal to
the CORapplied to the outgoing dial peer (for outgoing calls), the call goes through.
If the COR applied on an incoming dial peer (for ineomingcalls) is not a superset or equal
lo the COR applied to the outgoingdial peer (for outgoing calls), the eall is rejected.
4-124 Implementing Cisco Voice Communications and QoS (CVOICE) v8.0
2010 Cisco Systems, Inc.
___*
Note Incoming andoutgoingare termsthatare usedwith respect tothe voice ports. For
example, ifyou hook upa phone thatis connected toone ofthe Foreign Exchange Station
(FXS) ports ofthe router andtry to make a call from that phone, itis an incoming call for the
router and voice port. Similady, ifyou make a call to that FXSphone, then it is an outgoing
call.
If noCORlist statements areapplied tosomedial peers, thefollowing properties apply:
When noincoming eorlistcommand is configured ona dial peer, thedefault incoming
CORlist is used. Thedefault incoming CORlist has the highestpossiblepriority, and it
therefore allows thisdial peerto access all otherdial peers, regardless of theiroutgoing
COR list.
W;hen no outgoingcorlist command is configured on a dial peer, thedefaultoutgoingCOR
list is used, 'fhe defaultoutgoingCORlist has the lowestpossible priority, and it tlierefore
allowsall other dial peers to accessthis dial peer, regardless of their incoming CORlist.
>2010 Cisco Systems. Inc. Dial Plan Implementation 4-125
COR Elements
This subtopic explains the logical elements ofthe COR implementation.
1 Call 100
dials 1XXX
2 Call 200
dials 2XXX
Outgoing COR Nst is
NOT a subset gf
incoming COR lot
Outgoing CORm~
a subset of incoming
COR list
dial'poer vole* 3 pots
destination-pattern 1~
The figure illustrates the logical elements of COR. In this example, the VoIP dial peer is
associated with the el incoming COR list, with members A. B, and C. You can dunk of
members ofthe incoming COR list as "keys."
The first plain old telephone service (POTS) dial peer has a destination-pattern of I... and is
associated with the c2 outgoing COR list, with members A and B. The second POTS dial peer
has a destination-pattern of 2... and is associated with the c3 outgoing COR list, with members
A. B. and D. You can think of members ofthe outgoing COR list as "locks."
For the call to succeed, the incoming COR list ofthe incoming dial peer must have all the keys
needed to open all the locks of the outgoing COR list ofthe outgoing dial peer.
In the example in the figure, a first VoIP eall with deslinalion 100 is received by the router. The
Cisco IOS call routing logic matches the incoming eall leg with the VoIP dial peer and the
outgoing call leg with the first POTS dial peer. The COR logic is then applied. The el
incoming COR list has all the keys that are needed for the c2 outgoing COR list locks (A and
B). so the call succeeds.
A second VoIP call with destination 200 is then received by the router, fhe Cisco IOS call
routing logic matches the incoming call leg with the VoIP dial peer and the outgoing call leg
with the second POTS dial peer. The COR logic is then applied; because the el incoming COR
list is missing one kev for the c3 outgoing COR list (D). the eall is rejected.
4-126 Implementing Cisco Voice Communications and QoS (CVOICE! v8.0 2010 Cisco Systems, Inc.
COR Logic
This subtopicexplainsthe logicofthe callingprivileges implementation.
COR Logic
Scorning COR Ust
CORHtx*catt*
911
Local
LD
NTL
CORWtOto
911
Local
Outgoing COR List
ct
Calling privileges on Cisco IOS gateways use two components:
COR name: A COR name (also called a COR label) is the building block of calling
privileges. An individual COR name is actually a member of a list that is known as a COR
list.
COR list: A COR list contains multiple COR names and is bound to dial peers.
When a call is routed, the gateway checks the COR list ofthe inbound dial peer and the COR
list ofthe outbound dial peer. The Call Routing with COR Lists table describes the various
results depending on the configuration:
Call Routing with COR Lists
COR List on
Incoming Dial
Peer
COR List on
Outgoing Dial
Peer
Result Reason
No COR No COR Call
succeeds
COR is not in the picture.
No COR The COR list
applied for
outgoing calls
Call
succeeds
The incoming dial peer, by default, has the highest
COR prioritywhen no COR is applied. Therefore, ifyou
apply no COR for an incoming cal! leg to a dial peer,
then this dial peer can make calls out of any other dial
peer, regardless of the COR configuration on the
outgoing dial peer.
2010 Cisco Systems, Inc. Dial Plan Implementation 4-127
COR List on COR List on Result Reason
incoming Dial Outgoing Dial
Peer Peer
The COR list No COR Call The outgoing dial peer, by default, has the lowest
applied for succeeds priority. Because there are some COR configurations
incoming calls for incoming calls on the incoming, originating dial
peer, it is a superset of the outgoing call COR
configurations on outgoing, terminating dial peer.
The COR list The COR list Call The COR list for incoming calls on the incoming dial
applied for applied for succeeds peer is a superset of COR lists for outgoing calls on the
incoming calls outgoing calls outgoing dial peer.
(Superset of (Subset of
COR lists COR lists
applied for applied for
outgoing calls incoming calls
on the on the
outgoing dial incoming dial
peer) peer)
The COR list The COR list Call cannot COR lists for incoming calls on the incoming dial peer
applied for applied for be are not a superset of COR lists for outgoing calls on
incoming calls outgoing calls completed the outgoing dial peer
(Subset of (Superset of using this
COR lists COR lists outgoing
applied for applied for dial peer
outgoing calls incoming calls
on the on the
outgoing dial incoming dial
peer) peer)
4-128 Implementing Cisco Voice Communications and QoS (CVOICE] vS.O
2010 Cisco Systems, Inc.
COR Implementation Example
This subtopic provides a COR implementationexample.
COR Implementation Example
Outgoing COR Lot
Atypical COR implementation defines a COR name foreach number of anoutgoing dial peer,
then defines a listthat contains only that COR name and assigns thatlistascorlistoutgoing for
this outgoingdial peer. For example, the dial peer withdestination pattern901 IT can have a
corlist outgoing that contains CORINTL, as showninthe example.
Thisexample defines four COR names: 911. Local, Long Distance (LD), andInternational
(INTL). These four CORs are used tocreate three incoming CORliststhat will be assigned to
phones and users:
Lobby: This COR list contains the COR names 911 and Local. This list will allow users to
place emergency calls and local PSTN calls.
Employee: This COR list contains the COR names 911, Local, and LD. This COR list will
allowusersto placeemergency calls, local calls, and long-distance PSTN calls.
Executive: This CORlist contains the CORnames 911, Local, LD. and INTL. This COR
list will allow users to place any PSTN call.
ACORlist will be assigned to an outgoingPOTS dial peer for international calls:
INTLCall: This COR list contains the COR INTL.
When a eall is routed using the incoming COR listExecutive and the outgoing COR list
INTLCall. the call succeeds because COR name INTL is included in the COR list Executive.
When a call is routed using theincoming COR listEmployee and the outgoing COR list
INTLCall. the call isblocked because COR INTL isnot included inthe COR list Employee.
>2010 Cisco Systems, Inc.
Dial Plan Implementation 4-129
Implementing Calling Privileges on SRST and
Cisco Unified Communications Manager Express
This topic describes howto implement calling privileges on Cisco Unified Survivable Remote
Site Telephonv (SRST) and Cisco Unified Communications Manager Express.
Calling Privileges on SRST and Cisco
Unified Communications Manager
Express
<
Cisco Unified Communications Manager Express and Cisco
Unified SRST use the standard Cisco IOS COR concept.
Can be configured for inbound and outbound direction:
Inbound: Restrict destinations to which a user can dial
Outbound: Restrict who can call a user
For Cisco Unified Communications Manager Express, COR
lists are assigned to ephones.
For Cisco Unified SRST, COR lists are assigned to number
ranges.
When implementing COR inCisco Unified SRST andCisco Unified Communications Manager
Express, the virtual dial peers for the registered endpoints are created dynamically by the
router. Thus, theCORlists are appliedto theephone-dns (for Skinny ClientControl Protocol
[SCCP] endpoints) and tovoice register pools (forSession Initiation Protocol [SIP] endpoints)
instead of applying them to virtual dial peers.
For Cisco UnifiedCommunications Manager Express, the COR list is directly assigned to the
appropriate endpoint (SIP) or directory number (SCCP) andwill be included inthevirtual dial
peer. Both inbound and outbound COR lists can beapplied toSCCP and SIP endpoints. An
inbound COR list restricts the dialable destinations, whereas an outbound COR list delines who
can reach the endpoint.
For Cisco Unified SRST. the endpoints are not statically configured on the Cisco IOS gateway.
Instead, the gateway dynamically creates the endpoints that re-home asa result of lost
connectivitv to the Cisco Unified Communications Manager. To assign a COR list in SRST
mode, a CORlist is appliedto a rangeof directory numbers in global SRSTconfiguration
mode.
Note COR is not limited to Cisco Unified Communications Manager Express or Cisco Unified
SRST. CORcan be appliedto any inbound and outbounddial peer on a Cisco IOSgateway.
4-130 Implementing Cisco VoiceCommunications and QoS (CVOICE] v8.0
J2010 Cisco Systems, Inc.
Calling Privileges Implementation at a Glance
This subtopic provides an overview ofcalling privileges implementation ona Cisco Unified
SRST and Cisco Unified Communications Manager Express.
Calling Privileges Implementation at a
Glance
Cisco Unified Communications
Manager Express
register pool 1
incoming Executive default
ephone-dn 1
corliet incoming Bxecuti
Incoming COR List
1
COW Lwt EweutiW
9'-'.
Lccai
,.D
INTL
SRST ***%?
f
call-manager-fallback
cor incoming Executive 1 200 0 2100
I
Outgoing COR List
COR List INTLCal
This Cisco UnifiedCommunications Manager Express configuration assigns the incoming
COR list Executive to voice register pool 1 (SIP endpoint) and ephone-dn 1 (SCCP endpoint):
voice register pool 1
cor incoming Executive default
i
ephone-dn 1
corlist incoming Executive
This SRST configuration assigns the incoming COR list Executive to all phones with the
director)' number 2000 to 2010:
call-manager-fallback
cor incoming Executive 1 2000 - 2010
Note The number that precedes the directory number range in the SRST configuration is the COR
list tag. Up to 20 tags can be configuredthat is, up to 20 different COR lists can be used
for Cisco Unified SRST phones.
i 2010 Cisco Systems, Inc Dial Plan Implementation 4-131
Configuring COR
fhis topic describes howto configure calling privileges on a voice gateway running Cisco
Unified Communications Manager Express.
COR Configuration Overview
When using a standalone gateway:
1 Define COR labels
'/. Configure COR lists
- Incoming
Outgoing
3 Assign COR lists to dial peers
When using Cisco Unified Communications Manager
Express:
' Assign COR lists to endpoints
SCCP: ephone-dn
SIP: voice register pool
Follow these steps to configure call privileges on a voice gateway:
Step 1 Define the four individual tags (COR names) lo be used as COR list members with
the command dial-peer cor custom.
Step 2 Define the COR lists that will be assigned as ineoming or outgoing to the dial peers
with the command dial-peer cor list corlist-name.
Step 3 Associate COR lists with existing VoIP or POTS PSTN dial peers by using the
command corlist {incoming | outgoing} corlist-name within the dial-peer.
Step 4 When deploving COR functionalit\ on Cisco Unified Communications Manager
Express, apply COR lists directly to the endpoints.
4-132 Implementing Cisco Voice Communications and QoS (CVOICE) v8.0 2010 Cisco Systems, Inc
Configuring COR
This subtopic explains how to configure the two basic COR elementsCOR names and COR
lists.
Configuring COR
router(conflg)#
dial-pear cor custom
Enters the mode to define COR labels (names)
router(config-dp-cor)#
1
name class-name
Defines the name (label) for a custom COR
rou ter (con f iq) tt
dial-peer cor list list-name
- Creates a COR list
router(eon(ig-dp-corlist)#
member
Adds a name (label) as memberto a COR list
Thedial-peercor custom command enterstheconfiguration modetodefine CORnames
(labels).
The name command in dial-peercor customconfiguration modedefines the namesof
capabilities. This definition isnecessary' tospecify COR rules and apply them tospecific dial
peers. Amaximum of 64 CORnamescan be configured on a gateway.
The dial-peercor list command defines a CORlist name. ACOR listspecifies a capability set
that is used in COR checkingbetween incoming and outgoing dial peers.
The member command in the dial-peer eor list configuration mode adds a COR name as
member to a dial peer COR list.
) 2010 Cisco Systems, Inc
Dial Plan Implementation 4-133
Assigning COR
This subtopic explains how to assign dial privileges lodial peers and Cisco Unified IP phones.
Assigning COR
router(config-dial-peer)#
router(config-ephone-dn)#
I corlist {incoming | outgoing} cor-list.
Applies COR list to dial peer or ephone-dn in incomingor outgoing
direction (dial peers and ephone-dns)
router(config-register-pooII#
cor {incoming outgoing} cor-list-name {cor-list-number
starting-number [- ending-number] }
Applies COR list to SIP endpoint in incoming or outgoing direction
List-based mechanism assigns COR parameters to specific set of
directory number ranges (up to 10 directory numbers configured per
endpoint)
cor-list-number\s the identifier
starting-number to ending-number defines the range (can be 1)
Thecorlist incoming and corlist outgoing commands arc usedto applyCORlists inthe
ineomingor outgoingdirection to SCCPendpoints and dial peers lhat are not associated with a
registered endpoint. fhe command is applied either in ephone-dn configuration mode (for
SCCPendpoints) or in dial-peerconfiguration mode(dial peersnot associated withendpoints).
Thecor command invoiceregisterpool configuration modeassignsa CORlist in the incoming
or outgoing direction to SIPendpoints. A Hst-based mechanism assigns CORparameters to a
specific set of number ranges, which allows a different COR definition for various numbers that
are associated with the endpoint.
4-134 Implementing Cisco Voice Communications and QoS (CVOICE) v8.0 '2010 Cisco Systems, Inc.
Configuring COR Labels and Lists (Steps 1 and 2)
This subtopic provides asample configuration for the first two steps that cover the definition of
CORnames (labels) and lists.
Configuring COR Labels and Lists
(Steps 1 and 2)
1. Define COR labels
dial-peer cor cu stom
name 911
name local
name id
nans intl
MM ac
2a. Configure incoming COR lists
dial-peer cor liflt lobby
member 911
member local
dial-peer cor list sales
member 311
member local
member Id
member exec
dial-peer cor list executive
member 911
member local
member Id
member intl
member exec
2b. Configure outgoing COR lists
dial-peer cor list giicall
member 911
dial-peer eor list localcall
member local
dial-peer cor list Ideal1
member Id
dial-peer eor list intlcall
member iatl
dial-peer cor list execcall
member exec
The figure provides a sample configuration for the first iwo steps that cover Ihe definition of
CORnames (labels) and lists. The names (labels) are defined in Step 1 using the dial-peer cor
custom command. The incoming CORlists are configured in Step 2a, and the outgoingCOR
lists in Step 2b. usingthe dial-peer cor list command.
i 2010 Cisco Systems, Inc.
Dial Plan Implementation 4-135
Assigning COR Lists to Dial Peers (Step 3)
This subtopic prov idesa sample configuration for the thirdstep, inwhichthe CORlistsare
attached to dial peers.
Assiqninq COR Lis!
Gaetvay
dial-peer v oice 911 pota
deatination-p ttern 911
f orward-d Oit all
corlist ou tgoi g 91 leal 1
port 0/0/0 :23
dial-peer v oice 9911 pots
destinatic n-pa ttern 9911
f orwa rd - d. qit 3
corlist ou tgoi ng 91 leal 1
port 0/0/0 :23
dial-peer v oice 9 po tB
destination-pa ttern 912-91
eorlist ou tqoi ng lo =alcall
port 0/0/0 -.23
dial-peer v oice 91 p JtS
deatination-pa ttern 91 [2-91 . . [2- 91
prefix 1
corlist ou tgoi ng Id ;all
port 0/0/0 r23
dial-peer v oice 9011 pots
destination-pa ttern 9011T
prefix 011
corlist ou tgoi ng in lcall
port 0/0/0 -.23
1he figure illustrates how to attachoutgoingCORlists to dial peers. This example showsonly
outbound POTS dial peers, but COR lists can also be applied to inbound dial peers using the
corlist incoming command. Other dial peer tvpes. such as VoIP or Multimedia Mail over IP
(MMolP) can also be configured with incoming or outgoing COR lists.
In this scenario, no COR lists are applied to inbound POTSdial peers in the incomingdirection.
Therefore, ineoming PSTNcalls will be forwardedto their respective destinations without any
restrictions.
4-136 Implementing Cisco Voice Communications and QoS (CVOICE] vS.O 2010 Cisco Systems Inc.
Assigning COR Lists to Endpoints (Step 4)
S . .- .: fXr 5tpn A in
CtouScdCon.mimi.-ion. Manager Express endpo.nl,
Assigning COR Lists to Endpoints (Step 4)
Sales (SIR
voce reaster pool 1
voce register areaory
number: 2
CiscounifiedCommunications
Manager Express
Lobby1003
voice register pool 1
cor incoming sales 1
2
ephone-dn 1
corlist incoming axe
eorlist outgoing e*a
cutive
ccall
dial-pear voice 1003 pots
destination-pattern 1003
port 0/0/0
corlist incoming lobby
Executive (SCCP)
Bptime-dri. 1
that does not include the EXEC label. _
.eiep^n^^
associated with them.
Dial Plan Implementation 4-137
)2010 Cisco Systems, Inc.
4-138
Configuring COR for SRST
This subtopic proves aconfiguration example for Cisco Unified S
Configuring COR for SRST
call-manager-fallback
cor incoming executive 1 2000 - 2i(
cor outgoing exec-call 2 2000 - 210C
lied SRST.
To configure COR fbr Cisco Unified SRST
mode.
use the corlist command in SRST configuration
..noted 6rte;:; ^*::*rr-a- *^*-
I'nified Co,micaLS Managertl hIk rg12 """^"""^*'** Cis
implemenling Cisco Voice Communications and QoS (CVOICE) 8.i
>2010Cisco Systems. Ir
n^^^
Verifying COR
Thistopic describes how to verify the COR settings.
COR Verification Overview
show dta(-poer cor
show dial-peer voice
Descnptiofi
Displays the COR names (labels) and
lists
Displays the parameters of a voice dial
peer, including incoming and outgoing
COR list
show voice register pool Displays the parameters of a SIP
endpoint, including incoming and
outgoing COR list
show running-config | begin Views the configuration of SCCP
ephone-dn ephone-dns, including incomingand
outgoing COR list
You can verify COR settings with these four commands:
showdial-peer cor: This command displaysthe CORnames(labels)and lists applicable to
all types of dial peers and endpoints.
showdial peer voice: This command displaysthe parameters of a voice dial peer,
including incomingand outgoing COR list.
show voice register pool: This command displays tlie parameters of a SIP endpoint,
including incoming and outgoing COR list.
show running-config | begin ephone-dn: This command displays the configurationof
SCCPephone-dns, including incoming and outgoingCORlist. Because there is no SCCT-
specific command for displaying CORparameters, you must viewa part ofthe gateway
configuration.
) 2010 Cisco Systems, Inc. Dial Plan Implementation 4-139
Verifying COR Names and Lists
This subtopic explains how to view generic COR parametersCOR names and COR lists.
Verifying COR Names and List;
router# show dial-peer cor
Class of Restriction
name: 911
name: loca1
name: intl
COR list <executive>
member: 911
member: local
member: intl
COR list <lobby>
member: 911
COR list <911call>
member: 911
COR list <localcall>
member: local
COR list <intlcall>
member: Intl
fhe show dial-peer eor command display s the COR names (labels) and lists.
4-140 Implementing Cisco Voice Communications and QoS (CVOICE) vS.O i 2010 Cisco Systems. Inc
Verifying Dial Peer COR Settings
This sublopic explains how to view COR lists applied to dial peers.
Verifying Dial Peer COR Settings
router# show dial-pear voice 911
Voic eKncapPe er911
peer type = voice, system default peer = FALSE,
information type = voice,
description = ~',
tag - 911, destination-pattern = ~911',
Incoming COR litiwusim capability
outgoing COS XiattSlloaXl
The show dial-peer voice command displays the parameters of all or selected dia peers. The
parameters include the incoming and outgoing COR lists applied to the dial peer. II no
incoming COR list is configured, the inbound calls that are matched by the dia peer have
maximum permissions. If no outgoing COR list is configured, all outbound calls matched by
the dial peer are allowed.
J 2010 Cisco Systems. Inc
Dial Plan Implementation 4-141
Verifying SIP Endpoint COR Settings
This subtopic explains how to view COR lists applied to SIP endpoints.
4-142
router# show voice register pool 1
Pool Tag 1
Config:
Mac address is 0024.C445.5233
Type is 7955
Number list 1 : DN 1
Proxy Ip address is 0.0.0.0
Class of Restriction List Tagi default
incoming corlist name is executive
DTMF Relay is disabled
Call Waiting is enabled
DnD is disabled
The show voice register pool command displays the parameters of all (using the all kevword)
or selected SIP endpoints. The parameters include the incoming and outgoing COR lists applied
to the endpoint. If no incoming COR list is configured, all calls that are originated by the
endpomt ha\ emaximum permissions. If no outgoing COR list is configured, all sources are
allowed toreach theSIPendpoint.
Implementing Cisco Voice Communications and QoS (CVOICE) vS.O
32010 Cisco Systems,
Summary
This topic summarizes the key points that were discussed in this lesson.
Summary
Calling privileges are used to prevent toll fraud and impose
other policy-defined dialing restrictions.
Voice gateways implement calling privileges byapplying
COR lists to inbound and outbound dial peers.
Cisco Unified CommunicationsManager Express and Cisco
Unified SRST routers implement COR by applying COR lists
to dial peers and SIP and SCCP endpoints.
Call is permitted whenthe incoming CORliston the inbound
dial peer or originating endpoint is a superset ofthe outgoing
CORlist on outbound dial peer or destination endpoint.
Verification of calling privileges involvesthe viewing of COR
names and lists and examining howthe COR lists are applied
to endpoints and dial peers.
i 2010 Cisco Systems, Inc
Dial Plan Implementation 4-143
4-144 Implementing Cisco VoiceCommunications and QoS (CVOICE) v8.0 2010 Cisco Systems. Inc.
Module Summary
This topic summarizes the key points that were discussed inthis module.
Module Summary
The numbering plandefines the basis for call routing and
should be made scalable to achieve robust operations.
The dial plan is the gateway call routing table and uses the
longest-match rule to findthe best path.
Digit manipulation adjusts calling and called numbers to the
requirements ofthe selected voice path (VoIP or POTS).
- Common path selection strategies include site-code dialing,
toll bypass, and TEHO.
Calling privileges prevent toll fraud and enforce policy-
defined dialing restrictions.
This module describes the concept of numbering and dial plans, explains how scalable plans are
designed, and liststhe benefits that scalability offersto the organization. It provides details
aboutcall routing principles that areemployed byCisco voice gateways, andpathselection
strategies whenintegrating VoIPand PSTN environments. The moduleshowsthat digit
manipulation playsanimportant roleindial planoperations andexplains digil manipulation
mechanisms available on voice gateways. It explains howto implement site-code dialing, toll
bypass, andtail-end hop-off(TEHO). anddescribes calling privileges thatare used to block
unwanted calls and to prevent toll fraud.
>2010 Cisco Systems. Inc
Dial Plan Implementation 4-145
4-146 Implementing Cisco Voice Communications and QoS (CVOICE) v8 0 2010 Cisco Systems, Inc.
Module Self-Check
Usethe questions hereto reviewwhat you learnedin this module. The correcl answersand
solutions are found in the Module Self-Check Answer Key.
QI) Whichdial plancomponent is responsible for choosingtlieappropriate path for a call?
(Source: Introducing Call Routing)
A) endpoint addressing
B) call routing and path selection
C) call coverage and path selection
D) calling privileges
Q2) What is the dial plan component called endpoint addressing responsible for assigning
to the endpoints? (Source: Introducing Call Routing)
A) IP addresses
\i) E.164 addresses
C) gateways
D) directory numbers
Q3) Whichoptionimplements call routingandpathselectionon Cisco IOSgateways?
(Source: IntroducingCall Routing)
A) call routing tables
B) dialer maps
C) dial peers
D) route patterns
Q4) Which destination needs to have the PSTN access code 9 stripped from the called
number? (Source: Introducing Call Routing)
A) UCM
B) WAN
C) PSTN
D) gateway
Q5) What is one way to implement call coverage? (Source: Introducing Call Routing)
A) COR
B) pilot numbers
C) digit manipulation
D) endpoint addressing
Q6) Which three arc characteristics of a scalable dial plan? (Choose three.) (Source:
Introducing Call Routing)
A) backup paths
B) full digit manipulation
C) hierarchical numbering plan
D) dial plan logic distribution
E) granularity
F) high availability
12010 Cisco Systems, Inc. Dial Plan Implementation 4-147
Q7) What would be an appropriate dial-peer destination pattern for routing only national
calls in the United States? (Source: Understanding Dial Plans)
A) 9T
B) 9IXXXXXXXXXX
C) 91
I) I 9
08) Which three options are key requirements for a PSTN dial plan? (Choose three.)
(Source: Understanding Dial Plans)
A) internal call routing
B) inbound eall routing
C) outbound call routing
D) correct PSfN ANI presentation
F) internet call routing
F) digital \oice ports
Q9) What might some ISDN networks and PUXs expect along with a certain numbering
plan for both DNIS and ANI? (Source: Understanding Dial Plans)
A) foS
B) TON
C) OoS
D) CoS
QIO) Which command should be used to display infonnation for all voice dial peers?
(Source: Understanding Dial Plans)
A) show dial-peer voice summary
B) show dial-peer voice all
C) show dial-peer summary
D) show dial-peer all
Qll) Which function best deseribes a numbering plan? (Source: Understanding Dial Plans)
A) determines routes between source and destination
B) delines a telephone number of a voice endpoint or application
C) performs digit manipulation when sending calls to the PSTN
D) performs least-cost routing for VoIP calls
Q12) What are two t\pes of numbering plans? (Choose two.) (Source: Understanding Dial
Plans)
A) uni\ersal
B)
public
C)
private
D) U.S. public
4-148 Implementing Cisco Voice Communications and QoS (CVOICE) vS.O 2010 Cisco Systems, Inc
Q13) Match the advantage ofa hierarchical numbering plan with itsdefinition. (Source:
Understanding Dial Plans)
A) simplified provisioning
B) simplified routing
C) summarization
D) scalability
F.) management
1. adds more high-level number groups
2. allows youto add newgroupsand modify existinggroupseasily
3. controls thenumber of groups from a single point intheoverall network
4. establishes a group of numbers in a specific geographical area or functions
group
5. keepslocal calls local and usesa specialized numberkey, suchas an area
code, for long-distance calls
QI4) Which worldwide prefix scheme was developed by the ITUto standardize numbering
plans? (Source: UnderstandingDial Plans)
A) E.164
B) G.1I4
C) G.164
D) E.I14
Q15) Whichentitiesare changed indigit manipulation? (Source: Describing Digit
Manipulation)
A) telephone numbers
B) IP addresses
C) voice gateways
D) dial peers
016) What happens by default when a gateway matches a dial string to an outbound POTS
dial peer? (Source: Describing Digit Manipulation)
A) The router strips off the left-justified digits that do nol explicitly match the
destination pattern.
H) The router strips off the right-justified digits that explicitly match the
destination pattern.
C) The router strips off the left-justified digits that explicitly match the destination
pattern.
D) The router strips off the right-justified digits that do not explicitly match the
destination pattern.
Q17) By default. dial peers strip any outbound digits that explicitly match their
destination pattern. (Source: Describing Digit Manipulation)
A) PSTN
B) WAN
C) POTS
D) VoIP
>2010 Cisco Systems. Inc. Dial Plan Implementation 4-149
Q18) Gi\en the following dial-peer configuration, which two commands would ensure that
the complete numberis sent?(Choose two.) (Source: Describing Digit Manipulation)
dial-peer voice 1000 pots
destination pattern 1...
A) no digit-strip
B) forward-digits all
C) forward-digits 3
D) forward-digits 4
I ) no forward-digits
Q19) Gi\en the following dial-peer configuration, what would be the con'cct command to
add that would allow the call to complete to the PSTN? (Source: Describing Digit
Manipulation)
dial-peer voice 3000 pots
destination pattern 3...
port 0/0:23
A) prefix 5553000
B) prefix 5125552
C) prefix 95125552
D) prefix 5125553000
Q20) Which digit manipulation option is applied globally? (Source: Describing Digit
Manipulation)
A) number expansion
B| digit prefixing
C) digit forwarding
D) digit stripping
021) Which command is used to manipulate the ANI infonnation? (Source: Describing Digit
Manipulation)
A) did
B) clid-off
C) clid-on
D) ani
Q22) Which rule would search and replace a 10-digit numberwith the internal 2XXX
extension? (Source: Describing Digil Manipulation)
A) rule I /A2/ /4085552/
B) rule 1 /2//A4085552/
C) rule 1 /4085552//A2/
D) rulel/A4085552//2/
Q23) fhe command ofTers a simpler alternative to voice translation proliles when
expanding Cisco Unified Communications Manager Express extension numbers to
fuIK qualified public numbers. (Source: Describing Digit Manipulation)
Q24) The _ command displays the matching outgoing dial peer for a telephone number.
(Source: Describing Digil Manipulation)
4-150 Implementing Cisco Voice Communications and QoS (CVOICE) v8 0 2010 Cisco Systems. Inc
Q25) Which option is used toaccomplish call routing and path selection? (Source:
Configuring Path Selection)
A) phone numbers
B) IP addresses
C) dia! peers
D) call managers
Q26) In Cisco IOS routers, which option is associated to each dial peer? (Source:
Configuring Path Selection)
A) call leg
B) translation rule
C) translation profile
D) interface
Q27) One best practice is to createa default POTS dial peer withthe direct-inward-dial
attribute usingthe ____ wildcardas the destination pattern. (Source: Configuring Path
Selection)
A)
B) #
C)
D)
Q28) Which principleenablesthe toll bypassfeature? (Source: Configuring PathSelection)
A) digit manipulationwhen sending PSTNcalls through IP WAN
B) backup dial peers for intersite calls
C) break-out into PSTN at the nearest point
D) dial peers for intersite calls
Q29) Which method is used to overcome the problem of overlapping directory' numbers?
(Source: Configuring Path Selection)
A) site code dialing
B) a technology prefix
C) TEHO
D) toll bypass
Q30) Instead of only routing intersite calls over an IP WAN link, also uses the IP
WAN link for PS'I'Ncalls. (Source: Configuring Path Selection)
Q31) What are two potential problems when configuring tail-end hop-off? (Choose two.)
(Source: Configuring Path Selection)
A) setting the DNIS
B) setting the ANI
C) redirecting the call through the WAN
D) sending the call into the PSTN on the breakout gateway
E) ensuring that the call arrives at the PSTN destination
F) ensuring proper callback operations
>2010 Cisco Systems, Inc. Dial Plan Implementation 4-151
Q32) Which of these options is used within a dial plan lo define the destination that a user is
allowed to call? (Source: Configuring Calling Privileges)
A) dial peers
B) calling peers
C) calling privileges
D) destination patterns
Q33) When does a call fail? (Source: Configuring Calling Privileges)
A) COR list missing on the incoming dial peer
B) CORlist missing on the outgoing dial peer
C) COR list missing on either incoming or outgoing dial peer
D) CoS configuration missing on the incoming dial peer
034) Which COR component includes members that have been previously defined? (Source:
Configuring Calling Privileges)
A) dial peer
B) COR tag
C) dial tag
D) COR list
E) COR label
Q35) In Cisco I'nified Communications Manager Express, to which two entities are COR
lists assigned? (Choose two.) (Source: Configuring Calling Privileges)
A) ephone
B) ephone-dn
C) dial-peer
D) member
E) voice register pool
F) voice register director.' number
Q36) Which command is used to displav COR lists and members? (Source: Configuring
Calling Privileges)
A) show eor
B) show dial-peer cor
C) show dial-peer
D) show corlist
Q37) What is the objective of call coverage? (Source: Configuring Cal! Coverage)
A) Calls are answered as soon as possible.
B) Calls are distributed evenly belween group members.
C) Calls are not left unanswered.
D) Unanswered culls are sent to voice mail.
Q38) Which director)' number tvpe allows 12 concurrent calls to the same number? (Source:
Configuring Call Coverage)
A) dual-line director, number that is assigned to multiple ephones
B) octo-line director.' number that is assigned to multiple ephones
C) shared-line directory number that is assigned to multiple ephones
I)) o\ erlaid directory number that is assigned to multiple ephones
F.) all ofthe above
F) none ofthe above
4-152 Implementing Cisco Voice Communications and QoS (CVOICE| v8.0 2010 Cisco Systems. Inc
Module Self-Check Answer Key
QD
B
Q2) D
Q3) C
04) c
Q5)
B
Q6) A, CD
Q7>
C
Q8) B,C, D
09) B
QIO) A
Qll) B
012) B.C
Q13) l-D
2-A
3-E
4-C
5-B
014] A
QI5) A
Q16) C
Q17) C
QI8) B, D
Q19) B
Q20) A
Q2D A
Q22) D
023} dialplan-pattern
024) show dialplan number
Q25) C
Q26) A
027) D
028) U
Q29) A
Q30| TEHO
Q31) B.F
Q32) C
Q33| D
034) D
Q35) B,K
Q36i B
)2010 Cisco Systems, Inc. Dial Plan Implementation 4-153
Q37) C
Q3S) D
4-154 Implementing Cisco Voice Communications and QoS(CVOICE) 8.0 2010 Cisco Systems, Inc
C_\K^^ sa
lable of Contents
Volume 3
Gatekeeper and Cisco Unified Border Element Implementation tl
5-1
Overview
Module Objectives 5-1
Understanding Gatekeepers
Objectives 5-3
Gatekeeper Overview 5-4
Gatekeeper Functions 5-5
Gatekeeper Signaling 5~6
H.225 RAS Messages 5-7
Registration Request 5-10
Lightweight Registration 5-11
Admission Request 5"12
Location Request 5-14
H.225 RAS Intrazone Call Setup 5-16
H.225 RAS Interzone Call Setup 5-17
Gatekeeper Call Routing 5-18
Zones 5-18
Zone Prefixes 5-18
Zone Prefixes 5-19
Technology Prefixes 5-20
Technology Prefix Usage 5-21
Gatekeeper-Based Call Admission Control 5-22
Calculating Bandwidth 5-23
Configuring Gatekeeper 5-24
Gatekeeper Basics 5-25
Configuring Gatekeeper Zones 5-26
Configuring Remote Gatekeeper Zones 5-27
Gatekeeper ZonesConfiguration Example 5-28
Configuring ZonePrefixes 5-29
ZonePrefix Configuration Example 5-30
Configuring Technology Prefixes 5-31
Technology Prefix Configuration Example 5-32
Adapting H.323 Gateways toGatekeepers 5-33
Managing E.164 Address Registration 5-36
Gateway Configuration Example 5-37
Configuring Gatekeeper CAC 5"38
Gatekeeper CAC Configuration Example 5-39
Verifying Basic Gatekeeper Functionality 5-40
Verifying Gatekeeper Status 5-41
Verifying Registered Endpoints 5-42
Verifying Zone Prefixes 5-43
Verifying ZoneStatus 5-44
Verifying Gatekeeper Calls 5-45
Summary 5-46
Examining Cisco Unified Border Element 5-47
Objectives 5-47
Cisco Unified Border Element Overview 5-48
Cisco Unified Border Element Placement 5-49
Cisco Unified Border Element Applications 5-50
Cisco Unified Border Element Application Examples 5-53
Protocol Interworking on CiscoUnified BorderElement 5-54
Signaling Method Refresher 5-55
Cisco Unified Border Element Protocol Interworking 5-56
Media Flows on Cisco Unified Border Element 5-57
Media Flows 5-58
Cisco Unified Border Element Codec Filtering 5-59
Cisco Unified Border Element Codec Filtering Examples 5.50
Configuring Media Flow and Transparent Codec 5_61
Media Flow-Around andTransparent Codec Example 5-62
RSVP-Based CAC on Cisco Unified Border Element 5 63
RSVP-Based CAC 5.64
RSVP-Based CAC Call Flow 5.65
Cisco Unified Border Element Call Flows 5_66
SIPCarrierInterworking 5.67
SIPCarrierInterworking Call Flow 5.68
SIPCarrier Interworking with Gatekeeper-Based CAC Call Setup 5-69
Configuring H.323-to-H323 Interworking 5_70
Configuring H.323-to-H323 Interworking 5.71
Configuring H.323-to-H323 Fast-Start-to-Slow-Start Interworking 5.72
H.323-to-H323 Interworking Example 5_73
Configuring H.323-to-SIP Interworking 5_74
Configuring H.323-to-SIP DTMF RelayInterworking 5.75
Verifying Cisco Unified Border Element 5.76
Debugging Cisco Unified Border Element Operations 5-77
Viewing Cisco Unified Border Element Calls 5-78
Summary 5_79
Module Summary 5_81
Module Self-Check 5.33
Module Self-Check Answer Key 5-86
Quality of Service q-1
Overview 6-1
Module Objectives 6-1
Introducing QoS ^3
Objectives 6-3
QoS Issues 6-4
After Converged Networks 6-5
Quality Issues in Converged Networks 6-6
Lack of Bandwidth 6-7
Managing Available Bandwidth 6-8
End-to-End Delay 6-9
Types of Delay 6-10
Reducing Delay 6-11
Packet Loss 6-12
Preventing Packet Loss 6-13
QoS and Voice Traffic 6-14
QoS Policy 6-15
QoS for Unified Communications Networks 6-16
Step 1: Identify Trafficand Its Requirements 6-17
Step 2: Divide Traffic into Classes 6-18
Step 3: Define Policies for Each Traffic Class 6-19
QoS Requirements 6-20
QoS Requirements: Video Telephony 6-21
QoS Requirements: Data 6-22
Methods for Implementing QoS Policy 6-23
Implementing QoS Traditionally Using CLI 6-24
Implementing QoS with MQC 6-25
Implementing QoS with Cisco AutoQoS 6-26
Comparing QoS Implementation Methods 6-27
QoS Models 6-28
Best-Effort Model 6-29
IntServ Model 6-30
DiffServ Model 6-31
QoS Model Evaluation 6-32
Summary 6-34
'i implementing CiscoVoice Communications and QoS (CVOICE) vS.O 2010CiscoSystems, Inc
w*
_m
Understanding QoS Mechanisms and Models . . 2222
^~~7^ 6-35
Objectives Rofi
DiffServ Model ~
DiffServ Model 1"^
DSCP Encoding "q
DiffServ PHBs
Expedited Forwarding PHB
Assured Forwarding PHB
DiffServ Class Selector
DiffServ QoSMechanisms
Classification .-
Marking fi.
Congestion Management
Congestion Avoidance J?
Policing ^^
Shaping
Compression
Link Fragmentation and Interleaving "^
Applying QoS to Input and Output Interfaces -54
Cisco QoS Baseline Model "55
Cisco Baseline Marking "^
Cisco Baseline Mechanisms ~57
Expansion and Reduction of Class Model "5
Summary 6"59
Explaining Classification. Marking, and LinkEfficiency Mechanisms ill
Objectives j*jj?
Modular QoS CLI
MQC Components
Configuring Classification 6-66
MQC Classification Options 6-67
Class Map Matching Options 6-69
Configunng Classification with MQC 6"70
Configuring Classification Using Input Interface and RTP Ports 6-72
Configuring Classification Using Marking 6"73
Configuring Class-Based Marking Jj-74
Class-Based Marking Overview 6-75
Configuring Class-Based Marking 6-76
Class-Based Marking Configuration Example 6'77
Trust Boundaries 6-78
Trust Boundary Marking 6-79
Configuring Trust Boundary 6-80
Trust Boundary Configuration Example 6-81
Mapping CoS to Network Layer QoS 6-82
_W Default LAN Switch Configuration 6"83
Mapping CoS and IP Precedence toDSCP 6"84
CoS-to-DSCP Mapping Example 6-85
DSCP-to-CoS Mapping Example 6-86
<_* Configuring Mapping 6-87
Mapping Example -88
Link Efficiency Mechanisms Overview 6-89
Link Speeds and QoS Implications 6-9
'__ml Serialization Issues 6-91
Serialization Delay 6"92
Link Fragmentation and Interleaving 6-93
Fragment Size Recommendation 6-94
Configuring MLP with Interleaving 6-95
Configuring MLP with Interleaving 6-96
MLP with Interleaving Example 6-97
Configuring FRF.12 Frame Relay Fragmentation 6-99
>2010 Cisco Systems. Inc Implementing Cisco Voice Communications andQoS(CVOICE) v8.0
6^0
6-41
6-44
Configuring FRF.12 Fragmentation 6-100
FRF.12 Configuration Example g.101
Class-Based RTP Header Compression 6.103
RTP Header Compression Example 6-104
Configuring Class-Based Header Compression 6-105
Class-Based RTP Header Compression Configuration Example 6-106
Summary g 107
Managing Congestion and Rate Limiting 6.109
Objectives 6-109
Congestion and Its Solutions 6-111
Congestion and Queuing: Aggregation 6-112
Queuing Components 6-113
Software Interfaces 6-115
Policing and Shaping 6-116
Policing and Shaping Comparison 6-118
Measuring Traffic Rates 6-119
Single Token Bucket 6-121
Class-Based Policing 6-123
Dual Token Bucket Single Rate Class-Based Policing 6-124
Dual Rate Class-Based Policing 6-125
Configuring Class-Based Policing 6-127
Configuring Class-Based Policing 6-128
Class-Based Policing Example: SingleRate, SingleToken Bucket 6-129
Class-Based Policing Example: Single Rate, Dual Token Bucket 6-130
Class-Based Shaping 6-131
Configuring Class-Based Shaping 6-132
Class-Based Shaping Example 6-133
Hierarchical Class-Based Shaping with CBWFQ Example 6-134
Low-LatencyQueuing 6-135
LLQ Architecture 6-136
LLQ Benefits 6-137
ConfiguringLLQ 6-138
LLQ Configuration Example 6-139
Monitoring LLQ 6-140
Calculating Bandwidth for LLQ 6-141
Summary 6-143
UnderstandingCisco AutoQoS 6-145
Objectives 6-145
Cisco AutoQoS VoIP 6-146
Cisco AutoQoS VoIP Functions 6-147
Cisco AutoQoS VoIP Router Platforms 6-148
Cisco AutoQoS VoIP Switch Platforms 6-149
Configuring Cisco AutoQoS VoIP 6-151
Configuring Cisco AutoQoS VoIP: Routers 6-153
Configuring Cisco AutoQoS VoIP: Switches 6-154
Monitoring Cisco AutoQoS VoIP 6-155
Monitoring AutoQoS VoIP: Switches 6-157
Automation with Cisco AutoQoS 6-158
Cisco AutoQoS for the Enterprise 6-159
Configuring Cisco AutoQoS for the Enterprise 6-161
Monitoring Cisco AutoQoS for the Enterprise 6-163
Monitoring Cisco AutoQoS for the Enterprise: Phase 2 6-164
Summary 6-165
Module Summary 6-167
Module Self-Check 6-169
Module Self-Check Answer Key 6-179
Implementing CiscoVoice Communications and QoS (CVOICE) vS.O 2010CiscoSystems, Inc.
Module 5
Gatekeeper and Cisco Unified
Border Element
Implementation
Overview
Gatekeepers play a major part inmedium and large H.323 VoIP network solutions. Gatekeepers
allow for dial-plan scalability and reduce the need tomanage global dial plans locally. This
moduledescribes the functions of a gatekeeper and explainshowto configure gatekeepers to
interoperate with gateways.
Also, this module gives anoverview oftheCisco Unified Border Element and describes how to
implement a Cisco Unified Border Element within an enterprise network. ACisco Unified
Border Flement has theability tointerconnect voice and VoIP networks, offering protocol
interworking. address hiding, and securityservices.
Module Objectives
Upon completing this module, you will beable toexplain what gatekeepers and Cisco Unified
Border Elements are. howtheywork, and what features theysupport. This abilityincludes
being able to meet these objectives:
Describe Ciscogatekeeper functions and configuration
Explain Cisco Unified Border Element features andconfiguration
5-2 Implementing Cisco Voice Communications and QoS (CVOICE) u8.0 )2010 Cisco Systems, Inc
Lesson 1
Understanding Gatekeepers
Overview
Agatekeeper isan optional element in an H.323 environment. Ilisdeployed in larger H.323
VoIP network solutions, where scalability becomes an issue. Gatekeepers offer improved dial-
plan manageability by moving call routing logic tothe gatekeeper and reducing the dial plans
maintained by H.323 gateways. H.323 gatekeepers provide additional functions, such as Call
Admission Control (CAC), which prevents oversubscription of WAN bandwidth by VoIP calls.
Objectives
Upon completing this lesson, you will be able todescribe the functions and operation of
gatekeepers and explain how toimplement gatekeepers, including address resolution and CAC.
This abilityincludes beingable to meet these objectives:
Describe the functionality of gatekeepers in an H.323environment
Describe the signalingbetween gatewaysand gatekeepers
Explain the gatekeeper call routing process, and therelated elements, such as gatekeeper
zone, zone prefixes, technology prefixes, andE.164 aliases
Describe how a gatekeeper supports CAC functions
List the steps necessary toconfigure a multizone gatekeeper for local and remote /onecall
routing
Describe howto configure local and remotezones on a gatekeeper
Explain howto configure gatekeeper zone prefixes
Describe how to configure gatekeeper technology prefixes
Explain how loadapt configuration of an H.323 gateway toregister with agatekeeper
Describe how to configure CAC functions on a gatekeeper
Explain how toverify- that H.323 endpoints are registered properly and calls are correctly
routed across a gatekeeper
Gatekeeper Overview
This topic describes 11.323 gatekeepers and their role in 11.323 signaling.
Gatekeeper Overview
Typical gatekeeper functions:
Agatekeeper is an H.323 entity on the network.
* Agatekeeper provides these services:
Address translation
Call Admission Control for H.323 terminals, gateways,
and multipoint control units
* Primary functions are admission control, zone management,
and E.164 address translation.
* Gatekeepers are logically separated from H.323 endpoints
such as terminals and gateways.
Gatekeepers are optional devices in a network
A gatekeeper is an 11.323 entity on the network thai provides services such as address
translation and network access control for H.323 terminals, gateways, and multipoint control
units. The primary functions of a gatekeeper areadmission control, zone management, and
F.164 address translation. Gatekeepers arelogically separated from H.323 endpoints and
optional devices in an 11.323 network environment.
Gatekeepers areoptional nodes that manage endpoints inanH.323 network. The endpoints
communicate with thegatekeeper using the Registration. Admission, andStatus (RAS)
protocol.
Note The ITU-T specifies that, althougha gatekeeper is an optionaldevice in H.323networks, ifa
network does include a gatekeeper, all H.323 endpoints should use it.
Implementing Cisco Voice Communications and QoS (CVOICE] vS.O
2010 Cisco Systems, Inc.
Gatekeeper Functions
This subtopic describes gatekeeper functions.
Gatekeeper Functions
Mandatory Description
Address
resoLtjon
Amission
control
Zone
management
TranslatesH.323IDs(such as flwyt@domain.oom) and E.164
numbers(standard telephonenumbers) toendpoint IPaddresses
Controlsendpointadmissionintothe H.323network
Provideszone managementforail registeredendpoints n the zone
Optionaj | Description
Cal
authorization
Cal
management
Bandwidth
management
Accesses restrictions for certain terminals or gateways or have time-
of-day poicies restrict access
Keepsstate ofactivecallinformation anduses Ittoindicate busy
endpoints or redirect calls
Rejectsadmissions whenthe required bandwidth is not available
Gatekeepers have mandatory and optional responsibilities. The mandatory tasks are as follows:
Addressresolution: Calls originating within anH.323 network may use analias toaddress
the destination terminal. Calls originating outside theH.323 network and received bya
gateway may use an E.164 telephone number toaddress the destination terminal. The
gatekeeper resolves the alias orthe E. 164 telephone number into the IP destination address
onthe H.323 network. Theresolution is doneusing a translation tablethat is updated with
registration messages.
CAC: The gatekeeper controls the admission oftheendpoints into ihe H.323 network.
Three RAS messages areused forthispurpose: Admission Request (ARQ), Admission
Confirmation (ACF). andAdmission Reject (ARJ). Asubfunction of CAC is thebandwidth
control that manages endpoint bandwidth requirements. When registering with a
gatekeeper, anendpoint will specify itspreferred coder-decoder (codec). During H.245
negotiation, adifferent codec may berequired. Codec negotiation isperformed using these
three messages: Bandwidth Request (BRQ), Bandwidth Confirmation (BCF), and
Bandwidth Reject (BRJ).
Zonemanagement: Agatekeeper is required toprovide address translation, admission
control, andbandwidth control for terminals, gateways, and multipoint control units that
are located within its zone of control.
An H.323 gatekeeper canprovidethese optionalfunctions:
Call authorization: Basedon policiessuchas time-of-day, the gatekeeper can restrict
access to certain endpoints or gateways.
Call management: With this option, thegatekeeper maintains active call information and
uses it to indicate busy endpoints or to redirect calls.
Bandwidth management: With this option, thegatekeeper canrejectadmission when the
required bandwidth is not available.
>2010 Cisco Systems, Inc.
Gatekeeper and Cisco Unified Border Element Implementation 5-5
Gatekeeper Signaling
This topic explains the message types thai are involved in gatekeeper-based H.323 signaling.
5-6
Gatekeeper Signaling Overvi
Gateway
Gatekeeper
H22b r^S(UDP)^^^feR225RAS [UDP)
Gateway
Cisco gatekeepers use 11.323 RAS protocol as theprimary call-signaling method. RAS is a
subsetofthe H.225 signaling protocol and is basedon User Datagram Protocol (UDP).
Signaling messages between gateways are11.225 call control, setup, or signaling messages.
H.225 call control signaling is usedto set up connections between H.323 endpoints. fhe ITU
H.225 recommendation specifies the use andsupport of 0.931 signaling messages. If no
gatekeeper is present. H.225 messages areexchanged directly between theendpoints.
H.245 is negotiated after a call is signaled between thegateways. 11.245, a control signaling
protocol in the 11.323 architecture, allows theexchange of end-lo-end H.245 messages between
communicatingendpoints. The H.245 control messages are carried over H.245 control
channels. The H.245 control channel is thelogical channel 0 andis permanently open, unlike
themedia channels, fhe messages that arecarried include messages toexchange capabilities of
terminals and to open and close logical channels.
Alter a connection has beenset up via 11.225 signaling, the 11.245 call control protocol is used
to resolve thecall media type andestablish themedia flow. The H.245 call control protocol
also manages the call after it has been established.
As thecall is set up. other port assignments are dynamically negoliated:
Real-1 ime Transport Protocol (RTP) ports are negotiated fromthe lowest number, fhe
range is 16384 to 32768.
The H.245 ICP port is negotiated duringH.225 signaling for a standardH.323 connection.
Implementing Cisco Voice Communications and QoS (CVOICE) v8.0
2010 Cisco Systems, Inc
H.225 RAS Messages
This subtopiclists the H.225 RASmessage types.
H.225 RAS Messages
Discovery Location:
Gatekeeper Request (GRQ) LocallonRequest (LRQ)
Galekewer CorJirmsbon (GCF > Locallon Conflmamyi (LCF)
Geleleeper Bs|t (GRJ)
Location Reject 1LRJ)
Registration
Admission:
RegiSraoofi Retjuetf (RRQ)
. Regisraoor Confirmation(RCF]
- Regratrano" R*rect (RRJ)
AOmusionRequeS [AR0)
' Admission CMiTlimatlontACF}
- AdmissionRe|ect (ARJ)
Un registration
UnregotrBbonRequest (URQ)
' urreg4trawnCQnfiimarti;UCF)
Disengage
DiserGJOeReqLiest(DRO)
. Untejitniliwi Reject (URJ)
Request in Progress:
Resource availability
Request in Progress (RIP)
Resoj'ceAvailar>*t|lr>tlicitr>r{RAI)
Rejoice Availably Connrmanon (RAG)
- IntoimaKmReqiJesHIRG)
Bandwidth1 InfoimatwnRequest Response (IRR)
BarOwtfltti Request IBRO) Information Request Acknottledarnenl(IACK)
. BanJwidni Confirmation (KF)
- BardwUHi Reject (BRJ)
- ln!orman Request Negative Acknowledgment
(INACK)
The figure shows common RAS signal messages, which are initiated by agateway and
gatekeeper. RAS message types include those listed here:
Gatekeeper discovery messages: Anendpoint multicasts a gatekeeper discover}' request.
Tlie Gatekeeper Request (GRQ) message requests that any gatekeeper receiving it respond
with a Gatekeeper Confirmation (GCF) message granting it permission to register. The
Gatekeeper Reject (GRJ) message isa rejection of this request, indicating thatthe
requesting endpointshouldseekanothergatekeeper.
GRQ: Message is sent by an endpointto a gatekeeper.
GCF: Reply from a gatekeeper to anendpoint indicating thetransport address ofthe
gatekeeper RAS channel.
GRJ: Reply from a gatekeeper to anendpoint rejecting the request from the
endpoint for registration. TheGRJ message usually occurs because of a gateway or
gatekeeper configurationerror.
Terminal and gateway registration messages: The Registration Request (RRQ) message
is a request toregister from a terminal toa gatekeeper. If thegatekeeper responds with a
Registration Confirmation (RCF) message, the terminal will usetheresponding gatekeeper
for future calls. If the gatekeeper responds with a Registration Reject(RRJ) message, the
terminal must seek another gatekeeper with which to register.
RRQ: Sentfrom anendpoint to a gatekeeper RAS channel address. Included inthis
message is the technology prefix, if configured.
RCF: Reply from the gatekeeper confirming endpointregistration.
RRJ: Reply from the gatekeeperrejectingendpoint registration.
) 2010 Cisco Systems, Inc
Gatekeeper and Cisco Unified Border Element Implementation
Terminal and gateway unregistration messages: The Unregistration Request (URQ)
message requests that the association between a terminal and agatekeeper be broken. Note
that the URQ request is bidirectional, that is. a gatekeeper can request a terminal to
consider itself unregistered, and aterminal can inform agatekeeper that it is revoking a
previous registration.
I RQ: Sent from an endpoint or a gatekeeper to cancel registration
1nregistration Confirmation (I'CF): Sent from an endpoint oragatekeeper lo
confirm an unregistration
I'nregistration Reject (t!RJ): Indicates that anendpoint wasnot preregistered with
the gatekeeper
Resource availability messages: The Resource Availability Indication (RAI) message isa
notification from a gatewav toa gatekeeper of its current call capacitv (breach ll-series
protocol anddatarate for that protocol. Upon receiving an RAI message, thegatekeeper
responds with a Resource Availability Confirmation (RAC) message toacknowledge its
reception.
RAI: Used by gatewavs to informthe gatekeeper whether resources are available in
the gateway to take on additional calls
RAC: Notification from the galekeeper to the gateway acknowledging receiptofthe
RAI message
Bandnidth messages: An endpoint sends a Bandwidth Request (RRQ) to itsgatekeeper to
request an adjustment incall bandwidth. The gatekeeper eithergrants the requestwitha
BCFmessage or denies it with a RRJ message.
BRQ: Sent by the endpoint to the gatekeeper requesting an increase or decrease in
call bandwidth
BCF: Sent by the gatekeeper confirming acceptance ofthe BRQ
BRJ: Sent by the gatekeeper rejecting the RRQ
Location messages: Location messages are commonly usedbelween interzone gatekeepers
to get the IP addresses of different /one endpoints.
~ Location Request (LRQ): Sent by a gatekeeper to the directory galekeeper to
request the contact infonnation for one or more E.164 addresses. An LRQ is sent
directly to a gatekeeper if one is known, or it is multicast to the gatekeeper discovery
multicast address.
Location Confirmation (LCF): Sent by a responding gatekeeper and contains the
call signaling channel or RAS channel address (IP address) of itself or the requested
endpoint. It uses the requested endpoint address when Directed Kndpomt Call
Signaling is used.
Location Reject (LRJ): Sent bv gatekeepers that received an LRQfor a requested
endpoint that is not registered or that has unavailable resources.
Call admission messages: The ARQmessage requests that an endpoint be allowed access
to the packet-based network by the gatekeeper. The requestidentitiesthe terminating
endpoint and the bandwidthrequired. The gatekeeper cither grants the request with an ACF
message or denies it with an ARJ message.
ARQ: An attempt bv an endpoint to initiate a call.
Implementing Cisco Voice Communications and OoS (CVOICE) v8.0 2010 Cisco Systems, Inc
ACF: An authorization by the gatekeeper toadmit the call. This message contains
the IP address ofthe terminating gateway orgatekeeper and enables the originating
gateway toinitiate call control signaling procedures.
ARJ: Denies tlie request from the endpoint togain access tothe network for ihis
particular call if the endpoint isunknown orinadequate bandwidth is available.
Disengage messages: When acall isdisconnected, the endpoint sends a Disengage
Request (DRQ) to ihe gatekeeper. The gatekeeper confirms (disengage confirmation
[DCF]) orrejects (disengage rejection [DRJ]) the request. Ifsent from an endpoint toa
gatekeeper, the DRQ message informs the gatekeeper that an endpoint is being dropped. IT
sent from agatekeeper toan endpoint, the DRQ message forces acall tobe droppedsuch
arequest will not be refused. The DRQ message isnot sent directly between endpoints.
DRQ: Sent from the endpoint toagatekeeper when acall isdisconnected
DCF: Confirms the DRQthat was sent by the endpoint
DRJ: Rejects the DRQ thatwassent by thegatekeeper
Request inProgress (RIP) message: The gatekeeper sends outan RIP message toan
endpoint orgateway toprevent call failures due toRAS message timeouts during
gatekeeper call processing. Agateway receiving an RIP message knows tocontinue towait
for a gatekeeper response.
Status messages: Agatekeeper uses anInformation Request (IRQ) todetermine the status
ofan endpoint. In itsInformation Request Response (IRR), the endpoint indicates whether
it is onlineor offline. Thegatekeeper may also replythat it understands the IRQ
(Information Request Acknowledgment [1ACK]) or thatit docs notunderstand therequest
(InfonnationRequest Negative Acknowledgment [INACK]).
IRQ: Sent froma gatekeeper to an endpoint requesting status.
Information Confirm (ICF): Sent froman endpointto a gatekeeper to confirm the
status.
IRR: Sentfrom anendpoint to a gatekeeper in response to an IRQ. Thismessage is
alsosent from anendpoint toa gatekeeper if thegatekeeper requests periodic status
updates. Gateways use theIRR loinform thegatekeeper about theactive calls.
IACK: Usedby the gatekeeper to respondto IRRmessages.
INACK: Used by the galekeeper to respond to IRRmessages.
)2010Cisco Systems, Inc. Gatekeeper and CiscoUnified Border Element Implementation 5-9
Registration Request
This subtopic explains thegatekeeper registration.
Registration Request
Registration is the process bywhich gateways, terminals,
and multipoint control units join a zone and inform the
gatekeeper of their IP and alias addresses.
Registration occurs after the discovery process.
Gateway registers with either: Gatekeeper
-- H.323 ID .^^.
E.164 address
RRQ/S ^^\. RF
Gateway A
When registering with thegatekeeper, thegateway submits its H.323 ID(if configured), the
attached E.164 addresses, or both. Cisco Unified Communications Manager Express registers
bv default E.164addresses of all registered Skinny Client Control Protocol (SCCP) and Session
Initiation Protocol (SIP) endpoints. Cisco IOS gateways register by default Ihe E.164 addresses
of all analogendpoints that are attached lo Foreign Exchange Station(FXS) ports.
Examples of 11.323 ID and E.164 addresses are as follows:
H.323 ID: gatewav name a,domain.com
E.164 address: 4085551212
5-10 Implementing Cisco Voice Communications and QoS (CVOICE] v8.0
2010 Cisco Systems, Inc.
Lightweight Registration
This subtopic describes lightweight registration.
Lightweight Registration
H.323v1 gateway sent full registration every30 seconds
H.323v2 gateway startswith full registration with gatekeeper
Gatewaynegotiatestimersfor lightweight registration
- Gateway sends lightweight registration
Every negotiated timeout
Similar to keepalive
The gateway sends an
RRQ message with
keepalive - true before the
TTL limer expires
Before H.323 version 2, Cisco gateways reregistered with the gatekeeper every 30 seconds.
Each registration renewal used the same process as the initial registration, even though the
gateway was already registered with the gatekeeper. This behavior generated considerable
overhead at the gatekeeper. H.323v2 defines a lightweight registration procedure that still
requires the full registration process for initial registration, but uses an abbreviated renewal
procedure toupdate Ihegatekeeper andminimize overhead.
Lightweight registration requires each endpoint tospecify aTime to Live (TTL) value in its
RRQ message. When agatekeeper receives anRRQ message with aTTL value, it returns an
updated TTL timer value in an RCF message tothe endpoint. Shortly before the TTL timer
expires, the endpoint sends anRRQ message with ihe Keepalive field settoTRUE, which
refreshes the existing registration.
An H.323v2 endpoint isnot required toindicate aTTL initsRRQ. Ifthe endpoint does not
indicate a TTL. the gatekeeper assigns oneand sends it tothegateway intheRCF message. No
configuration changes arc permitted during a lightweight registration, soall fields are ignored
other tlian the endpoint identifier, gatekeeper identifier, tokens, and TTL. With H.323vl.
endpoints cannot process the TTL field in the RCF. The gatekeeper probes the endpoint with
IRQs for a predetermined grace period to learn if the endpoint is still alive.
) 2010 Cisco Systems, Inc.
Gatekeeper and Cisco Unified Border Elemeni Implementation 5-1'
Admission Request
Thissubtopic explains the messages that are involved inthe CAC.
[mission Request
fialpk..r J 8Q155W* Gateway A
Gateway A
^^v H-225CaliSe,uP(TCP) ,'
H.24SCBB Salop (TCP)
^DurtRTP^U^stfoam Vffi-'
Galeway B
The figure shows an ARQ. Before the call isset up. Gateway Asends an ARQ request lothe
gatekeeper. The gatekeeper checks the status ofcalled parly and sends either an ACT message
or an ARJ message. Intheexample, thegatekeeper sends anACT message. The H.225 call
setupwill be directly between the two gateways.
Admission messages between endpoints and gatekeepers provide the basis for call admissions
and bandwidth control. Gatekeepers authorize access to11.323 networks by confirming or
rejecting an ARQ.
ARQ Message Failures
It may not be clear from the RAS ARJ message whythe message was rejected. Ilere are some
basic ARJ messages andthereasons why these messages occur:
calledPartyNotRejiistered: This message is returned because the called parly either was
neverregistered or has not renewed its registration wilha keepalive RRQ.
invalidPermission: Thecall violates some proprietary policy within thegatekeeper that is
tv picallv set by the administrator ofthe network or by the gatekeeper. For example, onlv
certain categories of endpoints may beallowed lo usegateway services.
requestDcnied: The gatekeeper performs zone bandwidth management, and the bandw idth
that is required for this call would exceed the bandwidth limit of the/one.
callerNntRegistered: The endpoint asking for permissionto be admitted to the call is not
registered withthe gatekeeper from whom it is askingpermission.
routeCallToGalekecper; Theregistered endpoint hasbeen sent a setupmessage from an
unregistered endpoint. andthegatekeeper wishes to route the call signaling channel.
invalidEndpointldentificr: The endpoint identifier in the ARQ is not the one that the
gatekeeper assigned to this endpoint in the preceding RCF.
5-12 Implementing Cisco Voice Communicationsand QoS (CVOICE) vS.O
2010 Cisco Systems, inc
resource!, navailable: This message indicates that the gatekeeper docs not have the
resources such as memorv or administrated capacity, to permit the call. Il could possibly
also be used in reference to the remote endpoint, meaning that the endpoint is unavailable.
However, another reason may be more appropriate, such as the call capacity has been
exceeded, which would return a callCapacilyExceeded message.
securitvDenial: This message refers to the Tokens orCryptoToken fields. For example,
failed authentication, lack ofauthorization (permission), failed integrity, or the received
crypto parameters are not acceptable or understood. This message might also be used when
the password or shared secret is invalid or not available, the endpoint is not allowed lo use
aservice, areplay was detected, an integrity violation was detected, the digital signature
was incorrect, or the certificate expired.
qosControlNotSupported: The endpoint specified atransport quality of service (QoS) of
gatekeepcrControlled in its ARQ, but the gatekeeper cannot or will not provide QoS for
this call.
incompleteAddress: This is used for what is referred to as "overlapped sending/' Ifthere
isinsufficient addressing information in the ARQ, the gatekeeper responds with this
message. This message indicates that the endpoint should send another ARQ when more
addressing infomialion is available.
routeCallToSCN: This message means that the endpoint istoredirect the call toa
specified telephone number on the Switched Circuit Network (SCN) or public switched
telephone network (PSTN). This isonly used ifthe ARQ was from an ingress gateway.
aliaseslnconsistent: The ARQdestinationlnfo contained multiple aliases that identify
different registered endpoints. This isdistinct from destinationlnfo containing one ormore
aliases identifying the same endpoint plus additional aliases that the gatekeeper cannot
resolve.
excccdsCallCapacity: This message was formerly callCapacityFxceeded. It signifies that
the destination endpoint does not have the capacity to accept the call. This is primarily
intended for use with gateways that are version 4orlater that report their call capacity to
the gatekeeper.
undefinedReason: "fhis message isused only ifnone ofIhe other reasons are appropriate.
2010 Cisco Systems, Inc. Gatekeeper and Cisco Unified Border Elemenl Implementation 5-13
Location Request
This subtopic explains how gatekeepers locate other gatekeepers.
Location Request
LRQ messages are commonly used between
interzone gatekeepers to obtain the IP of different
zone endpoints
LRQs forwarded using one of two methods;
Sequential
Based on priority and cost
Slower routing
* Less signaling
Blast
To all matching gatekeepers
Response selected based on
priority and cost
Faster routing
More signaling
Gateway
An H.323 IRQ message is sent bv agatekeeper to another galekeeper lo request aterminating
endpoint. Based on the information that iscontained in the IRQmessage, the second
gatekeeper determines the appropriate endpoint.
Note
The gatekeeper sendsout an RIP messagetoanendpoint or gateway toprevent call
failures due toRAS message timeouts during gatekeeper call processing Agateway
receiving an RIP message will continue towaitfora gatekeeper response.
For gatekeeper redundancv- and load-sharing features, you can configure multiple gatekeepers.
The LRQs aresent either sequentially or toall gatekeepers at thesame time (blast).
Sequential forwarding of LRQs isthe default forwarding mode. With sequential LRQ
forwarding, the originating gatekeeper will forward an LRQ to the first gatekeeper in the
matching list. The originating gatekeeper will then wait for a response before sending an LRQ
tothenext gatekeeper on the list. If theoriginating gatekeeper receives an LCF while it is
waiting, it will terminate the LRQ forwarding process.
Ifyou have multiple matching prefix zones, vou may want toconsider using sequential I RQ
forwarding rather than blast LRQ forwarding. With sequential forwarding, you can configure
which routes are primary', secondary, and tertiary.
The top figure illustrates the sequential LRQ process. Galekeeper Awill send an LRQ first lo
Ciatekeeper B. Ciatekeeper Bwill send areply as cither an LCF oran LRJ toGatekeeper A. If
Ciatekeeper Breturns an LCF to Gatekeeper A. the LRQ forwarding process will beterminated.
If Ciatekeeper Breturns anLRJ toGatekeeper A. then Ciatekeeper Awill send anLRQ to
Gatekeeper C. Ciatekeeper Cwill return either an LCF or LRJ toGalekeeper A. Then.
Ciatekeeper Awill either terminate the LRQ forwarding process orstart the LRQ process again
with Gateway D.
5-14 Implementing CiscoVoice Communications and QoS (CVOICE) v80
2010 Cisco Systems, Inc
Note With sequential LRQs, there is afixed timer when LRQs are sent. Even if Gatekeeper Agets
anLRJ back immediately from Gatekeeper B, itwill wait a fixed amount of time before
sending the next LRQ to Gatekeeper Cand Gatekeeper D. You can speed up this process
by using the Irq Irj immediate-advance timer command,
The bottom figure illustrates the blast LRQ sending. The blast option allows Gatekeeper Ato
simultaneously send LRQs to Gatekeeper B, Gatekeeper C, and Gatekeeper D. This option
speeds up the location process but requires more signaling.
)2O10 Cisco Systems, Inc Gatekeeperand Cisco Unified Border Element Implementation 5-15
H.225 RAS Intrazone Call Setup
This subtopic describes the H.225 RAS signaling involved in an intrazone call setup.
H225;Q931
Call Setup
H245
Capabilities
Negolialion
PSTN/
"""""Privats
Votce
1 initiate Call
H225
RAS
H225
RAS
10 Ringback Tone
16 Media (RTP)
H 323 Gatekeeper
13 Capabilities ExcJiange .
14 Master/Slave Determination I
15 Open Logical Channel
RTPS|ffirl
ARQ = Admission Request
ACF = Admission Confirm
Intheexample shown in the figure, both endpoints have registered wilh thesame gatekeeper.
Call flow with a gatekeeper proceeds as follows:
1. Acall is initiated. At thispoint, both theoriginating gateway andtheterminating gateway
have locatedand registered with the gatekeeper.
2. fhe gatewav sends anARQ to thegatekeeper to initiate theprocedure. The gateway is
configured withthe domain or address ofthe gatekeeper.
3. The gatekeeper responds tothe ARQ with anAC!'. Inthe confirmation, the gatekeeper
provides the IP address ofthe tenninating gateway.
4. Theoriginating gatewav initiates a basiccall setupto the terminating gateway.
5. Before theterminating gatewav accepts thecall, it sends anARQ to thegatekeeper togain
permission.
6. The gatekeeper responds affirmatively using the ACF message.
7. Theterminating gatewav proceedswiththe call setupprocedure bysendingthe next H.225
messages to the originating gateway and then exchanging with it the H.245capabilities.
Duringthis procedure, if the gatekeeper responds lo either endpoint with an ARJ to the ARQ.
the endpoint that receives the rejection terminates the procedure.
5-16 Implementing Cisco Voice Communications and QoS (CVOICE) u8.0
>2010Cisco Systems, Inc.
H.225 RAS Interzone Call Setup
This subtopic describes the 11.225 RAS signaling involved in an interzone call setup.
H.225 RAS Interzone Call Setup
ARQ - Admission Request
ACF Admission Confirm
LCF Location Request
LCF Location Confirm
In the example shown inthe figure, the gateways belong todifferent zones and are registered
wilh different gatekeepers. Thecall setupprocedure involves these messages:
1. A call is initiated.
2. The originating gateway sends an ARQ toits gatekeeper (GKI) requesting permission to
proceed andasking forthesession parameters fortheterminating gateway.
3. GKI determines from its configuration that the terminating gatewayis associated with
GK2.GK1 sends an LRQ to GK2.
4. GK2determines the IPaddressofthe terminating gateway and sends it backin an LCF.
5. If GKI considers thecall acceptable for security andbandwidth reasons, it maps theLCF to
an ARQand sendsthe confirmation (ACF) to the originating gateway.
6. Theoriginating gateway initiates a call setup to theterminating gateway.
7. Theterminating gateway acknowledges thereceipt of thecall setupusing the Call
Proceeding message.
8. Before accepting the incoming call, theterminating gateway sends anARQ toGK2
requesting permission to accept the incoming call.
9. GK2 admits the call and responds with a confirmation (ACF).
10. Theterminating gateway rings thedestination endpoint andthenproceeds through the
H.225 call setup and H.245 control function procedures until the RTP sessions areinitiated.
i 2010 Cisco Systems, Inc.
Gatekeeper and Cisco Unified Border Element Implementation
Gatekeeper Call Routing
Zones
fhis topic describes how H.323 gatekeepers route calls.
Gatekeeper Zones
Zones:
H.323 endpoints are grouped into zones.
Each zone has one logical gatekeeper that manages all
the endpoints in the zone.
Zone prefixes:
Azone prefix is the part of the called number that
identifies the zone to which a call goes.
Zone prefixes are usually used to associate an area or
country code to a configured zone
'fhe two primary gatekeeper routing concepts arezones and/.one prefixes.
A/one is defined as the set of H.323 nodes that arccontrolled bya single logical gatekeeper.
Gatekeepers that coexist on a network ma.v beconfigured so that Ihey register endpoints from
different subnets. Ihere can onlv beoneactive gatekeeper perzone. These zones can overlay
subnets, and one gatekeeper can manage gatewav s in one or more of these subnets.
Lndpoinls attempt todiscover a gatekeeper andconsequently thezone of which they arc
members by using the RAS message protocol.
Zone Prefixes
A/.one prefixdetermines to which zone calls are sent. For a zone, which is controlled bya
gatekeeper, the /one prefixeshelp routethe call to the appropriate endpoint. fhe zone prefixes
are typically area codes.
For example. GKI is configured with the knowledge that /one prefix 2l2xxxxxxx (that is. anv
address beginning with212and followed by sevenarbitrary digits) is handled by gatekeeper
GK2. When CiKI is asked to admit a call lo destination address 212-555-1111, it knows to send
theI.RQtoGK2.
5-18 Implementing Cisco Voice Communications and OoS (CVOICE] v8 0
2010 Cisco Systems, Inc.
Zone Prefixes
This subtopic describes gatekeeper zone prefixes.
Zone Prefixes
- Identifies the destination zone for the call
Determines if a call is routed to a remote zone or managed
locally
Azone prefix isthe part ofthe called number that identifies the destination zone for acall.
Zone prefixes are usually used toassociate an area code toaconfigured zone.
The gatekeeper determines ifacall is routed to aremote zone orhandled locally. In the figure,
when a call toarea code 300 originates inZone A, it must beforwarded to the gatekeeper in
Zone B. Calls to area code 200 are handled locally.
Zone prefixes determine the zone towhich a call must beforwarded.
i 2010 Cisco Systems, Inc.
Gatekeeper and Cisco Unified Border Element Implementation 5-19
Technology Prefixes
fhis subtopic describes technology prefixes.
Technology Prefixes
* Technology prefix:
Optional feature toenable morecal! routing flexibility
Groups endpoints of the same type together
Usually identified by"#" sign, but can be any E.164 string
Technology prefix with hop-off
Calls will be routed to a specified zone, regardless ofthe
zone prefix in the address
Gateways can register using a technology prefix.
If no technology prefix is included in the dialed number, a
default technology prefix can be used.
Gatekeeper will only route a call to a gateway with a
matching technology prefix.
Gatekeeper routing isenhanced bv technology prefixes and technology prefixes with hopoff.
Technologv prefixes are used todenote different types or classes of gateways. Thegatewavs
are thenconfigured to register withtheir gatekeepers withtheseprefixes. Forexample, voice
gateways might registerwithtechnologv prefix ]#, 11.320 gateways with2#, voice-mail
gateways with 3#. and so on. More than one gateway may register into the same /one
(configured with the same /one prefix). When that happens, thegatekeeper makes a random
selection among gatewav s ofthe same type. Thecaller, who knows thetype of device that they
are tr> ing to reach, can nowprepend a technology prefix to the destination address to indicate
the tvpe of gatewav to use to get to the destination.
Technology Prefix with Hopoff
"fhe other gatewav -tvpe feature is the abilitv to force a hopoffto a particularzone. Normallv,
when anendpoint or gatewav makes a call ARQ lo itsgatekeeper, thegatekeeper resolves the
destination address by first looking for the technolog} prefix. When that is matched, the
remainingstring is compared against known /one prefixes. If the address resolves lo a remote
/one. the entire address, includingboth technology and zone prefixes, is sent to the remote
gatekeeper in an LRQ, fhat remotegatekeeper then usesthe technology prefixto decidewhich
of itsgatewavs tohopoff. Thezone prefix determines therouting to a /one. andthetechnology
prefix detcmiines thegatewav' inthat /one. fhis behavior canbeoverridden byassociating a
forced hopoffzone with a particular technology prefix. Thisforces thecall lo thespecified /one
regardless ofthe zone prefix in the address.
5-20 Implementing Cisco Voice Communicalions and OoS (CVOICE) v8 0
2010 Cisco Systems, Inc
Technology Prefix Usage
This subtopic explains the use oftechnology prefixes.
Technology Prefix Usage
Distinguish between gateways that havespecific capabilities
within a given zone
- Common to differentiate between gateways that support
terminals, video endpoints, or telephony devices
Forexample, 1#for voice callsand 2# forvideocalls
Ifthe callers know the type ofdevice that they are trying toreach, they can include the
technology prefix in the destination address toindicate the type ofgateway touse toget tothe
destination. For example, if a caller knows that address 2005551111 belongs toa regular
telephone, the destination address of 1#2005551111 can be used, where 1# indicates that the
address should beresolved bya voice gateway. When thegatekeeper receives anARQ for a
call to 1#200555! 111, it contacts the gatekeeper serving zone prefix 200. Thegatekeeper
serving zone prefix 200 searches for a local gateway that registered the E. 164 address
2005551111. If there is no E.164 match, the gatekeeper selects a gateway that is registered in
that zone for the technology prefix 1#. The address ofthedestination gateway is offered tothe
originating gateway (using LCF and ACF). When the call tol#200555l 111 reaches the
terminating gateway, it strips offthetechnology prefix before matching theoutbound dial peer.
Cisco gatekeepers use technology prefixes toroute calls when there isnoE.164 addresses
registered (by agateway) that matches thecalled number. Without E. 164 addresses registered,
theCisco gatekeeper relies onthese two options tomake the call-routing decision:
Technology prefix matches option: Thegatekeeper uses thetechnology prefix that is
appended inthe callednumber to select the destination gateway or zone.
Default technology prefixesoption: Thegatekeeper assigns a default gateway for routing
unresolved call addresses.
Thegatekeeper uses a default technology prefix for routing all calls thatdonothave a
technology prefix or forgateways thatdonot have a technology prefix defined. The gatekeeper
matches the technology prefix todecide which of itsgateways to hop off. This option is useful
if the majority of calls hop offona particular type ofgateway, sothatcallers nolonger prepend
a technology prefix to the address.
) 2010 Cisco Systems, Inc.
Gatekeeper and Cisco Unified Border Element Implementation 5-21
Gatekeeper-Based Call Admission Control
This topic describes how the 11,323 gatekeepers implement CAC.
Gatekeeper-Based Call Admission
Control
Authorizes calls if the network can handle them
- Static configuration of available resources
Provides CAC to these devices:
Cisco Unified Communications Manager
Cisco Unified Communications Manager Express
H.323 endpoint
Gatekeeper
If loo many calls go through the
WAN. voice quality may degrade
for all calls.
In converged networks, a certain amount of bandwidth should be allocated to VoIP calls. Aller
theprovisioned bandwidth hasbeen fully utilized, subsequent callsshould be rejected to avoid
oversubscription of priority queues, which wouldcause quality degradation for all voicecalls.
Ihis functionknown as CACis essential to guarantee good voice quality ina multisite
deployment. Thegatekeeper maintains a record of all active callssothat it canmanage
bandwidth in a zone.
CAC' regulates voice qualitv bylimiting thenumber of calls that canbeactive on a particular
link at thesame time. CAC does not guarantee a particular level of audio quality on thelink,
but it doesallow youlo regulate theamount of bandwidth that isconsumed byactive callson
the link.
fhe Cisco IOS gatekeeper can provide CAC between these devices:
Cisco UnifiedCommunications Manager
Cisco UnifiedCommunications Manager Fxpress
H.323 endpoint
Thegatekeeper requires a sialicconfiguration ofthe available resources. The gatekeeper cannot
assign variable resources, as is the case with Resource Reservation Protocol (RSVP).
5-22 Implementing Cisco Voice Communications and QoS (CVOICE) v8.0
2010 Cisco Systems, Inc.
Calculating Bandwidth
This subtopic explains how the gatekeepers calculate the bandwidth that is required per call.
Calculating Bandwidth
Gatekeeper calculates call bandwidth as double codec rate
- Ignoring overhead
- For all codecs
Formula for zone bandwidth calculation on a gatekeeper
- (Number ofcalls) *(Codec bandwidth) *2
Example: Three G.711 calls:
3 ' 64 * 2 = 384 kb/S
G.711
G.729
kb/s on Gatekeeper
128 kb/s
16 kb/s
The gatekeeper is not able to calculate the exact amount ofbandwidth that is consumed by a
call. Bandwidth depends not only on the codec, but also sampling rate, header compression,
and additional overhead. The gatekeeper approximates the call bandwidth by doubling the
codec rate. This calculation is used for all codec types.
For example, three simultaneous G.711 calls consume, from agatekeeper perspective:
3*64kb/s*2=384kb/s
) 2010 Cisco Systems, Inc
Gatekeeper and Cisco Unified Border Element Implementation
Configuring Gatekeeper
This topic describes how to configure an H.323 gatekeeper on aCisco IOS router.
Gatekeeper Configuration Oven
Gatekeeper:
* Configure local and remote zones.
* Configure zone prefixes.
Configure technology prefixes.
- Enable the gatekeeper.
Gateway:
Configure gateways to use H.323gatekeepers.
Configure dial peers to use H.225 RAS protocol.
Follow these steps to configure a Cisco IOS gatekeeper:
Step 1 Configure local and remotezones on the gatekeeper.
Step 2 Configure zone prefixes for all zones where calls should be routed.
Step 3 Configure technology prefixes toprovide more flexibility incall routing.
Step 4 Friable the gatekeeper function.
Follow these steps toadapt a Cisco IOS 11.323 gateway lo interwork with a gatekeeper:
Step 1 Configure H.323 gateway parameters that arc required toregister wilh a gatekeeper.
Some parameters are mandatory, others are optional.
Step 2 Configure the dial peers to use the RASprotocol.
5-24 Implementing Cisco Voice Communications and QoS (CVOICE) vS.O 2010 Cisco Systems, Inc
Gatekeeper Basics
"fhis subtopic describes the basic commands that are required to implement aCisco IOS
gatekeeper.
Gatekeeper Basics
router(config)#
gatekeeper
Enters gatekeeper configuration mode
router(config-gk)#
no shutdown
Enables the gatekeeper
Should be done when configuration complete
- Some parameters cannotbe modified with active registrations or
calls
Does not make the gatekeeper operational if:
- No local zones are configured
- Local zones use HSRP address and interface is standby
Default: disabled
The gatekeeper command enters the gatekeeper configuration mode. This mode allows the
configuration of all othergatekeeper-related settings.
The gatekeeper feature isdisabled by default. The gatekeeper does not have tobe enabled
before tlie gatekeeper settings are configured. In fact, it isrecommended that the gatekeeper
configuration iscompleted before bringing up the gatekeeper because some characteristics may
bedifficult toalter while the gatekeeper is running, asthere may beactive registrations orcalls.
The no shutdown command enablesthe gatekeeper, but it does not makethe gatekeeper
operational. Thetwoexceptions to thisareas follows:
If nolocal zones areconfigured, a noshutdown command places thegatekeeper in
inactive mode, waiting for a local zone definition.
If local zones aredefined tousea HotStandby Router Protocol (HSRP) virtual address, and
the HSRP interface is instandby mode, thegatekeeper goes into HSRP standby mode. Only
whenthe HSRPinterface is activedoes the gatekeeper go intothe operational up mode,
) 2010 Cisco Systems, Inc
Galekeeper and Cisco Unified Border Element Implementation
Configuring Gatekeeper Zones
This topic describes how toconfigure galekeeper /ones.
Configuring Local Gatekeeper Zone^
router(config-gk)#
zone local zone-name domain-name Iras-IP-address]
Defines local zone.
Identifiedby zone or gatekeeper name, and domain name
Onlyone ras-tP-addressargument can be defined for all local
zones
Local zones cannot use different RAS IP address
- When configured in tne first zone definition, it can be omitted for
all subsequent zones that automatically pickup this address.
A gatekeeper /one can be either local or remote.
The zone local command defines a local /one. Multiple local zones canbe defined. The
gatekeeper manages all configured local /ones. The zone local command defines orchanges
the IPaddress that is usedbv thegatekeeper.
OnI\ one ras-IP-oddress argument can bedefined for all local zones. You cannot configure
each /onetouse adifferent RAS IP address. Ifyou define this inthe first zone definition, you
can omit it for all subsequent zones, which automatically pick upthis address, if vou set it ina
subsequent zone local command, it changes the RAS address ofall previously configured local
zonesas well. After it is defined, you can changeit by reissuing anyzone local command with
a different ras-IP-address argument. If theras-IP-address argument is an HSRP virtual
address, it automatically puts the gatekeeper into HSRP mode. In this mode, the gatekeeper
assumes standbv or active status, depending onwhether the HSRP interface isonstandby or
active status.
Youcannot remov c a local zone if there areendpoints or gateways thatare registered init. To
remove the local /one. shut downthe gatekeeper first lo force unregistration.
Themaximum number olTocal /.ones that aredefined ina gatekeeper should nol exceed 100.
5-26 Implementing Cisco Voice Communications and QoS (CVOICE) w8.0
2010 Cisco Systems, Inc.
Configuring Remote Gatekeeper Zones
"fhis subtopic explains how to configure remote zones on agatekeeper.
Configuring Remote Gatekeeper Zones
router(config-gk)#
zone remote other-zone-name other-domain-name other-
gatekeeper-lp-addreas [port-number] [cost cost-value
[priority priority-value]] [foreign-domain]
Statically defines remote zone
- Identified byzone or gatekeeper name, and domain name
Optional for DNS-resolvable zones
- DNS is appropriate for H.323 ID-based calls, not E.164
- Gatekeeper resolves address automatically
When several remote zones are configured, they can be ranked:
- Bycost (0-100), default: 50
- Bypriority (0-100), default: 50
- Zone with lower cost or higher priority is preferred over others
Default port number: UDP1719
The zone remote command statically defines a remote gatekeeper ora remote zone if a
Domain Name System (DNS) isnot used. The DNS-bascd resolution can be used for H.323 ID-
based calls but not for E.164 calls. ForE.164 address routing, zoneprefixes areconfigured on
the gatekeeper and aremote zone must be defined before configuring azone prefix for that
zone.
When there areseveral remote zones configured, they can beranked by cost and priority value.
Azone with a lower-cost value and a higher priority value isgiven preference over others. A
zone with lower cost or higherpriority is preferred over others.
The remote gatekeeper iscontacted overthedefault UDP port 1719.
2010 Cisco Systems, Inc.
Gatekeeper and CiscoUnified BorderElementImplementation 5-27
Gatekeeper Zones Configuration Example
This sublopic prov ides alocal and remote zone configuration example.
Gatekeeper Zones Configuration
gatekeeper
zone local ZoneA cleco com 10.1 .1.10
zone local ZoneB cisco com
zone remote ZoneC clsco.com 10. 1.1.12
no shutdown
Zone A
The figure shows a network with two gatekeepers: GKI and GK2. OKI manages two local
zones: Zone A and Zone B. GK2 manages Zone C.
GKI settings are shown in the sample configuration. Ithas both local zones configured. The
first zone local command includes the gatekeeper local address. Zone Cisconfigured using the
zone remote command and points lo the IP address of GK2.
5-28 Implementing Cisco VoiceCommunicationsand QoS (CVOICE) vS.O
J2010Cisco Systems, Inc.
Configuring Zone Prefixes
This topic describes how toconfigure zone prefixes.
Configuring Zone Prefixes
router(config-gk)#
zone prefix zone-.name el64-prefix [blast | seq] [gw-
priority priority gw-alias] ^____
Adds a prefix to the gatekeeper zone list
- Identified byname of a localor remote zone or gatekeeper
(defined by using a zone local or zone remotecommand)
E.164 prefixcan include wildcards:
- Dot (.) matches a single character.
- Asterisk (*) matches any stnng.
* blast and seq options define the mode forsending LRQs
gw-priority defines preference for localzone gateways
- For calls to numbers beginningwith prefix e 164-prefix.
- Rangeis 0 (lowest, blocks the gateway) to 10 (highest); default
is 5.
- gw-altasname is the H.323 IDof a gateway.
Set with the h323-gateway voip h.323-id command.
Azone prefix isastring ofnumbers that isused to associate agateway toadialed number in a
zone. It is configured with the zone prefix command in gatekeeper configuration mode.
Agatekeeper can handle more than one zone prefix in one zone, but azone prefix cannol be
shared by more than one gatekeeper. Ifyou have defined a zone prefix asbeing handled by one
zone and then define it for another zone, the second assignment cancels the first.
The E.164-prefix parameter isastandard E. 164 prefix that isfollowed by dots (.). Each dot
represents adigit inthe E.164 address. For example, 200 ismatched by 20(1 and any seven
numbers. An asterisk(*) is a wildcardthat matchesanynumberof any digits.
The blast and scq keywords define the method ofsending LRQs if multiple hopoff gatekeepers
exist. The default is seq.
The gw-priority option defines how the gatekeeper selects gateways in its local zone for calls
tonumbers beginning with prefix el64-prefix. The range is from 0 to 10, where 0 prevents the
gatekeeper from using the gateway gw-alias for that prefix, and 10 places the highest priority
on gateway gw-alias. Tliedefault is 5.
The gu--alias name isthe 11.323 ID ofagateway that isregistered or will register with the
gatekeeper, 'fhisname issetonthe gateway with the h323-gateway voip h.323-id command.
When choosing a gateway, the gatekeeper first looks for ihelongest zone prefix match. Then it
uses the priority and the gateway statusto select fromthe gateways.
) 2010 Cisco Systems, Inc
Gatekeeper and Cisco Unified Border Element Implementation
Zone Prefix Configuration Example
Ihis subtopic prov ides azone prefix configuration example.
Zone Prefix Configuration Exampl
gatekeeper
zone local ZoneA :isco com 10.1.1. If)
zone local ZoneB rlaco com
zone prefix ZoneA 2. . .
gw-prlorlty 5 GW-AI
zone prefix ZoneA 2. . . gw-prlorlty 10 GH -A2
zone prefix ZoneB 3. . .
no shutdown
Inthefigure, thegatekeeper with 1P address 10.1,1.10 manages twolocal zones: /one Aand
/one B. Zone Ahas the prefix 2,,. associated with it and /one Bhas prefix 3... asthe zone
prefix. Four digits areused bythegatekeeper for resolving theaddresses.
1he gateways GW-A1and GW-A2 are configured (nol shown in this figure) toregister into
/one A. The gatewav CiW-B isconfigured loregister into /one B. The gatekeeper has different
priorities that are assigned toGW-A1and GW-A2 that make GW-A1the preferred choice,
GW-A2 serves as the backup gatewav for Zone A.
When the gatekeeper receives anARQ for a call toa number inrange 3..., it will return the
address GW-B. if it successfully registered withthe gatekeeper.
Whenthegatekeeper receives an ARQfor a call to a numberin range2..., it will returnthe
address GW-A 1. if it registered with thegatekeeper. If GW-A I hasnot registered, and GW-A2
has registered, the gatekeeper returns the IP address GW-A2.
5-30 Implementing Cisco VoiceCommunicationsand QoS (CVOICE) vS0
2010Cisco Systems. Inc
Configuring Technology Prefixes
This topic describes how toconfigure technology prefixes.
Configuring Technology Prefixes
router(config-gk)fl
gw-type-prefix type-prefix [[hopoff gftidl] [hopoff gkid2]
[hopoff gkidn] [seq | blast]] [default-technology] [ [gw
ipaddr ipaddr [port] ] ]
Defines a technology prefix
- Recognized and stripped before checking forthe zone prefix
hopoff option specifies the hopoffgatekeeper:
Regardlessofthe zone prefix inthe destination address
- Multiple occurrences configure redundant gatekeepers
default-technology specifies that gateways registeringwith this
prefix are used as default for routing any addresses that are
otherwise unresolved.
gwipaddroption indicates thatthegateway is incapable of
registering technology prefixes. When thegateway registers, itis
added to the group for this type prefix.
To enable the gatekeeper toselect the appropriate hopoff gateway, use the gw-type-prefix
command toconfigure technology prefixes, which arealso known as gateway-type prefixes.
Select technology prefixes todenote different types or classes of gateways. Callers will need to
know the technology prefixes that aredefined andthetypeof device that theyare trying to
reach. Thisknowledge enables them toprepend the appropriate technology prefix to the
destination address forthetypeof gateway that is needed to reach thedestination.
Atechnology prefix is recognized and isstripped before checking forthezone prefix.
Technology prefixes should not lead toambiguity with zone prefixes. Such ambiguity can be
avoided byusing the# character to terminate technology prefixes, for example, 3#.
The hopoffgkid option specifies the gatekeeper where the call istohop off, regardless ofthe
zone prefix inthe destination address. The gkid argument refers toa gatekeeper previously
configured using the zone local orzone remote command. You can enter this keyword and
argument multiple times to configure redundant gatekeepers for a given technology prefix.
Thedefault-technology keyword is useful for declaring a specific gateway-type prefix as the
default gateway type tobeused for addresses thatcannot beresolved. Ifthemajority of calls
hop offona particular type of gateway, youcan configure the gatekeeper to use that technologv
prefix asthe default type sothat callers nolonger have toprepend a technology prefix onthe
address.
Thegwipaddroption isconfigured for a gateway thatis incapable of registering technology
prefixes. When it registers, it adds the gateway tothe group for this type of prefix, justasif it
hadsent thetechnology prefix in itsregistration. Thisparameter canberepeated to associate
more than one gateway with a technology prefix.
>2010 Cisco Systems, Inc
Gatekeeper and Cisco Unified Border Element Implementation 5-31
Technology Prefix Configuration Example
This subtopic prov ides a sample configuration fortechnology prefixes.
Technology Prefix Configurati
Example
Calls with no prefix
treated as with 1#
Calls to prefix 2# go to
Zone C without zone
prefix routing
192 168 1.1 does not
registertechnology
prefix
Zone A
GW-A1
gatekeeper
zone local ZoneA cisco com 10.1 1.10
zone local ZoneB cieco com
ZO ne local ZoneC cisco COm
tone prefix ZoneA 2... gw-prior ty 5 GW AI
zone prefix Zo neA 2 . . . gw-priority 10 GW-A2
zone prefix Zo neB 3...
3 type-prefix !# def suit-tech ology
gw type-prefix 2# hop aff ZoneC
gw type-prefix 99#* gw ipaddr 192.168 1 1
no shutdown
"^i^^; Galekeeper ^^
m^mi 10.1 110 '5E"2*u
WAbL-JZ. GW.B 3x,.x
192 168.1.1
ZoneB
ZoneC
The figure illustrates how technology prefixes enhancecall routing:
fhe gw-t>pe-prefix 1#*default-technology command declares lit as the default
technologv. All calls without any technologv prefix configured will be treated as if 1# was
prepended in the called number.
fhe gw-tjpc-prefix 2#*hopoff ZoneCcommand routes all calls with thetechnology
prefix 2U toZoneC, Based on zone prefixes, such call redirection preempts call routing. In
fact. Zone C does not have a /one prefixconfigured at all.
Thegw -type-prefix 99#* gwipaddr 192.168.1.1 command declares thatthegatewav with
IP address 192.168.1.1 will have the technology prefix 99# associated with it when il
registers with thegatekeeper. This command is usedwhen thegateway cannot registerthe
technologv prefix itself, which may be the case on gatekeepers other than Cisco
gatekeepers.
5-32 Implementing Cisco Voice Communications and QoS (CVOICE) v8.0
2010Cisco Systems, Inc.
Adapting H.323 Gateways to Gatekeepers
This topic describes how to adapt H.323 gateways lo interoperate with gatekeepers.
Adapting H.323 Gateways to Gatekeepers
rouCer(config-if) #
| h323-gateway voip bind arcaddr ip-address
Optional, sets the source IPaddressforoutgoing H.323 traffic
Affects H.225, H.245, and RAS messages
router (conf Ig-if )* ^^_^^__^_^_
h323-gateway voip interface
Mandatory, configures an interface as an H.323 gateway interface
Prerequisite forsettinggatewayID and referencing gatekeeper
Onlyone interface can be selected per gateway
router(conflg-lf1W
h323-gateway voip h323-id interface-id
Optional, sets the H.323 nameofthegateway that identifies this
gateway to its associated gatekeeper
Ifnot defined, gateway registers E.164 numbers, no H.323ID
Zl
The h323-gateway voip bind command isan optional command that binds the gateway feature
to an IPaddressof a networkinterface. It affects H.225, H.245, and RASsignaling. If the
command is notconfigured, therouter relies ontheIPlayer tochoose theoutgoing address.
Theh323-gateway voipinterface command configures aninterface asan H.323 gateway
interface. Thiscommand mustbeconfigured before setting thegateway IDandreferencing the
gatekeeper. Only oneinterface canbe selected pergateway.
TheH323-gateway voip h323-id command specifies the H.323 IDthatthe gateway will use
when registering with the gatekeeper. This command isoptional, and if not configured, ihe
gateway will register without providing its H.323 ID. This command does not affect whether
the gateway registers attached E.164addressesor not.
2010 Cisco Systems, Inc.
Gatekeeper and Cisco Unified Border Element Implementation 5-33
Adapting H.323 Gateways
Gatekeepers (Cont.)
router(config-if| #
h323-gateway voip id gatekeeper-id {ipaddr ip-addr [port-
number] multicast} [priority number]
Mandatory, defines the zone (or gatekeeper ID) lo registerwith
Gatekeeper ID must matchthe zone or gatekeeper ID configured on
gatekeeper
Case-sensitive
Multicast discovery listens onwell-known H323gatekeeperdiscovery
address 224.0.0 41, port UDP 1718
Prioritydefines order of alternate gatekeepers
router(config-if)#
h323-gateway voip tech-prefix prefix
Optional, defines the technology prefix that the gatewayregisterswilh the
gatekeeper
Affects routing of inbound calls
The h323-gateway voip idcommand specifies the gatekeeper toregister with, fhe galekeeper
IDdefined inthis command is configured on thegatekeeper using thezone local command. It
can bereferred toaseither galekeeper ID or /one ID. The command is mandatory for the
gatewav to attempt registration. The gateway can contact the gatekeeper usingcither its unicast
address or v\ell-known multicast address 224.0.0.41. The gatekeepers listen onUDP port 1718.
1hehJ23-gatenay voip tech-prcfi\ command defines the technology prefix that the gateway
registers withthegatekeeper. This settingaffectsthe gatekeeper call routingand can influence
the path selection for inbound calls.
5-34 Implementing Cisco Voice Communications and QoS (CVOICE) vB.O
2010 Cisco Systems. Inc.
Adapting H.323 Gateways to
Gatekeepers (Cont.)
router(config)#
gateway
=1
Mandatory, causes gateway todiscover and register, orunregisterwith
galekeeper
- GRQand RRQor URQ messages. Default: disabled
router(config-dlal-peer)#
seaaion target ras
Mandatory, points the H.323 session at gatekeeper
RAS signaling protocol
- Gatekeeper consulted totranslate E.164 address toIP address
Signaling senl toRAS UDP port 1719 instead ofH.225 UDP port 1720
Tlie gateway command, available in global configuration mode, causes the gateway to send out
gatekeeper discovery (GRQ) and registration (RRQ) requests. It must be configured on the
gateway to attempt registration. By default, the gateway feature isdisabled. The no gateway
command forces unregistration.
The session target ras command that isconfigured in dial peer mode directs the H.323
signaling atthe gatekeeper. This command instructs the gateway to use the H.225 RAS
protocol in addition to H.225.0-based signaling. RAS signaling uses UDP port 1719 instead of
UDP port 1720used for H.225.0.
i 2010 Cisco Systems. Inc.
Gatekeeper and Cisco Unified Border Element Implementation
5-35
Managing E.164 Address Registration
This subtopic describes how to manage L.164 addresses thai are registered by the gatewav with
the gatekeeper.
Managing E.164 Address Registrati
router(conflg-ephone-dn)#
number number [secondary number] [no-reg [both [ primary]
- no-reg keyword prevents E 164number registration ofephone-dns
Default: Both SCCP endpoints registered, SIPnot registered
router(config-dial-peer)#
register el64
Registers fully qualified E164numbers for POTS dial peerswith
FXS
Fully qualified 2001, not fully qualified:200....
Default. Enabled for active dial peers with FXS that is not shut down
router(config-telephony)#
dialplan-pattern tag pattern extension-length extension-
length [extension-pattern extension-pattern | no-reg]
* no-reg keyword prevents expanded number registration
Default Expanded numbersare registered at gatekeeper
Cisco Unified Communications Manager Fxpress registers, bydefault, the E. 164 numbers of
SCCP endpoints. The numbercommand, available inephone-dn configuration mode, has the
no-reg option that disables the E. 164 number registration with the gatekeeper. The suboption
both prev ents both the primary and sccondarv numbers from being registered. The suboption
primary prevents primary number registration.
Cisco voice gatewavs. bv default, register the fully qualified extension numbers that are
associated with analog endpoints attached toEXS ports. An example of a fully qualified
number is2001. while a not fully qualified number is20.... The register el64 command,
available indial peermode, controls theregistration of fully qualified extension numbers. It is
enabled by default. The no register e!64command prevents the registration of fully qualified
extension numbers of FXS-attached endpoints.
Cisco voice galewav s do not register numbers that are associated with any oilier types ofdial
peers, including SIP endpoints of Cisco Unified Communications Manager Express that are
represented as VoIP dial peers. This procedure is ditTerent from SCCP endpoints. which create
plain old telephone service (POTS) dial peers.
The dialplan-pattern command, available intelephony-service and voip register global
configuration mode, expands internal extension numbers topuhlic E. 164 addresses. By default.
Cisco Unified Communications Manager Express registers theexpanded numbers with the
gatekeeper. The command has the no-reg option, which disables the registration ofthe
expanded address.
5-36 Implementing Cisco VoiceCommunications and QoS |CVOICE| v8.0
2010 Cisco Systems, Inc.
Gateway Configuration Example
This subtopic provides asample configuration for agateway that registers with agatekeeper.
Gateway Configuration Example
interface Loopback 0
lp address 192.168.1.2 255.255.255.0
b.3 23-gateway voip interface
h323-gateway voip bind sreaddr 192.168.1.2
h323-gateway voip id ZoneA ipaddr 10.1.1.10
h323-gateway voip h323-id GW-A
h323-gateway voip tech-prefix 1#
dial-peer voice 1 voip
destination pattern [3-7]...
session target ras
dial-peer voice 2 pots
destination pattern 2101
no register 6164
port 0/1/0
I
gateway
1
ephone-dn 1 dual-line
number 2001 no-reg
2101
"WAT*
ZoneA
The figure illustrates the configuration ofagateway that uses the loopback 0interface as the
gateway interface. It sources signaling traffic from the Loopback 0IP address. The gateway
registers with the gatekeeper ID ZoneA that must exactly match the ID (case-sensitive)
configured on the gatekeeper using the zone local command. The gateway registers using the
gatewav H.323 ID ofGW-A and registers tech-prefix I#.
The calls to four-digit numbers starting with 3through 7will trigger an ARQ toward the
gatekeeper.
"fhe gateway has an analog endpoint that is attached to FXS port 0/1/0, but its extension
number will not beregistered asa result ofthe noregister el64 command.
The gateway is simultaneously aCisco Unified Communications Manager Express gateway. It
prevents the extension number 2001 ofthe ephone-dn 1from being registered with the
gatekeeper.
) 2010 Cisco Systems, Inc.
Gatekeeper and CiscoUnified BorderElement Implementation
5-37
Configuring Gatekeeper CAC
fhis topic describes how toconfigure gatekeeper-based CAC.
Configuring Gatekeeper C>
router(config-gk]#
bandwidth {check-destination | interzone | total |
session , remote} {default ! zone zone-name} bandwidth
1 Defines maximumaggregate bandwidth for H.323 traffic
interzone From a specific zone toail otherzones together
total1 Ail calls within one zone
session For a single session in a zone
remote. Toall remote zones together
default: Default value for each zone
Bandwidth-size defined in kb/s
check-destination; Destination zone bandwidth check before
responding to ARQ
Default only source zone and interzone values checked
default Unlimited maximumaggregate bandwidth
The CAC is implemented onthe gatekeeper using the bandwidth command. Il defines the
maximum aggregate bandwidth that isconsumed by 11.323-signaled calls, 'fhe scope isdefined
by these kevwords:
interzone: Iotal amount of bandwidth for H.323 trafficfrom the zone to all other /ones
total: Total amount of bandwidth for H.323 traffic thai is allowed within the zone
session: Maximum bandwidth that is allowed for a session in the zone
remote: Total amount of bandwidth lo all remote /ones
default: Default value fbr all zones: zone-specific value overwrites this setting
The bandwidth is specified in kilobits per second.
The destination-check kev word makes thegatekeeper check the bandwidlh available inthe
destination zone before responding tothe ARQ with an ACE. By default, the gatekeeper checks
only the bandwidth available in the source /one.
5-38 Implemenling CiscoVoice Communications and QoS (CVOICE) vS.O
2010Cisco Systems. Inc.
GatekeeperCAC Configuration Example
This subtopic provides asample CAC configuration.
Gatekeeper CAC Configuration
Example
All calls from Zone A to all other zones:
1024 kWs
Allcalls fromany other zone to all other
zones 512 kWs
All calls within Zone A: 2048 kb/s
Allcalls withinevery other zone. 1536
kbls
Ma* G 729 codec inZone A
Max G.711 codecin every other zone
Destination zone bandwidlh check
enabled
gatekeeper
zona local ZoneA clsco.com 10.1.1.10
zone local ZoneB cisco.com
zone local ZoneC cisco.com
zone prefix ZoneA 2...
zone prefix ZoneB 3...
zone prefix ZoneC 4...
bandwidth interzone ions ZoneA 1024
bandwidth interzone default 512
bandwidth total ions ZonaA 2048
bandwidth total default 1536
bandwidth session zone ZoneA 16
bandwidth session default 128
bandwidth chacle-destination
no shutdown
The figure illustrates how toconfigure agatekeeper tomeet these requirements:
All calls from Zone A to all other zones: 1024 kb/s
All callsfrom anyotherzone to all otherzones: 512kb/s
All calls within Zone A: 2048 kb/s
All calls within every other zone: 1536kb/s
Maximum G.729 codec in Zone A
Maximum G.711 codec in every other zone
Destination zone bandwidth check enabled
) 2010 Cisco Systems, Inc.
Gatekeeper and Cisco Unified BorderEfementImplementation 5-39
Verifying Basic Gatekeeper Functionality
This topic describes how toverily gatekeeper operations.
Gatekeeper Verification Overvi<
show commands.
show gatekeeper status
show gatekeeper endpoint
* show gatekeeper zone prefix
- show gatekeeper zone status
show gatekeeper calls
show gatekeeper gw-type-
prefix
debug commands:
debug h225 {asnl | eventsj
debug h245 {asnl | events}
* debug proxy h323 statistics
debug ras
debug gatekeeper main [5] [10]
The figure lists the commands that can be used tomonitor and debug galekeeper configurations
and interoperabilitywith gatewavs.
5-40 Implementing Cisco VoiceCommunications and QoS (CVOICE) v8 0
2010 Cisco Systems, Inc.
Verifying Gatekeeper Status
This subtopic explains how toverify' the gatekeeper status.
Verifying Gatekeeper Status
gk show gatekeeper status
Gatekeeper State: OP
Load Balancing! DISABLED
Plow Control: DISABLED
License Status: AVAILABLE
Zone Name: ZoneA
Zone Name: ZoneB
Accounting: DISABLED
Endpoint Throttling:
Security: DISABLED
Maximum Remote Bandwidth:
Current Remote Bandwidth:
unlimited
0 kbps
Current Remote Bandwidth
Hunt Scheme: Random
(w/ Alt GKs): 0 kbps
The show gatekeeper status command displays the operational and license status ofthe
gatekeeper. It lists all local zones, the maximum aggregate remote bandwidlh, and other options
that relate to functions, such as security and AAA.
) 2010 Cisco Systems, Inc
Gatekeeper and Cisco Unified Border Element Implementation 5-41
Verifying Registered Endpoints
This subtopic illustrates how to verify ihe cndpoinls that are registered with the galekeeper.
Verifying Registered Endpoint!
gk# show gatekeeper endpoint
GATEKEEPER ENDPOINT REGISTRATION
CallSignalAddr Port RASSignalAddr Port Zone Name Type Flags
10.100.100.100 1720 10.100.100.100 56937 ZoneA
VOIP-GW
E1S4-ID: 2005551212
H323-ID: GW-A
Voice Capacity Max.= Avail.= Current.= 0
10.100.100.101 1720 10.100.100.101 49521 ZoneB
VOIP-GW
E164-ID: 3005551213
H323-ID: GW-B
Voice Capacity Max.= Avail.= Current.= 0
ITotal number of active registrations = 2
The show gatekeeper endpoint command displays the endpoints that are registered by each
11.323 gateway. The gatekeeper presents the IP address and /one name ofeach registered
gateway and lists the gateway H.323 ID(if available) wilh the fc.164 addresses attached to the
gateway on FXS ports or through SCCP endpoints.
5-42 Implementing Cisco VoiceCommunicalions and QoS (CVOICE) v8 0
2010 Cisco Systems, Inc.
Verifying Zone Prefixes
This subtopic explains how to verify the gatekeeper zone prefix configuration.
Verifying Zone Prefixes
gk# show gatekeeper zone prefix
ZONE PREFIX TABLE
Bit-NAME E164-PREFIX
ZoneA
ZoneB
ZoneC
ZoneD
ZoneD
200*
300*
400*
555
919*
The show gatekeeper zone prefix displays the zone prefixes configured with the zone prefix
commands. Ihe output effectively presents the gatekeeper call routing table that does not
include technology-prefix related mechanisms.
2010 Cisco Systems. Inc
Gatekeeper andCisco Unified Border Efement Implementation 5-43
Verifying Zone Status
This subtopic explains how to verily the status ofgatekeeper zones.
Verifying Zone Status
gk# show gatekeeper lone status
GATEKEEPER ZONES
GK name Domain Name RAS Address PORT FLAGS
ZoneA cisco.com 10.1.250.102 1719 LS
QOS ATTRIBUTES :
DSCP Option : default
BANDWIDTH INFORMATION Ocbps) :
Maximum total bandwidth : unlimited
Current total bandwidth : 0.0
Maximum interzone bandwidth : unlimited
Current interzone bandwidth : 0.0
Maximum session bandwidth : unlimited
ZoneB
clsco.com 10.1.25 0.102 1719 LS
The show gatekeeper zone status command displays the status ofall zones that are configured
on the gatekeeper, including local and remote zones. The status includes general zone
information and additional parameters, such as bandwidth-relalcd settings.
5-44 Implementing CiscoVoice Communications and OoS (CVOICE) v8.D
2010 Cisco Systems, Inc
Verifying Gatekeeper Calls
This subtopic describes how to verify the active calls that have been signaled using RAS
protocol.
Verifying Gatekeeper Calls
GK# show gatekeeper calls
Total number of active calls = 1.
GATEKEEPER CALL INFO
LocalCalllD
2-14476
Endpt(s): Alias
src EP: A-CDCME
Age(sees)
59
CallSignalAddr
192.168.3.254
Endpt(s): Alias
dst EP: ipipgw
CallSignalAddr
193.16B.1.3
Port
1720
Port
1720
BW
128 (kb/s)
E.164Addr
12005553001
RASSignalAddr
192.168.3.254
E.l64Addr
13005556666
RASSignalAddr
192.16B.1.3
Port
52668
Port
52060
The show gatekeeper calls command lists the active calls that have been signaled using RAS
protocol. The output includes information about the E.164 addresses involved in the call, the
bandwidth consumption (as computed by the gatekeeper), and the IP addresses ofthe gateways
that sienaled the call.
>2010 Cisco Systems, Inc.
Gatekeeper and CiscoUnified BorderElement Implementation 5-45
Summary
his topic summarizes the key points that were discussed in this lesson.
Summary
* H.323 gatekeepers resolve addresses, provide Call
Admission Control, manage zones, and control bandwidth
utilized by endpoints.
Some RAS messages are exchanged between gateway and
gatekeeper (GRQ. GCF, GRJ, RRQ, RCF, RRJ, ARQ ACF
ARJ, URQ, UCF, URJ, DRQ, DCF, DRJ, RIP), while other
messages are exchanged between gatekeepers (LRQ LCF
LRJ).
1Gatekeepers route calls based onthe called number, which
may or may not contain a technology prefix.
Agatekeeper provides CAC byacceptingcalls that do not
exceed the maximum aggregate throughput.
Agatekeeper mustat least havea local zone configured to
become operational.
Summary (Cont.)
<Local zones define the zones served bythe local gatekeeper
while remotezones are zones controlled byother
gatekeepers.
Zone prefixes establish the call routing table ofa gatekeeper.
Technology prefixes affect gatekeeper call routing and can be
configured on gatekeepers and gateways.
H.323 gateways must be adapted to interoperability with
gatekeepers by commands in interface and dial peer
configuration mode.
Gatekeeper CAC is implemented using the bandwidth
command.
Gatekeepers allow the verification of configuredzones,
registered endpoints, and routed calls.
5-46 Implementing CiscoVoice Communications and QoS (CVOtCE) v80
2010 Cisco Systems, Inc
Lesson 2
Examining Cisco Unified
Border Element
Overview
TheCisco Unified Border Element is like a traditional voice gateway because it connects two
voice legs together. While atraditional voice gateway interconnects aplain old telephone
service (POTS) call leg with a POTS orVoIP call leg, the Cisco Unified Border Element
interconnects two VoIP call legs. This lesson describes the concepts and features ofa Cisco
Unified Border Element inenterprise environments. It explains how toimplement the Cisco
Unified Border Element on a Cisco IOS router.
Objectives
Upon completing this lesson, you will be able to describe the functions and operation ofCisco
Unified Border Element, including address hiding, Call Admission Control (CAC), and
protocol and media interworking. This ability includes being able tomeet these objectives:
Describe the functionality ofa Cisco Unified Border Element and itsapplications in
enterprise VoIP environments
Explain how protocol interworking isperformed on aCisco Unified Border Element and
what interworkingoptions are supported
Describe howmedia flows are managedby a CiscoUnifiedBorder Element
Explain how Cisco Unified Border Element can be used toperform RSVP-bascd CAC
Describe cal! flowsin typical CiscoUnifiedBorder Element deployments
Explain how toconfigure H.323-to-H.323 interworking on aCisco Unified Border Element
Describe how toconfigure basic H.323-to-SIP interworking ona Cisco Unified Border
Element, including DTMF relay interworking
List the commands that are usedto configure media flow-around, media flow-through, and
transparent codec pass-through
Explain howto verify Cisco Unified Border Element operation
Cisco Unified Border Element Overview
This topic provides anoverview of Cisco Unified Border Element.
Cisco Unified Border Element Overvi
VoIP network interconnect
Also called session border controller
Ability to connect one VoIP dial peer with another VoIP
dial peer
Powerful protocol interworking toolset:
H.323-to-SIP
H.323-to-H.323
SIP-to-SIP
TheCisco Unified Border Element is anintelligent unified communications network border
element. ACisco Unified Border Element temiinatcs and reoriginates both signaling (H.323
and Session Initiation Protocol [SIP]) and media streams (Real-Time Transport Protocol [RTP]
and Real-) ime Transport Control Protocol [RTCP|) while performing border interconnection
services between IPnetworks. The Cisco Unified Border Element was formerly known asthe
CiscoMukisen ice IP-to-IP Gateuay. The CiscoUnified Border Element, in addition to other
Cisco IOS Software features, includes Session Border Controller functions that help enable
end-to-end. IP-based transport of \oiee. video, and data between independent Cisco Unified
Communications networks.
Originally. Session Border Controllers were used byservice providers toenable complete
billing capabilities within VoIP networks. However, the functionality tointerconnect VoIP
networks is becoming more andmore important for enterprise VoIP networks, because VoIP is
becoming the newstandard for anv telephony solution.
VoIP dial peers can bemanaged by cither SIP or 11.323. As a result, the ability to interconnect
VoIP dial peers includes the abilitv tointerconnect VoIP networks using different signaling
protocols, or VoIP networks using the same signaling protocols bul facing inleroperahility
issues.
Protocol interworking includes these combinations:
II.323-to-SIP interworking
Il.323-to-H.323 interworking
SIP-to-SIP interworkine
5-48 Implementing CiscoVoice Communications and QoS (CVOICE) v8.0
2010 Cisco Systems. Inc
Cisco Unified Border Element Placement
This subtopic describes where Cisco Unified Border Element is typically placed within
enterprise networks. ^^^^
Cisco Unified Border Element Placement
SIP or H.323
Cisco Unified Border Element
connects\folP dial peers.
Inbound
\folP Dial Peer
Outbound
VoIP Dial Peer
Cisco Unified
Border Element
SIP or H.323
The figure illustrates the capability ofCisco Unified Border Element to interconnect VoIP
networks, including VoIP networks that use different signaling protocols. VoIP interworking is
achieved by connecting an inbound VoIP dial peer with an outbound VoIP dial peer.
The Cisco Unified Border Element provides anetwork-to-network interface point for the
following functions:
Signaling interworking (H.323 andSIP)
Media interworking (flow-through, flow-around, and dual tone multifrequency [DTMF])
Address and port translations (privacy and topology hiding)
Billing and Call Detail Record (CDR) normalization
Quality ofservice (QoS) and bandwidth management (QoS marking using differentiated
services code point [DSCP] ortype ofservice [ToS], bandwidth enforcement using
Resource Reservation Protocol [RSVP], and codec filtering)
ACisco Unified Border Element interoperates with many different network elements, including
voice gatewavs. IP phones, Cisco Unified Communications Manager, Cisco Unified
Communications Manager Express, and simpler toll bypass and VoIP transport applications.
The Cisco Unified Border Element provides organizations with all theborder controller
functions integrated into the network layer tointerconnect Cisco Unified Communications
voice andvideo enterprise-to-service provider architectures.
2010 Cisco Systems, Inc.
Gatekeeper and CiscoUnified Border Element Implementation 5-49
Cisco Unified Border Element Applications
This subtopic describes the tvpical applications of Cisco Unified Border Element in enterprise
environments.
Cisco Unified Border Element Applications
External connections.
Interconnect with VoIP carriers
Interconnect with other voice and video networks
Integrate Internet VoIP and video-over-IP users
Internal connections:
Increase interoperabilitywithin a VoIP network
Relevant features:
Protocol interworking
Address hiding
Security
video integration
CAC
Cisco Unified Border Elements serve these two main purposes in enterprise deployments:
External connections: ACisco Unified Border Elenicnl can be usedas a demarcation
point within aunified communications network and provides interconnectivity with
external networks. This purpose includes H.323 voiceand videoconnections and SIP VoIP
connections.
Internal connections: When usedwithin a VoIPnetwork, a Cisco Unified Border Element
can beused toincrease the flexibility and interoperability between different devices.
Following are somekev features that are offered by CiscoUnified Border Element;
Protocol inleniorking: The Cisco Unified Border Element supports interworking of
signaling protocols, including II.323-to-II.323. H.323-to-SII\ andSIP-to-SIP.
Address hiding: ACisco Unified Border Element can hide orreplace the endpoint IP
addresses used for the media connection.
Security: ACisco Unified Border Element can be placed inademilitarized /one(DMZ)
and prov ide outside connectiviiv to external networks.
Video integration: In addition to VoIPservices, a Cisco Unified Border Element also
supports H.323 video connections.
CAC: A Cisco Unified Border Element can use Cisco IOS Software-based CAC
mechanisms, including RSVP.
5-50 Implementing CiscoVoice Communications and QoS (CVOICE] v80
'2010 Cisco Systems, Inc
The table provides details ofthe key features.
Key Features of the Cisco Unified Border Element Gateway
Feature
Protocols
Network hiding
CAC
Protocol and signal
interworking
Media support
Media modes
Video codecs
Transport mode
DTMF
Fax support
Modem support
i 2010 Cisco Systems, Inc
Details
H.323 and SIP
IPnetworkprivacy and topologyhiding
IP network security boundary
Intelligent IP address translation for call media and
signaling
Back-to-back useragent, replacing all SIP-embedded IP
addressing
RSVP
Maximum number of calls per trunk (maxcalls)
CAC based on IP circuits
CAC based on total calls, CPU usage, or memory usage
thresholds
H.323 toH.323 (including Cisco Unified Communications
Manager)
H.323 toSIP (including Cisco Unified Communications
Manager)
SIPtoSIP(including Cisco Unified Communications
Manager)
RTP and RTCP
Media flow-through
Media flow-around
H.261, H.263,andH.264
TCP
User DatagramProtocol(UDP)
TCP-to-UDP interworking
H.245 alphanumeric
H.245 signal
RFC 2833
SIP Notify
Keypad Markup Language (KPML)
Interworking capabilities:
H.323 to SIP
RFC 2833 to G.711 Inband DTMF
T.38 Fax Relay
Fax pass-through
Cisco Fax Relay
Modem pass-through
Cisco Modem Relay
Gatekeeper and Cisco Unified Border Element Implementation 5-51
Feature
Supplementary services
Details
Callhold, Call Transfer, and call forward for H.323
networks using H.450 and transparentpassingof Empty
Capability Set (ECS)
SIP-to-SIP supplementary services (holds and transfers)
support using the SIP REFER method.
H.323-tr>SIP supplementaryservices for Cisco Unified
Communications Manager with Media Termination Point
(MTP) on the H 323 trunk
Network Address
Translation (NAT)
Traversal
QcS
Voice-quality statistics
Number translation
Codecs
Transcoding
Security
Authentication.
authorization, and
accounting (AAA)
Voice media applications
Silling
NAT Traversal support for SIP phones that aredeployed
behind nonapphcation layer gateway (ALG) data routers
Stateful NAT Traversal
IP precedence and DSCP marking
Packet loss, jitter, and round-trip time
Number translation rules for VoIP numbers
Electronic Numbering (ENUM) support forE.164 number
mapping into Domain Name System(DNS)
G711 mu-law and a-law
G.723ar53, G.723ar63, G.723r53, and G 723r63
G 726M6, G.726r24, and G.726r32
G728
G.729, G.729A. G 729B, and G.729AB
Internet Low BitrateCodec (iLBC)
Transcoding between any two different families of codecs
from the following list:
G 711 a-law and mu-law
G.729, G 729A, G.729B. and G.729AB
G.723 (5.3 and 6 3 kb/s)
iLBC
IP Security (IPsec)
Secure RTP (SRTP)
Transport Layer Security (TLS)
AAA with RADIUS
Tool Command Language (Tel) scripts support for
application customization
VoiceExtensibleMarkup Language (VoiceXML, or
VXML 2 0) script support for application customization
Standard CDRs for accurate billing available through the
following
AAA records
Syslog
Simple Network Management Protocol (SNMP)
5-52 Implementing Cisco Voice Communicalions and QoS(CVOICE| v8.0
2010 Cisco Systems, Inc.
Cisco Unified Border Element Application Examples
This subtopic describes typical uses of Cisco Unified Border Element in an enterprise network.
The figure shows the various deployment options for aCisco Unified Border Element,
including an internal and an external connection. The internal connection provides connectivity
services between two sites ofthe same organization. Internal connections may utilize two Cisco
Unified Border Elements, which can be collocated with Cisco Unified Communications
Manager Express or aregular voice gateway. Two Cisco Unified Border Elements might be
needed if. for example, the two sites have acombination ofSkinny Client Control Protocol
(SCCP) and SIP phones, and H.323 is used over the WAN network. The external connection is
used to provide connectivity to the external Internet telephony service provider (ITSP).
) 2010 Cisco Systems, Inc.
Gatekeeper and CiscoUnified Border Element Implementation
Protocol Interworking on Cisco Unified Border
Element
T^istopie describes the Cisco Unified Border Element protocol interworking capabilities.
Protocol Interworking on Cisco Unlfh
Border Element
Solves interoperability issues when using different signaling
protocol orwhen deviceshave different capabilities
Translates between signaling protocols:
Each call leg terminates on the Cisco Unified Border
Element.
The Cisco Unified BorderElement examines received
information, performs translation, and reoriginates a new
call leg.
Using interworking signaling protocols on Cisco Unified Border Element is like using aproxy.
1his feature can be used for two scenarios:
Interworking between the samesignaling protocols: ACisco Unified Border Element
that is using interworking between the same signaling protocols (for example H.323-to-
H.323) can be used to soke interoperability issues between two devices having different
capabilities. Because the Cisco Unified Border Element builds two different call legs to
each peer, it can work between those two call legs.
Interworking betweendifferent signaling protocols: ACisco Unified Border Element
can interconnect dial peers that use different signaling protocols, such asa SIP and an
H.323 dial peer. This allows for greater flexibility when deploying an IP communications
network.
5-54 Implementing Cisco Voice Communications and QoS(CVOICE| vS.O
2010 Cisco Syslems. Inc.
Signaling Method Refresher
fhis subtopic provides areview of signaling methods in H.323 and SIP.
Signaling Method Refresher
Stow start
Fast start
(Cisco default)
Eartymedia H.323
Delayedoffer SIP
H.323 wl
H.323 v2
Earlyoffer SIP
(Cisco default)
Early media SIP
Characteristics
H.245 parameters exchanged after H.225 connect.
H.245 parameters exchanged earlier, in H.225 cal setup
and H.225 cal proceeding/alerting.
Earty media cut-through after H.245 exchanged.
SDP proposals sent late:
Fromterminating gateway:200 OK
From originating gateway ACK
SDP proposals sent earty:
Fromoriginafinggateway. Invite
- From terminating gateway;
-200 OK
-183 Session Progress, or
180 Ringing
Earlymedia cut-lhrough after:
-183 session progress, or
-180 ringing
The table in the figure provides areview ofthe signaling methods that are supported by H.323
and SIP.
H.323 version 1supports only slow-start call setup, inwhich the H.245 parameters were
exchanged after thecall has been answered.
H.323 version 2 introduced the fast-start option, used by default onCisco gateways, which
expedites the call setup by embedding H.245 parameters in H.225 Call Setup and Proceeding or
Alerting messages.
Early media is an H.323v2 capability that allows the endpoints to establish RTP media flows
before the call isanswered. This option requires that fast start isused, but fast start docs not
necessarily entail early media cut-through, because itisnegotiated separately.
Delayed offer is aSIP signaling method that exchanges Session Description Protocol (SDP)
information about the media types, codecs, and RTP numbers late inthe exchange, namely in
the 200 OK and ACK messages.
Early offer, which is used by default on Cisco gateways, expedites the call setup by attaching
the SDP information toearlier messages: Invite, and 200 OK, 183 Session Progress, or 180
Ringing. The relevant difference is that the INVITE message carries the SDP information
rather than the 200 OK message in delayed offer.
Early media in SIP is the conceptual equivalent ofearly media in H.323 and allows an earlier
cut-through ofRTP flows. Itrequires early offer but is not enforced by it, because itis
negotiated separately.
) 2010 Cisco Systems. Inc.
Gatekeeper and CiscoUnified Border Element Implementation 5-55
Cisco Unified Border Element Protocol Interworking
This subtopic explains the protocol interworking options that are supported bv Cisco Unified
Border Element.
Cisco Unified Bordei
Ini
H.323 H.323;
Slow Start ; -;
Slow Start
Fast Start - -
Fast Start
*"""" """*g^*-
Delayed Offer ;-_ ::.
Early Offer - """
Delayed Offer
Early Offer
* *- __ . -s- .,,...... i.
_^,r~%
^^
Slow Start "^-_J*
Fast Start '-?r**S*
Delayed Offer
Early Offer
" " *&g~
- -*-
SIP
SIP
H.323 SIP
y"
When you use interworking signaling protocols, aCisco Unified Horder Element supports these
combinations:
ll.323-to-II.323: all combinations offast start and slow start onboth call legs
l.323-to-SIP: H.323 fast start-to-SlP carh oflcr and H.323 slowstart-to-a SIPdelaved
offer
SIP-to-H.323: SIP carh' offer toH.323 fast start. SIP early offer toH.323 slow start, and
SIP delayed offer to 11,323slow start.
SIP-to-SIP: All combinations ofearly offer and delayed offer on both call legs
5-56 Implementing Cisco Voice Communications and QoS(CVOICE) v8.0
2010 Cisco Systems. Inc
Media Flows on Cisco Unified Border Element
This topic describes how Cisco Unified Border Element manages media flows.
Cisco Unified Border Element Sigs
and Media Flows
Cisco Unified Border Element canact as a proxy for H.323
and SIP (proxy signaling).
Media flow-through (default)All media streams are routed
through theCisco Unified Border Element:
- Solves IP interworking issues
- Hides IP original addresses
- Enables tighter security policies
Media flow-around: Media streams flow directly between
endpoints.
- Supported only for H.323-to-H.323 and SIP-to-SIP
Because aCisco Unified Border Element is asignaling proxy, italso processes all signaling
messages that negotiate RTP media channels. This processing enables aCisco Unified Border
Element to affect the flow ofmedia traffic. Two options exist: media flow-through and media
flow-around.
When using media flow-through, aCisco Unified Border Element replaces the source IP
address that is used for media connections with its own IP addresses. This operation can be
utilized in the following ways:
It solves IP interworking issues, because the Cisco Unified Border Element replaces
potential duplicate IP addresses with asingle, easy-to-control IP address.
It hides the original endpoint IP address from the remote endpoints.
This makes aCisco Unitied Border Element with media flow-through ideal fbr interworking
with external VoIP networks and enforcing a tighter security policy.
When using aCisco Unified Border Element internally, media flow-through might nol be
necessary or even desirable. One ofthe main drawbacks when using media flow-through is the
higher load on aCisco Unified Border Element router, which decreases the number ol
supported concurrent flows. In addition, media flow-through might result in suboptimal traffic
flows, because direct endpoint-to-endpoint communication is prohibited. Thus aCisco Unified
Border Element can also beconfigured fbrmedia flow-around.
When using media flow-around, aCisco Unified Border Element leaves the IP addresses used
for the media connections untouched. Call signaling will still be processed by the Cisco Unified
Border Element, but after the call isset up, the Cisco Unified Border Element isno longer
involved with the traffic flow. Media flow-around is supported only by interworking within the
same signaling protocol (H.323 or SIP), and is not available for H.323-to-SIP interworking.
) 2010 Cisco Systems, Inc.
Gatekeeper and Cisco Unified Border Element Implementation 5-57
Media Flows
This subtopic describes Cisco Unified Border Element media (low options.
Media Flow-Through:
101 M | 10 111<> 192 163 12| 192 168 12 | 102 1B8.1 2<> 10.2 11| 102
Media Flow-Around:
Cisco Unified
Border Element
192 168 1 2
Signaling Signaling
101 1 1 <> 10.2 1 1
Cisco Unded
Communications
Manager Express
The figure compares Cisco Unified Border Element media flow-through with flow-around:
In media flow-through, the signaling between two Cisco Unified Communications Manager
clusters isprocessed b> the Cisco Unified Border Element. The source IPaddresses ofthe
endpoints are replaced b\ the Cisco Unified Border Element IP address. Both endpoints
have the same IPaddress, but due lotheproxy function ofthe Cisco Unified Border
Element, no interworking issuesarise.
In media flow-around, the endpoint IP addresses cannot overlap and IP address hiding is
not required. The Cisco Unified Border Element still processes all signaling traffic, but the
endpoints have direct media channels that areestablished between them.
5-58 Implementing Cisco Voice Communications andQoS(CVOICE) v8.0
2010Cisco Systems. Inc.
Cisco Unified Border Element Codec Filtering
This subtopic describes the codec handling options that are supported by Cisco Unified Border
Element.
Cisco Unified Border Element Codec
Filtering
VolPnetworks support multiple codecs:
- Preferencesdefinewhich codecs are selected over
others.
Cisco Unified Border Element can limit codecnegotiation toa
single codec:
- Ensures that a specific codec is negotiated
- Simplifies designconsiderations
Cisco Unified Border Element transparent codec handling:
- Transparently passes codec capabilities between
endpoints
Implemented via dial peer configuration
VoIP networks usually support alarge variety ofcodecs, and mechanisms exist to perform
codec negotiations between devices. Regardless ofwhich mechanisms are used, preferences
determine which codecs will be selected over others.
Because a Cisco Unified Border Element is essentially aCisco IOS gateway with the ability to
interconnect VoIP dial peers, the same codec selection mechanisms arc available as onany
other Cisco IOS gateway. Adial peer can be configured toallow aspecific codec ortouse a
codec voice class to specify multiple codecs with apreference order. This configuration enables
aCisco Unified Border Element toperform codec filtering, because adial peer will only setup
acall leg ifthe desired codec criteria arc satisfied, which adds to the Cisco Unified Border
Element roleof a demarcation point within a VoIP network.
Ifcodec filtering isnot required, aCisco Unified Border Element also supports transparent
codec negotiations. This support enables negotiations between endpoints with the Cisco
Unified Border Element simply by leaving the codec information untouched.
Whether performing codec filtering or operating in transparent mode, aCisco Unified Border
Element must support thecodec that is used bytheendpoints.
) 2010 Cisco Systems, Inc.
Gatekeeper andCisco Unified Border Element Implementation
Cisco Unified Border Element Codec Filtering Examples
This subtopic compares the Cisco Unified Border Element codec filtering methods.
Cisco Unified Border Element Codec
Filtering Examples
*Cisco Unified Border Element codec negotiation:
VoIP 1
VoIP 2
1 G 711a-la*
2 G 729A
3 G 7396
Cisco Unified Border Element
2 G 729A
T"g 7298""
Cisco Unified Border Element with codec transparency:
VolP1
2 G 723A
3 G 729B
Cisco Unitied Border Element
VoIP 2.
2 G729A
3 G 7296
The figure shows how codec negotiation is performed on aCisco Unified Border Element. Two
VoIP clouds need tobe interconnected. In this scenario, both VoIP I and VoIP 2networks have
CJ.711 a-law as the preferred codec.
In the first example, the Cisco Unified Border Element isconfigured touse the (I.729A codec.
Ihis configuration can be done b> simply using the appropriate codec command onboth VoIP
dial peers. When acall is set up. the Cisco Unified Border Element will only accept G.729A
calls, thus influencing thecodec negotiation.
In the second example, the Cisco Unified Border Element is configured lor atransparent codec
and will leave the codec infonnation contained within the call signaling untouched. Because
both VoIP I and VoIP 2have G.711 a-law as their first choice, the resulting call will be a
G.71! a-law call.
5-60 Implementing Cisco Voice Communications and QoS(CVOICEI v80
2010 Cisco Systems, Inc.
Configuring Media Flow and Transparent Codec
This topic describes how to configure the available Cisco Unified Border Element media flow
options and codec transparency.
Configuring Media Flow and
Transparent Codec
router(coafig-dial-peer)#
router{conf-voi-servl #
router(config-claBs>#
media [flow-around | flow-through]
Configures media flow-around orflow-through ona dial peer
Available indial-peer, voice service voip, orvoice class
* Media flow-around supported only for SIP-to-SIP or H.323-to-
H.323
Default: flow-through
router(config-dial-peer)#
router (conflg-claas) # ^^^^^^^^^^^^^^^^
codec transparent
Configures transparent codecpass-through in dial-peer or
codec class
TheCisco Unified Border Element media flow and codec transparency can beconfigured using
various configuration elements.
media Command
To configure media flow-through ormedia flow-around, use the media command. This can be
done in dial-peer configuration mode, globally under tlie voice service configuration mode, or
ina voice class that can then bereferenced bymultiple dial peers. Thedefault is media flow-
through. Media flow-through isthe only supported method for 11.323-to-SIP interworking.
codec transparent Command
To configure transparent codec pass-through, use the codec transparent command. This can
be done indial-peer configuration mode or via a codec class.
i 2010 Cisco Systems, Inc
Gatekeeper and Cisco Unified Border Element Implementation
Media Flow-Around and Transparent Codec Example
This topic presents asample Cisco Unified Border Element configuration for media flow-
around and codec transparent.
Media Flow-Around and Transparent
Codec Example
Cisco Lni^ed
Communications
Manager E>p'ess H__5 an_ HmM, M225 and Manager Express
10,11 '1245 SHecofle S1 H225, H245 filte pn_ " ^and
RTP Cisco UnrfiedN. RTP Cisco Unified
Boroer Element \ Border Element
192 16B1 1 \ 192 168 2.1
voice service v oip
allow-conoecti Ons h323 to h323
h323
call etart in terwo rk
dial -peer voice 10 V Oip
des;i nation-pa[tern l..
media flOK-aro und
codec transpar ent
sessi tatget ipv4 : 10. 1.1.1
dial-peer voice 20 v oip
deati lation-pa ttern ?..
media lo-ato und
codec ttanspar ent
seem target ipv4 192 .168.2.1
Cisco Unified
Communications
fhe figure illustrates asample Cisco Unified Border Hlcment configuration for media flow-
around and codec transparency. The configuration consists of H.323-to-H.323 signaling
pennission and the respective VoIP dial peers. The dial peers are configured for media flow-
around and codec transparency. These settings can beconfigured inthe voice class and codec-
class and referenced h> the dial peers.
5-62 Implementing CiscoVoice Communications and OoS (CVOICE) vS.O
2010Crsco Systems. Inc
RSVP-Based CAC on Cisco Unified Border
Element
This topic describes how to provide RSVP-based CAC using the Cisco Unified Border
Element.
RSVP-Based CAC on Cisco Unified
Border Element
CiscoUnified Border Element can use standard Cisco IOS
gateway RSVPcall support.
Enables RSVP-based CAC:
- Supportfor voice and videocalls
Requirements:
- Two CiscoUnified Border Elements can be used as RSVP
peers
- Media flow-through toensurethat the reserved path is
used
Because theCisco Unified Border Element is a CiscoIOS gateway, il alsosupports RSVP-
based CAC. Two Cisco Unified Communications Manager clusters caninterconnect using
CiscoUnified Border Element, thusenabling intercluster RSVP-based CAC. RSVP supports
both voice and video calls.
RSVP requires at least two RSVP peers, sotwo Cisco Unified Border Element gateways are
required to enable RSVP-based CAC. When deploying Cisco Unified Border Element and
RSVP-based CAC. you must be sure that the flows that should utilize RSVP are configured for
media flow-through. Media flow-around isnot supported together with RSVP-based CAC.
>2010 Cisco Systems, Inc
Gatekeeper and CiscoUnified Border Element Implementation 5-63
RSVP-Based CAC
fhis subtopic describes the role ofCisco Unified Border Element in RSVP-based CAC
Cisco Up tied
Communicalions
Manager E-press ^ and
.^C H 245
M225/H 245
. RSVP
Cisco Unite a
Communications
H225 and Manager Express
H 245
Cisco Unifled RTP Cisco Unified
Bordei Border
Element Elemenl
The figure illustrates the placement of tuo Cisco Unified Border Elements to provide RSVP
based CAC. Thecalls are admitted to cross the WAN only when a reservation canbe
succcssfulh made for a call.
5-64 Implementing Cisco VoiceCommunications and OoS (CVOICE] v8 0
2010 Cisco Systems, Inc
RSVP-Based CAC Call Flow
This subtopic describes the call flows in aCisco Unified Border Element deployment with
RSVP-based CAC.
RSVP-Based CAC Call Flow
H.323 Fast Start
14 Ringback
Cisco Unified
Cisco Unified
Border
Border
Elemert
Element
?r..iK*..,iH2V SRRVPPail
RSVP Reservation
| mi " ""
: 5. Call Setup (H.2.45)
p Call Proceeding i , 8.Call Proceeding
13 Alerting (H.245} _ 12. Alarting (H.245)
5 RTP/RTCP StreanU ((tow-through)
6. Call Setup (H24.5)
7 Call Proceeding
11. Alering (H.245)
10. Ring
15. Answer
"The figure depicts the signaling flow with two Cisco Unified Border Elements that provide
RSVP-based CAC and use H.323 fast start on all call legs. The relevant step in this scenario
takes place after the call setup message is received by aCisco Unified Border Element. Before
it fomards the call setup message to the other Cisco Unified Border Element, it cheeks the
required bandwidth. The reservation process involves two messages: RSVP Path message that
is processed bv each router in the path from the originating Cisco Unified Border Element to
the terminating Cisco Unitied Border Element, and the reservation message that flows in the
reverse direction. The Path message carries the request with associated parameters, and the
reservation message is used to commit the reservation on all hops. The originating Cisco
Unified Border Element sends the Call Setup after asuccessful reservation message is received.
Eor RSVP-based CAC. media flow-through must be used toensure that the media packets
actually follow the reserved path. In this example, early media is negotiated that allows the
gateways to establish the media flow before the call is answered.
2010 Cisco Systems, Inc
Gatekeeper andCisco Unified Border Element Implementation
5-65
Cisco Unified Border Element Call Flows
This topic describes typical call Hows in the Cisco Unified Border E
cment.
SIP carrier interworking
H.323-to-SIP
RSVP-based CAC
Two Cisco Unified Border Elements with R323-to-H.323
SIP carrier interworking with gatekeeper-based CAC
H.323-to-SIP
H.323 gatekeeper RAS
Call signaling depends on network topology and features that are implemented on the Cisco
Unified Border Element.
This topic describes call flows lor these Cisco Unified Border Element scenarios:
Cisco Unified Communications Manager Express >Cisco Unified Border Element >SIP
carrier
Cisco Unified Communications Manager Express >Cisco Unified Border Element with
RSVP >Cisco Unified Communications Manager Express
Cisco Unified Communications Manager Express >gatekeeper >Cisco Unified Border
Element > SIP carrier
5-66 Implementing Cisco Voice Communrcalions andQoS (CVOICE) v8 0
2010 Cisco Systems, Inc
SIP Carrier Interworking
This subtopic describes the SIP carrier interworking scenario.
SIP Carrier Interworking
Cisco Unfed
Commumcaions
Manager Express
SIP
Camer
The figure shows asimple Cisco Unified Border Element deployment where the Cisco Unified
Border Element isused totranslate the H.323 call leg with the Cisco Unified CommumcaUons
Manager Express to aSIP call leg point to aSIP carrier. Because this is aconnection to an
external VoIP network, media flow-through isrequired tohide internal IP addresses.
2010 Cisco Systems, Inc
Gatekeeper and Cisco Unified Border Element Implementation 5-67
SIP Carrier Interworking Call Flow
This subtopic illustrates the call flows in the SIP carrier interworking scent
scenario.
H.323 Slow Start-to-SIP Delayed Offer
Cisco Unified
Border
Element
Enterprise t.~=^.
' IP
SIP
H225/Q931
Call Setup j
H245 1
Capabilities
Negotiation J
1 Initiate Call
rGS = TermnaiCac
C_C = Open lc^ ca
bUP = Session Des
1 7 Call Proceeding -
10 Alerting
14 Connect
15 TCS
16 Master/Slave
17 OLC
. 3-In*,. ....... j....AJMiteJ. .,,,
6_100Tryinq,_^ [ A.5.J0Q Trying^
13 200 OK,(SDPJ s12JO0.OKt(SDPJ
SIP
18 ACK(SDP) I 19 ACK(SDP)
20 RTP.'RTCP Streams
fruuDii~c.iaiiir ::m
(Onlyflow-through supported)
The figure illustrates the call signaling flow when Cisco Unified Border Element provides
interworking scr\ ice between H.323slowstart andSIPdelaved offer.
SIP Carrier Interworking C<
H.323 Fast Start-to-SIP Early Offer
H 225/0 931
Call Setup
With H 245
Capabilities
Negotiation
1 Initiate Cal
Cisco Unified
Border
Elemenl
...stup (rUfeW -,.3,lQvitg.lspp) i...4-ln.vite.(fiP.K ...
t 7 Proceeding j S6J00 Trying ._. \^5JOT Tryinq. .._.
1 10 Alerting (H 245); J)jeDJin&ingJSDP) j^jMSO Ringing
12 RTP/RTCP Streams (flow-through) I s|p
.*.. J...X.j jwN*. ,""<iii..C.U:iiiiiEiu..m.'a.jjiiiiijijiiJuu.-""i'lni!
15 Connect .14 200OK .13 200 OK
16 ACK '17 ACK
fhe figure illustrates the call signaling flow when Cisco Unified Border Element provides
interworking service between H.323 fast start andSIPearlvoffer.
5-68 Implementing Cisco Voice Communications andQoS (CVOICE) v8.0
2010 Cisco Systems, Inc
SIP Carrier Interworking with Gatekeeper-Based CAC Call
Setup
This subtopic describes the call flows in aCisco Unitied Border Element deployment with
gatekeeper-based CAC.
SIP Carrier Interworking with
Gatekeeper-Based CAC Call Setup
H.323 Slow Start-to-SIP Delayed Offer
Zone AGK ITSP GK
H225/Q 931
causemp
17 Ringback
> ARQ
3 LRQ
6 CaDBetuft
13. CallProteefling
12. 100 Trying
H225
RAS
{H.225
RAS
10. Invite
11.100 Trying
14. Ringing
16 Alerting
20 Connect
15 Ringing
19 200OK(SDPJ 18. 200 OK (SDP)
23. ACK (SDP]
21. H.245 Capacity Exchange
24. RTP/RTCP Streams (flow-tri rough)
ARQ =Admission Request ACF =Adrr.ss.ori Confirm, LCF - Location Request, LCF =Location Confirm
The figure shows the signaling flow with two gatekeepers and one Cisco Unified Border
Element, providing gatekeeper-based CAC in combination wilh SIP carrier interworking. The
call flow from the Cisco Unified Communications Manager Express toCisco Unified Border
Element follows the regular H.225 RAS procedure, inwhich ARQs are sent by both gateways
totheir respective gatekeepers. Location Request (LRQ) and Location Confirm (LCF) are
exchanged between the gatekeepers. The Cisco Unified Border Element then connects the
inbound H.323 call leg tothe outbound SIP call leg. This example illustrates H.323 slow start-
to-SIP delayed-offer interworking on Cisco Unified Border Element. Interworking between
different protocols (H.323 and SIP) supports media flow-through only.
12010 Cisco Systems, Inc.
Gatekeeperand CiscoUnified BorderElement Implementation 5-69
Configuring H.323-to-H.323 Interworking
This topic describes hou to implement 11.323-to-l 1.323 intenvorking on aCisco Unified Border
Element.
H.323-to-H.323 Configuration Overvi
J Enable H.323-to-H.323 interworking.
7. Enable fast-start-to-slow-start interworking (optional).
; Configure H.323dial peers.
To configure H.323-to-H.323 intenvorking between aCisco Unified Coninuinications Manager
cluster and aCisco \ nilied Communications Manager Express gateway, follow these steps:
Step 1 Enable H,323-to-H.323 intenvorking.
Step2 Configure fast-start-to-s low-start interworking. if desired.
Step 3 Conligure the H.323dial peers on the Cisco Unified Border Element to allowcall
routing between the call legson bothsides ofthe Cisco Unified Border Element.
5-70 Implementing Cisco VoiceCommunicalions and QoS (CVOICE) vS.O
2010 Cisco Systems, Inc
Configuring H.323-to-H.323 Interworking
This topic describes the mandatory settings for H.323-to-H.323 intenvorking on Cisco Unified
Border Element.
Configuring H.323-to-H.323
Interworking
router Icon fig) tt
voice service voip
Enters voice service VoIP configuration mode
router(conf-voi-serv)#
Tallow-connections h323 to h323
Enables H.323-to-H.323 interworking
Default: Only POTS-fo-any and any-to-POTS connections are
permitted
H.323-to-H.323 interworking isdisabled by default. Itisenabled using the aHow-connect ions
h323 to h323 command in global voice service configuration mode. By default, only POTS-to-
any and any-to-POTS connections are permitted.
) 2010 Cisco Systems, Inc.
Gatekeeper andCisco Unified Border Element Implementation 5-71
Configuring H.323-to-H.323 Fast-Start-to-Slow-Start
Interworking
This topic describes how to implement ll.323-to-H.323 last-start-to-slow-start interworking
Ciseo Unified Border Element.
Configuring H.323-to-H.323 Fast-
to-Slow~Start Interworkinq
router(conf-vol-serv)#
h323
Enters H.323 mode
routerIconf-serv-h323)#
call start {fast slow j interwork}
Forces theH323 gateway touseeither fast-start (H.323 v2) orslow-
start (H 323 v1) procedures for the dial peers using H.323
interwork option allows Cisco Unified Border Element
interoperability between fast-start and slow-start procedures
Caution. Cisco Unified Border Element with this setting will not
originate anyH.323 calls(fast startandslow-start disabled)
Default fast start (H323 v2)
11.323 fast-start-to-slow-start interworking isenabled using the eall start command inh323
configuration mode. The call start command has three options:
Fast: Ihis selection forces the H.323 gateway touse fast start (H.323v2) procedures for tlie
dial peers using 11.323. This is thedefault setting.
Slow: This option makes the H.323 gateway use slow start (H.323vl) procedures for the
dial peers using H.323.
Interwork; This ke\word allows Cisco Unified Border f.lenient interoperability between
fast start and slow start procedures. This option effectively disables the any-to-fl.323
gatewa\ operations onthe Cisco Unified Border Element because the gateway will not
originate am H.323 calls (fast start and slow start arenotenabled).
5-72 Implementing Cisco Voice Communicationsand QoS (CVOICE) vS.O
2010 Cisco Systems, Inc
"*%*
H.323-to-H.323 Interworking Example
This topic provides aCisco Unified Border Element H.323-to-H.323 interworking example
H.323-to-H.323 Interworking Exampi
Cisco Unified
Communications
Manager E-press H ~-c _.. . __
10111 HZ25 """'" 1 ' RL<flrndeB2 H.225
Cisco Unified
Communications
Manager Express
Cisco Unified'
Border Element'
192.1681 1
IP WW
RTP Cisco Unified
Border Element
192.168 2.1
voice service voip
allow-connectione h323 Co h323
t.323
call start interork
I
dial-peer voice 10 voip
description To Cisco unified CUE
destination-pattern 1...
session target ipv4:10.1.1.1
1
dial-peer voice 30 voip
description To Cisco UBH
destination-pattern 83....
session target lpv4:13Z.168 .2.1
The figure illustrates asample configuration for Cisco Unified Border Element H.323-to-H.323
interworking. The configuration consists ofthe H.323-to-H.323 signaling permission, fast-start-
to-slow-start activation, and VoIP dial peers responsible for both call legs ofthe Cisco Unified
Border Element.
) 2010 Cisco Systems. Inc.
Gatekeeper andCisco Unified Border Element Implementation 5-73
Configuring H.323-to-SIP Interworking
This topic describes how to implement H.323-to-SIP interworking on Cisco Unified Bordt
Element,
Configuring H.323-to-SiP Interworl
router(conf-voi-serv}#
allow-connections h323 to sip
allow-connections sip to h32 3
* Enables H.323-to-SIP interworking
In one direction only
Two mirrored statements required forbidirectional
interworking
Default: only POTS-to-any and any-to-POTS connections are
allowed
For SIP-to-SIP interworking:
allow-connections sip to sip
H.323-to-SIP interworking is disabled b\ default. It is enabled using the allow-conncctions
h323 to sip command in global voice service configuration mode. By default, only POTS-to-
any and anwo-POTS connections are permitted.
The configuration fbr H.323 and SIP interworking is unidirectional, thus if bidirectional
interworking is required, you need to configure the mirror-matching statement as well. Eor
example, ifbidirectional Ii.323-to-SIP interworking is required, you need to configure allow-
connections h323 tosip as well as allow-connections sip toh323.
SIP-to-SIP intenvorking is enabled similarly, using the allow-conncctions sip to sip command.
5-74 Implementing Cisco Voice Communications andQoS(CVOICE) v80
2010 Cisco Systems, Inc
Configuring H.323-to-SIP DTMF Relay Interworking
This topic describes how to implement H.323-to-SIP DTME interworking on Cisco Unified
Border Element.
Configuring H.323-to-SIP DTMF Relay
Interworking
router(contig-dial-peer)#
dtmf-relay [cisco-rtp] [h245-alphar.UTi.eric] [h245-signal]
[rtp-nte [digit-drop]] [aip-notlfy]
Basic DTMF relay hterworking
- H245alpha-signerf and SIPRTP-NTE (RFC 2833)
- H.245alpha/signal and SIP Notify
dkjit-drop drops incoming in-band DTMF digits when H.323 call leg uses
out-of-band relay (H.245 alpha/signal andSIP RTPWE)
- Prevents sending DTMF n two channels
Configuredon the SIP call leg dial peer
In-band ci*co-rtp, rtp-nta (RFC2833)
Out-of-band h2-a1phanumeric. h246-signal
rtp-nte (RFC 2833)
sip-notify
DTMF intenvorking is asubset ofH.323-to-SIP interworking and supports these DTMF relay
combinations:
H.245 alpha/signal and SIP RTP-NTE (RFC 2833), as afunction ofbasic DTMF
interworking. This method converts an out-of-band DTMF relay method to an in-band
rela>. Its potential issue is that the DTMF digits are transported both in-band and out-of-
band on the H.323 call leg.
Note NTE - named telephony event
11.245 alpha/signal and SIP Notify, as a function ofbasic DTME interworking. This method
converts anout-of-band DTMF relay method to another out-of-band DTMF relay.
G.711 inband DTMF to RTP-NTE. as a function of supplementary DTMF interworking.
Thismethod converts an in-band DTMF relay method to another in-band DTMF relay.
The digit-drop keyword in the dtmf-relay rtp-nte digit-drop command prevents sending both
in-band and out-ofband tones totheH.323 leg. It isconfigured inthe dial peer thatprovides
the SIP call leg for the first DTMF relay method (H.245 alpha/signal and SIP RTP-NTE). It is
useful only ifeither dtmf-relay h245-alphanumeric ordtmf-relay h245-signal is configured
on the H.323 call leg.
The table in the figure provides areview ofin-band and out-of-band DTMF relay methods that
arc supported in H.323and SIP.
) 2010 Cisco Systems, Inc.
Gatekeeper and Cisco Unified Border Element Implementation
Verifying Cisco Unified Border Element
This topic describes hou to verify Cisco Unified Border Element operations.
Cisco Unified Border Element
show commands
show call active voice
show call history voice
show diat-peervoice
* show voip dp connections
debug commands:
' debug voip ipipgw
1 debug cch323 all
debug ccsip messages
debug h22Sasn1
* debug h225 events
debug h245asn 1
* debug h245 events
' debug voip ccapi inout
Ihe figure summarizes the commands that can be used tovcri IV and debug Cisco Unified
Border Element operations. All commands, except the debug voip ipipgw command, are
Upical commands that areknown from traditional H.323 or SIP environments. To sueccssfulK
troubleshoot Cisco Unified Border Element functionality in ll.323-to-SIP interworking
scenarios, both groups of commands are needed (SIP andH.323).
5-76 ImplementingCisco VoiceCommunications and QoS (CVOICE) v8 0
12010 Cisco Systems. Inc
Debugging Cisco Unified Border Element Operations
This subtopic shows how to debug Cisco Unified Border Element operations.
Debugging Cisco Unified Border
Element Operations
jtert debug voip ipip3
/H323/cch323 Bet_pr.i_co<lae_liBti: Firat preferred codec (bytes) -1(201
/E323/cch323_get_per_info: Flo* Node Bet to FLOW .THROUGH
_/B323/ccn323_build_local_enCOaed_fa.tStartOLC9: sroAddrBBS - OXA01O665,
h245 lpoit 0, flow node - 1,
.../H323/cch323_g8naric_c.pBn_logical_chann8l: current codec - 16:20:20
./a323/cch323_reCeive aatStart_cap raapouBe: Send cap ind to peer leg
,/H3 23/cch323_build olc.forccapi: audioFs.stStartArray-0x4J0*57 54
_./B323/cch323_build_olc_ior_ccapi: Char
Logical Channel Number {fd> : 1
logical Channel Number (rev): :
Channel addraBS !fwd/rev):
RTP Channel lfwd/vl :
RTCP Channel (*d/revl :
OoS Capability Iftrd/rav):
Synnetcic Audio Codec:
Symmetric Audio Codec Bytes:
Flow Hode:
Silence Suppression:
el inrc atio
10.1.Z50.102
16764
1676 5
The figure shows sample output from the debug voip ipipgw command. It includes the
description ofthe media flow (flow-through in this example), and lists negotiated parameters,
such as RTP port numbers.
>2010 Cisco Systems, Inc
Gatekeeper and CiscoUnified BorderElementimplementation
5-77
Viewing Cisco Unified Border Element Calls
This subtopic explains how to examine VoIP calls transported over the Cisco Unified Border
t. lenient.
Viewing Cisco Unified Border Elei
outer* show call
Telephony call-legs: 0
SIP call-lege: l
B323 call-legs: 1
Call agent controlled call-legs: 0
SCCP call-legs: C
Multicast call-legs: 0
Total call-legs: 2
137C : 163 346116e00ms. 1 .1580 Pid:4O0C2 has
dur 30:00:22 tx : 11 24/2 24 BO rx:112/2050
IP 10.1.2.26:25850 SRTP: off rtt:0ffiB pl:0/0mB lost:0/0/0 del ay:0/0/0n
g729r8 Textfielay: off
media inactive detected:n media contrl rcvd:n/a timestamp:n/a
long duration gall deEected:n long duration call duration:n/a timesta
1010
The show call active voice briefcommand can beused tovalidate that an active cal! has been
established using the H.323-to-SlP interworking procedure. If so, there should beoneSIP and
one H.323 call leg. Additional!), the output displays other information, such aseall duration
and RTP parameters.
5-78 Implementing CiscoVoice Communications and QoS (CVOICE) vS.O
2010 Cisco Systems, Inc
mm
Summary
This topic summarizes the key points that were discussed in this lesson.
Summary
Cisco Unified Border Semen! features include protocol
interworking, address hiding, security, video integration, and
CAC.
Cisco Unified Border Element supports conversion offast-
start-to-slow-start signaling methods within thesameprotocol
(H.323 or SIP).
The default mediaflow-through can be changed to flow-
around when interworking within the same protocol.
CiscoUnified Border Element can be deployed in
combination with RSVP.
CiscoUnified Border Element call flows differ depending on
the CAC method in use.
Summary (Cont.)
>2010 Cisco Systems. Inc.
H.323-to-H.323 interworking allows the configuration of fast-
start-to-slow-start conversion.
H.323-to-SIP interworking can be combined with gatekeeper
CAC on the H.323 side.
Cisco Unified Border Element can pass codec negotiation
transparently and allow the media toflow around without
being handled.
Debug and verification commands display both VoIP call legs
of Cisco Unified Border Element.
Gatekeeperand Cisco Unified Border Element Implementation 5-79
Implementing Cisco Voice Communications and QoS (CVOICE] vB 0 2010 Cisco Systems, Inc
Module Summary
This topic summarizes the key points that were discussed in this module.
Module Summary
H.323 gatekeepers make H.323 environments more scalable
by providing address resolution, centralized call routing, and
CAC. In addition, H.323 gatekeepersoffer optional features,
suchas call authorization, call management, and bandwidth
management.
Cisco Unified Border Element connects twoVoIP networks
and can provide protocol interworking, address hiding, and
CAC.
This module describes the role of H.323 gatekeepers and Cisco Unified Border Elements in
Cisco Unified Communicalions. Gatekeepers add scalability to11.323 environments by
assuming acentralized call routing, address resolution, and Call Admission Control (CAC)
function. Gatekeeper-based CAC prevents oversubscription ofWAN bandwidth by limiting the
number of H.323 calls into the network. Gatekeeper-based CAC does not provide any dynamic
checks ofthe utilized bandwidth, as is thecase with Resource Reservation Protocol (RSVP).
Cisco Unitied Border Elements fulfill a range of tasks, including signaling interworking
(H.323-to-Session Initiation Protocol [SIP]), media interworking (How-through, flow-around,
and dual tone multifrequency [DTMF]), topology hiding (media flow-through), billing and Call
Detail Record (CDR) normalization, as well as quality ofservice (QoS) and bandwidth
management functions.
>2010 Cisco Systems, Inc.
Gatekeeper andCisco Unified Border Element Implementation 5-81
5-82 Implementing Cisco Voice Communications and QoS (CVOICE| w8 0 2010 Cisco Systems, Inc
Module Self-Check
Use the questions here to review what you learned in this module. The correct answers and
solutions arefound intheModule Self-Check Answer Key.
QI) RAS is asubset of the signaling protocol. (Source: Understanding Gatekeepers)
A) H.323
B) SIP
C) H.225
D) H.245
Q2) Zone prefixes are usually used to associate to aconfigured zone. (Source:
UnderstandingGatekeepers)
A) IP addresses
B) gatekeepers
C) area codes
D) endpoints
Q3) Gatekeepers use technology prefixes to route calls when there is no registered
(by agateway) that matches the called number. (Source: Understanding Gatekeepers)
Q4) Agatekeeper has alogical process for call routing that depends on technology and
prefix matching. (Source: Gatekeepers)
Q5) Directory gatekeepers forward __to gatekeepers. (Source: Understanding
Gatekeepers)
Q6) Asingle gatekeeper can manage multiple local and remote . (Source:
Understanding Gatekeepers)
Q7) Gatekeeper configuration steps are done in the configuration mode on Cisco IOS
routers. (Source: UnderstandingGatekeepers)
Q8) A prefix isan optional H.323 standards-based feature that issupported by Cisco
gateways and gatekeepers that enables more flexibility in call routing within an H.323
VoIP network. (Source: UnderstandingGatekeepers)
Q9) Cisco IOS routers can be registered as . with gatekeepers. (Source: Understanding
Gatekeepers)
q 10) The dial peer determines how todirect calls that originate from alocal voice
port into the VoIP cloud tothe RAS session target. (Source: Understanding
Gatekeepers)
Q11) Use the command todisplay registered endpoints ofthe gatekeeper. (Source:
Understanding Gatekeepers)
Q12) Voice quality is regulated by , which limits the number ofcalls that can be active
on a particular link at the same time. (Source: Understanding Gatekeepers)
Q13) Agatekeeper calculates the bandwidth requirement percall using the formula _.
(Source: Understanding Gatekeepers)
>2010 Cisco Systems. Inc Gatekeeper and Cisco Unified Border Element Implementation 5-83
014) The _command allows the gatekeeper to manage the bandwidth limitations within
azone, across zones, and at aper-session level. (Source: Understanding Gatekeepers)
QI5) l'se the command to \eriiy /one bandwidth. (Source: Understanding
Gatekeepers)
016) Cisco Unitied Border Element interconnects multiple VoIP networks by routing calls
between two dial peers. (Source: Examining Cisco Unilied Border Element)
A) POIS
B) VoA'lM
C) VoKR
D) VoIP
Q17) Protocol interworking interconnects VoIP networks, using the same or different _
protocols. (Source: Examining Cisco Unified Border Element)
A) signaling
B) compression
C) codec
D) transport
018) Which ofthese has the two correct options for directing media streams in aCisco
Unilied Border Element? (Source: Examining Cisco Unified Border Element)
A) b\pass. flow-around
R) flow-through, bypass
C) flow-through, traverse
D) flow-through, flow-around
Q19) Ifcodec filtering is not required, aCisco Unified Border Element also supports _
codec negotiations. (Source: Examining Cisco Unified Border Element)
A) multiple
B) null
C) dynamic
D) transparent
Q20) Which method should beused when deploying Cisco Unified Border Element and
RSVP-based CAC? (Source: Examining Cisco Unified Border Element)
A) media tlow-around
B) media bypass
C) media flow-through
D) media pass-through
E) media pass-\ia
Q21) What is required lointerconnect two Cisco Unified Communications Manager clusters
using RSVP-based CAC' (Source: Examining Cisco Unified Border Element)
A) tuo Cisco Unified Border Elements, media flow-through
B) one Cisco Unified Border Element, media flow-through
C) two Cisco Unified Border Elements, media flow-around
D) one Cisco Unified Border Element, media flow-around
5-84 Implementing Cisco Voice Communications and QoS fCVOICE] v8.0 2010 Cisco Systems Inc
Q22) When Cisco Unified Border Element is used to translate an H.323 call leg with the
Cisco Unified Communications Manager cluster to aSIP call leg point to aSIP carrier.
the call flow must Cisco Unified Border Element. (Source: Examining Cisco
Unified Border Element)
A) bypass
B) flowaround
C) stop at
D) flow through
Q23) The configuration for H.323-to-SIP interworking is _. (Source: Examining Cisco
Unified Border Element)
A) unilateral
B) bilateral
C) unidirectional
D) bidirectional
Q24) Which command is used to enable H.323-to-H.323 interworking? (Source: Examining
Cisco Unified Border Element)
A) allow-connectionsh323 to sip
B) allow-connections h323 to h323 interworking
C) allow-connections h323 interworking
D) allow-connections h323 to h323
Q25) ACisco Unified Communications Manager cluster needs lo route outbound calls using
H.323 toaSIP carrier. Which configuration is required? (Source: Examining Cisco
Unified Border Element)
A) allow-connections h323to sip
B) allow-connections sip to h323
C) allow-connections sip to sip
D) allow-connections h323 tosip and allow-connections sip toh323
026) Which command is used to configure codec pass-through? (Source: Examining Cisco
Unified Border Element)
A) codec pass-through
B) codec transparent
C) codec auto
D) codec flow-through
Q27) Which command is used toverify Cisco Unified Border Element operations? (Source:
Examining CiscoUnifiedBorder Element)
A) debug h323 events
B) debug ras
C) debug voip cube
D) debug voip ipipgw
i2010 Cisco Systems. Inc. Gatekeeper and Cisco Unified Border Element Implementation 5-85
Module Self-Check Answer Key
on C
Q2t C
<ih F 164 address
Q->) zone
0?) Location Requests(I RQsl
06) /one:,
Q7) tratekeeper
ON) "technolog "or "teeli-"
09) yatt;wa\ v
QIO) VoIP
QUI show gatekeeper endpoints
Q12)
Call Admission Control (CAC)
QI3) Per-call bandwidth -= codec bandwidth
014) band" idth
015) show gatekeeper zone status
016 j I)
Ql-i A
QiSi 13
Qiyi 1)
Q20) C
02D
A
02:i D
Q2.') C
Q24i D
Q25) A
Q26i li
Q2?) D
Implementing Cisco Voice Communications and QoS (CVOICE) v8 0 2010 Cisco Systems, Inc
Module 6
Quality of Service
Overview
Converged networks must be engineered properly to guarantee satisfactory VoIP service. This
module describes quality of service (QoS) requirements; conceptual models such as best-effort.
Integrated Services (IntServ), and differentiated services (DitTServ); and the implemental.on ol
QoSon Cisco IOSplatforms.
The module covers the theorv ofQoS. design issues, and configuration ofvarious QoS
mechanisms to facilitate the creation ofeffective QoS administrative policies, with aspecial
focus on voice transport. It provides design and usage rules for various advanced QoS features
and for the integration of QoS with underlying Layer 2QoS mechanisms. The module enables
learners to design and implement efficient, optimal, and trouble-free multiservice networks that
guarantee satisfactory voice quality.
Module Objectives
Upon completing this module, you will be able to describe why QoS is needed, what functions
it performs, and how it can be implemented in aCisco Unified Communications network. Ihis
ability includes being able tomeet these objectives:
Hxplain the functions, goals, and implementation models of QoS, and what specific issues
and requirements exist in aconverged Cisco Unified Communications network
Describe the characteristics and QoS mechanisms oftheDiffServ model and contrast itto
other models
Explain the operation and configuration ofthe QoS classification and marking mechanisms,
including the concept oftrust boundaries and describe how I.FI and cRTP provide link
efficiency onWAN links and how they are configured
Explain policing, shaping, and LLQ, their operations and configuration, using the MQC
Describe how AutoQoS works and what itachieves in aCisco Unified Communications
network
6-2 Implementing Cisco Voice Communications and QoS (CVOICE) v8 0 2010 Cisco Systems, Inc
Lesson 1
Introducing QoS
Overview
IP networks must provide anumber of services to adequately support voice transmission using
VoIP. These services include security, predictability, measurability, and some level ofdelivery
guarantee. Network administrators and architects achieve this service level by managing delay.
delay variation (jitter), bandwidth provisioning, and packet loss parameters with quality of ^
service (QoS) techniques. This lesson introduces the concept ofaconverged network, identifies
four problems that could lead to poor quality ofservice, and describes solutions to those
problems. It also explains and evaluates the three generic models of implementing QoS.
Objectives
Upon completing this lesson, you will be able to describe the goals, functions, and
implementation models ofQoS, and explain the issues and requirements that need to be
addressed for voice and video transmission. This ability includes being able tomeet these
objectives:
Explain the four key quality issues for voice traffic that exist in Cisco Unified
Communications networks anddescribe howthey impact voice quality
Define QoSgoals withrespect to voice traffic
Explain the three key steps that are involved in implementing aQoS policy in aCisco
Unitied Communications network
Describe howtraffic is identified anddivided intoclasses, andhowQoS policies are
defined for tlie traffic classes
I.ist four methods for implementing and managing a QoS policyCLI, MQC, Cisco
AutoQoS. andQPMand describe theircharacteristics
Describe briefly the three key models for providing QoS ina network
QoS Issues
This topic descnbes typical traffic patterns ina traditional data network.
rqec
Traditional data traffic characteristics:
Bursty dataflow
First-come, first-served access
* Mostly not time-sensitivedelays acceptable
Brief outages are survivable
Main Campus
Before networks converged, network engineering was focused on connectivity. The rates at
which data came onto the network resulted in bursty data flows. Data, arriving in packets, tried
to grabas muchbandwidth as it couldat any giventime. Access was on a first-come, first-
served basis, Ihe data rate available toany one user varied, depending on the number of users
accessing the network at any given time.
The protocols that have been developed have adapted tothe bursty nature ofdata networks, and
brief outages are survivable. For example, when you retrieve email, adelay ol'afew seconds is
generally not noticeable. Adelay of minutes is annoying but not serious.
Iraditional networks also had requirements for applications such as data, video, and Systems
Network Architecture (SNA). Since each application hadditTerent trafficcharacteristics and
requirements, network designers deployed nonintegrated networks. These nonintegrated
networks weredesigned to carrya specifictype of traffic: data network. SNAnetwork, voice
network, and \ideo network.
ImplementingCisco VoiceCommunicationsand QoS (CVOICE) v8.0
2010Cisco Systems Inc
After Converged Networks
This subtopic explains the characteristics of various traffic types in aconverged network that
transports both data and time-sensitive traffic such as voice and video.
After Converged Networks
Remote Campus
Lmimwmm-.
Constant smait-packet voice flow
competes withburstydata flow
Criticaltrafficmust get priority
Voice and video am time-sensitive
Bnef outages not acceptable
Tetophony
Main Campus
Problemexample
1 cannot understand you; your
voiceis breaking up,"
Teleconferencing "The picture is very jerky. Voice is
not synchronized."
Call Center "Please IWtowhilemyscreen
refreshes."
The figure illustrates aconverged network in which voice, video, and data traffic use the same
network facilities.
Although packets carrying voice traffic are typically small, they cannot tolerate delay and delay
variation as they traverse the network. Voices will break up and words will become
incomprehensible.
On the other hand, packets carrying file transfer data are typically large and can survive delays
and drops. It is possible to retransmit part ofadropped data file, but it is not feasible to
retransmit a part of a voice conversation.
The constant, small-packet voice flow competes with bursty data flows. Unless some
mechanism mediates the overall flow, voice quality will be severely compromised attimes of
network congestion. The critical voice traffic must get priority. Voice and video traffic is very
time-sensitive. Itcannot be delayed and it cannot be dropped, orthe resulting quality of voice
and video will suffer.
Finally, converged networks must not fail. While afile transfer or email packet can wait until
the network recovers, voice and video packets cannot wait. Even a brief network outage ona
converged network can seriously disrupt business operations. With inadequate preparation of
the network, voice transmission ischoppy orunintelligible. Gaps in speech are particularly
troublesome when pieces ofspeech are interspersed with silence. In voice-mail systems, this
silence is aproblem. For example, when 68614 is dialed and the gaps in speech are actually
gaps in the tone. 68614 becomes 6688661144, because the gaps in speech are perceived as
pauses in the touch tones.
2010 Cisco Systems, Inc.
Quality of Service
Quality Issues in Converged Networks
This subtopic describes QoS issues in a converged IP network.
Quality issues in Convert
' Lack ofbandwidth: Multiple flows compete fora limited
amount of bandwidth.
End-to-end delay (fixed and variable): Packets have to
traverse many network devicesandlinks that add up tothe
overall delay.
Variation of delay (jitter): Sometimes there is much other
traffic, which results inmore delay.
Packet loss: Packetsmay have tobe dropped when a link is
congested.
The four major problems facing converged enterprise networks include the following:
Bandwidth capacity: large graphics Hies, multimedia uses, and increasing use ofvoice
andvideo cause bandwidth capacity problems overdata networks.
End-to-end delay (both fived and variable): Delay is the time that it takes for apacket to
reach the receiving endpoint alter being transmitted from the sending endpoint. fhis period
of time is called "end-to-end delay." and consists of two components:
Fixed network delay: Two tvpes offixed delays are serialization and propagation
delav s. Serialization is the process ofplacing bits on the circuit. The higher the
circuit speed, the lesstime it takes toplacethe hitson thecircuit. Therefore, the
higher the speed ofthelink, the less serialization delay is incurred. Propagation
delav is thetime that it takes for frames to transit thephysical media.
Variable network delay: Processing delay isa type of variable delay, and isthe
time that is required by a networking device tolook up the route, change the header,
and complete other switching tasks. In some cases, thepacket must also be
manipulated, as. for example, when the encapsulation type orthe hop count must be
changed. Fiach ofthese steps can contribute tothe processing delay.
Variation of delay(also called jitter): Jitter isthedelta, or difference, in thetotal end-lo-
end delav \ aluesof twovoicepacketsin the voice flow.
Packet loss: Loss ofpackets is usually caused by congestion in the WAN, resulting in
speech dropouts orastutter effect ifthe playout side tries loaccommodate by repeating
previous packets.
3-6 Implementing Cisco Voice Communications and QoS(CVOICE) vS.O
)2010 Cisco Systems, Inc
Lack of Bandwidth
This subtopic explains how to identify the lack ofbandwidlh in aconverged network.
Lack of Bandwidth
Maximum available bandwidth equals the bandwidth of the weakest link.
. Multiple flows are com peting for ttie same bandwidth, resulting in much
less bandwidth being availableto one singleapplication.
IP
_\ hsekb-sp h^^s H I VI
^J 1 ' ' ' 1100 urn p
Bandwidth maamum =minimum of (10 Mb/s, 256 kb/s, 512 kb/s. 100 Mb/s) =256 kb/s
Bandwidth available =bandwidth maximum/flows ^^
The figure illustrates an empty network with four hops between aserver and aclient. Each hop
is using different media with adifferent bandwidth. The maximum available bandwtdth is equal
to the bandwidth ofthe weakest (slowest) link.
The calculation ofthe available bandwidth, however, is much more complex in cases where
multiple flows traverse the network. The calculation ofthe available bandwidth in the
illustration is an approximation.
>2010 Cisco Systems, Inc
Quality of Service
Managing Available Bandwidth
This subtopic explains the methods lo address the lack of bandwidth in aconverged network.
Ways to Increase or
Ban
Upgrade the linkthe best solution but also the most expensive.
Forwardthe important packets first
Compress the payload ofLayer 2frames (it lakes time].
Compress IP packet headers
ihe best way to increase bandw idth is to increase the link capacity to accommodate all
applications and users, with some extra bandwidth tospare. Although this solution sounds
simple, increasing bandwidth is expensive and lakes time toimplement. There are often
technological limitations in upgrading toa higher bandwidth.
Another option is to classify traffic into QoS classes and prioritize traffic according to
importance. Voice and business-critical traffic should gel sufficient bandwidlh to support their
application requirements, voice should get prioritized forwarding, and the Icasl-important
traffic should get whatever unallocated bandwidth isremaining. Avariety ofmechanisms such
as these are av ailable in Cisco IOS QoS Software to provide bandwidth guarantees:
Priority queuing (PQ) or custom queuing (C'Q)
Modified deficit round robin (MDKR) (on Cisco 12000 Series Routers)
Distributed tv pe ofservice (ToS)-hased and QoS group-based weighted fair queuing
(WFQ) (on Cisco 7.v00 Series routers)
Class-based weighted fairqueuing (CBWFQ)
Low latency queuing (LLQ)
Optimizing link usage by compressing the payload offrames (virtually) increases the link
bandwidth. Compression, on the other hand, also increases delay because ofthe complexity of
compression algorithms. Using hardware compression can accelerate packet payload
compressions. Stacker and Predictor are two compression algorifhms that arc available in Cisco
IOS Software,
Another link efficiency mechanism is header compression. Ileader compression is especially
effective in networks in which most packets carry small amounts ofdata (that is. where
pav load-to-header ratio is small), Fvpical examples of header compression are TCP header
compression and Real-Time Transport Protocol (RTP) header compression.
6-8 Implementing Cisco Voice Communications andQoS(CVOICE) vS.O
2010 Cisco Systems, (no
End-to-End Delay
This subtopic explains the components ofend-to-end delay.
End-to-End Delay
End-to-end delay equals a sum of all propagation, processing, and queuing
delays in the path.
In best-effort networks, propagation delay isfixed, and processing and
queuing delays are unpredictable.
Delay =P1 +Q1 +P2+Q2 +P3+Q3 +P4=Xms
The figure illustrates the impact that anetwork has on the end-to-end delay of packets going
from one end ofthe network to the other. Hach hop in the network adds to the overall delay as
follows:
Propagation delay is caused by the speed of light traveling in the media (fiber optics or
copper media).
Serialization delay is the time that it takes to clock all the bits in apacket onto the wire.
This is a fixed valuethat is a function ofthe linkbandwidth.
fhere areprocessing andqueuing delays within a router.
Propagation delay is generally ignored but it can be significant. It amounts to about 40 ms
coast-to-coast, over optical fiber.
Example: Effects of Delay
Acustomer has arouter in New York and arouter in San Francisco, each connected by a 128-
kb/s WAN link. The customer sends a 66-byte voice frame. To transmit the frame (528 bits), it
will take 4.125 ms to clock out (serialization delay). However, the last bit will not arrive until
40 ms after itclocks out (propagation delay). The total delay equals 44.125 ms.
This calculation will bedifferent ifthe circuit ischanged toaT1. To transmit the frame (528
bits), itwill take 0.344 ms to clock out (serialization delay). However, the last bit will not arrive
until 40 ms after transmission (propagation delay) for a total delay of40.344 ms.
) 2010 Cisco Systems, Inc
Quality of Service 6-9
Types of Delay
This subtopic describes tlie various types ofdelay.
Processing Delay The lime to take the packet from the input interface examine it
and put it intothe output queue
Queuing Delay The time a packet isheld in the output queue
Serialization Delay The timeto place the 'bits on the wire"
Propagation Delay: The time ittakestotransmit a packet
Propagation Delay
In general, thereare four typesof delav. as follows:
Processing dela\: The time il takes for arouter to take the packet from an input interface
and put the packet into the output queue ofthe output interface. The processing delay
depends on these factors:
CPl' speed
CPU utilization
IP switching mode
- Router architecture
Configured features onboth input and output interfaces
Queuing delay: The time apacket resides in the output queue ofarouter. Queuing delay
depends on the number ofand sizes ofpackets already in the queue, the bandwidth ofthe
interface, and the queuing mechanism.
Serialization delay: The time it takes to place a frame on ihe physical medium for
transport.
Propagation dela>: The time it takes lo transmit apacket, which usually depends on the
type of media interface.
6-10 Implementing Cisco Voice Communications and QoS(CVOICE| vS.O
) 2010 Cisco Systems, Inc.
Reducing Delay
This subtopic explains the methods to reduce delay.
Reducing Delay
Upgrade theInk (test but most expensive solution).
Forward the important packetsfirst.
Compress thepayload of Layer 2 frames.
Compress IP packet headers
Assuming that arouter is powerful enough to make aforwarding decision rapidly, most
processing, queuing, and serialization delay is influenced by the following factors:
Average length ofthe queue
Average length of packets in thequeue
Link bandwidth
These approaches allow you to accelerate packet dispatching ofdelay-sensitive flows:
Increasing; link capacity: Sufficient bandwidth causes queues to shrink so that packets do
nol wait long before transmittal. More bandwidth reduces serialization lime.
Prioritizing delay-sensitive packets: This isamore cost-effective approach. PQ, CQ,
strict-priority, or alternate-priority queuing within the MDRR (on Cisco 12000 Series
Routers), and LLQ each have preemptive queuing capabilities.
Compressing the payload: Payload compression reduces the size ofpackets, thereby
virtually increasing link bandwidth. Compressed packets are smaller and take less time to
transmit. Compression uses complex algorithms that take time and add todelay. This
approach is not used toprovide low-delay propagation ofpackets.
Compressing the packet header: Header compression is not as CPU intensive as payload
compression and you can use itwith other mechanisms toreduce delay. Header
compression is especially useful for voice packets that have abad payload-to-header ratio,
which you can improve by reducing the header ofthe packet (RTP header compression).
>2010 Cisco Systems, Inc.
Quality of Service 6-11
Packet Loss
"fhis subtopic explains how packet loss affects VoIP quality.
Tail drops occur when the output queue isfull These arecommon drops
whichhappen when a link is congested
Many other types of drops exist, usually the result of router congestion,
that are uncommon and may require a hardware upgrade (input drop,
ignore overrun frame errors)
fhe usual packet loss occurs when routers ntn out ofbuffer space for aparticular interface
output queue. The figure illustrates a full interface output queue, which causes newly arriving
packets to be dropped, fhe tenn that is used for such drops is simply "output drop"' or"tail
drop" (packets aredropped at thetail ofthe queue).
Routers might also drop packets for these other less common reasons:
Input queue drop: The main CPU is congested and cannot process packets (the input
queue is full).
Ignore: fhe router ran out of buffer space.
Overrun: fheCPU iscongested and cannot assign a free buffer tothe new packet,
Frame errors: There isa hardware-detected error in a framecyclic redundancy check
(CRC). runt, or giant.
6-12 Implementing CiscoVoice Communications and QoS (CVOICE) v80
2010Cisco Systems, Inc.
Preventing Packet Loss
This subtopic describes the ways to prevent packet loss.
Preventing Packet Loss
Upgrade the link (best but most expensive solution).
Guarantee enough bandwidth to sensitive packets.
Prevent congestion by randomly dropping less-important packets before
congestion occurs
Custom Queuing (CO)
Modified Daflelt Round Robin(MDRR)
Ctass-Based Weighted Fair Queuing (CBWFQ)
Packet loss is usually the result of congestion on an interface. Most applications that use TCP
experience slowdown because I'CP adjusts to the network resources.
You can follow these procedures to prevent drops ofsensitive applications:
Increase link capacity toease orprevent congestion.
Guarantee enough bandwidth and increase buffer space to accommodate bursts of fragile
applications.
Prev ent congestion by dropping other packets before congestion occurs. You can use
weighted random early detection (WRED) to start dropping other packets before
congestion occurs.
2010 Cisco Systems, Inc.
Quality of Service
QoS and Voice Traffic
This topic deseribes the role of QoS in the enterprise strategy to ensure agood
Theability ofthe network to provide
better or "special" service to a set of
users and applications to the detriment
of other users and applications
Voice - Video - Data
#
Consistent,
Predictable Performance
voice service.
QoS is the abilitv ofthe network to provide better or -'special" service to selected users and
applications, to the detriment ofother users and applications.
Cisco IOS QoS features enable vou to control and predlclably service avarietv ofnetworked
applications and traffic tvpes. which enables you to take advantage of anew generation of
media-rich andmission-critical applications.
fhe goal of QoS is to prov ide better and more predictable network service by providing
dedicated bandwidth, controlled jitter and latency, and improved loss characteristics. QoS
achieves these goals by providing tools for managing network congestion, shaping network
traffic, using expensive wide-area links more efficiently, and setting traffic policies across the
network, QoS offers intelligent network services that, when correctly applied, help to provide
consistent, predictable performance.
6-14 Implementing Cisco Voice Communications and QoS (CVOICE) v8.0
2010 Cisco Systems, Inc.
QoS Policy
This subtopic explains how QoS policy defines forwarding behavior for various traffic types.
QoS Policy
Anetworkwide definition ofthe
specific levels ofquality ofservice
assigned todifferent classes of
network traffic
ABCCorporation example:
ERP
:150ms SRTPovsr M-F
WAN
High
Manutaatiring High
traffic
HTTP/HTTPS Low
Encrypt
Cleaitext
365x24
M-F
HTTPProxy M-F6-10pm
ERP =Enterpnse resource planning
SRTP= Secure Real-Time TransportProtocol
ABC Corporation
Network QoS Policy
Voice Traffic
Absolute Priority
ERP System
Critical Priority
Manufacturing System
Critical Priority
Net Surfing
Not allowed during
business hours
AQoS policy is anetworkwide definition ofthe specific levels of QoS assigned to different
classes of network traffic.
In aconverged network, having aQoS policy is as important as having asecurity policy. A
written and public QoS policy allows users to understand and negotiate lor QoS tn the network.
The figure illustrates asample QoS policy for an organization.
>2010 Cisco Systems, Inc.
Quality of Service 6-15
QoS for Unified Communications Networks
This topic describes the implementation of QoS in Cisco Unified Communications networks.
QoS for Cisco Unified Communication:
irl
Identify traffic and ifs
requirements
Divide traffic into classes
Define QoS policies for
each class
Voce Mission-
Critical
DATA
follow these three basic steps toimplement QoS ona network:
Stepl
Identify traffic and its requirements. Study the network to determine the type of
traflic running on the network and then determine the QoS requirements for the
different tvpes of traffic.
Group the traffic into classes with similar QoS requirements. For example, four
classes oftraffic can be defined: voice, high priority, low priority, and browser.
Define QoS policies that will meet the QoS requirements for each traffic class.
Step 2
Step 3
Example: Three Steps to Implementing QoS on a Network
In atypical network, voice will always require absolute minimal delay. Some data that is
associated vsith kev applications will require very low delav (transaction-based data that is used
in airline reservations or online banking applications). Other types ofdata can (olerate agreater
amount of delav (tile transfers and email). Nonbusiness network surfing can also be delaved or
even prohibited.
Aone-to-one mapping between traflic classes and QoS policies is not necessary, for example
three QoS policies could be implemented to meet the requirements ofthe four traffic classes
that are defined inthe example:
NoDelay: Assign to voice traffic
BestService: Assign tohigh-priority traffic
Whenever: Assign toboth the low-priority and browser traffic
6-16 Implementing Cisco Voice Communications and QoS (CVOICE) v8.0
2010 Cisco Systems, Inc
Step 1: Identify Traffic and Its Requirements
This subtopic describes the first step in QoS implementation, which is lo identify traffic types
and their requirements.
Step 1: Identify Traffic and its Requirements
Network audit
- Identify traffic on the
network
Business audit
- Determine how each type
of traffic is important for
business
Service levels required
- Determine required
response time
Network
Statistics
The first step in implementing QoS is identifying the traffic on the network and determining
QoS requirements for the traffic. Anetwork audit is recommended because many enterprises
have afalse idea ofwhat applications are running in their networks. IfQoS mechanisms arc
deployed based on an unrealistic baseline, unexpected results may occur.
The next step is determining the QoS problems ofusers. Measure the traffic on the network
during congested periods. Conduct CPU utilization assessment on each oftheir network devices
during busy periods to determine where problems might be occurring.
Next, determine the business model and goals, and obtain a listof business requirements, in
order todefine the number ofclasses sothat you can determine the business requirements for
each traffic class.
Finally, define the service levels that are required by different traffic classes in terms of
response time and availability.
2010 Cisco Systems, Inc.
Quality of Service 6-17
Step 2: Divide Traffic into Classes
This subtopic describes the second step in QoS implementation, which is lo divide traffic into
clas.ses.
Email
Application
Traffic
E-Commerce.
Web Browsing
Voice
Differentiated IP Services
Traffic
Classification
Voice Low Latency
Guaranteed
Transactional Guaranteed Delivery
No Delivery Guarantee
After you have identified and measured the majority ofnetwork traffic, you can use the
business requirements to define traffic classes.
Because ofits stringent QoS requirements, voice traffic will almost always exist in aclass by
itself Cisco has developed specific QoS mechanisms, such as LI,Q, that ensure that voice
aluay s receives priority treatment over all other traffic.
Atier you define the applications with the most critical requirements, you can define the
remaining traffic classes using thebusiness requirements.
Example: Traffic Classification
A typical enterprise might define five traffic classes as follows:
Voice: Absolute priority for VoIP traffic
Mission-critical: Small set of locally defined critical business applications
Iransactional: Database access, transaction services, interactive traflic. preferred data
services
Best-effort: Internet, email
Scavenger (less-than-best-eflbrt): Napster. Kazaa. and olher point-to-point applications
6-18 Implementing Cisco VoiceCommunicationsand QoS (CVOICE) v8
2010 Cisco Systems, Inc.
Step 3: Define Policies for Each Traffic Class
This subtopic describes the third step in QoS implementation, which is the definition of policies
for each traffic class.
Step3: Define Policies for Each Traff
Set minimum bandwidth guarantee.
Set maximum bandwidth limits.
Assign priorities to each class.
Manage congestion.
Finally. define aQoS policy for each traffic class, which involves these activities:
Set a minimum bandwidth guarantee
Set a maximum bandwidth limit
Assign priorities to each class
Use QoS technologies, such asadvanced queuing, tomanage congestion
Example: Defining QoS Policies
Using the traffic classes that were previously defined, you can determine QoS policies as
follows:
Voice: Minimum bandwidth: 1Mb/s. UseQoS marking to mark voice packets as priority
level 5: use LI.Q to always give voice priority.
Mission-critical: Minimum bandwidth: 1Mb/s. UseQoS marking tomarkcritical data
packets as priority level 4: use CBWFQ to prioritize critical class traffic flows.
Best-effort: Maximum bandwidth: 500kb/s. UseQoS marking to markihese datapackets
as priority level 2: use CBWFQ toprioritize best-effort traffic flows that are below
mission-critical and voice.
Scavenger: Maximum bandwidth: 100 kb/s. Use QoS marking tomark Icss-than-best-
effort (scavenger) data packets as priority level 0; use WRED todrop these packets when
the network has a propensity for congestion.
) 2010 Cisco Systems, Inc.
Quality of Service 6-19
QoS Requirements
This topic delines the QoS requirements for voice and video transmission in packet networks.
Latency < 150 ms*
Jitter < 30 ms*
Loss < 1 %*
17-106 kb/s guaranteed
priority bandwidth per call
150 b/s (+ Layer 2 overhead)
guaranteed bandwidth for
voice-control traffic per call
' One-way requirements
Smooth
Benign
Drop-Sensitive
Delay-Sensitive
UDP Priority
Voice traffic has extremely stringent QoS requirements. Voice traffic usually generates a
smooth demand on bandwidth and has minimal impact on other traffic aslong asthe voice
traffic is managed.
While voice packets are typically small (60 to 120 bytes), they cannot tolerate delay ordrops.
The result ofdelay s and drops are poor, and often unacceptable, voice quality. Because drops
cannot be tolerated. User Datagram Protocol (UDP) isused to package voice packets because
TCP retransmit capabilities have no value.
Voice packets can tolerate no more than a 150-ms delay (one-way requirement) and less than I
percent packet loss.
Atypical voice call will require 17 to 106 kb/s ofguaranteed priority bandwidth plus an
additional 150 b/s per call for voice-control traffic. Multiplying these bandwidth requirements
times the maximum number ofcalls that arc expected during the busiest lime period will
prov idean indication ofthe overall bandw idth that is required for voice traffic.
6-20 ImplementingCrscoVoiceCommunicationsand QoS (CVOICE) vB.O
2010 Cisco Systems, Inc
QoS Requirements: Video Telephony
"fhis subtopic defines the QoS requirements for video transmission in packet networks.
QoS Requirements: Video Telephony
Latency < 150 ms*
Jitter < 30 ms*
Loss<1%*
Minimum priority bandwidth
guarantee required is:
- Video stream + 20%
- For example, a 384-kb/s
stream would require 460
kb/s of priority bandwidth
One-way requirements
**"
Bursty
Greedy
Drop-Sensitive
Delay-Sensitive
UDP Priority
Videoconferencing applications alsohave stringent QoS requirements similar to voice. But
videoconferencing traffic isoften bursty and greedy innature and, as a result, can impact other
traffic. Therefore, it is important to understand the videoconferencing requirements for a
network and to provision carefully for it.
The minimum bandwidth for a videoconferencing streamwouldrequirethe actual bandwidth of
the stream (dependent upon thetype of videoconferencing codec being used) plus some
overhead. For example, a 384-kb/s video stream would actually require a total of 460 kb/s of
priority bandwidth.
2010 Cisco Systems. Inc.
Quality of Service 6-21
QoS Requirements: Data
This subtopic contrasts voice and video requirements todata transmission in packet networks.
6-22
Different applications have
different traffic characteristics.
Different versions of the same
application can have different
traffic characteristics
Classify data into relative-priority
model with no more than four to
five classes'
Mission-critical: Locally defined
critical applications
Transactional Interactive
traffic, preferred data service
Best-effort. Internet, email,
unspecified traffic
Less-than-best-effort
(Scavenger): Napster. Kazaa,
peer-to-peer applications
Data
Smooth or Bursty
Benign or Greedy
Drop-Insensitive
Delay-Insensitive
TCP Retransmits
The QoS requirements for data traflic vary greatly. Different applications may make very
different demands onthenetwork (forexample, a human resources application versus an
automated teller machine application). Fven different versions ofthe same application may
have varying network traffic characteristics.
While data traffic can demonstrate either smooth or bursty characteristics, depending upon the
application, data traflic differs from voice and video interms ofdelay and drop sensitivity.
Almost all data applications can tolerate some delay and generally can tolerate high drop rates.
Because datatraffic cantolerate drops, theretransmit capabilities of TCP become importanl
and. as a result, many data applications use TCP.
Inenterprise networks, important (business-critical) applications are usually easy to identity.
Most applications canbe identified based on TCP or UDP port numbers. Some applications use
dynamic port numbers that, to some extent, make classifications more difficult. Cisco IOS
Software supports Network-Based Application Recognition (NBAR), whichyou can use to
recognize dynamic port applications.
It is recommended that data traffic is classified into no more than four to five classes, as
described in the tigure. fhere will still remain additional classes for voice and video.
Implementing Cisco Voice Communications and OoS (CVOICE) v8.i
2010 Cisco Systems. Inc.
Methods for Implementing QoS Policy
This topic describes the four methods for implementing an enterprise QoS policy.
Methods for Implementing QoS Policy
Command-line interface (CLI)
Modular QoS CLI (MQC)
AutoQoS
- AutoQoS VoIP (voice QoS)
- AutoQoS for the Enterprise
(voice, video, and data QoS)
QoS Policy Manager (QPM)
- Suite of management
functions
- Enables networkwide QoS
- Monitoring and reporting
Initially, the only way toimplement QoS ina network was by using the command-line interface
(CLI) to individually configure QoS policies at eachinterface. Thiswasa time-consuming,
tiresome, and error-prone taskthat involved cutting and pasting configurations from one
interface to another.
Cisco introduced the Modular QoS CLI (MQC) in order to simplify QoS configuration by
making configurations modular. Using MQC, youcan configure QoS ina building-block
approach, using a single module repeatedly toapply policy to multiple interfaces.
Cisco AutoQoS represents innovative technology thatsimplifies the challenges of network
administration by reducing QoS complexity, deployment time, andcost toenterprise networks.
CiscoAutoQoS incorporates value-added intelligence inCisco IOS Software andCisco
Catalyst software to provision andassist in themanagement of large-scale QoS deployments.
CiscoAutoQoS is an intelligent macrothat enablesyouto enter one or two simpleCisco
AutoQoS commands lo enableall the appropriate features for the recommended QoSsettingfor
anapplication on a specific interface. There are twoversions of CiscoAutoQoS: Cisco
AutoQoS VoIP and AutoQoS for the Enterprise.
QoScan be easilyprovisioned and managed by usingCiscoAutoQoS together with
CiscoWorksQoS Policy Manager(CiscoWorks QPM). CiscoAutoQoS providesQoS
provisioning for individual routers andswitches, simplifying deployment andreducing human
error. CiscoWorks QPM provides centralized QoS design, administration, and traffic
monitoring that scales to large QoS deployments.
>2010 Cisco Systems, Inc.
Quality of Service 6-23
Implementing QoS Traditionally Using CLI
This subtopic explains thetraditional method of implementing QoS, the nonmodular CLI,
Implementing QoS Trad ith
Traditional method
Nonmodular
Cannot separate
traffic classification
from policy definitions
Used to augment or
fine-tune newer
AutoQoS method
interface Multllinkl
ip address 10.1.61.1 255.255.255.0
ip tcp header-compression iphc-format
load-interval 3 0
custom-queue-list 1
ppp multilink
ppp multilink fragment-delay 10
ppp multilink interleave
multilink-group 1
ip rtp header-compression iphc-format
1
CLI was the first method to implement QoS ina network. It wasa painstaking task, involving
copying one interface configuration, andthen pasting tl into other interface configurations, CL
took much time and patience.
Ihe original CLI method was nonmodularthere was no wayto separatethe classification of
traffic from the actual definition of policy. You hadtodo both on every interface. Thefigure
illustrates anexample ofthe complex configuration tasks that areinvolved inusing CLI.
WhileCLI is not recommended for implementingQoS policy, il is still used to fine-tune QoS
implementations that have been generated using the Cisco AutoQoS macro.
Implementing Cisco Voice Communications and OoS (CVOICE) vS.O 2010 Cisco Systems. Inc
_m
Implementing QoS with MQC
This subtopic explains theMQC, which provides a scalable approach toimplement QoS.
Implementing QoS with MQC
Acommand syntax for
configuring QoS policy
Reduces configuration
steps and time
claaa-map VolP-ETP
natch accaaa-group 100
clasa-map VoIP-Control
match accaaa-group 101
policy-map QoS-Policy
Configure policy, not "raw"
per-interface commands
Uniform CLI across major
Cisco IOS platforms
clase VolP-RTP
priority 100
claas voiP-Control
bandwidth B
class class-default
Uniform CLI structure for
ail OoS features
Separates classification
engine from the policy
fair-queue
interface aerial 0/0
BBrvica-policy output QoS-Policy
accesa-list 100 permit ip any any
precedence S
accesa-list 100 permit ip any any deep ef
access-list 101 permit tcp any heat
10.1.10.20 range 2000 2002
access-list 101 permit tcp any host
10.1.10.20 range 11000 11999
The MQCis a CLI structure that allows you to create traffic policies and then attach these
policies tointerfaces. Atraffic policy contains oneor more traffic classes and oneor more QoS
features. A traffic class is used lo classify traffic. The QoS features in the traffic policy
determine how to treat the classified traffic.
The MQC offers significant advantages over the legacyCLI method for implementing QoS. By
usingMQC. you can significantly reducethe time and effort that it takes to configure QoSon a
complex network. Rather than configuring "raw"CLI commands interface- by-interface, you
develop a uniform setof traffic classes and QoS policies thatcan beapplied on interfaces.
fhe use ofthe MQC allowsthe separation of trafficclassification fromthe definition of QoS
policy. This enables easier initial QoS implementation andmaintenance as newtraffic classes
emerge and QoS policies for the network evolve.
>2010 Cisco Systems, Inc. Quality of Service
Implementing QoS with Cisco AutoQoS
Thissublopic explains CiscoAuloQoS. an easy-to-use automated tool to provision QoSacross
the entire network.
Implementing QoS with Auto<
WAN
AutoQoS VoIP supported both in
the LAN and WAN environments
AutoQoS Enterprise supported
on WAN interfaces
Routers can deploy Enterpnse
QoS policy treatment for voice,
video, and data traffic
Switches can deploy QoS policy
treatments for voice by a single
command
The [trust] option indicates that
the DSCP or CoS markings of a
packet are relied upon for
classification AutoQoS Enterprise:
JtO dia
jtc qos
ery aos [trust]
There arc these two versions of Cisco AutoQoS:
Cisco AutoQoS VoIP: in its initial release. Cisco AuloQoS Vol!1 providedbest-practice
QoSconfiguration for VoIP on bothCiscoswitches and routers. This was accomplished by
entering one global or interface command. Depending on the platform, the Cisco AuloQoS
macro would then generate commands into the recommended VoIP QoS configurations,
along with class maps and policy maps, and apply those to a router interface or switch port.
Cisco AutoQoS is available on both LANand WANCisco Catalyst switches and Cisco
IOS routers,
Cisco AutoQoS for the F.nterprise: Cisco AuloQoS for the Enterprise relics on NBAR to
gather statistics and detect 10 traffic types, resulting in the provisioning of class maps and
policy maps for these traffic tvpes. This feature deploys best-practice QoS policies lor
voice, video, and data traffic. Altogether. 10 traffic types are detected as traffic crosses the
WAN interfaces.
Cisco AutoQoS for the Enterprise, combined with the auto qos voip command, allows a novice
network administrator to administer complex, detailed QoS policies throughout the enterprise
network. Cisco AutoQoS for the Lnlerprise works only for Cisco IOS router platforms. The
VoIP feature for Cisco Catalyst switches docs not change.
Ihcre are some major differences between Cisco AutoQoS VoIP and Cisco AuloQoS for the
Lnlerprise. Cisco AutoQoS VoIP does not detect traffic types, nor docs it use NBAR. Cisco
AutoQoS VoIP only creates QoS policy to provide priority of voice traftic. Cisco AutoQoS for
the Enterprise, on the other hand, uses a discovery mechanism or traffic data collection process
that uses NBAR. The Cisco AutoQoS VoIP macros use the NBAR statistics to create QoS
policies.
Implementing Cisco Voice Communications and OoS (CVOICE) v8 0 )2010 Cisco Systems, Inc
Comparing QoS Implementation Methods
This subtopic compares the methods of implementing QoS policy in the enterprise^network.
Comparing QoS Implementation
Ease of use
Abilityto
fine-tune
Time to
deploy
Modularity
Poor
OK
Longest
Poor
AutoQoS AutoQoS
VoIP Enterprise
Easier Simple Simple
Very good Very good Very good
Average Shortest Shortest
Excellent Excellent Excellent
Cisco recommends the use of MQC and Cisco AutoQoS VoIP when deploying voice over the
LAN and Cisco AutoQoS for the Enterprise on router WAN interfaces.
While MQC is much easier to use than CLI, Cisco AutoQoS VoIP and Cisco AutoQoSjfo,"the
Enterprise can simplify the configuration of QoS. As aresult, you can accomplish the lastest
implementation with Cisco AutoQoS.
MQC offers excellent modularity and the ability to fine-tune complex networks. Cisco
AutoQoS offers the fastest way to implement QoS, but has limited fine-tuning capabth.es.
wZa Cisco AutoQoS configuration has been generated, you must use CLI commands to
fine-tune aCisco AutoQoS configuratton. if necessary. (On most networks, fine-tumng w.li not
benecessary for Cisco AutoQoS.)
i 2010 Cisco Systems, Inc.
Quality of Service
QoS Models
5-28
This topic describes three models of QoS implementation.
Three Models for Quality of Service
Best Effort: No QoS isapplied to packets
IntServ Applications signal to the network that they require
special QoS.
DiffServ: The network recognizes classes that require
special QoS.
The follow ing three models exist for implemenling QoS in anetwork:
- Best-effort: With the besl-ef.brt model. QoS is not applied to packets. If it is not important
when or how packets arrive, the best-effort model is appropriate.
IntServ: Integrated Services (In(Serv) can provide high QoS lo IP packets. EssenttalK
applications signal to the network that they will require special QoS for aperiod of time
and that banihv.dth ,s reserved. With IniScrv. packet delivery is guaranteed. However the
use ot InlSen can severely limit the scalability ofa network.
DiffServ: Differentiated services (DiffServ) provide the greatest scalability and flexibility
in implementing QoS in anetwork. Network devices recognize traffic classes and provide
dtiferent levels ot QoS to different traffic classes.
Implementing Cisco Voice Communications and QoS (CVOICE) v8.0
2010 Cisco Systems, Inc.
Best-Effort Model
This subtopic describes the best-effort model, which provides the easiest way toaddress QoS.
Best-Effort Model
- Internet initially based on a
best-effort packet delivery
service
The default mode for all traffic
No differentiation between
types of traffic
Like using standard mail
It willget there when it gets there.
TheInternet wasdesigned forbest-effort, no-guarantee delivery of packets. This behavior is
still predominant on the Internet today.
If QoS policies arenot implemented, traffic isforwarded using thebest-effort model. All
network packets are treated exactly thesamean emergency voice message is treated exactly
likea digital photograph that is attached to anemail. Without the implementation of QoS. the
network cannot tell the difference between packets and, as a result, cannot treat packets
preferentially.
When youdropa letter instandard postal mail, youare using a best-effort model. Yourletter
will betreated exactly thesame as every other letter; it will get there when it getsthere. With
the best-effort model, the letter may actually never arrive. Unless you have a separate
notification arrangement withthe letter recipient, youmay neverknow if the letter doesnot
arrive.
2010 Cisco Systems, Inc.
Quality of Service
IntServ Model
This subtopic describes the IntServ model, which provides themostcomplex way toaddress
QoS.
Some applications have special
bandwidth and delay
requirements
Requests specific kind of
service from the network
before sending data
IntServ guarantees a predictable
behavior of the network for these
applications
Uses RSVP to reserve network
resources
Guaranteed delivery: No other
traffic can use reserved
bandwidth
Like having your own private
courier plane
It will getthere by 1030 a.m
Some applications, such as high-resolution video, require consistent, dedicated bandwidth to
prov idesufficient quality for \ iewers. IntServ was introduced to guarantee predictable network
behavior for theseapplications. Because IntServ reserves bandwidth throughout a network, no
other traffic can use the reserved bandwidth. Bandwidth that is unused, but reserved, is wasted.
IntServ is similar to a concept known as ""hard QoS." With hard QoS, traffic characteristics
suchas bandwidth, delay, andpacket-loss rales are guaranteed end-to-end. Thisguarantee
ensures both predictable and guaranteed service levels for mission-critical applications. There
will be no impact on traffic when guarantees are made, regardless of additional network traffic.
Hard QoS is accomplished by negotiatingspecific QoS requirements upon establishment of a
connection and bv using Call Admission Control (CAC) to ensure that no new traffic will
violate the guarantee.
Using IntServ is likehav inga private courierairplane or truckthat is dedicated to thedelivery
of your traffic. This model ensures quality and delivery, is expensive, and is not scalable.
IntServ is a multiple-sen.ice model that can accommodate multiple QoS requirements. IntServ
inherits the connection-orientedapproach fromtelephony networkdesign. Every individual
communicationmust explicitly specify its traffic descriptor and requested resources to the
network, "fhe edge router performs admission control to ensure that available resources are
sufficient in the network. The IntServ standard assumes that routers along a path set and
maintain the state for each individual communication.
The role of Resource Reservation Protocol (RSVP) is to provide resource admission control for
VoIP networks. If resources are available. RSVP accepts a reservation and installs a traffic
classifier in the QoS forwardingpath. The traffic classifier tells the QoS forwardingpath how
to classify packets from a particular flowand what forwardingtreatment to provide.
6-30 Implementing Cisco Voice Communications and QoS (CVOICE) v8 0 2010 Cisco Systems, Inc
DiffServ Model A ,,.
way toprovide QoS.
Network traffic identified byclass
Network QoS policy enforces
differentiated treatment oftraffic
classes
You choose level ofservice for
each traffic class
Like using a package delivery
service
Do you want overnight delivery9
Do you want two-day air delivery?
Do you want three-toseven-day
grounddeiivery?
DiffServ was designed to overcome the limitations of both the best-effort and IntServ'models.
Difflcrv "n provfde an '"almost guaranteed" QoS, while still being cost-effective and scalable.
DiffServ is similar to aconcept known as "soft QoS." With soft QoS, QoS ^ntsms are
^T^lucllpro^to implementing QoS than hard QoS, because many (hundreds or
rtenualv thousands) of app ieations can be mapped into asmall set ol classes upon which
sS: eL of OoS tehaviS are implemented. Although QoS mechanisms ,n th.s approach are
entrced a*:I applie^on ahop-by-hop basis, uniformly applying global meanmg to each traflic
class provides both flexibility and scalability.
With DiffServ network traffic is divided into classes that are based on business requirements,
fac oSdass- can then be assigned adifferent level of service As the P-^jo*a
network each ofthe network devices identifies the packet class and services the packet
ac3h.p to Uiat class. You can choose many levels of service with DiffServ. For example,
ISfrom IP phones is usually given preferential treatment over all other appl-tmn
traffic. Lmail is generally given best-effort service. Nonbusiness traffic can other be given very
poor service orblocked entirely.
DifBerv v.rks like apackage delivery servie, You request <-d Pay for) alevel of service
v.hen vou send your package. Throughout the package network, the level or service is
^cognized and your package is given either preferential or normal scrv.ee, depend.ng on what
yourequested.
i 2010 Cisco Systems, Inc.
Quality of Service
6-32
QoS Model Evaluation
Thissubtopicevaluates the three QoS models by comparing their benefits and drawbacks
1
DiffServ
IntServ
Noabsolute serviceguarantee
Complex mechanisms
Continuous signaling because of
stateful architecture
* Flow-based approach notscalable
to targe implementations such as
ISP networks or the Internet
Best effort No service guarantee
No service differentiation
Highlyscalable
Many lewisofquality possible
* Explicit resource admission
control (end to end)
Per-requestpdicy admission
contrrJ
* Signaling ofdynamic port
numbers (forexample, H.323)
* Highlyscalable
* No special mechanisms
required
DiffServ has these kev benefits:
It is highly scalable.
It prov ides many different levels ofqualitv.
DiffServ also has thesedrawbacks:
No absolute guarantee ofserv ice quality can be made.
It requires aset of complex mechanisms to work in concert throughout the network.
The main benefits ofIntServ and RSVP are as follows:
' ,RSth Psi.gn.als.PS ^ucsts ^ ^^vidual flow. The network can then provide guarantees
othese individual lows fhe problem with this is that IntServ does not scale to'argf
networks because of the large number ofconcurrent RSVP Hows.
' aRS7 ffmiS ne,tWOrk.devices of ilow Parameters (IP addresses and port numbers) Some
apphcaaons use vnamtc port numbers, which can be difficult for network devices to
recognize. NBAR is amechanism that has been introduced to supplement RSVP for
applications that use dvnamic port numbers but do not use RSVP.
' '"svT suPPrtifadmis^" control, which allows anetwork lo reject (or downgrade) new
RSVP session,,f one of the interlaces in the path has reached the limit (that is all
reservablc bandwidth is booked).
The main drawbacks of IntServ and RSVP are as follows:
fhere is continuous signaling because ofthe stateful RSVP operation.
' ,nS,h P^"If S?,ab'C l '"^ netWOrkS Wherc per"flow gUarantees *ouW havc to be made
to thousands ot concurrent RSVP flows.
Implementing Cisco Voice Communications and QoS (CVOICE) vS.O
2010 Cisco Systems, tne
The best-effort model has these significant benefits:
Thebest-effort model has nearly unlimited scalability, fhe onlywayto reach scalability
limits is to reachbandwidth limits, in whichcase all trafficbecomesequallydelayed.
You donotneed toemploy special QoS mechanisms to use the best-effort model. It isthe
easiest and quickest model to deploy.
The best-effort model also has these drawbacks:
Notliing isguaranteed. Packets will arrive whenever they can, inany order possible, if they
arrive at all.
Packets arenot given preferential treatment. Critical datais treated thesame as email.
) 2010 Cisco Systems. Inc. Quality of Service 6-33
Summary
This topic summari/es the key points that were discussed in this lesson.
Summary
The most critical QoS issues include lack of bandwidth, end-to-end
delay, jitter, and packet loss.
QoS policydefines the specific levels of quality of service assigned
to different classes of network traffic.
QoS is implemented in Cisco Unified Communications networks by
identifying traffic, dividing trafficinto classes, and assigning QoS
policies to the classes
One-way QoS requirements for VoIP traffic define maximum
latency (150 ms), jitter (30 ms), loss (1 percent), and guaranteed
priority bandwidth per call (17-106 kb/s).
QoS can be implemented using CLI. MQC, AutoQoS, or QPM.
The three QoS models are best effort, IntServ, and DiffServ.
6-34 Implementing Cisco Voice Communications and QoS (CVOICE) v8 0 2010 Cisco Systems, Inc.
Lesson 2\
Understanding QoS
Mechanisms and Models
Overview
Differentiated services (DiffServ) is amultiple-service model for implementing quality of
service (QoS) in the network. With DiffServ, the network tries to deliver aparticular kind of
en i" ihat is based on the QoS specified by each packet. This ^^.^"^
different wavs. such as using the differentiated serv,ces code point (DSCP) in IP packets o
source and destination addresses. The network uses the QoS specfication ***
classifv. shape, and police traffic and to perform intelligent queuing. This leswn focuses on the
DiffServ model and explains the mechanisms that are used to implement DiftServ.
Objectives
Upon completing this lesson, you will be able to describe the characteristics and mechanisms of
the Difl^n'model and contrast the DiffServ model to other models. This abthty includes betng
able to meet these objectives:
Explain the purpose and function ofDiffServ
. Describe the basic format and the purpose ofthe DSCP field in the IP header and contrast it
tothetraditionally used IPprecedence format
List the different per-hop behaviors that are used in DSCP
. Describe the interoperability between DSCP-based and IP precedence-based devices
Explain the key mechanisms of DiffServ to implement QoS in an IP network
Describe Cisco QoS baseline model for enterprise
DiffServ Model
6-36
This topic describes the DiffServ model and tcrminolom
' S'SSqoS JS"de POmt (DSCP>: AValUe m** 'Pheaded
' (BoneaS!,cdass)a,e (BA'" A^^'^f P3CketS Wi'h 'he Same DSCP
'2Z7*tTT(PHBi" ThB fowardinS behavior (QoS treatment)
applied at a BA by a node
BA 1
1 \fcice
| DSCP 46
Vq*c
DSCP 46
Vorce
DSCP 46
BA2
IfTPftsmAtoBl
1 OSCP22 |
FTP tram AtoB
DSCP 22
PtPffumAloB
'QSCP22
Apply PHB X lo
Appfy PHB C lo 6A2
Apply PHB V to I
Apply PHB BIOBA2
Apply PHB Zto BA 1|
Apply PHBAtoBA2
The discussion about the DiffServ model uses three basic terms to describe DiffServ
operations, as follows:
Behavior aggregate (BA): ABA is acollection of packets with the same DSCP value
crossing alink ,n aparticular direction. Packets from multiple applications and sources can
belong to the same BA. In Csco IOS Software, classification of packets into BAs can be
done bv using Modular QoS command-line interface (CLI). or MQC, class maps.
' nSv?: A*al,U? 'Ithc 'P hcadcr that iS used t0 sc,ect aQs lreillm1 for apacket. In the
UtfServ model, classification and QoS revolve around the DSCP.
Per-hop bcha. ior (PHB): APHB is at. externally observable forwarding behavior (or QoS
treatment) applied at aDiffServ compliant node to aDiffServ BA. The term PHB refers to'
the packet scheduling, queuing, policing, or shaping behavior of anode on any given
packet belonging to aBA. The DiffServ mode! itselfdoes not speeifv how PHBs musl be
'tr^V^ *anet> of tcchni<-ues y be used to affect the desired traffic conditioning
and IMB. In Cisco IOS Software, you can configure PHBs bv using MQC policv maps
Implementing Cisco Voice Communications and QoS (CVOICE) v8.D
2010 Cisco Systems, Inc.
DiffServ Model
This subtopic describes the approach to QoS in the DiffServ model.
DiffServ Model
QoS behaviors applied to traffic classes on a per-hop basis.
Com plex traffic classification and conditioning performed at network edge:
- Network traffic is categorized into BAs
Each packet belonging to a BA is marked with a DSCP value.
Network devices in the core use the DSCP value to select a per-hop
behavior for the packet
Classify ana
mark witti
DSCP at
network edge
Match DSCP Match DSCP Match DSCP
anfl select per- and selecl per- and select per-
hop-betsawor fiop -behavior, hop-behavior.
The DiffServarchitecture is based on a simple model in which traffic entering a network is
classified and possibly conditioned at the boundaries ofthe network. The traffic class is then
identified with a DSCPor bit marking in the IP header, 'fhe primary advantage of DiffServis
scalability.
DSCP values are used to mark packets to indicate a desired PHB. Within the core ofthe
network, packets are fonvarded according to the PHB that is associated with the DSCP.
One of the primary principles of DiffServ is that packets should be marked as close to the edge
ofthe network as possible. It is often a difficult and time-consuming task to determine the
trafficclass for a datapacket, so the datashouldbe classified as fewtimes as possible. By
markingthe trafficat the network edge, corenetworkdevicesand other devicesalongthe
forwarding path will be able to quickly determine the properQoStreatmentto applyto a given
traffic flow.
DSCPsupersedes IP precedence, a 3-bit field in the type of service (ToS) byte ofthe IP header
that was originally used to classify and prioritize types of traffic. However, DSCP maintains
interoperability with devices that use IP precedence.
>2010Cisco Systems. Inc.
Quality of Service 6-37
DSCP Encoding
This topic describes the use ofthe ToS byte for DSCP.
DSCP Encoding
DS field The IPv4 header ToS octet or the IPv6 traffic class octet, when
interpreted in conformance with the definition given in RFC 2474
DSCP The first six bits of the DS field, used to select a PHB (forwarding
and queuingmethod)
ToS
Byte
Flags Oftse! TTL 1 Prao
IPv4 Packet Header
IPv4 IP Precedence
' DS Field
DiffServ uses the differentiated services field (DS field) in tlie IP header to mark packets
according totheirclassification into BAs. The DS field occupies thesame 8 bitsofthe IP
header that vv ere previously used for the ToS bv te.
fhe following three Internet Fngineering Task Force (lblT) standards describe thepurpose of
the 8 bits ofthe DS field:
RFC 791 includes specification ofthe ToS field, where thethree low-order bitsare used for
IPprecedence. The next 3 bitsare used for delay, throughput, reliability, andcost.
RFC 1812 modifies the meaning ofthe ToS field by removing the meaningfrom the live
high-order bits(those bitsshould all be0). Thisgained widespread use andbecame known
as the original IP precedence.
RFC 2474 replaces the ToS field wilh the DS field, where the sixlow-order bits areused
for the DSCP. Fhe remaining 2 bitsare used for explicit congestion notification. RFC 3260
{Sew Terminology andClarificationsfor DiffServ) updates RFC 2474 andprovides
temiinologv clarifications.
Fach DSCPvalue identifies a BA. Fach BA is assigned a PHB. Each PHB is implemented
using the appropriate QoS mechanisms.
IPversion 6 (IPv6) alsoprovides support for QoS marking viaa field inthe IPv6 header.
Similar to ihe ToS (or DS) field in the IPv4 header, the TrafficClass field(8 bits) is available
for use by originating nodes and forwarding routers toidentify and distinguish between
different classes or priorities of IPv6 packets, fhe Traffic Class field can beused tosetspecific
precedence or DSCP values. which arc used the same way that they are used in IPv4.
6-38 Implementing CiscoVoice Communications and QoS (CVOICE) v8.0
)2010 Cisco Systems, Inc.
DiffServ PHBs
This topic describes the concept of aPHB.
Per-Hop Behaviors
DSCP selects PHB throughout the network.
. DefaultPHB:(FIFO, taildrop)
EF: Expedited Forwarding
- AF: Assured Forwarding
Class-Selector: (IP precedence) PHB
0 1 2 3 *__L_
K^Bp^BssHsBISdscp
000 = Default
101 =Expedited Forwarding
001, 010, m1. or100 =Assured Forwarding
000 = Class Selector
fhe IETF standards define the following PHBs:
Default PHB: Used for best-effort service (bits 0to 2of DSCP =000)
. Expedited Forwarding (EF) PHB: Used for low-delay service (bits 0to 2of DSCP =
l()l)
Assured Forwarding (AF) PHB: Used for guaranteed bandwidth service (bits 0to 2of
DSCP = 001. 010. 011, or 100)
- Class-Selector PHB: Used for backward compatibility withnon-DiffServ-compliant
devices (RFC 1812-compliant devices [bits 3to 5of DSCP - 000])
i 2010 Cisco Systems, Inc.
Quality of Service
6-40
Expedited Forwarding PHB
This subtopic explains the Expedited Forwarding (EF) PHB.
EF PHB
Ensuresa minimum departurerate
Guarantees bandwidth (the class is guaranteed an amount
of bandwidth with prioritized forwarding)
Polices bandwidth (excess traffic is dropped)
DSCP value 101110,
Looks like IP precedence 5to non-DiffServ devices
Bits 0to 2 101 =5(same bits as tor IP precedence)
Bits 3to4-11 (same bits as drop probability, fixed value in EF PHB1
Bit 5 JustO
No Drop
Probability
DSCP
fhe FF PHB is identified based on the following;
The FF PHB ensures aminimum departure rate. The FF PHB provides the lowest possible
delay to delay-sensitive applications. possmie
- The FF PHB guarantees bandwidlh. The FFPUB prevents starvation ofthe application if
there are multiple applications using FF PHB.
' I?CthF PHI?.P!ices ban!,widlh whcn congestion occurs. The EF PHB prevents starvation
ol other applications or classes that are not using this PHB.
Packets requiring FF should be marked with DSCP binary value I0l 110 (46 or 0x2F).
Non-DiH^rv-compliant devices uill regard EF DSCP value 101110as IP precedence 5(101)
Ih.s precedence ,s the highest user-definable 1P precedence and is typically used for delay -
sensitive traffic (such as VoIP). Ihe three low-order bits ofthe FF DSCP value are 101 "hich
matches IP precedence 5and allows backward compatibility
Implementing Cisco Voice Communicalions and QoS (CVOICE) v8 0
2010 Cisco Systems. Inc.
Assured Forwarding PHB
This subtopic explains the Assured Forwarding (AF) PHB.
Assured Forwarding PHB
AFPHB:
~- Guarantees bandwidth
- Allows access toextra bandwidth, if available
Four standard classes (af1. af2, af3, and af4)
DSCPvalue range: aaaddO
- Whereaaa is a binary valueof the class
- Where dd is drop probability
iMdscp
aaa
The AF PHB is identified based onthe following:
The AF PHB guarantees acertain amount of bandwidth lo an AF class.
The AF PHB allows access to extra bandwidth, ifavailable.
. Packets requiring AF PHB should be marked with DSCP value aaaddO, where aaa is the
number ofthe class and dd isthe drop probability.
There are four standard defined AF classes. Each class should be treated independently and
should have allocated bandwidth that is based on the QoS policy.
i 2010 Cisco Systems, Inc.
Quality of Service 6-41
6-42
Assured Forwarding PHI
Each AFclass uses three DSCPvalues.
Each AF class is independently forwarded with its guaranteed bandwidth.
Congestion avoidance is used within each class (drop probability)
dscp =afh
Class
Value
AF1 001 dd 0
AF2 010 dd 0
AF3 011 dd 0
AF4 100 dd 0
Drop
Probability
(dd)
Value
AF
Value
Low
01 AF11
Medium 10
AF12
High 11
AF13
Fad, AF class is assigned an IP precedence and has three drop probabilities: low. medium, and
AF.vt represents an AF' PHB. where .v corresponds to the IP precedence value (onlv IP
precedences Ito 4are used for AF classes), and ycorresponds to the drop preference value (I
2. or 3).
Implementing Cisco Voice Communicalions and QoS (CVOICE) vS.i
>2010Cisco Systems.
Assured Forwarding PHB (Cont.)
* AF PHB does not followthe "bigger-is-betler" logic
- For example: AF11 (decimal 10) and AF13 (decimal 14)
Same queuing class, but AF11 "better" due to lower drop
Probability
Low drop
probatriity
AF11
001010
Decimal 10
AF21
010010
Decimal: 18
AF31
011010
Decimal: 28
AF41
100010
Decimal: 34
Mediixn drop
probabiEty
AF12
001100
Decimal 12
AF22
010100
Decimal: 20
AF32
011100
Decimal: 28
AF42
100100
Decimal: 36
High drop
prababiity
AF13
001110
Decrnal 14
AF23
010110
Decimal: 22
AF33
011110
Decimal: 30
AF43
100110
Decimal: 38
Interestingly, the AFPHBvalues do not necessarily follow the "bigger-is-bettcr" logicthat has
been usedwith IPprecedence marking, in whicha packetwith a higher IPprecedence received
preferential treatment over a packet with lower IP precedence.
The tablein the figure lists the binaryand decimal valuesfor the 4 AF PHBs in three drop
probability combinations. Within each class, a higher DSCPvaluesignifiesa higherdrop
probability, and therefore a less-preferential treatment.
2010 Cisco Systems, Inc.
Quality of Service 6-43
DiffServ Class Selector
This topic describes the DiffServ class selector.
DiffServ Class Selector
Class-Selector xxxOOO DSCP
* Backward compatibility with IP precedence
Maps IP precedence to DSCP
- Differentiates probability of timely forwarding
- (xyzOOO) >= (abcOOO) if xyz > abc
- Ifa packet has DSCP 011000, it has a greater probability
of timely forwarding than a packet with 001000.
IP Precedence
IPv4 IP Precedence
Class
Selector
fhe meaning ofthe 8 bits in the DS field ofthe IPpacket haschanged over time tomeet the
expanding requirements of IPnetworks. Themost common traditional use is provided by the
three low-order IP precedence bits.
TheClass-Selector PUR provides backward compatibility tor DSCPwith IPprecedence. The
next 3 bits ofthe DSCP (bits 3 to 5). set to I), identify a Class-Selector PHB. The Class-Selector
PHB is defined as the probability of timelj forwarding andis compliant with RFC 1812. which
simply prioritizes packets according to theprecedence value. Packets with higher IPprecedence
should general!} be forwarded inlesstime than packets with lower IPprecedence.
6-44 Implementing Cisco VoiceCommunications and QoS (CVOICE) v8 0
2010 Cisco Systems, Inc
DiffServ QoS Mechanisms
This topic descnbes the mechanisms that are implemented when deploying aDiffServ model.
QoS Mechanisms
Classification: Each class-oriented QoS mechanism has to
support some type of classification.
- Marking: Used to mark packets based on classification,
metering, or both.
Congestion management: Each interface must have a
queuing mechanism to prioritize transmission of packets.
. Congestion avoidance: Used to drop packets early to avoid
congestion later in the network.
Policing and shaping: Used to enforce a rate limit based on
the metering (excess traffic is either dropped, marked, or
delayed).
Link efficiency: Used to improve bandwidth efficiency through
compression, link fragmentation, and interleaving.
The main categories of tools that arc used to implement QoS in anetwork include the
following:
. Classification and marking: The identifying and splitting of traffic into different classes
and the marking of traffic according to behavior and business policies.
Congestion management:
based on markings.
Congestion avoidance: Discards specific packets that are based on markings to avoid
network congestion.
Policing and shaping: Traffic conditioning mechanisms that police traffic by dropping
misbehaving traffic to maintain network integrity. These mechanisms also shape traffic to
control bursts byqueuing traffic.
Link efficiency: One type of link efficiency technology is packet header compression.
which improves the bandwidth efficiency of alink. Another technology is link _
fragmentation and interleaving (LFI), which can decrease the "jitter ot vo.ce transmission
by reducing voice packet delay.
i 2010 Cisco Systems, Inc.
'fhe prioritization, protection, and isolation of traffic that is
Quality of Service
6-45
Classification
6-46
This subtopic explains the process ofpacket classification.
Classification is the identifying and splitting of traffic into
different classes.
Traffic can be classed by various means, including the DSCP.
Modular QoS CLI allows classification to be implemented as
a building block.
Classification is the identifying and splitting of traffic into different classes. In aQoS-enabled
network, all traffic ,s classified at the input interface of every QoS-aware device Packet
'"assittcatjon canbe based onmany factors, such as these:
DSCP
IP precedence
Source address
Destination address
The concept oft, is the key for deploying QoS. When an end device (such as aworkstation
or aCisco Unified IP phone) marks apacket with class of service (CoS) or DSCP aswitch or
router has the option of accepting or ignoring those values. If the switch or router chooses to
accept ihM alucs. the switch or router trusts the end device. If the switch or router trusts the end
device. ,t does not need to do any reclassification of packets coming from that interface If the
switch or router does not trust the interface, it must perform areclassification to determine the
appropriate QoS value tor the packets coming from that interface. Switches and routers are
generally set to not trust end devices and must specificallv he configured to trust packets
coming from an interface. Classification tools include Network-Based Application Recognition
(NBAR). policy-based routing (PBR). and classification and marking using MQC
Note
The tools for classification and other QoS mechanisms are covered in detail in the following
lessons.
Implementing Cisco Voice Communications and QoS (CVOICE] v8.0
2010 Cisco Systems, Inc
Marking
This subtopic describes the purpose of marking and identifies where marking is commonly
implemented in a network.
Marking
Marking each packet as a member of a network class
- Allows instant recognition throughout the network
- Also called coloring
Marking, also known as coloring, involves marking each packet as a member of a network class
so that devices throughout the rest ofthe network can quickly recognize the packet class.
Marking is performed as close to the network edge as possible and is typically done using
MQC.
QoS mechanisms set bits in the DSCP or IP precedence fields of each IP packet according to
the class that the packet is in. Other fields can also be marked to aid in the identification of a
packet class.
Other QoS mechanisms use these bits to determine how to treat the packets when they arrive. If
the packets are marked as high-priority voice packets, the packets will generally never be
droppedby congestion avoidance mechanisms and will be given immediate preference by
congestion management queuing mechanisms. On the other hand, if the packets are marked as
low-priority file transfer packets, they will be dropped when congestion occurs and will
generally be moved to the end ofthe congestion management queues.
) 2010 Cisco Systems. Inc
Quality of Service
Congestion Management
This subtopic explains the concept of congestion management.
Congestion Management
Evaluates packet marking to determine in which queue to place
packets
Sophisticated queuing technologies ensure that time-sensitive
packets (voice) are prioritized, such as WFQ and LLQ
Voice
d Mission-Cnlicai
Transactional
Voice Queue (First Out)
Mission-Critical Queue (40% bandwidth)
Transactional Queue (20% bandwidlh)
Congestion management mechanisms (queuing algorithms) use the marking on each packetto
determine in which queueto placepackets. Different queuesare givendifferent treatment by
the queuingalgorithm that is basedon the class of packetsin the queue. Cicnerally. queues wilh
high-priority packets receive preferential treatment.
Congestion management is implemented on all output interfaces in a QoS-enabled network by
usingqueuing mechanisms to managethe outflowof traffic, liachqueuing algorithm was
designed to solvea specific network trafficproblem and has a particular effect on network
performance.
The CiscoIOS Software for congestion management or queuingincludes these queuing
methods:
FIFO, priority queuing (PQ). custom queuing (CQ)
Weighted fair queuing (WFQ)
Class-based weighted fair queuing (CBWFQ)
Low latency queuing (LLQ)
LLQis currently the preferred queuing method. LLQ is a hybrid (PQ and CBWFQ) queuing
method that was developed to specifically meet the requirements of real-time traffic, suchas
\oiee.
6-48 Implementing Cisco Voice Communications and QoS (CVOICE] v8.0
)2010 Cisco Systems, Inc.
Congestion Avoidance
This subtopic describes congestion avoidance and identifies where congestion avoidance is
commonly implemented in anetwork.
Congestion Avoidance
Random packet drop from selected queues when previously defined
limits are reached
Helps prevent bottlenecks downstream in the network
. Can be implemented without drop using explicit congestion notification
(ECN)
- Two remaining bits inToSfield
Voice Queue (First Out)
Mission-Critical Queue (40%bandwidth)
TransactionalQueue (20%bandwidth)
Congestion-avoidance mechanisms monitor network traffic loads in an effort to anticipate and
avoid congestion at common network bottlenecks. Congestion avoidance is ach.eved through
packet dropping.
Congestion-avoidance mechanisms are typically implemented on output interfaces where a
high-speed link or set of links feeds into alower-speed link (such as aLAN feeding into a
slower WAN link). This ensures that the WAN is not instantly congested by LAN traffic.
Weighted random early detection (WRED) is aCisco primary congestion-avoidance technique.
WRED increases the probability that congestion is avoided by dropping low-pnonty packets
rather than dropping high-priority packets.
WRED is not recommended for voice queues. Anetwork should not be designed to drop voice
packets.
) 2010 Cisco Systems. Inc.
Quality of Service 6-49
Policing
This subtopic explains the concept of traffic policing.
Policing
Dropping or marking of packets when a predefined limit is
reached
Protection of other traffic classes to ensure that thev do not
starve
Policing is used to condition traffic before transmitting traffic to anetwork or receiving traffic
from a network.
Policing is the ability to control bursts and traffic to ensure that certain types of traffic get
certain types of bandwidth.
Policing drops or marks packets when predefined limits are reached. Policing mechanisms can
be set to first drop traffic classes that have lower QoS priority markings.
Policing mechanisms can be used at either input or output interfaces. These mechanisms are
typically used to control the flow into anetwork device from ahigh-speed link bv droppin-
excess low-pnonty packets. Agood example would be the use ofpolicing bv aservice provider
to throttle ahigh-speed inflow from acustomer that was in excess ofthe service agreement In
a ICPenv ironment. this policing would cause the sender lo slow its packet transmission.
Tools include class-based policing and committed access rate (CAR).
Implementing Cisco Voice Communications and QoS (CVOICE) vS.O
2010 Cisco Systems. Inc.
Shaping
This subtopic explains traffic shaping.
Shaping
- Queuing of packets when a predefined limit is reached
. Forwarding of temporary bursts that would have to dropped
as above-the-threshold iflong-termaverage limit not
exceeded
UNDER LIMITAGAIN
(Use Buffered Packets)
Shaping helps smooth out speed mismatches in the network and limits transmission rates.
Shaping mechanisms are used on output interfaces. These mechanisms are typically used to
limit the flow from ahigh-speed link to alower-speed link to ensure that the lower-speed link
does not become overrun with traffic. Shaping could also be used to manage the flow oftraffic
at apoint in the network where multiple flows are aggregated. Service providers use shaping to
manage the flow of traffic to and from customers to ensure that the flows conform to service
agreements between the customer and provider.
Cisco QoS software solutions include two traffic-shaping tools to manage traffic and
congestion on the network: generic traffic shaping and Frame Relay traffic shaping (FRTS).
2010 Cisco Systems, Inc.
Quality of Service
Compression
rhis subtopic explains how lo reduce bandwidth consumption by compression.
Compression
' Reducing the overhead associated with voice transport
Mapping of IP/UDP/RTPheader to 2-octet index
Optional 2-octet checksum
Bandwidth-saving mechanism tosupport large amount oftraffic
over a slow link
ReduceVoice Headerto 2or 4 Bytes
2 or 4 Bytes 20 Bytes
Compression is one ofthe Cisco IOS link-efficiency mechanisms that work in conjunction with
queuing and traffic shaping to manage existing bandwidth more efficiently and predictably.
Two types of compressionare available:
Compression of the pay load of I.ay er 2 frames. One of two algorithms. Stacker or
Predictor, can beconfigured for this type of compression.
Compressed Real-Time Transport Protocol (cRTP), as shown in the figure, maps the three
headers. IP. User Datagram Protocol (UDP). and Real-Time Transport Protocol (RTP).
with acombined 40 by tes. to 2or 4bytes, depending on whether the cyclic redundancy
check (CRC) is transmitted, 'fhis compression can dramatically improve the performance
of a link.
Compression should only be used on slow WAN links because its drawback isthe consumption
of computational resources on a hop-by-hop basis.
6-52 Implementing CiscoVoice Communications and QoS (CVOICE) v80
2010 Cisco Systems, Inc.
Link Fragmentation and Interleaving
This subtopic explains LFI.
Link Fragmentation and interleaving (LFI)
Breaks long data packets apart
Interleaves delay-sensitive packets so that theyare timely
forwarded rather than being clogged behind largedata
packets
Reduces jitterfor delay-sensitive traffic (voice)
packets.
Interactive traffic, such as VoIP, issusceptible to increased latency and jitter when the network
processes large packets, such as LAN-to-LAN FTP Telnet transfers traversing a WAN link,
'fhis susceptibility increases asthe traffic is queued onslower links.
LFI can reduce delay and jitter on slower-speed links by breaking up large datagrams and
interleaving low-delay traffic packets with the resulting smaller packets.
LFI is used on slow WAN links toensure minimal delay for voice and video traffic.
2010 Cisco Systems, Inc
Quality of Service 6-53
Applying QoS to Input and Output Interfaces
This subtopic describes which mechanisms can be applied toinput and which tooutput
interfaces.
(As close to the
source as possible)
(Coming from a
higher-speed ink or
aggregation)
Classify
Policing
Congestion
Management
Mari(
Congestion
Avoidance
Shaping
- >
Policing
Compression
Fragmentation
and Interleaving
(Always)
(High-speed to
low-speed links or
aggregation points)
(Low-speed
WAN links)
In aQoS-enabled network, classification is performed on every input interface. Marking should
be perfomied as close to the network edge as possiblein the originating network device, if
possible. Devices further from the edge ofthe network, such as routers and switches, can be
configured to trust or ignore the marking set by the edge devices. ACisco Unified IP phone, for
example, will not trust ihe markings of an attached PC. while switches are typically configured
totrustthemarkings of attached Cisco Unified IPphones.
It only makes sense to use congestion management, congestion avoidance, and traffic-shaping
mechanisms on output interfaces. Ihese mechanisms help maintain smooth operation of links
by controlling how much and which type oftraffic is allowed on alink.
Congestion a% oidanee is npicallv employed on an output interface where there is achance that
ahigh-speed link or aggregation of links feeds into aslower link (such as aLAN feeding into a
WAN).
Policing and shaping are t\ picallv employed on output interfaces to control Ihe flow of traffic
from ahigh-speed link to lower-speed links. Policing is also employed on input interlaces to
control the flow into anetwork device from ahigh-speed link by dropping excess low-priority
packets.
Both compression and LFI are typically used on slower-speed WAN links between sites lo
improve bandwidth efficiency.
6-54 Implementing Cisco Voice Communications and OoS (CVOICE) v8 0
2010 Cisco Systems, Inc.
"mm
"mm
-mw
Cisco QoS Baseline Model
This topic describes Cisco QoS baseline model and its variants.
Cisco Baseline Classification
Description
Traflic Class
Voice
Videoconferencing Interactive video date traffic
Streaming Video Streaming media traffic
Missiof^CrtacalData AppBcatJomwith offlcat importance t
Call Signaling Call signaling and control traffic
Network Management Network management traffic
Bulk Data
Default clnss all noncriiical traffic_
Although there are several sources of information that can be used as guidelines for
d ^tiifg aQo? policy, none of mem can determtne exactly what ,s proper for aspecific
SSll*presents its own unique challenges and administrative pohe.es.
The Cisco baseline classification model provides one ofthe possible classification approaches.
I con sts of 11 traffic classes that are typically found in enterprise networks The 11 traffic
asTesie described in the table and provide enough granularity for amajority of
nVirions The model can grow or shrink based on enterprise requirements. It should
SZ^T^lLitli betw.cn traffic categories with the goal of easy manageability.
>2010 Cisco Systems, Inc.
Quality of Service
6-55
6-56
Cisco Baseline Marking
1
Cisco Baseline Markim
Application
Voice
5
VideoConferencing
4
Streaming Video 4
Mission-Critical Data
3
Call Signaling
3
Transactional Data 2
Network Management
2
Bult Data
1
L3 Classification
PHB
AF41
CS4
AF31
CS3
&$
CS2
AF11
46
34
32
26
24
18
16
10
S'^ * * *e '' <* categories that are
OoS must be implemented consistently across the entire network. It is nol so important whether
Call Signaling ,s marked as DSCP 34 or 26. but rather lhat DSCP 34 and 26 a t aed a
DSCP 3,s' tre7ra- *T"^*< <** ^ "is ^ ''"POU-nt ^dlt^ ed
DSC P34 ,s reatedconsistently across the ne.work. If data travels over even asmall portion of
anetwork where different policies are applied (or no policies are applied, the ent ire OoS
Sicd^
mS'bv Ci ^rN' J3" Signa'ing tR,ffiC " AF 31: CaN Signaling traffic ori8inav
marked bv CtoIP lelephony equipment to DSCP AF31. The Cisco QoS baseline changed the
marking recommendation for call signaling traffic to DSCP CS3 because Class SdecSe
points, as defined ,n RFC 2474. are not subject to markdown or aggressive d^ppfng
Implementing Cisco Voice Communications and QoS (CVOICE) vS.O
2010 Cisco Systems, Inc
Command List
The table describes the commands that are used in this activity.
Cisco IOS Commands
Command
voice-card voice interface
slot
Description
Enters voice card configuration mode
codec complexity flex ]
high | medium | secure
Specifies the maximum codec complexity that is supported
by thevoice card DSPs ^
codec codec-name
show voice dsp
Specifies the codec that isused on the IP phone
Displays the DSP resource usage and call parameters
show voice call status
Provides a compact view ofactive call legs and their
parameters ___
show call active voice
Provides detailed information about active voice calls
Job Aids
These job aids are available to help you complete the lab activity.
Internal Numbering Plan
Local HQ Site (EU)
Local BR Site (NA)
Internal numbering
555-2XXX
555-3XXX
Valid Numbers in Simulated PSTN
Calls from HQ(EU)to PSTN
Calls from BR (NA) to PSTN
Local calls
NXX-XXXX (7 digits), TON: unknown
NXX-XXXX (7 digits), TON: subscriber
Example: 455-8000
NXX-XXXX (7 digits}, TON: unknown
NXX-XXXX (7 digits), TON: subscriber
Example: 455-8000
National
calls
0-NXX-NXX-XXXX, TON: unknown
(0 + 3-digit area + 7 digits)
NXX-NXX-XXXX. TON: national
(3-digit area + 7 digits)
Example: 0-455-455-8000
1-NXX-NXX-XXXX,TON: unknown
(1 + 3-digit area + 7 digits)
NXX-NXX-XXXX, TON: national
(3-digit area + 7 digits}
Example. 1-455-455-8000
International
calls
00 +any number of digits, TON:
unknown
Any number of digits,TON:
international
Example: 00-23^55-455-8000
011 +any number of digits, TON:
unknown
Anynumber of digits, TON:
international
Example: 011-23-455-455-8000
Emergency
calls
112, TON: unknown
911, TON: unknown
Note
Nrepresents a digit between 2 and 9.
)2010Cisco Systems, Inc.
Lab Guide
1hese are gateuay codec complexities:
l-0u:G,7ll.clearchannel
Medium: G.729A. G.729AB. G.726. G.722, and Fax Relay
High: G.723.1. G.728. G.729. G.729IJ. iLBC. Modem Relay
Task 1: Operate DSPs in Default Codec Complexity Mode Flex
In this task, you will test DSP operations in default codec complexity mode flex.
Activity Procedure
Complete ihese steps onyour HQ gateway-
Step 1 View the automatically created ephones using the show ephone command. There
should be two ephones with extension numbers that are associated with the ephones.
View the preferred codec of each ephone. It should be"7l lulaw."
Note
The ephones are created as aresult ofthe autoregistration when the endpoints first attempt
toregister. Autoregistration is enabled bydefault on Cisco Unified Communications
Manager Express
Step 2 from an [IQ phone, call a PS'I'N local number (0-NXXXXXX, where Nis 2to9
and Xisany digit), and answer the eall onthe PSTN phone.
Step 3 Verify the codec that is used on the VoIP call leg between the HQ phone and the HQ
gateway, using two methods:
I[se appropriate show commands onthe iIQ gateway.
On the IPphone, press theSettings button and choose Status>Call Statistics.
Note Both methods should show that the VoIP call leg uses G.711 with a 20-ms payload size.
Step 4 On the IIQ router, change the preferred codec ofthe first ephone (5552001) to
il.BC. and reset the phone usingthese commands:
ephone 1
reset
Step 5 From the first IIQ phone, call the PSTN phone (0-NXXXXXX). and check the
codec that is used during the call. Display DSP usage using different options ofthe
showvoice dsp command, including thedetailed keyword.
Step 6 fromthe PSTN phone, call the first HQ phone (555-2001}. andcheck thecodec that
is used inthe call. It shouldbethe sameas the codecthat is used inthe call that
originated in HQ.
Step 7 On the HQ router, enter the voice-card 0conllguration mode, and attempt tochange
the DSP codec complexity to medium. This operation should fait, due tothe existing
\oice ports.
22 Implementing Cisco Voice Communications and QoS (CVOICE) v8.0 2010 Cisco Systems Inc
Activity Verification
You have completed this task when you attain these results:
You verified thatthe flex mode supported high-complexity codecs such as iLBC.
You viewed the DSP usage for voice termination using different options ofthe show voice
dsp command.
Task 2: Operate DSPs in Medium Codec Complexity Mode
In this task, you will configure the voice card to support low- and medium-complexity codecs,
and you will verify the DSP operations.
Activity Procedure
Complete thesesteps on your HQrouter:
Step 1 Perform this procedure todelete the voice port:
Enter the voice port configuration mode (for example, voice-port 0/0/0:15). and
shut down the port.
Enter the controller configuration mode (forexample, the controller el 0/0/0),
and shut down the controller.
Inthecontroller configuration mode, remove the PRI group usingthe no pri-
group command.
Note This will also remove the port command fromall POTSdial peers.
Step 2
Enter thevoice cardconfiguration, andchange thecodec complexity to medium.
Step 3 Perform this procedure to re-createthe voiceport:
Enter thecontroller configuration mode, anddefine the ISDN PRI group using
the pri-group timeslots 1-8 command.
Activate the controller using the no shutdown command.
Reapply thevoice porttoalldial peers (forexample, add port 0/0/0:15
command to the dial peers).
Step4 From thefirst HQphone (preferring iLBC), call a PSTN local number (0-
NXXXXXX), and checkthe codecthat is used inthe call. The codecshouldbe
downgraded toa lower-bandwidth, medium-complexity codec. Write down which
codec is used, in the space that is provided:
____ Step 5 With one active conversation, call a PSTN national number (0-0-NXX-XXXXXXX)
from the secondHQphone (preferring G.711). Checkthe codecthat is usedin the
call. Display DSP usage, usingvarious options ofthe showvoicedsp command.
Step6 Change thecodec complexity onthe HQ gateway backto flex mode. Remember to
reapply the voice port to al! POTS dial peers.
2010CiscoSystems. Inc. Lab Guide 23
Activity Verification
Youhave completed this task when you attainthese results:
You verified that the iLBC codec was nolonger supported forvoice tennination when the
DSP resources were configured for medium codec complexity.
You \erilled that the codec negotiation for voice termination resulted in a codec that did
not exceed the permitted complexity and that it did not consume more bandwidththan the
preferred one.
Implementing Cisco Voice Communications and QoS (CVOICE) v8 0 201C Cisco Systems, Inc
Lab 2-1: Configuring VoIP Call Legs
Complete this lab activity to practice what you learned in the related module.
Activity Objective
In this activitv. vou will configure VoIP dial peers and tune gateway parameters to allow VoIP
calls between your HQ and BR sites. After completing this activity, you will be able to meet
these objectives:
Configure basicVoIPdial peer parameters
Configure codecs and codec classes, and verify codec negotiation
Configure and verify H.323 fast start and slow start
Configure theH.323 gateway interface bind feature
Visual Objective
The figure illustrates what you will accomplish inthis activity.
Lab 2-1: Configuring VoIP Call Legs
HQPimnm
555-2001
^
PODP
HQPhone2
SS5-2002
Required Resources
| P=pod number |
These are theresources andequipment that arerequired to complete this activity:
"Iwo Cisco Unified IP phones in your HQ site
One Cisco Unified IP phone in your BR site
2010 Cisco Systems. Inc
Lab Guide
Command List
Ihc table deseribes the commands that are used in this activity.
Cisco IOS Commands
Command
codec codec-name
codec preference 1-14
codec-name
dial-peer voice tag voip
h323-gateway voip bind
sreaddr
session protocol sipv2
session target
ipv4:x.x.x.x
voice class codec tag:
voice service voip
h323
sip
Description
Specifies which codecis tobe usedfor callsmatching this
dial peer
Configures one entry inthe codec list under the voice
class codec command. Repeatthis command as many
times as you need, to specify codecs in this list.
Enters dial-peer configuration mode and specifies VoIP
Configures the H.323 gateway interface bind feature
Configures the VoIP dial peer to use SIPsignaling
Specifies the destination IPv4 address forthe gateway
terminating a VoIP call
Entersvoice class codec configuration mode. In dial peer
mode, it attaches the voice class to the dial peer.
Enters voice service voip configuration mode
Enters H.323 mode from voice service voip configuration
mode
Enters SIP mode from voice service voipconfiguration
mode
call start slow | fast
Defines H.323 slow start or fast start in H.323 mode
bind control source-
interface
Configuresthe interface bindfeature for SIP signaling in
SIP mode
show call active voice
Displays information on active calls
show dial-peer voice
(tag)|(summary)
Displays dial-peer configuration information
show dialplan number
number
Displays which dial peers are matched when a particular
telephone number is dialed
show voice call status
Displays the status of active voice calls
debug voice dialpeer
Monitors the dial peer matching process
debug voip ccapi inout
Displays real-time call control processing and call leg
information
debug h22 5 event Monitors H.225 events
debug h245 event Monitors H.245 events
debug h245 asnl Monitors H.245 ASN.1 library
debug ccsip message Displays SIP signaling messages
Implementing Cisco Voice Communications and QoS (CVOICE) v8.0
)2010 Cisco Systems, Inc
Job Aids
These job aids are available to help you complete the lab activity.
Internal Numbering Plan
Local HQ Site (EU)
Local BR Site (NA)
Internal numbering
555-2XXX
555-3XXX
Task 1: Configure Basic VoIP on the HQ Gateway
In this task, you will configure abasic VoIP dial peer for HQ-to-BR connectivity.
Activity Procedure
Complete this steponyourHQgateway:
Step 1 Create a VoIP dial peer with these parameters:
It matches the entire 5553XXX range.
It points to loopback 0ofyour BR gateway (10.p.250.102, where pis your pod
number).
It disablesvoice activity detection(VAD).
It has dial peer tag 3000.
Activity Verification
You have completed this task when you attain these results:
On your BR gateway, enable dial peer debugging. Make sure that your Telnet connection
has configured the terminal monitor.
From your first HQ phone, call the BR phone (555300I) and answer the call. Examine the
debugging output, and confirm that no inbound dial peer has been matched on the BR
gateway.
With the call still active, view the active calls using the show voice call status command to
verify thatthe inbound dial peeris 0.
With the call still active, display its VAD setting using the show call active voice | inc
VAD command. Compare the VAD setting on both gateways. The setting should be
different.
With the call still active, use the appropriate show command toexamine the codec that is
used in the call. End the call.
Call the BR phone (5553001) from your second HQ phone. Answer the call and examine
thecodec. Youshould seethatbothcallsuse G.729, despite the fact thatthepreferred
codec ofthe first HQ phone isiLBC, and the preferred codec ofthesecond HQ phone is
G.711.
View thedefault codec ofthe VoIP dial peer,using theappropriate commands. Youmay-
want toselectively display the parameter using theshow dial-peer voice 3000 | inc codec
command.
>2010Cisco Systems, Inc.
Lab Guide
Task 2: Configure Codec onthe HQ Gateway
In this task, you will configure asingle codec in the VoIP dial peer on your HQ gateway.
Activity Procedure
Complete these steps onyour HQ gateway:
Step 1 Setthe VoIP dial peer (3000) codec tog723r53.
Step 2 Imm an HQ phone, call yourBR phone (555300I) and answer the eall. The call
should disconnect as soon as it is answered. This behavior is typical for acodec
mismatch.
Step 3 I se H.245 debugging to \ iew the codec negotiation between the gateways. Has Ihe
codec negotiation between thegateways been successful?
Note The Cisco Unified IP Phone 7965 supports these major codecs: G.722, G.711, G.729, and
iLBC.
Activity Verification
Youhavecompleted this task when you attainthese results:
You verified that the H.245 codec negotiation was successful, 'fhe debug h245 asnl
command displayed the codec proposal that was sent by the HQ gateway (g7231). which
was accepted by the BRgatewav.
You identified that the reason for the call disconnect musl be thai theCisco Unified IP
phones do not support ihe G.723 codec.
Task 3: Configure Asymmetric Codec Negotiation
In this task. >ou will configure multiple codec proposals and examine their negotiation.
Activity Procedure
Complete thesestepson your HQ and BRgateways:
Step 1 OnyourHQ gateway, create a codec class with thispreference order:
first codec: g723r53
Second codec: ii.BC
Third codec: g729br8 (Annex B)
Step 2 On\our HQgateway, remove theG.723 codec from theVoIP dial peer(3000). and
attach the codec class to the dial peer.
Step3 Onyour BRgateway, createa codecclass withthis preference order:
First codec: iLBC
Second codec: g723r53
Third codec: g729br8 (Annex B)
Step4 Onyour BRgateway. configure a VolPdial peer (2000) withtheseparameters:
The destination patternshouldmatch the DID rangeof HQphones (5552XXX).
Thesessiontarget shouldpoint toyour IIQgateway loopback 0 address
(I0.p.25().l()l. where p is your pod number).
28 Implementing Cisco Voice Communications and QoS(CVOICE) v8.0 2010CiscoSystems, Inc
Ml
It should have an associated codec class that is defined onyour BR gateway in
tlie previous step.
Step 5 From an HQ phone, call your BR phone (5553001), and answer the call. The call
should work. Examine the inbound dial peer selection on your BR gateway. Check
the negotiated codec using the debug h245 asnl command.
Step 6 From your BR phone, call an HQ phone (5552001), and answer the call. The call
*" should disconnect. Use available debug methods to examine the cause ofthe failure.
mm Activity Verification
You have completed this task when you attain these results:
*" You verified that inbound dial peers were successfully matched based on the destination-
pattern command. Ihe debug voice dialpeer command could be used to validate dial-peer
<mm matching.
You examined codec negotiation using the debug h245 asnl command. You verified that
* the codec list was sent by the originating gateway tothe tenninating gateway. The
terminating gateway looks up its prioritized codec list and chooses the first codec, if
____ available, from the received H.245 proposal. The HQ gateway selects g723r53. which is
not supported by IPphones, and the call fails.
_M You confirmed that the codec selection was based on the priorities that were configured on
the tenninating gateway.
Task 4: Configure Symmetric Codec Negotiation and Examine
. Fast Start
In this task, you will configure multiple codec proposals to make VoIP calls work in both
mm directions.
Activity Procedure
Complete these stepson yourHQandBRgateways:
__ Step 1 On your HQ and BR gateways, modify the codec class to use these codecs only, in
this preference order:
g First codec: g729br8 (Annex B)
Second codec: iLBC
mU Step 2 Make sure that the codec class isattached tothe VoIP dial peers onboth gateways.
Step3 Test VoIP callsin both directions. The callsshould work.
Step 4 Use the debug h245 events command toensure which H.323 call setup method (fast
start or slowstart) is usedby default on Ciscovoice gateways.
Activity Verification
mW> You have completed this task when you attain these results:
You verifiedthat VoIPcalls workedbetween the phones in the HQand BRsites. Youmay
mtt have performed some debugging to examine the dial-peer matching and 11.245 codec
negotiation.
Youfound that Ciscogateways used the fast-start methodbydefault.
>2010Cisco Systems. Inc
Lab Guide 29
Task 5: Configure Slow Start and the Interface Bind Feature
In this task, you will change the default fast-start method to slow start and configure the
interlace bind feature.
Activity Procedure
Complete these steps:
Step 1 Configure your IIQ gateway lo use slow-start signaling. Leave your BR gateway at
the default setting of fast-start signaling.
Step 2 Make calls between the sites. Use appropriale debug commands on both gateways to
ascertain which signalingmethod is usedin whichdirection. Lxamine the slow-start
signaling process.
Step 3 On both gateways (HQ and BR), source the H.323 signaling traflic from the
loopback 0 interfaces.
Step 4 From an HQ phone, call your BR phone. Use the debug h245 events command on
yourBRgateway toverify that thesignaling messages aresourced from the
loopback 0 IP address.
Activity Verification
You havecompleted this task when you attainthese results:
You verified that slow start was used for HQ-originatcd calls, and fast start was used for
BR-originated calls.
You examined the slow-start process and confirmed that 11.245 negotiation started allertlie
call was answered and consisted of three main phases: exchange of'TCSs. master and slave
determination, and OLCexchange.
You verified that the 11.323 gateway interface bind feature caused the signaling packets to
be sourced from the defined interface. This can beconlinned with the debug h225 events
command.
Task 6: Configure SIP Signaling
Inthistask, youwill use SIPas the VoIP signaling protocol.
Activity Procedure
Complete these steps on your HQgatewav:
Step 1 Create VoIP dial peer 3001 with the same destination target and destination pattern
as dial peer 3000. Configure the newVoIPdial peer to use SIPv2.
Step 2 Set the preference ofthe VoIP dial peer 3000 to a worse value, to make it the second
choice.
Step3 From an HQ phone, eall your 13R phoneand use the appropriate debugcommand to
examine the SIPmessageexchange. Based on the SDPbody, decidewhich offer
mechanism (early offeror delayed offer) is used bydefault on Cisco gateways, and
write it in the space that is provided:
Step 4 OnyourHQgateway, configure thebind interface feature forSIPsignaling and
media. Source the traffic from the loopback 0 IP address.
Implementing CiscoVoice Communications and QoS (CVOICE) vS.O 2010 Cisco Systems. Inc
Activity Verification
You have completed this task when you attain these results:
You examined the SIP signaling using the debug ccsip messages command.
You verified that Cisco gateways use SIP early offer by default, by identifying that the SDP
body, which contains the codec proposals, was carried in the INVITE message.
You shut down the SIP dial peer on your HQ gateway to make sure that H.323 is used in
the next exercises.
2010 Cisco Systems, Inc. Lab Gulde
Lab 3-1: Configuring Cisco Unified
Communications Manager Express to Support
Endpoints
Complete this lab activitv lopractice what you learned in ihc related module.
Activity Objective
In this activitv. vou will implement SCCP endpoints. The HQ site will host two SCCP phones
and. optionally. one Cisco IP Communicator. The BR site will host one SCCP phone. After
completing this activity, vou will beable to meet these objectives:
Configure SCCP-related Cisco Unified Communications Manager Express parameters
Implement SCCP endpoints
Visual Objective
The figure illustrates what you will accomplish inthis activitv.
Lab 3-1: Configuring Cisco Unified Communications
Manager Express to Support Endpoints
^
HQ Phone 1
555-2001
HQPhons2
555-2002
BR Phone SCCP
555-3001
PODP
PSTN Phono p
(Cisco Unified IP phono)
P = pod number
Required Resources
32
These are the resources and equipment that arc required tocomplete this activity:
Two Cisco I'nified IP phones in your IIQ site
One Cisco Unified IP phone in your BR site
Implementing Cisco VoiceCommunications and OoS (CVOICE) vS.O
& 2010 Cisco Systems, Inc.
Command List
The table describes the commands that arc used inthis activity.
Cisco IOS Commands
Command
ip dhep pool
max-dn
max-ephones
load
time-format
date-format
type
telephony-service
(no) auto-reg-phone
cnf-file location tftp: |
flash:
cnf-file perphone
perphonetype
create cnf-files
ephone ephone-id
mac-address
button button-index;dn-
index
show telephony-service
show ephone
show dial-peer voice
debug tftp event
debug ephone register
2010 Cisco Systems, Inc.
Description
Defines a DHCP pool ofaddresses that must include a
network, default router, and option 150
Defines the maximum numberofdirectory numbers that
areconfigured in telephony-service configuration mode
Defines the maximum numberof SCCPendpoints that are
configured in telephony-service configuration mode
Defines the binding oftheimage filename tophone mode
thatisconfigured in telephony-service configuration mode
Defines the time format that is displayed byendpoints that
isconfigured in telephony-service configuration mode
Definesthe date format that is displayed byendpoints that
isconfigured in telephony-service configuration mode
Defines thetype oftheendpoint thai isconfigured in
ephone configuration mode. Needed toidentify the desired
firmware image.
Enters configuration mode forSCCP-based Cisco Unified
Communications Manager Express
Controls autoregistration of SCCP endpoints
Defines the configuration file location forSCCPendpoints
Defines thegranularity ofconfiguration files forSCCP
endpoints
Writes configuration files into the configured or default cnf-
file location
Definesan SCCP endpoint with an identifier and enters
ephone configuration mode
Configures an endpoint MAC addressthat isconfigured in
ephone configuration mode
Associatesa phonebutton with a directory number index.
Multiple separator optionsexist, inaddition to ':'
Displays the SCCP-related Cisco Unified Communications
Manager Expresssystemparameters. Multiple options are
available to examine specific settings.
Displays the status of registered SCCPendpoints
Displays the voice dialpeers. Thesummary option
provides a brief output.
Monitors TFTP server events
Monitors SCCP endpoint registration
Lab Guide 33
Job Aids
Thesejob aids are available to help you complete the lab activity.
Internal Numbering Plan
Local HQSite (EU)
Local BR Site (NA)
Internal numbering
555-2XXX
555-3XXX
Task 1: Delete Existing SCCP Endpoints on HQ Gateway
In this task, you will remove existing SCCP endpoints and block autoregistration on your HQ
gateway.
Activity Procedure
Complete these steps onyour IIQ and BR gateways:
Step 1 Disable autoregistration and autoassignment ofSCCP endpoints.
Step 2 Delete the autoconfiguredephones.
Step 3 Delete the manually defined ephone-dns.
Activity Verification
You have completed thistaskwhen you attain these results:
You displayed the existing ephones to make sure that all auUnregistered ephones had been
deleted.
You verified that all phones reported "registration rejected."
Task 2: Configure Cisco Unified Communications Manager
Express System Parameters for SCCP Endpoints
In this task, you will configure general system parameters for SCCP-related CiscoUnified
Communications Manager Express functionality onthe HQ and BR gateways.
Activity Procedure
Complete thesesteps on your HQgateway:
Step 1 Verify that the DHCP service is running onthe HQ gateway, including option 150.
The Cisco Unified Communications Manager Fxpress should use the loopback 0
address for communications with endpoints.
Step 2 Enable IPv4 and IPv6 operations inthe telephonv service mode, with preference to
IPv4.
Step 3 Configure a European-style daleandtime formal to bedisplayed on theSCCP
endpoints (dd-mm-yy and 24h).
Step 4 Set the location of endpoint files to Hash and allow per-phone configuration files.
Step5 Perform the sameprocedure on your BRgateway to configure Cisco Unified IP
phone systemsettings, with this exception:
Configure the North American dateand time formal to be displayed on the
SCCP endpoints {mm-dd-yy and I2h).
Implementing Cisco Voice Communications and QoS(CVOICE) v8.0 2010CiscoSystems, Inc.
Activity Verification
You have completed this task whenyou attainthis result:
Ifyou display the systemwide telephony-service settings, you can verify that the desired
parameters are in place.
Task 3: Configure SCCP Endpoints
In this task, you will configure one SCCPendpoint ineach site.
Activity Procedure
Complete these steps:
Step 1 OnyourHQ gateway, create five dual-line SCCP directory numbers with extensions
5552001, 5552002, 5552011. 5552012, and 5552003.
Step 2 Onyour HQ gateway, configure anephone [I] with these parameters:
Usethe MAC address of your first HQphone.
Attach ephone-dn with extension 5552001 to the first button.
Attach ephone-dn with extension 5552011 to the second button.
Select theappropriate phone type(7965).
Step 3 On your HQ gateway, configure anephone [2] with these parameters:
Use theMAC address of yoursecond HQphone.
Attach ephone-dn with extension 5552002 to the first button.
Attach ephone-dn with extension 5552012 to the second button.
Attach ephone-dn with extension 5552003 to the third button.
Select the appropriate phonetype (7965).
Step 4 On your HQ gateway, enable debugging ofthe ephone registration process.
Step 5 Onyour HQ gateway, re-create theconfiguration files.
Note Phone reset can be triggered either by using the reset command in ephone configuration
mode, or by pressing the Settings button and entering the sequence **#** on the phone
keypad.
Step 6 Repeat the procedure to configure an SCCP endpoint on your BR gateway, with the
extension number 5553001.
Activity Verification
Youhave completed thistaskwhen youattain theseresults:
You examined the booting process ofthe SCCP endpoints.
You verified successful phone registration atthe respective Cisco Unified Communications
Manager Express devices.
You verified that the SCCP phones could call each other within the HQ site and through the
IP WAN.
' 2010 Cisco Systems, Inc
Lab Guide 35
Task 4: Configure Support for Cisco IP Communicator
(Optional)
Inthistask, vou will configure the llQ-based Cisco Unified Communications Manager Express
to support the Cisco IP Communicator.
Activity Procedure
Complete these steps on your HQgateway:
Stepl Install Cisco IP Communicator onyour local computer. Your computer must have IP
connectiv ity tothe loopback 0 address of the IIQ gateway. Depending onyour lab
setup. >oumay have to update therouting onyour computer or plug your computer
into an HQ phone.
Step 2 Start Cisco IP Communicator and select Menu >Preferences >Network.
Step 3 In the Dev ice Name section, choose the desired network adapter, and note the device
name in the fonnat SEP<adapter-mac-address>.
Step 4 In the 11 TP Servers section, select Use these TFTP servers:, and enter the IIQ
gatew ay loopback 0address (10.p.250.101. where pisyour pod).
Step 5 On vour HQ gateway. create anew ephone-dn with the extension 555-2004 and a
new ephone wilh the MAC address that was noted in Step 3and the extension that is
attached to its first button.
Activity Verification
Youhave completed thistask when you attain these results:
You verified that Cisco IP Communicator registered with Cisco Unilied Communications
Manager Express.
Youverified that callsworked between Cisco IPCommunicator andotherphones.
36
Implementing Cisco Voice Communications and QoS (CVOICE) v8.0 2010 Cisco Systems. Inc.
Lab 4-1: Implementing Digit Manipulation
Complete this lab activity to practice what you learned in the related module.
Activity Objective
In this activity, you will change the internal numbering plan lo a four-digit scheme and
configure digitmanipulation to allow PSTN andintersite calls. After completing this activity,
you will be able to meet these objectives:
Configure digit manipulation for inbound PSTN calls
Configure digit manipulation for outbound PSTN calls
Configure digit manipulation to enable intersite VoIP calls, using an intersite prefix andsite
codes
Visual Objective
Thefigure illustrates whatyouwill accomplish in thisactivity.
Lab 4-1: Implementing Digit Manipulation
PODP
' P- pod number |
Required Resources
These are the resources and equipment that are required to complete this activity:
A PSfN phone
Two CiscoUnified IP phones inyour HQsite
One CiscoUnifiedIPphonein your BRsite
)2010 Cisco Systems, Inc.
Lab Guide 37
Command List
The table describes the commands thai are used in this activity.
Digit Manipulation Commands
Command
Description
digit-strip
Strips all the digits that explicitly match the POTS
dial peer. Digit stripping is enabled by default on
POTS dial peers.
prefix digits
Specifies the prefixof the dialed digits for a dial peer
forward-digits [0-32]| all | extra
Specifies which digits to forwardfor voice calls
num-exp dialed-digite substitution
Defines how to expand a telephone extension
number into a particular destination pattern
voice translation-rule rule tag
Defines a voice translation rule for voice calls
rule precedence /match/ /replace/
[type {match-type replace-type J
[plan {match-plan replace-plan)jJ
Defines a rule within a voice translation rule
voice translation-profile profile-
name
Specifies a translationprofile forall incoming VoIP
calls
translate {called | calling |
redirect-called} translation-rule-
number
Associates a translation rule with a voice translation
profile
translation-profile {incoming |
outgoing} name
Assigns a translation profile to a dial peer
test voice translation-rule number
input-teet-string [type match-type
[plan match-type]
Tesls the functionality of a translation rule
debug isdn g931
Monitors ISDN Q931 signaling
debug voice translation
Monitors translation operations
Job Aids
These jobaids are av ailable tohelp you complete the lab activity.
Dial Plan
The table represents the dial plan that will beused inthelabs.
Site Internal Numbering Plan and PSTN DID Ranges
HQ Site (EU)
BR Site (NA)
Internal extensions
2XXX
3XXX
Site codes 810
820
PSTN access code 0
9
Local DID range
555-2XXX
555-3XXX
National DID range
51p-555-2XXX
52p-555-3XXX
International DID range
55-51 p-555-2XXX
66-52p-555-3XXX
Implementing Cisco Voice Communications and QoS (CVOICE] v8 0
2010 Cisco Systems, Inc
mm
Note
p: 1 to 2 (pod number)
Valid Numbers in Simulated PSTN
Calls from HQ(EU) to PSTN
Calls from BR (NA) to PSTN
Local calls
NXX-XXXX (7 digits), TON: unknown
NXX-XXXX (7 digits), TON: subscriber
Example: 455-8000
NXX-XXXX (7 digits), TON: unknown
NXX-XXXX (7 digits), TON: subscriber
Example: 455-8000
National
calls
0-NXX-NXX-XXXX, TON: unknown
(0 + 3-digit area + 7 digits)
NXX-NXX-XXXX, TON: national
(3-digitarea + 7 digits)
Example: 0-455-455-8000
1-NXX-NXX-XXXX, TON: unknown
(1 + 3-digit area + 7 digits)
NXX-NXX-XXXX, TON: national
(3-digitarea + 7 digits)
Example: 1^55-455-8000
International
calls
00 + any number of digits, TON:
unknown
Any number of digits, TON:
international
Example; 00-23-455-455-8000
011 + any number of digits, TON:
unknown
Any number of digits, TON:
international
Example: 011-23-455-455-8000
Emergency
calls
112, TON: unknown
911, TON: unknown
Note
N represents a digit between 2 and 9.
Task 1: Fix Outbound International PSTN Calling from BR
In this task you will fix tlie issue ofISDN switch-type primary-ni, which isused at the BR
gateway. The primary-ni automatically modifies the called-party number for outbound calls, if
it is inNANP format (011 followed by 12 digits, which includes a two-digit country code). The
primary-ni changes the type ofnumber (TON) to international. Such acalled-party number is
not compliant withthesimulated PSTN that is used in thelab.
Note
Ifthe 011 prefixis used, the correct TONshould be unknown.
Activity Procedure
Complete these steps on your BR gateway:
Stepl Enable ISDN Q931 debugging at the BRgateway. Make surethat theterminal
monitor is configured.
Step2 Place a PSTN international call fromyour BRphone. For example, dial 9-011-77-
455-455-1000#, where 9 is the PSTNaccess code and # prevents waiting for the
interdigit timeout. This call will fail. Observethe type of numberthat was
automatically set for this call by the ISDNprocess at the BRgateway.
Step3 Createa translation rule (usingtag I) and translation profilethat set the type of
number to unknown fbr all called-party numbers that start with 90! I.
Step 4 Associate the translation profile with the ISDN PRI voice port in the outbound
direction.
Step 5 Place the same test call again, and it should succeed.
>2010Cisco Systems, Inc.
Lab Guide 39
Activity Verification
Youhave completed thistask when you attaintheseresults:
You observed lhai. if youaredialing international PSTN number in NANP format, the
primary-ni automatically sets TON international.
You fixed thisbehavior ofthe primary-ni by using a voice translation ruleandvoice
translation profile.
Task 2: Change Internal Numbering Plan to Four-Digit Scheme
In this task, vou will convert the internal numbering plan lofour-digit schemes: 2XXX inthe
HQ site and 3X.XX in the BR site.
Activity Procedure
Complete these steps onyour [IQ andBRgateways:
Step 1 On your [\Qgatewav. change the extension number of your SCCP endpoints. using
this procedure:
Modify the ephone-dns:
First HQ phone: 555-2001 to 2001 and 555-2011 to 2011
Second HO phone: 555-2002 to 2002. 555-2012 to 2010, and 555-2003
to 2003
Optional HQ Cisco IP Communicator: 555-2004 to 2004
Restart the endpoint (in ephone mode).
Step 2 Onyour BR gateway, change theextension number of your SCCP endpoint. using
ihis procedure:
Modifv the ephone-dn
BR phone: 555-3001 to 3001
Restart the endpoint (in ephone mode).
Activity Verification
You have completed this task when you attain these results:
You verifiedthat the endpoints had reregisteredand obtained four-digitextension numbers
in the respective range.
You placed test calls and verified that intrasite calls continued to work using the modified
numbers. You verified that the intersite calls no longer worked, due to the updated
numbering scheme.
Fromyour HOand BRphones, you called the PSTNnumbers and viewed the calling
number that was displayed on the PSTN phone. Ihc calling number was a four-digit
number that does not allow callback.
Implementing Cisco Voice Communications and QoS (CVOICE) v8 0 2010 Cisco Systems, Inc.
Task 3: Manipulate Calling Number in Outbound PSTN Calls
In this task, you will configure digit manipulation to properly present the calling number when
placing callstothe PSTN.
Activity Procedure
Complete these steps:
Step 1 Manipulate the calling number in outbound PSTN calls on your HQ gateway:
Configure the appropriate translation profiles and rules to convert the calling
number from 2XXX to 5552XXX.
Apply the translation profile to the ISDN PRI voice port in the outgoing
direction. Alternatively, you could apply the translation profile tothe
appropriate POTS dial peers.
Step 2 Manipulate the calling number in outbound PSTN calls on your BR gateway:
Configure the appropriate translation profiles and rules to convert the calling
number from 3XXX to 5553XXX.
Note You will need to reuse the voice translation profile that was configured in Task 1, asyou can
associate only one translation profile with asingle voice port in one direction!
Make sure that the translation profile isapplied tothe ISDN PRI voice port in
the outgoing direction.
Step 3 Debug the translations using the appropriate Cisco IOS commands.
Note Simulated PSTN works differently from real PSTN. When calling national or international
PSTN numbers in the classroom, the PSTN phone displays the calling number as a local
number that isconfigured in this task. Real PSTN would prefix the correct area and country
codes, depending onhow farthecall wassent.
Activity Verification
You have completed this task when you attain these results:
You tested the translation rule by using the appropriate Cisco IOS commands.
You placed PSTN calls from your HQ and BR phones and verified that the calling number
was presented using thecorrect DID siterange.
You enabled appropriate debugging on your gateways and monitored the translation
operations.
Note If you want to adjust the calling numbers for the simulated PSTN, you can optionally
configure multiple translation profiles and apply them to the appropriate outbound dial peers
(local, national, and iniernational). The correct area or country code can Ihen be prefixed,
based on the selected destination.
) 2010 Cisco Systems, Inc.
Lab Guide
Task 4: Manipulate Calling Number and Called Number in
Inbound PSTN Calls
In this task, you will configure digit manipulation to properly present the calling number and
transform the called number when receiving calls from the PSTN, so that the callback works
without editing the number at the phone.
Activity Procedure
Complete thesesteps:
Step 1 Manipulate the numbers in inbound PS'I'N calls on your IIQ gateway. Configure
appropriate translation prolilesand rules to meet Ihese needs:
Apply the correct prefix to the received calling number toenable callback:
Ifthe TON is subscriber, prefix the PSTN access code 0(local calls).
Ifthe ION isnational, prefix the PSfN access code 0and another 0 for
Luropean national calls.
If ION is international, prefixthe PS'I'N access code0 and 00 for
huropean international calls.
Convert thecalled number from the DID format (local, national, or
international) to an internally used extension.
Note Simulated PSTN delivers the entire called number, except for the leading zeros. This is
different from real PSTN, which delivers the local number after stripping the area and
country codes.
Apply the translation profile tothe ISDN PRI voice port in ihc incoming
direction.
Step 2 Manipulate the numbers in inbound PSTN calls on your BR gateway. Configure the
appropriate translation profiles and rules to meet these needs:
Apply thecorrect prefix lo thereceived calling number toenable callback:
IftheTON is subscriber, prefix fhe PS'I'N access code 9 (local calls).
11' the TON is national, prefix the PSTN access code 9 and I for North
American long distance national calls.
If the TON is international, prefix the PSTNaccess code 9 and Ol I for
North American international calls.
Convert the callednumber from the DIDfonnat (local, national, or
international) to an internally used extension.
Apply the translation profile tofhe ISDN PR! voice port inthe incoming
direction.
Step 3 Debugthe translations using the appropriate Cisco IOScommands.
Activity Verification
You have completed this task when you attain these results:
You tested the translation rule by usingthe appropriate CiscoIOScommands.
42 Implementing Cisco Voice Communications and QoS (CVOICE) v8.0 2010 Cisco Systems Inc
You called your HQ phones from the PSTN phone (from various lines), using the correct
DID numbers (local, national, international), and verified that (he calls were delivered to
the desired endpoints and that the calling number was presented using the correct prefixes.
You called vour BR phone from the PSTN phone (from various lines), using the correct
DID number (local, national, international), and verified that the calls were delivered to the
desired endpoint and that the calling number was presented using the correct prefixes.
You enabled appropriate debugging on your gateways and monitored the translation
operations.
Task 5: Manipulate Calling Number and Called Number in
Intersite VoIP Calls
In this task, you will configure digit manipulation to enable intersite VoIP calls using intersite
prefix 8and these site codes: 10 for HQ and 20for BR.
Activity Procedure
Complete these steps:
Step 1 On your HQ gateway, enable HQ-to-BR VoIP calls using intersite prefix 8and these
site codes: 10 for HQ and 20 for BR.
Configure appropriate translation profiles and rules to meet these needs:
Add the prefix 810 tothe calling number in an outbound direction
towards the BR site.
Strip the prefix 810 from the called number in an inbound direction from
the BR site.
Modify the VoIP dial peer (3000) to match the complete number, including the
intersite prefixandsite code.
Apply the translation profile for an outbound direction to the VoIP dial peer
(3000).
Configure anew inbound dial peer (use tag 2) that matches all VoIP calls, and
apply the translation profile for the inbound direction to this new inbound VoIP
dial peer.
Atthe inbound VoIP dial peer (2). configure the same preferred codecs asthose
usedby the outbound VoIPdial peer (3000).
Step 2 On your BR gateway, enable BR-to-HQ Vol Pcalls using intersite prefix 8and these
site codes: 10 for HQ and 20 for BR.
Configure the appropriate translation profiles and rules tomeet these needs:
Add theprefix 820to thecalling number inanoutbound direction
towards the HQ site.
Strip the prefix 820 from the called number inan inbound direction from
the HQ site.
Modify the VoIP dial peer (2000) tomatch the complete number, including the
intersite prefix and site code.
Apply the translation profile for the outbound direction tothe VoIP dial peer
(2000).
) 2010 Cisco Systems, Inc.
Lab Guide 43
Step 3
Configure anew inbound dial peer (use tag 2) tliat matches all VoIP calls and
apply the translation profile for the inbound direction to this new inbound VoIP
dial peer.
At the inbound VoIP dial peer (2). configure the same preferred codecs as those
used by the outbound VoIP dial peer (2000).
Place atest call from the HQ site lo the BR site, using the intersite prefix and the site
code (dial 8203001 from an HQ phone). The call setup should succeed, bul you will
notice that, shortly after dialing, the caller ID is changed to the extension only
(3001). Ihis behav ior could confuse adialer. It can be disabled in both directions bv
using the following commands, entered at the HQ and BR gateways:
voice service voip
no supplementary-service h225-notify cid-update
Activity Verification
You have completed this task when you attain this result:
You successfully placed intersite calls using the intersite prefix and site codes, and ><
verified that the calling and called numbers were presented correctly.
44 Implementing Crsco Voice Communications andQoS(CVOICE) v8.0
2010 Cisco Systems. Inc
Lab 4-2: Implementing Path Selection
Complete this lab activity to practice what you learned in the related module.
Activity Objective
In this activitv. vou will implement path selection lo ensure continuous VoIP service and toll
bypass. After'completing this activity, you will be able to meet these objectives:
Configure abackup PSTN path for intersite calls
Configure TEHO toprovide toll bypass
Visual Objective
The figure illustrates what you will accomplish in this activity. ^^^
Lab 4-2: Implementing Path Selection
Primary Path
Backup Path
TEHO to EU
TEHO to US
Required Resources
These are the resources and equipment that are required tocomplete this activity:
A PSTN phone
TwoCisco Unified IPphones in your HQ site
One CiscoUnified IPphoneinyour BRsite
) 2010 Cisco Systems, Inc
Lab Guide
Command List
The table describes the commands that are used in this activity.
Digit Manipulation Commands
Command
digit-strip
prefix digits
forward-digits [0-32] | all | extra
num-exp dialed-digits substitution
voice translation-rule rule tag-
rule precedence /match/ /replace/
ftype fraatch-type replace-type} fplan
(match-plan replace-plan}]}
voice translation-profile profile-
name
translate {called | calling |
redirect-called} translation-rule-
number
translation-profile {incoming
outgoing} name
test voice translation-rule number
input-test-string [type match-type
[plan match-type]
debug isdn q931
debug voice translation
Description
Strips all thedigits thatexplicitly match the POTS
dialpeer. Digit stripping is enabled bydefault on
POTS dial peers.
Specifies the prefix ofthedialed digits fora dial
peer
Specifies which digitsto forward for voicecalls
Defines how to expanda telephone extension
number into a particular destination pattern
Defines a voice translation rule for voice calls
Defines a rule withina voice translation rule
Specifies a translation profile for all incoming VoIP
calls
Associates a translation rule with a voice
translation profile
Assigns a translation profile to a dial peer
Tests the functionality of a translation rule
Monitors ISDN Q931 signaling
Monitorstranslation operations
Job Aids
Ihesejobaids areavailable to help you complete the lab activil
Dial Plan
46
Thetable represents the dial plan that will be used inthe labs.
Site Internal Numbering Planand PSTN DID Ranges
HQ Site (EU)
BR Site (NA)
Internal extensions 2XXX
3XXX
Site codes 810
820
PSTN access code 0
9
Local DIDrange
555-2XXX
555-3XXX
National DID range 51p-555-2XXX
52p-555-3XXX
International DIDrange
55-51p-555-2XXX
66-52p-555-3XXX
Implementing Cisco Voice Communications andOoS(CVOICE) v8.0
2010 Cisco Systems. Inc.
Note
p 1 to 2 (pod number)
Valid Numbers in Simulated PSTN
Calls from HQ(EU) to PSTN
Calls from BR (NA)to PSTN
Local calls
NXX-XXXX (7 digits), TON: unknown
NXX-XXXX (7 digits), TON: subscriber
Example: 455-8000
NXX-XXXX (7 digits), TON: unknown
NXX-XXXX (7 digits), TON: subscriber
Example: 455-8000
National
calls
O-NXX-NXX-XXXX, TON: unknown
(0 + 3-digit area + 7 digits)
NXX-NXX-XXXX, TON: national
(3-digitarea + 7 digits)
Example; 0-455-455-8000
1-NXX-NXX-XXXX, TON: unknown
(1 + 3-digit area + 7 digits)
NXX-NXX-XXXX, TON: national
(3-digit area + 7 digits)
Example: 1-455-455-8000
International
calls
00 + any number of digits, TON:
unknown
Any number of digits, TON:
international
Example: 00-23-455-455-8000
011+ any number of digits, TON:
unknown
Anynumber of digits, TON:
international
Example: 011-23-455-455-8000
Emergency
calls
112, TON: unknown
911, TON: unknown
Note
Nrepresents a digit between 2 and 9.
Task 1: Configure Backup PSTN Path for HQ to BR Calling
In this task, you will configure your HQ gateway for abackup PSTN path for calls from HQ to
BR.
Activity Procedure
Complete these steps on your HQ gateway:
Stepl
Step 2
Create a POTS dial peer (use tag3005) thatwill back upthe intersite calling toBR
viaPSTN when theVoIP path is unavailable. This POTS dial peershould have the
same destination pattern as, but a lower preference than, the VoIP dial peer.
Configure the digit manipulation mechanisms toensure that the call isdelivered to
the BRvia PSTN, andthat the callingnumberthat is presentedallowscallback.
Note Remember that HQand BRsites are virtually placed in different countries. Therefore, the
intersite that called numbers must have an international format for the call setup to succeed
via PSTN.
Step 3 Apply the digil manipulations tothe POTS dial peer tliat is used for the backup.
Activity Verification
You have completed this task whenyou attainthese results:
Yousimulateda WAN failure by shuttingdownthe Serial 0/1/0interface on the HQ
gatewav.
2010 Cisco Systems, Inc
Lab Guide
While the WAN was in the simulated failure, you placed acall to the BR phone as ifvou
were dialing via the WAN (the intersite prefix 8. site code 20, and 3001). The call should
have been redirected \ ia the PSTN.
The HQ toBR call was presented at the BR phone using anumber thai allows callback.
You tested the callback later, when the WAN was restored. You kept down the WAN fbr
the second task,
Ifvou attempted a rcserse call (BR toHQ). the call should have failed while the WAN was
in the simulated failure.
Task 2: Configure Backup PSTN Path for BR to HQ Calling
In this task, vou will configure your BR gateway for a backup PSTN path for calls from BR to
Activity Procedure
Complete these steps on vottr BR gateway:
Step 1 Create a POT Sdial peer (use tag 3005) that will back up Ihe intersite calling to BR
via PSTN when the VoIP path is unavailable. Ihis POTS dial peer should have the
same destination pattern as. but a lower preference than, the VoIP dial peer.
Step 2 Configure thedigitmanipulalion mechanisms loensure thatthecall is delivered to
the BR via PSTN, and thai the calling number that is presented allows callback.
Note Remember that HQ and BR sites are virtually placed in different countries. Therefore, the
intersite thatcalled numbers must have aninternational format for thecall setup tosucceed
via PSTN.
Step 3 AppK the digit manipulations lothe POTS dial peer that is used for the backup.
Step 4 Fix thetranslation rule(tag I) fortheprimary-ni issue, which wasdescribed earlier,
by adding a new rule that also sets the TON to unknown if the called-party number
starts with 011. This is required, because the current translation rule works fbr 9011
onlv. (The PSfNaccess code 9would normally beremoved by the dial peer 901.1
but thisdial peeris not used inthe PSTN backup scenario.)
Activity Verification
You have completed this task when \ou attain these results:
While the WAN was inthe simulated failure (from previous lask), you placed a call loan
HQ phone as ifyou were dialing viatheWAN (theintersite prefix 8, sitecode l(), and
2001). The call should have been redirected via the PS'I'N.
The BR to HQ call waspresented at the HQ phone using a number that allowed callback.
You tested the callback later, when the WAN was restored.
You restored the WAN bv activating the Serial 0/1/0 interface.
Implementing Cisco Voice Communications andQoS(CVOICE) vS.O 2010Cisco Systems. Inc
Task 3: Configure TEHO at HQ for Calls to North America
In this task, you will configure TEHO for calls from the European HQ site to the North
American PSTN,
Activity Procedure
Complete these steps:
Step 1 On your HQ gateway, create aVoIP dial peer (use tag 6600) for tail-end hop off to
the North American PSTN via the BR gateway. The TEHO dial peer should be used
when calling to the virtual North American country with acountry code of66.
Remember to use the same codec class as for any other VoIP dial peer atthe HQ
gateway.
Step 2 Manipulate the sent calling and called numbers for the TEHO calling. The TEHO
configuration should not require any changes at the BR gateway. The calling number
that is presented should be acorrect international number that allows calling back to
the TEHO call originator.
Activity Verification
You have completed this task when you attain these results:
When placing atest call from an HQ phone to the virtual North American country (for
instance. 66-455-455-I000#), thecallwas successfully routed viatheBRgateway.
You enabled appropriate debugging (ISDN, dial-peer) and verified that the expected TEHO
path was selected.
You verified that the correct calling number ininternational fonnat was presented on the
PSTN phone. The call should have rung up at the national, not the international, PSTN
phone button.
Task 4: Configure TEHO at BRfor Calls to Europe
In this task, you will configure TEHO for calls from the North American BR site to the
European PSTN.
Activity Procedure
Complete these steps:
Step 1 On your BR gateway, create aVoIP dial peer (use tag 5500) for tail-end hop off to
the European PSTN via the BR gateway, The TEHO dial peer should be used when
calling tothe virtual European country with a country code of55. Remember touse
the same codec class as for any other VoIP dial peer at the BRgateway.
Step 2 Manipulate the sent calling and called numbers for the TEHO calling. The TEHO
configuration should nol require any changes at the HQ gateway. The calling
number that ispresented should beacorrect international number that allows calling
back to the TEHO call originator.
2010 Cisco Systems, Inc.
Lab Guide 49
Activity Verification
You have completed thistask when youattain these results:
When placing atest call from the BR phone to the virtual European country (for instance.
55-455-455-10()0#). the call was successfully routed via the HQ gateway.
You enabled appropriate debugging (ISDN, dial-peer) and verified that the expected TEHO
path was selected.
You verified that the correct calling number in international format was presented on the
PSTN phone. The call should have rung up at the national, not the international. PSTN
phone button.
50 Implementing Cisco VoiceCommunications and QoS (CVOICE) vS.O
>2010 Cisco Systems, Inc.
Lab 4-3: Implementing Calling Privileges
Complete this lab activity to practice what you learned in the related module.
Activity Objective
In this activitv. vou will implement calling privileges on agateway using COR. After
completing this'activity. you will be able to meet these objectives:
Create COR labels
Create COR lists and assign members
Assign COR lists to the appropriate dial peers and Cisco Unified Communications Manager
Express endpoints
Visual Objective
The figure illustrates what you will accomplish in this activity.
Lab 4-3: Implementing Calling Privileges
*k
V3 Phone i
2001
HQPhotnZ
2002
HQ-p
BR-o,
PODP
IP WAN
PSTN Phone-p
(Cisc UnifiedIP phone)
| P=pod number
Required Resources
These are the resources and equipment that are required tocomplete this activity:
A PSTN phone
TwoCisco Unified IPphones inyour HQsite
One CiscoUnified IP phoneinyour BRsite
)2010Cisco Systems, Inc.
Lab Guide 51
Command List
The table describes the commands that are used in this activity.
COR Commands
Command
Description
dial-peer cor custom
name cor-name
Specifies thatnamed CORs apply todial peers
Creates a named COR
Defines a COR list name
dial-peer cor list list-name
corlist incoming cor-list-name
Specifies the COR list tobeused when a specified dial peer
acts as the incoming dial peer
corlist outgoing cor-list-name
show dial-peer cor
Specifies theCOR list tobe used by outgoing dial peers
Displays COR labels
Job Aids
Ihese job aids are av ailable to help vou complete the lab activity.
Ihetabic defines call permissions asare required fortius lab.
Call Permissions
Endpoint Description
Permitted to Call
HQ phone 1
second line (2011)
Lobby
PSTN: Emergency
Internal: Any
HQ phone 2
first line (2002)
Executive (unrestricted) Any
HQ phone 2
second line (2012)
Sales
PSTN: Emergency, local, national
Internal: Any
BR phone
Employee
PSTM: Emergency, local
Internal: Any
All phones should bereachable from PS'I Nwithout any restrictions.
Note
TEHO destinations and PSTN backup for intersite WAN are not subject toCOR
configuration, and they can be reached without restrictions.
Site Internal Numbering Plan and PSTN DID Ranges
HQ Site (EU)
BR Site (NA)
Internal extensions 2XXX
3XXX
Site codes 810
820
PSTN access code 0 9
Local DID range 555-2XXX 555-3XXX
National DID range 51p-555-2XXX 52p-555-3XXX
International DIDrange
55-51p-555-2XXX 66-52p-555-3XXX
Implementing CiscoVoice Communications and QoS (CVOICE) v8.0
12010 Cisco Systems, Inc.
Note
p: 1to 2 (pod number)
Valid Numbers in Simulated PSTN
Local calls
National
calls
International
calls
Emergency
calls
Calls from HQ(EU)to PSTN
NXX-XXXX (7 digits), TON: unknown
NXX-XXXX (7 digits), TON: subscriber
Example: 455-8000
0-NXX-NXX-XXXX,TON: unknown
(0 +3-digit area +7 digits)
NXX-NXX-XXXX, TON: national
(3-digitarea + 7 digits)
Example: 0-455-455-8000
00 +any number of digits, TON:
unknown
Anynumber of digits, TON:
international
Example: 00-23-455-455-8000
112, TON: unknown
Note
Nrepresentsa digit between2and 9.
Calls from BR (NA) to PSTN
NXX-XXXX (7 digits), TON: unknown
NXX-XXXX (7 digits), TON: subscriber
Example: 455-flOOO
1-NXX-NXX-XXXX, TON: unknown
(1 +3-digit area +7 digits)
NXX-NXX-XXXX, TON: national
(3-digitarea + 7 digits)
Example: 1-455-455-8000
011 +any number of digits, TON:
unknown
Anynumber of digits, TON:
international
Example: 011-23-455-455-8000
911, TON: unknown
Task 1: Configure Call Permissions for the HQ Site
In this task, you will configure COR names (labels), create COR lists with their members, and
assign CORlists to the appropriate dial peers and endpoints for call permissions that are
appliedto the HQsite.
Activity Procedure
Complete these stepsonyourHQgateway-
Step 1 Verify that unique dial peers exist for local calls, national calls, international calls.
and emergency calls.
Step 2 Createthe required CORnames.
Note Naming suggestions for COR names are: emergency, local, national, intl, lobby, executive,
and sales.
Step3 Createthe requiredCORlists.
Note Naming suggestions for incoming COR lists are: lobby-in, pstn-in, executive-in, and sales-in.
Naming suggestions for outgoing COR lists are: lobby-out, executive-out, sales-out,
emergency-out, local-out, national-out, and intl-out. ^^_
Step 4 Assign the COR lists to appropriate endpoints and dial peers in the correct direction.
Note
TEHO and PSTN backupdial peers are not subject to COR configuration.
) 2010 Cisco Systems, Inc.
Lab Guide
Activity Verification
You have completed this task when you attain this result:
You verified that the call permissions, as they were defined in the job aids for the HQ site
were met by your configuration.
Task 2: Configure Call Permissions for the BRSite
In this task, you will configure COR names (labels), create COR lists with their members and
assign COR lists to the appropriate dial peers and endpoints fbr call permissions that are
applied to the BR site.
Activity Procedure
Complete these steps onyour BR gateway;
Step 1 Verify that unique dia! peers exist for local calls, national calls, international calls,
and emergency calls.
Step 2 Create the required number of COR names.
Step 3 Create the required COR lists.
Step 4 Assign the COR lists to appropriate endpoints and dial peers in the correct direction.
Note TEHO and PSTN backup dial peers are not subject to COR configuration.
Activity Verification
You have completed this task when you attain fhis result:
You verified that the call permissions, as they were defined in the job aids for the BR site,
were met by your configuration.
Implementing Cisco Voice Communications and OoS (CVOICE) vS.O 2010 Cisco Systems Inc
Lab 5-1: Implementing Gatekeepers
Complete this lab activity to practice what you learned in the related module.
Activity Objective
In this activitv vou will configure the corporate gatekeeper HQ as agatekeeper that controls
two /ones: 1IQ 'and BR. Call routing between the HQ and BR sites will be done via the
gatekeeper. After completing this activity, you will be able to meet these objectives:
Configure an H.323 gatekeeper to support multiple local zones
Register gateways at the gatekeeper
Configure technology prefixes
Implement CAC
Visual Objective
The figure illustrates what you will accomplish in this activity.
Lab 5-1: Implementing Gatekeepers
Required Resources
These are the resources and equipment that are required tocomplete this activity:
TwoCisco Unified IPphones inyour HQsite
One Cisco Unified IP phone in your BRsite
Command List
The table describes the commands that are used in this activity.
) 2010 Cisco Systems. Inc.
Lab Guide 55
Gatekeeper Commands
Command
gatekeeper
zone local zone-name domain-name
[ras-IP-address]
no shutdown
zone prefix gatekeeper-name el64-
prefix [blast J seq] [gw-priority
priority gw-alias [gw-alias, ...]]
gw-type-prefix type-prefix [hopoff
gkidl] [hopoff gkid2] [hopoff
gkidn] [seq | blast] [default-
technology] [gw ipaddr ipaddr
[port]]
bandwidth {interzone | total |
session} {default J zone zone-name}
.bandwidth-size
show gatekeeper calls
show gatekeeper status
show gatekeeper endpoints
show gatekeeper gw-type-prefix
show gatekeeper zone prefix [all]
show gatekeeper zone status
Gateway Commands
Command
gateway
h323-gateway voip interface
h323-gateway voip id gatekeeper-id
{ipaddr ip-address [port]\
multicast} [priority priority]
h323-gateway voip h323-id
interface-id
h323-gateway voip tech-prefix
prefix
session target ras
Implementing Cisco Voice Communications and QoS(CVOICE) v8.0
Description
Enters gatekeeper configuration mode
Specifies a zonethat iscontrolled bya
gatekeeper
Brings the gatekeeper online
Adds a prefix to the gatekeeper zone list
Adds a technology prefix tothegatekeeper
configuration list
Specifies the maximum aggregate bandwidth
for H.323 traffic
Displays the status of each ongoingcall of
which a gatekeeper is aware
Displaysthe overallgatekeeper status,
including the authorization and authentication
status and zone status
Displays the status ofall registered endpoints
for a gatekeeper
Displays the gateway technologyprefix table
Displays the zone prefix table
Displays the status of zones that are related
to a gatekeeper
Description
Enters gateway configuration mode and
enables the gateway to register with a
gatekeeper
Identifies this as a VoIPgateway interface
Defines the name and location of the
gatekeeper for this gateway
Definesthe H.323name of the gateway,
identifying this gateway to its associated
gatekeeper
Defines the numbers that are used as the
technology prefixthat the gateway registers
with the gatekeeper
Enables RAS signaling, which means that a
gatekeeper is consulted to translate the
E.164 address into an IP address
>2010Cisco Systems, Inc.
Gateway and Gatekeeper Monitoring Commands
Command
Description
debug ras
Monitors Registration, Admission, and Status (RAS) messages
debug h225 asnl
Monitors H.225 ASN.1 library messages, which provide adetailed trace
of the RASmessages
Job Aids
These job aids are available to help you complete the lab activity.
Gatekeeper and Gateway Addressing
The table defines gatekeeper and gateway addressing.
Internal Numbering Plan
HQSfte(EU)
BR Site (NA)
Internal extensions 2XXX
3XXX
Gatekeeper and Gateway Addressing
Component Address
Gateway H.323 ID
HQ gatekeeper Loopback0 IPaddress -
HQ gateway
Loopback 0 IPaddress
HQ-gw
BR gateway
Loopback 0 IP address -
Task 1: Configure Local Zones and Zone Prefixes
In this task, you will configure your HQ router as an H.323 gatekeeper that supports two local
zones. You will also configure zone prefixes toenable call routing.
Activity Procedure
Complete these steps onyour HQ router:
Step 1 On the HQ gateway, configure agatekeeper with these two local zones:
Local zone HQ, domain cisco.com, IP address ofloopback 0interface
Local zone BR, domain cisco.com
Step 2 Configure prefixes fbr the local zones IIQ and BR. Zone prefixes use the site
extensions as seen in the job aids section.
Step 3 Enable the gatekeeper process.
Activity Verification
You have completed this task when you attain these results:
You viewed thegatekeeper status and verified thatthegatekeeper was up.
When viewing the gatekeeper zone status, you could identify the two local zones: HQ and
BR.
When viewing the gatekeeper zone prefixes, you could verify that they were correct.
2010 Cisco Systems. Inc.
Lab Guide
Task 2: Configure Gateways to Register with the Gatekeeper
In this task, you will configure the IIQ and BR gateways to register with the IIQ-based
gatekeeper.
Activity Procedure
Complete thesesteps:
Step 1 On your BR gateway, enable debugging ofRegistration, Admission, and Status
(RAS) messages.
Step 2 Configure >our BR gateway to register at the gatekeeper, using these parameters:
The H.323 interface should beLoopback 0.
H.323 bind using I oopback0.
Registering should be at zone BR.
Step 3 On jour BR gateway. configure anew Vol Pdial peer (use tag 2002) thai routes all
calls to the site HQ with extensions 2XXX to Ihe gatekeeper. Remember lo applv the
same voice-class codec asfbr olher VoIP dial peers.
Step 4 Configure your IIQ gateu ay to register al the gatekeeper using these parameters:
Interface hind using Loopback 0.
The 11,323 interface should beLoopback 0.
11.323 hind using Loopback 0.
The H.323 gateway IDis HQ-gw.
Disable the registration ofextension 2012 (second line ofHQ phone 2).
Registeringshould be at zone IIQ.
Step 5 On your HQ gateway, configure anew VoIP dial peer (use tag 3002) that routes all
calls to the site BR with extensions 3XXX to the gatekeeper. Remember to apply the
same voice-class codec as for olher VoIP dial peers.
Activity Verification
Youhave completed this task when you attaintheseresults:
You were able tosee Ihe BR gateway registering at the galekeeper using ihe RAS
debugging and confirmed that the BR gateway had been registered.
You could confirm that the BR gateway had registered Ihe extension 3001 as F.164-ID.
You could confirm that the HQ gateway had been registered at the gatekeeper with the
correct 11.323 ID.
You could confirm that the HQ gateway had registered all extensions except 2012 as
F:.164-IDs.
When you placed an intersite call using an extension, the call succeeded. The calling
worked in both directions,
You examined the RAS registration and call admission messages using the debug ras and
debug h225 asnl commands, and you became familiar with Ihe H.323 debug output.
Implementing Cisco Voice Communications and QoS (CVOICE] v8.0 2010 Cisco Systems Inc
Task 3: Configure Call Admission Control
In this task, you will calculate the bandwidth requirements for one call and configure the zone
bandwidth for calls between theHQ and BR sites.
Activity Procedure
Complete these steps:
Step 1 Determine the codec that is used for intersite calling, and calculate the bandwidth
requirements for asingle call using the gatekeeper CAC calculation method. Write
these inthespace that is provided:
Note Remember that, actually, two different codecs can be negotiated between the gateways that
arebased onthe voice-class codec that isconfigured. For the calculation and CAC, you
must consider both codecs asthe initial call setup, though the gatekeeper will take into
account the worst codec of these two.
Step 2
Step 3
Activity Verification
Configure the gatekeeper CAC to allow amaximum ofone call between the zones in
each direction.
Enable detailed RAS debugging, and observe that the second interzone call is
rejected at the gatekeeper.
You have completed this task when you attain these results:
You calculated that asingle iLBC call requires 30.4 kb/s (rounded up to 31 kb/s). using the
gatekeeper CAC calculalion method (2xcodec rate).
You calculated that asingle G.729 call requires 16 kb/s, using the gatekeeper CAC
calculation method.
You verified that one call can be placed successfully between the sites, while the second
call will fail.
>2010 Cisco Systems, Inc
Lab Guide
Lab 5-2: Implementing Cisco Unified Border
Element
Complete this lab activity to practice what you learned in the related module.
Activity Objective
In this activity, you will implement fhe Cisco Unified Border Llcment features: protocol
interworking. various media flow methods, and codec transparency. Aller completing this
activ ity. you will be able tomeet these objectives:
Configure SIP-to-H.323 and H.323-to-H.323 protocol interworking
Implement codectransparent
Configure H.323-lo-ll.323 interworking
Implement media flow-around and media How-through
Visual Objective
The figure illustrates what youwill accomplish in thisactivitv.
Lab 5-2: Implementing Cisco Unified
Border Element
HO Phone t
2001
PODP
HQ Phone 2
2002
Required Resources
PSTN Phone-p
ICJsoi Unified IP phonsi
| P=pod number I
Ihese are the resources and equipment thai are required locomplete this activity:
Two Cisco Unified II* phones in your HQsite
One Cisco Unified IP phone in your BRsite
Implementing Cisco VoiceCommunications and QoS (CVOICE] v8 0
2010 Cisco Systems, Inc.
Command List
The table describes the commands that are used in this activity.
Cisco Unified Border Element-Related IOS Commands
Command
Description
voice service voip
Enters voice service voip configuration mode
allow-connections
Enables Cisco Unified Border Element protocol
interworking. Optionsare: H.323-to-H.323, SIP-
to-SIP, H.323-to-SIP, and SIP-to-H.323.
media flow-around | flow-through
Configuresmedia flow method. The default is
flow-through. This command is available in
voice service voip, dial peer, or voice class mode.
h323
Enters H323 configuration mode (fromvoice
service voip configuration mode)
eall start fast | slow |
interwork
Configures the H.323 signaling method. Default:
fast start.
codec transparent
Enables the dial peer to transparently pass the
codec proposals
codec
Configures a codec for a dial peer
show call active voice brief
Displays active call parameters, includingthe
RTP addresses
show voice call status
Displays brief informationabout active calls
show voip rtp connections
Displays RTP connections for active VoIP call
debug voip ipipgw
Monitors Cisco Unified Border Element
operations
debug ccsip messages
Monitors SIP messages
debug h225 events
Monitors H.225 events
debug h245 events
Debugs H.245 events
debug voip dialpeer
Monitorsthe matching of inbound and outbound
dial peers
Job Aids
Nojob aids are requiredto complete this labactivity.
Task 1: Configure Cisco Unified Border Element Functions
Inthis task, you will reconfigure yourdial plan toroute calls between your local HQ phones via
a BRgateway that works as anH.323-to-H.323 CiscoUnified Border F.lement.
Activity Procedure
Complete these steps:
Step1 On your HQgateway, configurea newVoIPdial peer (use lag 555) to sendall calls
to 5552XXX to the BR gateway:
Session target: Loopback 0 IP address of BR gateway
Codec: G.711 u-law
) 2010 Cisco Systems, Inc. Lab Guide 61
Step 2 On your HQ and BR gateways, modify the inbound VoIP dial peer (2) to accept only
the G.711 u-law codec.
Step 3 Onvour BR gateway, configure a newVoIP dial peer(usetag555)toreturn all calls
lo 5552XXX backto the HQgateway:
Session target: Loopback 0 IPaddress of IIQ gateway
Codec: G.711 u-law
Step4 Onyour IIQgateway, modifv the existingvoicetranslation rule that is associated
with the inbound VoIP dial peer, to remove 555 fromthe called number fbr the
inboundcall that is being returned back from BR.
Step 5 Trv to place a call between your HQ phones using the prefix 555 (for example, dia!
5552001 from IIQ phone 2). Yourcall will be blocked at the BRgateway, because it
lias nol been yet enabled for Cisco Unified Border Blemcnt functions.
Step 6 Lnablc Cisco Unified Border Element functions at the BR gateway toallow inbound
to outbound 5552XXX calling.
Step7 OnyourCisco Unified Border Element (BR), enable monitoring of Cisco Unitied
Border Element operations using the debug voipipipgw command, and place a call
between your HQphones, again using the prefix 555. This call should succeed.
Step 8 While the call isactive, issue tlie command showvoiprtp connections onyour
Cisco Unified BorderElement, to checkthe two call legsthat are associated withthe
call. Noticethat the remoteIPaddress is the same(IIQ gateway). Which codec is
used for this call? Write it in the space that is provided:
Activity Verification
You have completed this task when vou attain these results:
You successfully placed an H.323-to-ll.323 call via the Cisco Unified Border Element and
observed how the call wasset up usingthe debug voip ipipgw command.
You could see the two VoIP call legs thai terminated at your Cisco Unified Border Element
when thecall wasactive. Ihe Cisco Unified Border Element used the default flow-through
method.
Task 2: Configure Codec Transparency
In thistask, vouwill configure Cisco Unified BorderElement not to participate incodec
negotiations.
Activity Procedure
Complete these steps:
Step 1 On >our HQ gateway, reapply the voice-class codec to (he VoIP dial peer (555) that
routes calls between HQ phones via the Cisco Unified Border Element.
Step 2 On vour HQ gatewav. reapplv the voice-class codec lo the inbound VoIP dial peer
(2).'
Step 3 Configure vour Cisco Unified Border Element BR to or participate in codec
negotiations for the calls between HQ phones at the inbound and outbound dial peers
(2 and 555). and accept an\ codec that is determined by the HQ gateway.
Implementing Cisco Voice Communications and QoS (CVOICE) v8 0 2010 Cisco Systems. Inc
Step 4 Place a call between your HQ phones, using the prefix 555, and examine which
codec has now been used. Write the answer in the space that is provided:
Activity Verification
You have completed this task when you attain this result:
You could see that the Cisco Unified Border Element did not actively participate in codec
negotiations and that it accepted the codec that was proposed by the HQ gateway. The HQ
gateway negotiates codecs that are based on the voice-class codec priority thai is
configured.
Task 3: Configure SIP-to-H.323 Interworking and Media Flows
In this task, you will reconfigure your Cisco Unified Border Element and HQ gateway for SIP-
to-H.323 interworking and modify the Cisco Unified Border Element to media flow-around.
Activity Procedure
Complete these steps:
Step 1 On your HQ gateway, modify the outbound VoIP dial peer (555) that routes calls
between HQ phones via the Cisco Unified Border Element, to SIP.
Step 2 On your Cisco Unified Border Element, modify the inbound VoIP dial peer (2) to
SIP.
Step 3 Enable your Cisco Unified Border Element for SIP-to-H.323 interworking functions.
Step 4 On your Cisco Unified Border Element, enable the debug ccsip messages, and place
a call between HQ phones using the prefix 555. Observe the SIP messages that are
setting up the call. Which SIP mechanism is used for the call setup, early or delayed
offer? Write the answer in the space that is provided:
Step 5 Configure your Cisco Unified Border Element for media flow-around. Place a call,
and use the command show voip rtp connections to examine that no RTP
connections are terminated at the Cisco Unified Border Element.
Activity Verification
You have completed this task when you attain these results:
You reconfigured your Cisco Unified Border Element for SIP-to-II.323 interworking. and
the call via the Cisco Unified Border Element succeeded.
You observed SIP messages at the Cisco Unified Border Element as the call was setting up.
You could see that the early offer was used, since the SDP body was included in the SIP
INVITE message.
You could see that, if media flow-around was configured at the Cisco Unified Border
Element. RTP streams of an active call were not terminated at the Cisco Unified Border
Element.
) 2010 Cisco Systems, Inc Lab Guide 63
Lab 6-1: Implementing QoS Using Cisco
AutoQoS and Manual Configuration
Complete this lab activitv to practice what you learned in the related module.
Activity Objective
In this activitv. vou will implement fhe best-practice QoS mechanisms using Cisco AutoQoS
VoIP, and then \ou will manuallv tune the deployed QoS policy. Aller completing this activitv.
vou will be able to meet these objectives:
Configure AutoQoS VoIP on routers
Eine-tune the QoS policy on a switch
Verifv the operations of implemented QoS mechanisms
Visual Objective
The figure illustrates what vou will accomplish in this activity.
Lab 6-1: Using AutoQoS and Manual
Configuration
PODP
HO Phone 1
2001
HO Phone 2
2002
PSTN Phone-p
iGscuUnified IPpfto
P = pod number
Required Resources
64
These are the resources and equipment that arc required to complete this activity:
Two Cisco Unified IP phones in your [[Q site
One Cisco Unified IP phone in vour BR sile
Implementing Cisco Voice Communications and QoS (CVOICE) v8.0 2010 Cisco Systems. Inc.
Command List
The table describes the commands that are used in this activity.
Router QoS Commands
Command Description
clock rate
Configures the clock rate on a serial interface
bandwidth
Configures the available bandwidth on an
interface
auto qos voip Configures the AutoQoS VoIP feature. Available
in interface, subinterface, of Frame Relay DLCI
configuration mode.
priority Allocates specified bandwidth to the high-priority
queue
show auto qos
Displays the QoS policy that is deployed by
AutoQoS VoIP
show policy-map Displays the configured policy maps
Job Aids
No job aids are required to complete this lab activity.
Task 1: Evaluate VoIP Quality Without QoS Applied
In this task, you will examine VoIP quality when no QoS mechanisms are being used on the
routers.
Activity Procedure
Complete these steps:
Step 1 Ask the instructor to lower the clock rate on the WAN links to your HQ and BR
routers to 64.000.
Step 2 Simulate a heavy load by flooding the WAN using the ping command:
From the HQ gateway towards the BR gateway loopback (I IP address
Generate ping with 1000 packets, with a packet size of 5000 bytes
Syntax example (p is your pod number): ping 10.p.250.102 size 5000 repeat
1000
Note If you want fo interrupt the flood, simultaneously press Ctrl-Shift-6, followed by x.
Step 3 While the WAN link is congested, place an intersite direct call (that does not involve
the gatekeeper or Cisco Unified Border Element) by dialing while using a site code.
(For inslance, from an I IQ phone dial 820-3001, or in the opposite direction dial
810-2002.) Examine the audio quality in this way:
Speak into one receiver and listen to the sound al the other end. You should hear
a distinguishable delay.
On any participating phone, press the Settings button, select Status >Call
Statistics, and examine the parameters that are shown. The expected
approximate values are shown in the activity verification section.
2010 Cisco Systems, Inc Lab Guide 65
Activity Verification
You have completed this lask when you attain these results:
You saw that Hooding the network with traffic caused perceptible delay.
You examined VoIP statistics and determined values in approximately these ranges:
A\erage jitter: 20-500 ms
Maximum jitter: 500-700 ms
Task 2: Configure AutoQoS VoIP
In this task, you will configure AutoQoS VoIP on the I IQ and BR gateways.
Activity Procedure
Complete these steps:
Step 1 On the HQ gateway, configure the correct bandwidth of 160 kb/s al the Serial
subinterface that represents the Frame Relay PVC to BR site (Serial0/l/0.l2l).
Step 2 On the BR gateway configure the correcl bandwidlh of 160kb/s at the Serial
subinterface that represents the Frame Relay PVC to FIQsite (Serial0/l/0.l 11).
Step 3 On the IIQ gateway. enter the interface-DLCI configuration mode for the DLCI 121.
and enable the AutoQoS VoIP feature while trusting the DSCP markers that are
received over the WAN.
Step 4 On the BR gateway, enter the interface-DLCI configuration mode for the DLCI 111,
and enable the AutoQoS VoIP feature while trusting the DSCP markers that are
reeehed over the WAN,
Step 5 Display the QoS policy that is generated with AutoQoS.
Activity Verification
You have completed this task when you attain this result:
You examined the QoS policy that was deployed on the galeways when Cisco AutoQoS
was activated, using appropriate commands, including the show auto qos command.
Task 3: Fine-Tune QoS Policy
In this task, you will fine-tune the QoS policy that has been deployed by Ihe Cisco AutoQoS
VoIP feature.
Activity Procedure
Complete these steps:
Step 1 Calculate the bandwidthrequirement (including Layer 2) for a single VoIP eall,
using the follow ing formula:
BW= (codec payload + Layer 3+overhead + Layer 2 overhead) * packet rate *
8 bils per byte, with the following arguments:
G.729 payload: 20 bytes
Layer 3+ o\erhead (cR'I'P): 2 bytes
I aycr 2 overhead (FRF. 12): 8 bytes
Packet rate: 50 p/s
Implementing Cisco Voice Communications andQoS(CVOICE) vS.O 2010CiscoSystems, Inc.
Step 2 Examine how many calls are supported by the bandwidth that is allocated to the
LLQ that is provisioned by AutoQoS VoIP.
Step 3 On the HQ and BR gateways, reduce the LLQ bandwidth to support only two G.729
calls.
Step 4 Simulate a heavy load by flooding the WAN using the ping command:
From the HQ gateway towards Ihe BR gateway loopback 0 IP address
Generate ping with 1000 packets, with a packet size of 5000 bytes
Syntax example (p is your pod number): ping 10.p.250.102 size 5000 repeat
1000
Step 5 While the WAN link is congested, place an intersite direct call by dialing using a
site code. (For instance, from an HQ phone dial 820-3001, or in the opposite
direction dial 810-2002.) Examine the audio quality when QoS is implemented.
Compare the results with the Task 1 results.
Activity Verification
You have completed this task when you attain these results:
You calculated that a single G.729 call with cRTP over FRF.12 requires 12 kb/s.
You calculated that two calls (24 kb/s) require 15 percent of a 160 kb/s total bandwidth.
You allocated 15percent of total bandwidth to the LLQand verified the setting using an
appropriate command, such as show policy map.
You evaluated VoIP quality with the same congestion in the WANand noticed an
impro\ ement in perceived voice quality due to shorter delay.
You examined VoIP statistics on the communicating phones and observed the values in
approximately these ranges:
Average jitter: 2 to 40 ms
Maximumjitter: 100 to 180 ms
2010CiscoSystems,lnc. LabGuide 67
Answer Key
The correct answers and expected solutions fbr the activilies that are described in this guide
appear here.
Lab 1-1 Answer Key: Configuring Voice Ports
Ihe HQ gateway configuration should be like the following:
Task l. Step I:
ip dhep pool HQl-Phones
! p is your pod number
network 10.p.2.0 255.255.255.0
default-router 10.p.2.101
option 150 ip 10.p.250.101
Task 2. Step I:
telephony-service
max-ephones 5
max-dn 20
! p is your pod number
ip source-address 10.p.250.101 port 2000
auto assign 1 to 2
Task 2. Step 2:
ephone-dn 1 dual-line
number 5552001
;
ephone-dn 2 dual-line
number 5552002
I
Task 3. Step 1:
network-clock-participate wic 0
r
Task 3. Step 2:
isdn switch-type primary-net5
lask 3. Step 3:
controller El 0/0/0
pri-group timeslots 1-8,16
f ask 4. Step 1:
dial-peer voice 7 pots
destination-pattern 0[2-9]
port 0/0/0:15
dial-peer voice 10 pots
nplementrng Cisco Voice Communications and QoS (CVOICE] v8 0 2010 Cisco Systems. Inc.
destination-pattern 00[2-9]
forward-digits 11
port 0/0/0:15
dial-peer voice 9011 pots
destination-pattern 000T
prefix 00
port 0/0/0:15
t
Task 4. Step 2:
dial-peer voice 112 pots
destination-pattern 112
port 0/0/0:15
forward-digits all
dial-peer voice 1120 pots
destination-pattern 0112
forward-digits 3
port 0/0/0:15
i
Task 5. Step 1:
dial-peer voice 1 pots
incoming called-number .
direct-inward-dial
i
The BR gateway configurationshould be like the following:
Task 1. Step 2:
ip dhcp pool BRl-Phones
l p is your pod number
network 10.p.4.0 255.255.255.0
default-router 10.p.4.102
option 150 ip 10.p.250.102
i
Task 2. Step 4:
telephony-service
max-ephones 5
max-dn 10
! p is your pod number
ip source-address 10.p.250.102 port 2000
auto assign 1 to 1
i
Task 2. Step 5:
ephone-dn 1 dual-line
number 5553001
i
Task 3. Step 4;
network-clock-participate wic 0
2010 Cisco Systems, Inc. Lab Guide 69
isdn switch-type primary-ni
i
controller El 0/0/0
pri-group timeslots 1-8
i
Iask 6. Step I
dial-peer voice 7 pots
destination-pattern 9[2-9 ]
port 0/0/0:15
dial-peer voice 10 pots
destination-pattern 91[2-9 j..[2-9
port 0/0/0:15
prefix 1
dial-peer voice 9011 pots
destination-pattern 901IT
port 0/0/0:15
prefix 011
1ask 6. Step 2
dial-peer voice 911 pots
destination-pattern 911
forward-digits all
port 0/0/0:15
dial-peer voice 9911 pots
destination-pattern 9911
forward-digits 3
port 0/0/0:15
Task 7. Step I
dial-peer voice 1 pots
incoming called-number .
direct-inward-dial
Lab 1-2 Answer Key: Configuring DSPs
The HQ gatewav configuration should include these commands:
Task I. Step 4:
ephone 1
codec ilbc
r
"lask2. Step 2:
voice-card 0
codec complexity medium
implemenling Cisco Voice Communications and OoS (CVOICE) vS.O 2010 Cisco Systems. Inc
Task 2. Step 6:
voice-card 0
codec complexity flex
i
Lab 2-1 Answer Key: Configuring VoIP Call Legs
The HQ gateway configuration should belike the following:
Task I, Step I:
dial-peer voice 3000 voip
'. p is your pod number
session target ipv4:10.p.250.102
destination-pattern 5553...
no vad
i
Task 2. Step 1:
dial-peer voice 3000 voip
codec g723r53
i
Task 3. Step 1:
voice class codec 1
codec preference 1 g723r53
codec preference 2 ilbc
codec preference 3 g729br8
i
Task 3. Step 2:
dial-peer voice 3000 voip
no codec g723r53
voice-class codec 1
i
Task 4. Step 1:
no voice class codec 1
voice class codec 1
codec preference 1 g729br8
codec preference 2 ilbc
;
Task 4. Step 2:
dial-peer voice 3000 voip
voice-class codec 1
i
Task 5. Step 1:
voice service voip
h323
call start slow
2010Cisco Systems, Inc
Lab Guide
Task 5. Step 3:
interface LoopbackO
! p is your pod number
h323-gateway voip bind sreaddr 10.p.250.101
Task 6. Step 1:
dial-peer voice 3001 voip
! p is your pod number
session target ipv4:10.p.250.102
destination-pattern 5553...
session protocol sipv2
i
Task 6. Step 2:
dial-peer voice 3000 voip
preference 1
I
Task 6. Step 4:
voice service voip
sip
bind all source-interface LoopbackO
i
Task 6 verification:
dial-peer voice 3001 voip
shutdown
The BR gatewav conllguration should be likethe following:
Task 3. Step 3:
voice class codec 1
codec preference 1 ilbc
codec preference 2 g723r53
codec preference 3 g729br8
j
l'ask 3. Slep 4:
dial-peer voice 2000 voip
destination-pattern 5552...
! p is your pod number
session target ipv4:10.p.250.101
voice-class codec 1
;
Task 4. Step 1:
no voice class codec 1
voice class codec 1
codec preference 1 g729br8
codec preference 2 ilbc
72 Implementing Csco Voice Communications and QoS (CVOICE) v8 0 2010 Cisco Systems, Inc.
Task 4. Step 2:
dial-peer voice 2000 voip
voice-class codec 1
;
Task 5. Step 3:
interface LoopbackO
! p is your pod number
h323-gateway voip bind sreaddr 10.p.250.102
I
Lab 3-1 Answer Key: Configuring Cisco Unified
Communications Manager Express to Support Endpoints
TheHQ gateway configuration should belike thefollowing:
Task I. Step I:
telephony-service
no auto assign 1 to 2
no auto-reg-ephone
Task L, Step 2:
no ephone 1
no ephone
7
2
Task 1. Step 3:
no ephone--dn 1
no ephone--dn 2
Task 2. Steps 2 to 4:
telephony-service
protocol mode dual-stack preference ipv4
cnf-file location flash:
cnf-file perphone
time-format 24
date-format dd-mm-yy
create cnf-files
I
Task 3. Step I:
ephone-dn 1 dual-line
number 5552001
i
ephone-dn 2 dual-line
number 5552002
t
ephone-dn 3 dual-line
2010 Cisco Systems, Inc.
Lab Guide 73
number 5552011
i
ephone-dn 4 dual-line
number 5552012
ephone-dn 5 dual-line
number 5552003
r
Task 3. Step 2:
ephone 1
mac-address 0024.c445.5233
type 7965
button 1:1 2:3
['ask 3. Step 3:
ephone 2
mac-address 0024.C445.4B7F
type 7965
button 1:2 2:4 3:5
i
Task 3. Step 5
telephony-service
create cnf-files
r
Task 4 (Optional). Step?
ephone-dn 6 dual-line
number 5552004
ephone 3
mac-address 0016.4155.B50B
type CIPC
button 1:6
j
The BR gateway configuration should include these commands:
Task l.Step 1:
telephony-service
no auto assign 1 to 1
no auto-reg-ephone
I
Task I. Step 2:
no ephone 1
Task I. Step 3:
no ephone-dn 1
74 Implementing Cisco Voice Communications and OoS (CVOICE) v8.0 2010 Cisco Systems, Inc.
1
Task 2. Step 5:
telephony-service
protocol mode dual-stack preference ipv4
cnf-file location flash:
cnf-file perphone
create cnf-files
i
Task 3. Step 6:
ephone-dn 1 dual-line
number 5553001
i
ephone 1
mac-address 0024.C445.4B48
type 7965
button 1:1
;
telephony-service
create cnf-files
i
Lab 4-1 Answer Key: Implementing Digit Manipulation
The HQ gateway configuration should be like the following (this isthe pod I configuration):
Task 2. Step 1
ephone-dn 1
number 2001
i
ephone-dn 2
number 2002
i
ephone-dn 3
number 2011
t
ephone-dn 4
number 2012
i
ephone-dn 5
number 2003
i
ephone 1
restart
j
ephone 2
restart
i
Task 3. Step I
2010 Cisco Systems. Inc . . _ ..
Lab Guide 75
voice translation-rule 1
rule 1 /A2/ /5552/
i
voice translation-profile pstn-out
translate calling 1
r
voice-port 0/0/0:15
translation-profile outgoing pstn-out
Task4. Step I
voice translation-rule 2
rule 1 /.*/ IOf.1 type subscriber subscriber
rule 2 /.*/ /OOS/ type national national
rule 3 /.*/ /OOOf./ type international international
voice translation-rule 3
rule 1 /"5552/ 111
rule 2 /"5115552/ 121
rule 3 /"555115552/ 111
voice translation-profile pstn-in
translate calling 2
translate called 3
i
voice-port 0/0/0:15
translation-profile incoming pstn-in
lask 5. Step 1:
voice translation-rule 4
rule 1 /"2/ /8102/
i
voice translation-profile intersite-out
translate calling 4
i
dial-peer voice 3000 voip
destination-pattern 820....
translation-profile outgoing intersite-out
r
voice translation-rule 5
rule 1 /-8102/ 111
i
voice translation-profile intersite-in
translate called 5
dial-peer voice 2 voip
incoming called-number .
translation-profile incoming intersite-in
76 Implementing Cisco Voice Communications and QoS (CVOICE) v8.0 2010 Cisco Systems, Inc.
voice-class codec 1
The BR gateway configuration should be like the following (this isthe pod I configuration]
Task 1. Step 3
voice translation-rule 1
rule 1 /'9011.*/ /&/ type any unknown
t
voice translation-profile fix-Oil
translate called 1
i
Task I, Step 4
voice-port 0/0/0:15
translation-profile outgoing fix-Oil
t
Task 2. Step 2:
ephone-dn 1
number 3001
i
ephone 1
restart
i
Task 3. Step 2:
voice translation-rule 2
rule 1 l'3l 155531
j
voice translation-profile pstn-out
translate called 1
translate calling 2
i
voice-port 0/0/0:15
translation-profile outgoing pstn-out
i
Task 4. Step 2:
voice translation-rule 3
rule 1 /.*/ /9s/ type subscriber subscriber
rule 2 /.*/ I91&I type national national
rule 3 /.*/ /901W type international international
i
voice translation-rule 4
rule 1 /'5553/ 131
rule 2 /*5215553/ 131
rule 3 /"665215553/ 131
i
voice translation-profile pstn-in
translate calling 3
>2010Cisco Systems, Inc
Lab Guide
translate called 4
i
voice-port 0/0/0:15
translation-profile incoming pstn-in
Task 5. Step 2:
voice translation-rule 5
rule 1 /"3/ /8203/
i
voice translation-profile intersite-out
translate calling 5
i
dial-peer voice 2000 voip
destination-pattern 810... .
translation-profile outgoing intersite-out
i
voice translation-rule 6
rule 1 /-8203/ 131
i
voice translation-profile intersite-in
translate called 6
i
dial-peer voice 2 voip
incoming called-number .
translation-profile incoming intersite-in
voice-class codec 1
I
Lab 4-2 Answer Key: Implementing Path Selection
The HQ gatewa> configuration should be like the following (this is the pod 1configuration):
Task I. Step 1:
dial-peer voice 3005 pots
preference 2
destination-pattern 820....
port 0/0/0:15
i
Task 1. Step 2:
voice translation-rule 6
rule 1 I'll /555115552/ type any international
i
voice translation-rule 7
rule 1 /"820/ /0066521555/
i
voice translation-profile pstn-backup
translate calling 6
translate called 7
Implementing Cisco Voice Communications and OoS (CVOICE) v8 0
2010 Cisco Systems, Inc.
Task 1. Step 3:
dial-peer voice 3005 pots
translation-profile outgoing pstn-backup
!
Task 3. Step 1:
dial-peer voice 6600 voip
destination-pattern 00066T
session target ipv4:10.1.250.102
voice-class codec 1
I
Task 3. Step 2:
voice translation-rule 8
rule 1 /"00066/ /91/
j
voice translation-profile teho-out
translate calling 6
translate called 8
I
dial-peer voice 6600 voip
translation-profile outgoing teho-out
i
TTie BR gateway configuration should be like the following (this is the pod 1 configuration):
Task 2. Step 1:
dial-peer voice 2005 pots
preference 2
destination-pattern 810....
port 0/0/0:15
i
Task 2. Step 2:
voice translation-rule 7
rule 1 /"3/ /665215553/ type any international
i
voice translation-rule 8
rule 1 /"810/ /01155511555/
i
voice translation-profile pstn-backup
translate calling 7
translate called 8
i
Task 2. Step 3:
dial-peer voice 2005 pots
translation-profile outgoing pstn-backup
i
Task 2. Step 4:
voice translation-rule 1
2010 Cisco Systems. Inc. Lab Guide 79
rule 1 /"9011.*/ /&/ type any unknown
rule 2 7*011.*/ /&/ type any unknown
i
Task 4. Step 1:
dial-peer voice 5500 voip
destination-pattern 901155T
session target ipv4:10.1.250.101
voice-class codec 1
I ask 4. Step 2:
voice translation-rule 9
rule 1 /'901155/ 1001
voice translation-profile teho-out
translate calling 7
translate called 9
dial-peer voice 5500 voip
translation-profile outgoing teho-out
;
Lab 4-3 Answer Key: Implementing Calling Privileges
The HQgateway configuration shouldinclude these commands:
Task 1. Step 2:
dial-peer cor custom
name emergency
name local
name national
name intl
i
Task L Step 3:
dial-peer cor list emergency-out
member emergency
i
dial-peer cor list local-out
member local
r
dial-peer cor list national-out
member national
dial-peer cor list intl-out
member intl
i
dial-peer cor list lobby
member emergency
Implementing Cisco Voice Communications and QoS (CVOICE) v80 2010 Cisco Systems. Inc
dial-peer cor list sales
member emergency
member local
member national
t
Task 1. Step 4:
dial-peer voice 7 pots
corlist outgoing local-out
i
dial-peer voice 10 pots
corlist outgoing national-out
i
dial-peer voice 9011 pots
corlist outgoing intl-out
i
dial-peer voice 112 pots
corlist outgoing emergency-out
i
dial-peer voice 1120 pots
corlist outgoing emergency-out
i
ephone-dn 3
number 2011
corlist incoming lobby
i
ephone-dn 4
number 2012
corlist incoming sales
r
The BR gateway configuration should include these commands:
Task 2. Step 2:
dial-peer cor custom
name emergency
name local
name block
i
Task 2. Step 3:
dial-peer cor list emergency-out
member emergency
i
dial-peer cor list local-out
member local
i
dial-peer cor list employee
member emergency
member local
>2010 Cisco Systems, Inc. ' '
Lab Guide
dial-peer cor list block
member block
i
Task 2. Step 4:
dial-peer voice 7 pots
corlist outgoing local-out
i
dial-peer voice 10 pots
corlist outgoing block
i
dial-peer voice 9011 pots
corlist outgoing block
i
dial-peer voice 911 pots
corlist outgoing emergency-out
j
dial-peer voice 9911 pots
corlist outgoing emergency-out
ephone-dn 1
number 3001
corlist incoming employee
i
Lab 5-1 Answer Key: Implementing Gatekeepers
The UQ gateway configuration should be like ihe following (this is the pod Iconfiguration):
Task I. Steps I to 3:
gatekeeper
zone local HQ cisco.com 10.1.250.101
zone local BR cisco.com
zone prefix HQ 2...
zone prefix BR 3...
no shutdown
;
Task2. Step 4:
interface LoopbackO
ip address 10.1.250.101 255.255.2 55.255
h323-gateway voip interface
h323-gateway voip id HQ ipaddr 10.1.250.101
h323-gateway voip h323-id HQ-gw
h323-gateway voip bind sreaddr 10.1.250.101
ephone-dn 4
number 2012 no-reg
gateway
.- ^^ c .r\rnirp* ft n 2010 Cisco Systems, Inc
nplementmg Cisco Voice Communications and QoS (CVOICE) v8 0
Task 2. Step 5:
dial-peer voice 3002 voip
destination-pattern 3...
session target ras
voice-class codec 1
i
Task 3. Step 2:
gatekeeper
bandwidth interzone zone HQ 31
bandwidth interzone zone BR 31
i
The BRgateway configuration should be likethe following (thisisthe pod I configuration):
Task 2. Step 2:
interface LoopbackO
ip address 10.1.250.102 255.255.255.255
h323-gateway voip interface
h323-gateway voip id BR ipaddr 10.1.250.101 1719
h323-gateway voip bind sreaddr 10.1.250.102
i
gateway
i
Task 2. Step 3:
dial-peer voice 2002 voip
destination-pattern 2...
session target ras
voice-class codec 1
t
Lab 5-2 Answer Key: Implementing Cisco Unified Border
Element
The 1IQ gateway configuration should be like the following (this is the pod 1 configuration):
Task 1. Step 1:
dial-peer voice 555 voip
destination-pattern 5552...
session target ipv4:10.1.250.102
codec g711ulaw
;
Task 1. Step 2:
dial-peer voice 2 voip
translation-profile incoming intersite-in
incoming called-number .
no voice-class cl
codec $711ulaw
2010 Cisco Systems, Inc. Lab Guide 83
ask I. Step 4:
voice translation-profile intersite-in
translate called 5
r
voice translation-rule 5
rule 1 /"8102/ 111
rule 2 /-5552/ IZl
;
fask2. Step 1:
dial-peer voice 555 voip
voice-class codec 1
i
Task 2. Step 2:
dial-peer voice 2 voip
voice-class codec 1
i
Task 3, Step I:
dial-peer voice 555 voip
session protocol sipv2
r
The BR gatewav configuration should he like the following (this is fhe pod I configuration):
Task I. Step 2:
dial-peer voice 2 voip
translation-profile incoming intersite-in
incoming called-number .
no voice-class codec
codec g711ulaw
i
Task I. Step 3:
dial-peer voice 555 voip
destination-pattern 5552...
session target ipv4:10.1.250.101
codec g711ulaw
lask 1. Step 6:
voice service voip
allow-connections h323 to h323
Task 2. Step 3:
dial-peer voice 2 voip
codec transparent
r
dial-peer voice 555 voip
codec transparent
Implementing Cisco Voice Communications andQoS(CVOICE) v8.0 2010CiscoSystems, Inc.
Task 3. Step 2:
dial-peer voice 2 voip
session protocol sipv2
i
Task 3. Step 3:
voice service voip
allow-connections sip to h323
j
Task 3. Step 5:
voice service voip
media flow-around
j
Lab 6-1 Answer Key: Implementing QoS Using CiscoAutoQoS
and Manual Configuration
You should configure your HQ gateway with these commands (this is the pod I configuration):
Task 2. Step I:
interface SerialO/1/0.121 point-to-point
description to BR-1
bandwidth 160
i
Task 2, Step 3:
interface SerialO/1/0.121
frame-relay interface-dlci 121
auto qos voip trust
t
Task 3. Step 3:
policy-map AutoQoS-Policy-Trust
class AutoQoS-VoIP-RTP-Trust
priority percent 15
r
The HQ gatewav configuration should be like the following (this is the pod Iconfiguration):
class-map match-any AutoQoS-VoIP-RTP-Trust
match ip dscp ef
class-map match-any AutoQoS-VoIP-Control-Trust
match ip dscp cs3
match ip dscp af31
i
policy-map AutoQoS-Policy-Trust
class AutoQoS-VoIP-RTP-Trust
priority percent 15
class AutoQoS-VoIP-Control-Trust
bandwidth percent 5
>2010 Cisco Systems. Inc.
Lab Guide 85
class class-default
fair-queue
r
interface SerialO/1/0
no ip address
encapsulation frame-relay
no keepalive
frame-relay traffic-shaping
i
interface SerialO/1/0.121 point-to-point
description to BR-1
bandwidth 160
ip address 10.1.6.101 255.255.255.0
frame-relay interface-dlci 121
class AutoQoS-FR-SeO/1/0-121
auto qos voip trust
frame-relay ip rtp header-compression
i
map-class frame-relay AutoQoS-FR-SeO/1/0-121
frame_reiay cir 160000
frame-relay be 1600
frame-relay be 0
frame-relay mincir 160000
frame-relay fragment 80
service-policy output AutoQoS-Policy-Trust
i
You should configure vour BR gateway wilh these commands (this is the pod 1configuration):
Task 2. Step 2:
interface SerialO/1/0.Ill point-to-point
description to HQ-1
bandwidth 160
i
Task 2. Step 4:
interface SerialO/1/0.Ill
frame-relay interface-dlci 111
auto qos voip trust
I
Task 3. Step 3:
policy-map AutoQoS-Policy-Trust
class AutoQoS-VoIP-RTP-Trust
priority percent 15
The BR gatewav- configuration should be like the following (this is the pod 1configuration):
class-map match-any AutoQoS-VoIP-RTP-Trust
match ip dscp ef
class-map match-any AutoQoS-VoIP-Control-Trust
Z fn c ,r\imrci us il 2010 Cisco Systems, Inc.
Implementing Cisco Voice Communications and OoS (CVOICE) v8 0
match ip dscp cs3
match ip dscp af31
i
policy-map AutoQoS-Policy-Trust
class AutoQoS-VoIP-RTP-Trust
priority percent 15
class AutoQoS-VoIP-Control-Trust
bandwidth percent 5
class class-default
fair-queue
!
interface SerialO/1/0
no ip address
encapsulation frame-relay
no keepalive
frame-relay traffic-shaping
I
interface SerialO/1/0.Ill point-to-point
description to HQ-1
bandwidth 160
ip address 10.1.6.102 255.255.255.0
frame-relay interface-dlci 111
class AutoQoS-FR-SeO/1/0-111
auto qos voip trust
frame-relay ip rtp header-compression
i
map-class frame-relay AutoQoS-FR-SeO/1/0-111
frame-relay cir 160000
frame-relay be 1600
frame-relay be 0
frame-relay mincir 160000
frame-relay fragment 80
service-policy output AutoQoS-Policy-Trust
) 2010 Cisco Systems, Inc. Lab Guide 87
Implementing Cisco Voice Communications and QoS (CVOICE) v8.0 2010 Cisco Systems, Inc.