Professional Documents
Culture Documents
Deploying Enterprise SIP Trunks With CUBE, CUCM and MediaSense SBC PDF
Deploying Enterprise SIP Trunks With CUBE, CUCM and MediaSense SBC PDF
• Lab Overview
• Network Setup / Topology
• Tasks
• Lab Access
Objectives
• Provide a quick overview of SIP basics, CUCM, CUBE and MediaSense
• Understand and deploy a working ITSP SIP trunk for making and receiving
calls
• Understand how to capture and analyze CUCM traces and CUBE debugs to
troubleshoot SIP issues using available tools
• To leave participants with good understanding of CUCM, CUBE and
MediaSense SIP Trunk operation and monitoring
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 3
CUBE Overview
CUBE (Enterprise) Product Portfolio
50-150 ASR 1004/6 RP2
Introducing CUBE on ASR 1002-X
50-100 CSR
ASR 1001-X
vCUBE [Performance
dependent on vCPU and ISR 4451-X
memory] ISR 4431
20-35 3900E Series ISR-G2
(3925E, 3945E)
CPS
ISR 4351
17
8-12
2900 Series
ISR-G2 (2901, 2911, 2921, 2951) Note: SM-X-PVDM module
supported on XE3.16 or
<5
later for ISR 4K platforms
800 ISR
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 6
Introducing IOS-XE Release 16
• New OS from the platform team with the intent of consolidating OS’ on different
product portfolio
• UX will be the same as IOS-XE, no difference to end user
• IOS-XE Release 16.3.1 support for UC (CUBE, CME, SRST)
Impacts XE based (ASR1K, ISR4K, and vCUBE) platforms
There will be no CUBE 11.5.1 for the XE based platforms [ASR1K, ISR4K,
vCUBE]. CUBE 11.5.2 (July 2016 release) will have newer and March 2016
features for the XE based platforms introduced in IOS-XE release 16.3.1
IOS-XE 16 requires a minimum of ASR1001-X, 1002-X, 1004/1006 RP2,
ESP20 (Embedded Service Processor, SIP40 (SPA Interface processor)
It will include all features up to and including IOS-XE 3.17 as well
• Due to new hardware requirements, customers will have the following migrations
options as IOS-XE 3.17 rebuilds will stop by June 2017
Replace unsupported ASR1K hardware and upgrade to IOS-XE 16.3.1 or later
and continue to enjoy new feature set/support for any issues
Drop using new feature set and move back to IOS-XE3.16 long maintenance
release for longer support
7 LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public
CUBE Software Release Mapping
ISR G2 CUBE Ent ASR 1K1 / ISR-4K1/vCUBE (CSR)1
ASR Parity
CUBE Vers. 2900/ 3900 FCS with ISR CUBE Vers. IOS XE Release FCS
11.0.0 15.5(2)T Mar 2015 >95% 11.0.0 3.15 15.5(2)S Mar 2015
11.1.0 15.5(3)M July 2015 >95% 11.1.0 3.16 15.5(3)S July 2015
11.5.0 15.6(1)T Nov 2015 >95% 11.5.0 3.17 15.6(1)S Nov 2015
CUBE Vers. 2900/ 3900 FCS CUBE Vers. IOS XE Release 16 2 FCS
2 IOS-XE 16 requires a minimum of ASR1001-X, 1002-X, 1004/1006 RP2, ESP20 (Embedded Service Processor, SIP40 (SPA
Interface processor)
3 IOS-XE release 16.2.1 does not support CUBE functionality on the platforms. There is no CUBE version 11.5.1 for the XE
based platforms. All CUBE features from 11.5.0 (IOS-XE 3.17) and earlier versions along with CUBE 11.5.1 (March 2016 release)
on ISR G2 are included in CUBE release 11.5.2 for the IOS-XE based platforms, IOS-XE release 16.3.1 [July 2016 release]
4 IOS 15.6(2)T will show CUBE Release version to be 12.0.0 but due to DDTS# CSCuz43735, rebuilds for this release train will
align to CUBE release 11.5.1, that is 15.6(2)T1/T2/T3/T4 and so on will be CUBE version 11.5.1
8 LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public
CUBE Software Release Mapping – Earlier Releases
ISR G2 CUBE Ent ASR 1K Series
ASR Parity
CUBE Vers. 2900/ 3900 FCS with ISR CUBE Vers. IOS XE Release FCS
8.5 15.1(2)T July 2010 <50% 1.4 3.2 15.1(1)S Nov 2010
8.6 15.1(3)T Nov 2010 <50% 1.4.1 3.3 15.1(2)S March 2011
8.7 15.1(4)M April 2011 ~50% 1.4.2 3.4 15.1(3)S July 2011
8.8 15.2(1)T July 2011 ~70% 1.4.3 3.5 15.2(1)S Nov 2011
8.9 15.2(2)T Nov 2011 >80% 1.4.4 3.6 15.2(2)S Mar 2012
15.2(3)T/
9.0 Mar 2012 >85% 9.0 3.7 15.2(4)S July 2012
15.2(4)M
9.0.1 15.3(1)T Oct 2012 >95% 9.0.1 3.8 15.3(1)S Oct 2012
9.0.2 15.3(2)T Mar 2013 >95% 9.0.2 3.9 15.3(2)S Mar 2013
9.5.1 15.3(3)M1 Oct 2013 >95% 9.5.1 3.10.1 15.3(3)S1 Oct 2013
10.0.0 15.4(1)T Nov 2013 >95% 10.0.0 3.11 15.4(1)S Nov 2013
10.0.1 15.4(2)T Mar 2014 >95% 10.0.1 3.12 15.4(2)S Mar 2014
9 LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public
CUBE Software Release Mapping – Earlier Releases
ISR G2 CUBE Ent ASR 1K / ISR-4K Series
CUBE ASR Parity CUBE
2900/ 3900 FCS with ISR IOS XE Release FCS
Vers. Vers.
10.0.2 15.4(3)M July 2014 >95% 10.0.2 3.13 15.4(3)S July 2014
10.5.0 15.5(1)T Nov 2014 >95% 10.5.0 3.14 15.5(1)S Nov 2014
10 LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public
CUBE Interoperability
• Validated with Service
Providers World-Wide
• Independently Tested
with 3-Party PBXs in
tekVizion Labs
• Standards based
Verified by
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public
Collaboration Deployment
Enterprise LAN ITSP WAN (SIP Provider)
PSTN (PRI/FXO)
Unified CM TDM Backup
(Not available in vCUBE)
PSTN
CUBE
SIP
H.323
RTP
MediaSense
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public
CUBE Licensing
For Your
CUBE ISR(G2/4K), ASR and CSR Licensing Reference
Redundancy Licenses
Platform Single-Use Licenses
( 1 SKU for Active/Standby Pair)
FL-CUBEE-5 FL-CUBEE-5-RED
ISR G2 (2901, 2911, 2921, 2951, 3925, 3945,
FL-CUBEE-25 FL-CUBEE-25-RED
3925E, 3945E)
FL-CUBEE-100 FL-CUBEE-100-RED
FL-CUBEE-5 FL-CUBEE-5-RED
ISR-4K (4321, 4331, 4351, 4431, 4451)
FL-CUBEE-25 FL-CUBEE-25-RED
FL-CUBEE-100 FL-CUBEE-100-RED
FLASR1-CUBEE-100P FLASR1-CUBEE-100R
Cisco ASR1001-X, 1002-X, 1004 RP2, 1006 RP2 FLASR1-CUBEE-4KP FLASR1-CUBEE-4K-R
FLASR1-CUBEE-16KP FLASR1-CUBEE-16KR
http://www.cisco.com/c/en/us/products/collateral/unified-communications/unified-border-
element/order_guide_c07_462222.html
14 LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public
CUBE Licensing FAQs
• How to enable CUBE feature set?
General information on IOS Software Activation (licensing) can be found here .
1. For ISR G2s/4K series, install the UCK9 package license to access all the voice features including CUBE. For SIP
TLS/SRTP, SEC-K9 license is also required.
2. For ASR1K series, Advanced IP Services or Advanced Enterprise Services package/image needs to be installed for CUBE
3. For vCUBE (CUBE on CSR 1000v), APPX (no TLS/SRTP) or AX (ALL vCUBE features) package license needs to be
installed to access the CUBE feature set and upgrade from the default throughput of 100 kbps
4. For 8XX series, Advanced IP services or higher is needed to access the NanoCUBE feature set
5. Once the platform is ready, CUBE license needs to be purchased to start using the feature set
6. The RED SKUs require a separate SMARTNET and do not need any additional Single-Use case SKUs
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 15
CUBE Licensing FAQs – Cont’d
• What constitutes as a session?
A session is a single audio or a video call across the CUBE, regardless of call legs. Some vendors consider one
call as two sessions.
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 16
CUBE Call Flow
CUBE Call Processing
CUBE
Actively involved in the call treatment,
signaling and media streams
SIP B2B User Agent IP
Media Flow-Through IP
Media Flow-Around
Media Flow-Around
Digital Signal Processors (DSPs) are only Only Signaling is terminated by CUBE
required for transcoding (calls with Media bypasses the Cisco Unified Border
dissimilar codecs) Element
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public
Cisco Unified Border Element Basic Call Flow
voice service voip
mode border-element
allow-connections h323 to h323
Originating allow-connections h323 to sip Terminating
allow-connections sip to h323
Endpoint - allow-connections sip to sip
Endpoint –
1000 2000
Incoming VoIP Call Outgoing VoIP Call
CUBE
RTP (Audio)
1.1.1.1 10.10.10.10 20.20.20.20 2.2.2.2
BYE BYE
200 OK
200 OK
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public
Basic Show commands for Active Calls
CUBE# show call active voice brief
121A : 17 13:02:24.215 IST Mon Jun 27 2011.1 +2040 pid:1 Answer 1000 active
dur 00:00:14 tx:0/0 rx:0/0
IP 1.1.1.1:6000 SRTP: off rtt:0ms pl:0/0ms lost:0/0/0 delay:0/0/0ms g711ulaw TextRelay: off
media inactive detected:n media contrl rcvd:n/a timestamp:n/a
long duration call detected:n long duration call duration:n/a timestamp:n/a VRF:VRF1
121A : 18 13:02:24.225 IST Mon Jun 27 2011.1 +2020 pid:2 Originate 2000 active
dur 00:00:14 tx:0/0 rx:0/0
IP 2.2.2.2:6001 SRTP: off rtt:0ms pl:0/0ms lost:0/0/0 delay:0/0/0ms g711ulaw TextRelay: off
media inactive detected:n media contrl rcvd:n/a timestamp:n/a
long duration call detected:n long duration call duration:n/a timestamp:n/a VRF:VRF2
Telephony call-legs: 0
SIP call-legs: 2
H323 call-legs: 0
Call agent controlled call-legs: 0
SCCP call-legs: 0
Multicast call-legs: 0
Total call-legs: 2
CUBE# show voip rtp connections
VoIP RTP active connections :
No. CallId dstCallId LocalRTP RmtRTP LocalIP RemoteIP MPSS VRF
1 17 18 17474 6000 10.10.10.10 1.1.1.1 NO VRF1
2 18 17 17476 6001 20.20.20.20 2.2.2.2 NO VRF2
Found 2 active RTP connections
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public
CUBE Architecture
ISR G2 vs ASR1K vs ISR 4K vs vCUBE (CUBE on
CSR)
ASR/ISR-4K & ISR-G2 Architecture Comparison
ASR/ISR-4K (IOS-XE) Architecture ISR G2 Architecture
Control Plane CPU
IOS
RP Control
Plane
IOS IOS
I/O I/O
Signaling
Signaling
Kernel Data Plane
Virtual CPU Memory Flash / Disk Console Mgmt ENET Ethernet NICs
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public
LTRCOL-2310
vCUBE Considerations
• Explicit subscription of CPU and memory reservation is required which the OVA
for CSR1000V provides
• Disable Hyperthreading
• “vCUBE media performance depends on the underlying VM platform consistently
providing packet switching latency of less than 5ms. Given the platform resource
requirements and latency requirements are met, latency and jitter values observed
on a vCUBE would the same as the values obtained on a CUBE running on a
hardware platform, with a recommended hardware configuration and identical
software configuration, under the same network conditions.”
• 2 network interface required at the very minimum
• Specs based hardware supported but performance benchmarked for Cisco UCS B
and C series only
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public
ASR, CSR & ISR-G2/4K Feature Comparison
General Platform Features ASR1K ISR-G2 4300/4400 (XE3.13.1) vCUBE (XE3.15+)
Redundancy-Group Redundancy-Group Redundancy-Group
High Availability Implementation HSRP Based
Infrastructure Infrastructure Infrastructure
TDM Trunk Failover/Co-
Not Available Exists Exists Not Available
existence
Media Forking XE3.8 15.2.1T XE3.10 Exists
Software MTP registered to
XE3.6 Exists Exists Exists
CUCM (Including HA Support)
DSP Card SPA-DSP PVDM3 PVDM4/SM-X-PVDM Not Available
Transcoder registered to CUCM Not Available Exists via SCCP Exists via SCCP (XE3.11) Not Available
Local Transcoder Interface SCCP or SCCP based on a separate
Transcoder Implementation SCCP and LTI
(LTI) LTI (starting IOS 15.2.3T) platform, CUCM controlled
Embedded Packet Capture Exists Exists Exists Exists
Web-based UC API XE3.8 15.2.2T Exists Exists
Noise Reduction & ASP Exists 15.2.3T Exists Not Available
Call Progress Analysis XE3.9 15.3.2T Exists Not Available
CME/SRST feature set Not Available Exists XE3.11 Not Available
SRTP-RTP Call flows Exists (NO DSPs needed) Exists (DSPs required) Exists (NO DSPs needed) Exists (No DSPs needed)
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 27
Module 1
Step 1: Configure CUCM to route calls to the edge SBC
SIP Trunk Pointing to CUBE
Standby
CUBE
A
Active IP PSTN
CUBE
Enterprise CUBE with High
Campus Availability
MPLS
• Configure CUCM to route all PSTN
PSTN is now
calls (central and branch) to CUBE via
used only for
a SIP trunk
emergency
SRST calls over
• Make sure all different patterns of calls
FXO lines
– local, long distance, international,
emergency, CME
informational etc.. are
pointing to CUBE
TDM PBX
Enterprise
Branch Offices
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 28
Module 1
Step 2: Get details from SIP Trunk provider
Item SIP Trunk service provider requirement Sample Response
CUBE
A
Active IP PSTN
CUBE
Enterprise
Campus
MPLS
LAN Dial-Peers WAN Dial-Peers
PSTN is now
• Dial-Peer – “static routing” table mapping phone numbers
used onlyto
forinterfaces or IP addresses
emergency calls
• LAN Dial-Peers – Dial-peers
SRST that are facing towards over
theFXO
IP lines
PBX for sending and
receiving
calls to & from the PBX CME
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 31
Module 1
Understanding Dial-Peer matching Techniques:
LAN & WAN Dial-Peers
• LAN Dial-Peers – Dial-peers that are facing towards the IP PBX for sending
and receiving calls to & from the PBX
• WAN Dial-Peers – Dial-peers that are facing towards the SIP Trunk provider for
sending & receiving calls to & from the provider
A
CUCM SIP Trunk SP SIP Trunk
IP PSTN
CUBE
Inbound Calls
Outbound LAN Dial-Peer Inbound WAN Dial-Peer
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 32
Module 1
WAN Dial-Peer Configuration
Inbound Dial-Peer for call legs from SP to CUBE
dial-peer voice 200 voip
description *** Inbound WAN side dial-peer *** Specific to your DID range
incoming called-number 702475….$
session protocol sipv2
assigned by the SP
voice-class sip bind control source gig0/1
voice-class sip bind media source gig0/1
Apply bind to all dial-peers when
codec g711ulaw CUBE has multiple interfaces.
dtmf-relay rtp-nte Gig0/1 faces SP.
no vad
Outbound Dial-Peer for call legs from CUBE to SP
dial-peer voice 201 voip Translation rule/profile to strip the
description *** Outbound WAN side dial-peer *** access code (9) before delivering
translation-profile outgoing Digitstrip the call to the SP
destination-pattern 91[2-9]..[2-9]......$
session protocol sipv2 Dial-peer for making long distance
voice-class sip bind control source gig0/1 calls to SP, based on NANP (North
voice-class sip bind media source gig0/1
American Numbering Plan)
session target ipv4:<SIP_Trunk_IP_Address>
codec g711ulaw Note: Separate outgoing DP to be created for Local, International,
dtmf-relay rtp-nte Emergency, Informational calls etc.
no vad
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 33
Module 1
LAN Dial-Peer Configuration
Inbound Dial-Peer for call legs from CUCM to CUBE
dial-peer voice 100 voip
description *** Inbound LAN side dial-peer ***
CUCM sending 9 (access code) + All
incoming called-number 9T
session protocol sipv2 digits dialed
voice-class sip bind control source gig0/0
voice-class sip bind media source gig0/0
Apply bind to all dial-peers when
codec g711ulaw CUBE has multiple interfaces. Gig0/0
dtmf-relay rtp-nte faces CUCM.
no vad
Outbound Dial-Peer for call legs from CUBE to CUCM
dial-peer voice 101 voip
description *** Outbound LAN side dial-peer *** SP will be sending 10 digits (NANP)
destination-pattern 702475….$ based on your DID that is being
session protocol sipv2 delivered to CUCM
voice-class sip bind control source gig0/0
voice-class sip bind media source gig0/0
session target ipv4:<CUCM_IP_Address>
codec g711ulaw Default codec is G729 if none is
dtmf-relay rtp-nte specified
no vad
Note: If more than 1 CUCM cluster exists, you will have to create multiple such LAN dial-peers with “preference CLI” for CUCM redundancy/load balancing as the
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 34
traditional way to accommodate multiple trunks
Module 2
Step 5: SIP Normalization
SIP profiles is a mechanism to normalize or customize SIP at the
network border to provide interop between incompatible devices
SIP incompatibilities arise due to: Add user=phone for INVITEs
• A device rejecting an unknown header (value Incoming Outgoing
or parameter) instead of ignoring it CUBE
INVITE INVITE
sip:5551000@sip.com:5060 sip:5551000@sip.com:5060
• A device expecting an optional header SIP/2.0 user=phone SIP/2.0
value/parameter or can be implemented in
voice class sip-profiles 100
multiple ways request INVITE sip-header SIP-Req-URI modify "; SIP/2.0" ";user=phone SIP/2.0"
request REINVITE sip-header SIP-Req-URI modify "; SIP/2.0" ";user=phone SIP/2.0"
• A device sending a value/parameter that must
be changed or suppressed (“normalized”)
before it leaves/enters the enterprise to comply Modify a “sip:” URI to a “tel:” URI in INVITEs
with policies Incomi Outgoing
• Variations in the SIP standards of how to INVITE ng CUBE
INVITE
sip:2222000020@9.13.24.6:5060 tel:2222000020
achieve certain functions SIP/2.0 SIP/2.0
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 38
Module 3
Configuration for SCCP based Transcoding For Your
(ISR-G2/4K) Reference
1. Enabling dspfarm services 3. sccp configuration
under voice-card
voice-card 1 sccp local GigabitEthernet0/0
dspfarm ! Only ISR G2 sccp ccm <CUBE_internal_IP> identifier 1 version 7+
dsp services dspfarm
sccp
sccp ccm group 1
2. telephony-service configuration associate ccm 1 priority 1
telephony-service associate profile 1 register CUBE-XCODE
sdspfarm units 1
sdspfarm transcode sessions 128 4. dspfarm profile configuration
sdspfarm tag 1 CUBE-XCODE
max-ephones 10
max-dn 10 dspfarm profile 1 transcode
ip source-address codec g711ulaw
<CUBE_internal_IP> port 2000 codec g711alaw
codec g729r8
maximum sessions 10
associate application SCCP
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 39
Module 3
Configuration for LTI based Transcoding
(ISR-G2/4K & ASR)
1. Enabling dspfarm services
under voice-card
voice-card 0/1 Feature Notes:
dspfarm ! Only ISR G2 • This uses Local Transcoding Interface to
dsp services dspfarm communicate between CUBE and DSPs
• Also available on ISR-G2 starting IOS 15.2.3T
2. dspfarm profile configuration • Can only be used if CUBE invokes the DSP
for media services
dspfarm profile 1 transcode
codec g711ulaw • CUCM cannot invoke DSPs using this LTI
codec g711alaw interface
codec g729abr8
codec g729ar8
codec ilbc
maximum sessions 100
associate application CUBE
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 40
Module 4
Call Admission Control at the edge...
CUBE provides various CAC mechanisms to safeguard your network from SIP based attacks and to enforce policies based on:
• Total calls • Maximum connections per destination
• CPU & Memory • Dial-peer or interface bandwidth
• Call spike detection
CUBE CUBE
call threshold global [total/mem/cpu] calls low xx high yy If a call spike is detected,
call treatment on reject calls
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 41
Module 4, 5
Call Admission Control at the edge...
CUBE provides various CAC mechanisms to safeguard your network from SIP based attacks and to enforce policies based on:
• Total calls • Maximum connections per destination
• CPU & Memory • Dial-peer or interface bandwidth
• Call spike detection
CUBE CUBE
call threshold global [total/mem/cpu] calls low xx high yy If a call spike is detected,
call treatment on reject calls
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 42
Module 6
Destination Dial-peer Group
• Allows grouping of outbound dial-peers based on an incoming dial-peer, reducing
existing outbound dial-peer provisioning requirements
• Eliminates the need to configure extra outbound dial-peers that are sometimes
needed as workarounds to achieve desired call routing outcome
• Multiple outbound dial-peers are saved under a new “voice class dpg <tag>”. The
new “destination dpg <tag>” command line of an inbound voip dial-peer
can be used to reference the new dpg (dial-peer group)
• Once an incoming voip call is handled by an inbound voip dial-peer with an active
dpg, dial-peers of a dpg will then be used as outbound dial-peers for an incoming
call
• The order of outgoing call setups will be the sorted list of dial-peers from a dpg,
i.e, the destination-patterns of the outgoing dial-peers is not relevant for selection
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 43
Module 6
Destination Dial-peer Group Configuration
dial-peer voice 1001 voip
voice class dpg 10000 description DPG 10000
description Voice Class DPG for DP Source SJ destination-pattern 3333
dial-peer 1001 preference 1 session protocol sipv2
dial-peer 1002 preference 2 session target ipv4:10.1.1.1
dial-peer 1003 !
! dial-peer voice 1002 voip
dial-peer voice 100 voip description DPG 10000
description DP Source SJ w/voice class dpg destination-pattern 2222
incoming called-number 1341 session protocol sipv2
destination dpg 10000 session target ipv4:10.1.1.2
!
dial-peer voice 1003 voip
description DPG 10000
1. Incoming Dial-peer is first destination-pattern 1111
matched
session protocol sipv2
2. Nowsession target
the DPG ipv4:10.1.1.3
associated
with the INBOUND DP is
selected
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 44
Module 6
Debugging Made Easier
Categorize Debugs based on Functionality
Categorization based on
Functionality Router# debug ccsip feature < audio | cac |
1. Audio/video/sdp/control config | control | dtmf | fax | line | misc |
2. Configuration /sip-transport misc-features | parse | registration | sdp-
3. CAC negotiation | sdp-passthrough | sip-profiles
4. DTMF/FAX/Line-side | sip-transport | srtp | supplementary-
5. Registration services | transcoder | video >
6. Sdp - passthrough
7. Sip-profile/SRTP/transcoder
Example: enabling DTMF and audio debugs only with default log level is considered.
DTMF(32) debug code
CUBE#sh debugging
CCSIP SPI: SIP info debug tracing is enabled (filter is OFF)
CCSIP SPI: audio debugging for ccsip info is enabled (active)
CCSIP SPI: dtmf debugging for ccsip info is enabled (active) Audio(2) debug code
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 46
Module 7
Multiple Incoming Patterns Under Same
Incoming/Outgoing Dial-peer
voice class e164-pattern-map 300 Provides the ability to combine multiple
e164 919200200.
e164 510100100. incoming called OR calling numbers on
Site A (919)200-2000 e164 408100100. a single inbound voip dial-peer, reducing
the total number of inbound voip dial-
(510)100-1000 dial-peer voice 1 voip
Site B description Inbound DP via Calling peers required with the same routing
incoming calling e164-pattern-map 300 capability
Site C (408)100-1000 codec g729r8
Up to 5000 entries in a text file
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 48
Overview: Unified Communications
Manager
CUCM Overview
• Management • CAC and QoS
• Centralized Dial Plan • Locations based (static)
• Centralized Reporting • RSVP (dynamic)
• Multi-protocol Interworking (SIP,
• H.323, MGCP, SCCP, Q.SIG,…) • Security
• Device Authentication
• Centralized Trunking
• TLS, SSL support
• TDM
• SRTP
• IP PSTN (SIP/H323)
• Inter-Cluster • Toll Fraud and Privacy
• On-Demand recording
• Recording using Phone softkey (Built in Bridge)
• Playback of recorded sessions via URLs
• Selective recording via partner applications
• Real-Time monitoring of active sessions
• Download
– Recordings can be exported to AAC/MP4 or PCM/WAV
– Export using Search and Play portal or using the REST API
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public
MediaSense - Captures
• “Active Recording” aka “Media Forking”
• The process of duplicating media streams from a conversation to a recording or
monitoring system
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public
Overview: Lab Overview
Lab – Network Setup – POD A’s [Modules 1 to 10]
CUCM-POD a LAN WAN
CUBE-a
Gig0/0 – 10.10.1.21 SP IP
Gig0/1 – 128.107.214.AAA Network
CUBE
10.10.1.20 Cisco MediaSense CenturyLink® SIP Trunk
Student PC-A 66.77.37.2
Win7K VM to access
your Lab components
including IP Soft 10.10.1.16
Phone via Remote
Desktop
IP – 10.10.1.201
Phone# +1(702)475-95DN
DN: 95DN
Internet Classroom PC
OR
Your Home PC
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public
Lab – Network Setup – POD B’s [Modules 1 to 10]
CUCM-POD b LAN WAN
CUBE-b
Gig0/0 – 10.10.1.22 SP IP
Gig0/1 – 128.107.214.BBB Network
CUBE
10.10.1.28 Cisco MediaSense CenturyLink® SIP Trunk
66.77.37.2
Student PC-B
Win7K VM to access
your Lab components
including IP Soft 10.10.1.16
Phone via Remote
Desktop
IP – 10.10.1.202
Phone# +1(702)475-95DN
DN: 95DN
Internet
Classroom PC
OR
Your Home PC
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public
HA Network Setup – Pod XA and XB Combined
POD-A IP Phone
CUCM-POD a IP – 10.10.1.201 Module 11
Phone# +1(702)475-95DN
Student PC-A (VM)
CUBE-a
128.107.214.VIP
MediaSense CUBE
10.10.1.23
Group X0
Group X
HSRP
HSRP
Keepalives SP IP
Network
10.10.1.16
CenturyLink® SIP Trunk
Gig0/0 – 10.10.1.22 Gig0/1 – 128.107.214.BBB 66.77.37.2
CUCM-POD b CUBE
LAN CUBE-b WAN
Virtual IP Virtual IP
POD-B IP Phone
10.10.1.28 IP – 10.10.1.202
Phone# +1(702)475-95DN
Student PC-B (VM) LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public
Lab – Access
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 58
Lab – Access
• Disable Pop-up blockers and Go to :
https://LABOPS-OUT.CISCO.COM/LABOPS/ILT
• Register with your email and Class ID/name of husali_v20073
• Pick a Pod based on the POST-IT note in front of you. E.g, POD 8B
corresponds to CB-CUBE-8 and Student PC-B (bottom Laptop icon)
• Download the Lab Guide (contains solutions) from the Courseware link
and choose your respective Pod-a or Pod-b lab guides
• Click on the Laptop icon for Student PC-a or PC-b to download the
remote desktop shortcut. Save the shortcut and edit its settings to make
RDP display to full screen
• RDP Credentials : Username administrator
Password C1sc0123 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 59
LTRCOL-2310
Dialed Number Analyzer for CUBE
Dialed Number Analyzer (DNA) for CUBE
Features Use Cases
• Emulation of CUBE
• Dial-Plan validation
• E164 and URI Call Routing
Features • Understand Call routing logic
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 62
Input Option – Calling / Called Number
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 63
Input Option – SIP Message
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 64
Input Option – SIP Message
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 65
Input Option – SIP Message
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 69
SIP Profile Test Tool
https://cway.cisco.com/tools/SipProfileTest/
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 70
SIP Profile Test Tool
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public
CUBE Controlled Recording Option – Media Forking
Dial-peer based – Open Recording Architecture (ORA) Module 9
• CUBE sets up a stateful SIP session
Cisco Search/Play demo app with MediaSense server
-or- • After SIP dialog established, CUBE
Partner Application
forks the RTP and sends it for
MediaSense to record
Cisco MediaSense MediaSense
(authentication disabled w/o UCM) • With XE 3.10.1, Video calls
supported and CUBE HA for audio
SIP
calls
Cisco Proprietary Metadata
A SIP SIP
SP SIP
CUBE
RTP RTP
media class 9
recorder parameter dial-peer voice 950 voip
• Call agent independent media-recording 950 description dial-peer pointing to MediaSense
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 76
High Availability
Module 11
CUBE High Availability Options
• Inbox redundancy
• ASR 1006, preserves signaling & media
• Stateful failover
• Local redundancy
ASR(config)#redundancy
ASR-RP2(config-red)#mode sso
ASR-RP2(config-red)#end
• L2 Box-to-Box redundancy
Active
• ISR G2/4K (Stateful failover)
• ASR 1001-X/2-X/4/6 (Stateful failover)
• Local redundancy (Both routers must be Virtual
CUBE
Virtual
SIP SP
physically located on the same Ethernet LAN) IP IP
• Not supported across data centers CUBE
• Only 1 RP and 1 ESP in ASR1006 Standby
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 78
CUBE HA Design Considerations on ISR-G2 for Box-to-Box
Redundancy
Module 11
• Lower IP Address for ALL the interfaces (Gig0/0, Gig0/1, Gig0/2) should be on the same platform,
which is used as a tie breaker for the HSRP Active state
• Multiple HSRP Groups/Interfaces/sub-interfaces can be used on either LAN or WAN side
• Upto 6 multimedia lines in the SDP are checkpointed for CUBE HA
• SDP Passthru (upto 2 m-lines) calls are also checkpointed starting IOS 15.6(1)T
• TDM or SRST or VXML GW cannot be collocated with CUBE HA
• Both platforms must be connected via a physical Switch across all likewise interfaces for CUBE HA to
work, i.e. Gig0/0 of CUBE-1 and CUBE-2 must terminate on the same switch and so on
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public
CUBE HA Design Considerations on ISR-G2 for Box-to-Box
Redundancy – Cont’d
• Cannot have WAN terminated on CUBEs directly or Data HSRP on either side. Both Active/Standby
must be in the same Data Center
• Both the CUBEs must be running on the same type of platform and IOS version and identical
configuration. Loopback interfaces cannot be used for bind as they are always up. Sub-interfaces are
supported
• CUBE HA only checkpoints SIP/RTP Traffic. Support for Survivability.tcl preservation was added in
15.6(2)T for CVP deployments
• Out-of-band DTMF (Notify/KPML) will not work post switchover Module 11
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public
CUBE HA Design Considerations on ISR-G2 for Box-to-Box
Redundancy – Cont’d
• CCB (courtesy callback) feature is not supported if a callback was registered with CVP and then a
switchover was done on CUBE. The CCB will not work in these scenarios.
• Recommended to configure TCP session transport for the SIP trunk between CVP and CUBE
• LTI based transcoding called flows including SRTP/RTP interworking preserved starting 15.5(2)T.
Requires same PVDM3 chip capacity on both active and standby in the same slot/subslot. CPA calls
(prior to being transferred to the agent), SCCP based media resources, Noise Reduction, ASP,
transrating calls are not checkpointed
• SRTP - RTP, SRTP - SRTP and SRTP passthru supported on ISR-G2 Module 11
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public
CUBE HA Design Considerations on ISR-G2 for Box-to-Box
Redundancy – Cont’d
Module 11
CUBE 1 CUBE 2
CUBE-1> enable CUBE-2> enable
CUBE-1# configure terminal CUBE-2# configure terminal
CUBE-1(config)# ip vrf LAN-VRF Configure VRFs on the CUBE-2(config)# ip vrf LAN-VRF
CUBE-1(config)# rd 1:1 platform (if applicable) CUBE-2(config)# rd 1:1
CUBE-1(config)# ip vrf WAN-VRF CUBE-2(config)# ip vrf WAN-VRF
CUBE-1(config)# rd 2:2 CUBE-2(config)# rd 2:2
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 84
CUBE Configuration on ISR-G2 Box-to-Box Redundancy
CUBE 1 CUBE 2
Module 11
interface GigabitEthernet0/0 interface GigabitEthernet0/0
description “Enterprise LAN” Inside interfaces : description “Enterprise LAN”
ip vrf forwarding LAN-VRF HSRP group 1 ip vrf forwarding LAN-VRF
ip address 10.10.1.11 255.255.255.0 VRF ID : LAN-VRF (if ip address 10.10.1.12 255.255.255.0
standby version 2 applicable) standby version 2
standby 1 ip 10.10.1.13 Interface can be standby 1 ip 10.10.1.13
standby delay minimum 30 reload 60 utilized as an HSRP standby delay minimum 30 reload 60
standby 1 preempt interface if no VRFs standby 1 preempt
standby 1 track 2 decrement 10 are required or standby 1 track 2 decrement 10
standby 1 track 3 decrement 10 configured standby 1 track 3 decrement 10
standby 1 priority 50 standby 1 priority 50
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 85
CUBE Configuration on ISR-G2 Box-to-Box Redundancy
Module 11
CUBE 1 CUBE 2
interface GigabitEthernet0/1 interface GigabitEthernet0/1
description “Enterprise WAN” description “Enterprise WAN”
ip vrf forwarding WAN-VRF ip vrf forwarding WAN-VRF
ip address 128.107.66.77 255.255.255.0 ip address 128.107.66.78 255.255.255.0
standby version 2 Outside interfaces : standby version 2
standby 10 ip 128.107.66.79 HSRP group 10 standby 10 ip 128.107.66.79
standby delay minimum 30 reload 60 VRF ID : WAN-VRF standby delay minimum 30 reload 60
standby 10 preempt (if applicable) standby 10 preempt
standby 10 track 1 decrement 10 standby 10 track 1 decrement 10
standby 10 track 3 decrement 10 standby 10 track 3 decrement 10
standby 10 priority 50 standby 10 priority 50
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 86
CUBE Configuration on ISR-G2 Box-to-Box Redundancy
CUBE 1 CUBE 2
interface GigabitEthernet0/2 interface GigabitEthernet0/2
description “HSRP Interface” description “HSRP Interface”
ip address 1.1.1.1 255.255.255.0 ip address 1.1.1.2 255.255.255.0
standby version 2 HSRP interfaces : standby version 2
standby 100 ip 1.1.1.3 HSRP group 100 standby 100 ip 1.1.1.3
standby delay minimum 30 reload 60 standby delay minimum 30 reload 60
CANNOT HAVE VRFs standby 100 preempt
standby 100 preempt
standby 100 name CUBEHA associated standby 100 name CUBEHA
standby 100 track 1 decrement 10 standby 100 track 1 decrement 10
standby 100 track 2 decrement 10 standby 100 track 2 decrement 10
standby 100 priority 50 standby 100 priority 50
! !
Configure Interface
track 1 interface Gig0/0 line-protocol track 1 interface Gig0/0 line-protocol
track 2 interface Gig0/1 line-protocol Tracking (for line protocol
track 2 interface Gig0/1 line-protocol
track 3 interface Gig0/2 line-protocol on corresponding track 3 interface Gig0/2 line-protocol
interfaces of the platform
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 87
CUBE Configuration on ISR-G2 Box-to-Box Redundancy
Module 11
CUBE 1 CUBE 2
Define Redundancy scheme: Creates redundancy inter-device
redundancy inter-device
interdependency b/w CUBE redundancy & HSRP scheme standby CUBEHA
scheme standby CUBEHA
ipc zone default HSRP Interface - IPC configuration : ipc zone default
association 1 Allows the ACTIVE CUBE to tell the association 1
no shutdown STANDBY about the state of the calls. no shutdown
protocol sctp CONFIG SHOULD BE APPLIED on the protocol sctp
local-port 5000 LAN SIDE (to avoid SPLIT BRAIN) and a local-port 5000
local-ip 1.1.1.1 NON-VRF associated interface local-ip 1.1.1.2
remote-port 5000 CANNOT HAVE VRFs remote-port 5000
remote-ip 1.1.1.2 associated with this interface remote-ip 1.1.1.1
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 88
CUBE Configuration on ISR-G2 Box-to-Box Redundancy
Configuration on Active and Standby
Bind traffic destined to the outside (SP SIP trunk)
dial-peer voice 100 voip
to the outside Physical interface.
description TO SERVICE PROVIDER
destination-pattern 9T
This ensures that all RTP and SIP packets are
session protocol sipv2 created with the virtual IP associated with the
session target ipv4:y.y.y.y respective physical interface.
voice-class sip bind control source-interface GigabitEthernet0/1 CUBE HA does not work with loopback interfaces
voice-class sip bind media source-interface GigabitEthernet0/1 as they are always up
!
dial-peer voice 200 voip
description TO CUCM Bind traffic destined to the inside (CUCM or IP
destination-pattern 555…. PBX) to the inside Physical interface.
session protocol sipv2 This ensures that all RTP and SIP packets are
session target ipv4:10.10.1.10 created with the virtual IP associated with the
voice-class sip bind control source-interface GigabitEthernet0/0 respective physical interface.
voice-class sip bind media source-interface GigabitEthernet0/0
!
ip rtcp report interval 3000
! Configure media inactivity feature to clean up any
gateway calls that may not disconnect after a failover
media-inactivity-criteria all
timer receive-rtcp 5
timer receive-rtp 86400
Module 11
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 89
CUBE HA Design Considerations on ASR1K/ISR-4K/vCUBE
for Box-to-Box Redundancy
PortChannel2
Gig0/0/0
Gig0/0/2.200
Gig0/0/2.100 – ITSP 1
Gig0/0/1
CUBE
Gig0/0/3 Gig0/0/4 ITSP 1
PortChannel34
redundancy
redundancy
redundancy
WAN
rii 1
rii 2
rii 3
Switch D Switch E Switch A Switch B Switch C Edge
PortChannel34
CUCM
Gig0/0/3 Gig0/0/4 ITSP 2
Gig0/0/1
PortChannel2
Gig0/0/2.100
Gig0/0/2.200 – ITSP 2
Gig0/0/0 CUBE
CUBE-2
• The RG control data interfaces can be a sub interface that is part of the same port channel used for voice traffic. This will go to switch D and E
thereby eliminating the need for additional switches for RG control/data. This is provided there is sufficient bandwidth for voice + RG
data/control on the port channel (for example when using 10G)
• Multiple ITSPs can be terminated on the same CUBE HA pair, PortChannels can be used on WAN side as well, with L2 and CE router redundancy
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 91
Key Takeaways
• It is a manageable transition from existing TDM based networks to SIP
networks using these network design techniques
• Enterprise SBC (Cisco Unified Border Element - CUBE) is an essential
component of a UC solution providing;
• Security, Session Management, Interworking, Demarcation
• Over 17,000 Enterprise customers all over the Globe
• Proven interoperability with 3rd party PBX vendors and different service providers
around the world (more than 160 countries)
• Now is the time to deploy SIP Trunking in either a Centralized or a Distributed
solution to save money, simplify your topology and setup your infrastructure for
future services
• Complete feature Presentations, Lab Guide, Free Hands-on Lab access &
Application Notes :
»https://cisco.box.com/cube
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 92
19,000+
Members
Join the Customer Connection Program Strong
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 94
Continue Your Education
• Demos in the Cisco campus
• Walk-in Self-Paced Labs
• Lunch & Learn
• Meet the Engineer 1:1 meetings
• Related sessions
LTRCOL-2310 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 95
Thank you