Professional Documents
Culture Documents
VoIP Overview
Converting Voice for VoIP
VoIP Packetization
VoIP Media Transmission
Voice Activity Detection
1. Sampling
2. Quantization 7. VoIP Decapsulation
3. Encoding
4. Codec Compression
8. Decoding
5. VoIP Encapsulation 9. Modulation
IP DSP
DSP
Voice Gateway
6. Transport Through IP Network
Gatekeeper
Application
Server
IP Backbone
Multipoint Control Gateway Gateway PBX
Unit
Call
Agent
Cisco Unified
Border Element
Analog Waveform
Time
+ Segment 1
Segment 0
Segment 0
Each sample is 1/8000 of a Time
second apart
- Segment 1 Types:
mu-law
a-law
Segment 2
© 2010 Cisco Systems, Inc. All rights reserved. CVOICE v8.0—2-10
Quantization (Cont.)
G.711 a-law and mu-law
Similarities between mu-law and a-law Differences between mu-law and a-law
Both are linear approximations of logarithmic Different linear approximations lead to
input/output relationship. different lengths and slopes.
Both are implemented using eight-bit codewords The numerical assignment of the bit
(256 levels, one for each quantization interval). positions in the eight-bit codeword to
segments and the quantization levels
within segments are different.
Both break the range into a total of 16 segments:
a-law provides a greater dynamic range
• Eight positive and eight negative segments.
than u-law.
• Each segment is twice the length of the
preceding one. mu-law provides better signal/distortion
• Uniform quantization in each segment. performance for low-level signals than a-
law.
Both use a similar approach to coding the eight- • An international connection needs to
bit word: use a-law
• First (MSB) identifies polarity. • mu to a conversion is the responsibility
• Bits two, three, and four identify segment. of the mu-law country.
• Final four bits quantize the segment are the
lower signal levels than a-law.
1 0 0 1 1 1 0 0
Segment Interval
Sign:
1 = Positive
0 = Negative
10010110 Sample 2
10010101 Sample 3
10010100 Sample 4
10010011 Sample 5
...
10110001
DSP
20 ms 20 ms
20 ms 30ms
voice length voice length
in a packet in a packet
Packetization rate 50 p/s 33.3 p/s
Size of collected, compressed 20 B 30 B
G.729 samples for a single packet
Compressed raw voice bandwidth 8 kb/s 8 kb/s
Layer 3+ G.729 VoIP bandwidth 24 kb/s 18.7 kb/s
H.323
IP
GW1 GW2
RTP Stream
Provides end-to-end delivery for real-time data, such as voice and video
Randomly picks even ports from UDP port range 16384–32767
Includes the following services:
– Payload type identification (codec type and media format)
Allows the codec to change during transmission, as with fax/modem pass-
through
– Sequence numbering
Primarily to detect packet loss
– Measuring delay/jitter
To place packets in the correct timing order (playout delay compensation)
H.3
23
23
H.3 Gatekeeper
IP
GW1 GW2
RTP
RTCP
© 2010 Cisco Systems, Inc. All rights reserved. CVOICE v8.0—2-22
Compressed RTP
S0/0
IP
RTP/RTCP Stream
© 2010 Cisco Systems, Inc. All rights reserved. CVOICE v8.0—2-23
Secure RTP
Encryption
– Makes the content undecipherable for transit
Message integrity
– Adds a fingerprint to detect tampering during transit
Message authentication
– Protects the fingerprint with key to guarantee the authenticity of the
source
Replay protection
– Sequencing prevents the injecting of outdated information
S0/0
IP S0/0
GW1 GW2
SRTP Stream
V P X CC M PT Sequence Number
Time Stamp
Synchronization Source (SSRC) Identifier
Contributing Sources (CSRC) Identifier (Optional)
...
RTP Extension (Optional)
RTP Payload
IP
RTP/RTCP Stream
© 2010 Cisco Systems, Inc. All rights reserved. CVOICE v8.0—2-26
VoIP Media Considerations (Cont.)
Privacy
IPsec protection of SRTP packets encrypts already-encrypted data
Exclude SRTP packets from IPsec protection:
– To save bandwidth and computational resources
Prefer SRTP over IPsec:
– Less overhead
– More uniform approach (covers other calls, such as from roaming users)
IPsec Tunnel
IP WAN
Listening Speaking
VoIP VoIP
Frame Frame
Codec Sample
Codec Relay, no Relay with
speed size
VAD VAD
G.711 64 kb/s 240 B 76.3 kb/s 49.6 kb/s
G.711 64 kb/s 160 B 82.4 kb/s 53.6 kb/s
iLBC 13.3 kb/s 30 B 26.1 kb/s 17.0 kb/s
iLBC 15.2 kb/s 20 B 34.4 kb/s 22.4 kb/s
G.729 8 kb/s 30 B 20.3 kb/s 13.2 kb/s
G.729 8 kb/s 20 B 26.4 kb/s 17.2 kb/s
Speaking Listening
FXS
IP WAN FXS
VoIP VoIP
Comfort
Noise
VAD
H.323 Architecture
H.323 Call Flows
Codecs in H.323
Configuring H.323 Gateways
Customizing H.323 Gateways
Verifying H.323 Gateways
Gateways
Cisco H.320
Unified Terminal
IP
Border (ISDN)
Element
H.324
Intranet Internet PBX PSTN Terminal
(POTS)
ITSP
Gateway
Speech Only
H.323 Terminal (Telephones)
H.323 Device
H.323 Gateway
Telephone
Protocol
H.323 Translation Non-H.323
Endpoint and Media Endpoint
Transcoding
H.320
Terminal
(ISDN)
H.324
Intranet Internet PSTN Terminal
(POTS)
H.323
Terminal
H.320
Gateway Terminal
(ISDN)
H.324
Intranet Internet PSTN Terminal
(POTS)
H.323
Terminal
A F
B MCU E
E
C D A B C D MCU F
A F
B MCU E
C D
Video
Ad Hoc Audio
6
3 U.S. Maria Germany Translate calling number
Translate calling number and route to destination.
Gateway (Spain) Gateway
and route to destination.
4 7
I have an external call. I have an external call.
To call back, I need to To call back, I need to
Alice Frank
dial 901134917216111. dial 00034917216111.
(U.S.) (Germany)
System Control
Audio
H.245 Video
Codec
Control Codec
G.711, G.722,
Signaling H.261
G.723, G.723.1,
H.263
G.728, G.729
H.225
Call
Signaling Receive Path
Delay
RAS
Control
H.225
H.225 Layer
LAN Stack
RTP Stream
RTP Stream
12. Media
RTCP Stream
(RTP)
RTP Stream
RTP Stream
RTCP Stream
1. Hangup
RTP Stream
ARQ – Admission
RTP Stream Request
16. Media
RTCP Stream ACF – Admission Confirm
(RTP)
© 2010 Cisco Systems, Inc. All rights reserved. CVOICE v8.0—2-49
H.225 RAS Call Teardown
H.323 Gatekeeper
H.323 H.323
Gateway Gateway
PSTN/ PSTN/
Privat IP Privat
e Network e
Voice Voice
RTP Stream
RTP Stream
RTCP Stream
1. Hangup
3. Call Proceeding
RTP Stream
RTP Stream
9. Media (UDP)
RTCP Stream
RTP Stream
4. Early Media allows streaming
RTP Stream of media (announcements, MOH)
RTCP Stream before the call is accepted
router(config)#
dial-peer voice tag voip
Creates a VoIP dial peer
Enters configuration mode for parameters such as session target,
destination-pattern, incoming called-number, answer-address
1/0/0
1001
dial-peer voice 1 voip
incoming called-number .
dial-peer voice 1 voip !
incoming called-number . dial-peer voice 10 pots
! destination-pattern 2001
dial-peer voice 10 pots port 1/0/0
destination-pattern 1001 !
port 1/0/0 dial-peer voice 11 pots
! destination-pattern 2002
dial-peer voice 20 voip port 1/0/1
destination-pattern 200. !
session target ipv4:10.2.1.1 dial-peer voice 20 voip
destination-pattern 100.
session target ipv4:10.1.1.1
Tuning Options:
H.323 session transport
Source IP address
H.323 timers
– H.225 settings
router(config)#
voice service voip
Enters the VoIP service configuration mode
router(conf-voi-serv)#
h323
Enters H.323 configuration mode
Accessed from voice service VoIP configuration mode
No default behavior or values
no h323 command removes all commands in H.323 mode but does
not disable H.323 service
router(conf-serv-h323)#
session transport udp
Defines the H.323 session transport method
Configured in H.323 mode
Default: TCP
© 2010 Cisco Systems, Inc. All rights reserved. CVOICE v8.0—2-61
Idle Connection and H.323 Source IP Address
router(conf-serv-h323)#
h225 timeout tcp call-idle {value | never}
router(config-if)#
h323-gateway voip bind srcaddr ip-address
router(config)#
voice class h323 h323_class_tag
Enters the H.323 class configuration mode
router(config-class)#
h225 timeout tcp establish
H.225 TCP timeout value (default 15 sec.)
router(config-class)#
h225 timeout setup
Response timeout value for outgoing setup messages (default 15 sec.)
router(config-dial-peer)#
voice-class h323 h323_voice_class_tag
Attaches a voice class to a dial peer
H.323 service is up
This gateway is not registered to any gatekeeper
SIP Architecture
SIP Call Flows
SIP Addressing
Codecs in SIP
Configuring Basic SIP
Configuring SIP ISDN Support
Configuring SIP SRTP Support
Customizing SIP Gateways
Verifying SIP Gateways
SIP
Legacy PBX
Registrar server:
– Accepts registration requests from users
Proxy server:
– Relays communications
Acts as client and server
– Keeps no session state
– Transparent to end devices
– Does not generate its own messages (except ACK and Cancel)
– May add services (call forwarding, AAA, forking, and so on)
Redirect server:
– Redirects callers to other servers
– Rarely used to scale to large environments
Location server:
– Maintains user whereabouts
Servers usually deployed as a single platform
© 2010 Cisco Systems, Inc. All rights reserved. CVOICE v8.0—2-75
SIP Architecture Examples
Cisco Unified
IP Network Communications
Manager Express
Cisco Unified
SIP Trunk from Carrier
Carrier Communications
Manager
Cisco Unified
Cisco Voice Communications
IP Network
Gateway Manager Express
IP
1. Initiate Call
2. Invite (SDP)
9. ACK
IP
Invite
(SDP) Invite (SDP)
100 100 Trying
SIP Signaling and SDP Trying
(UDP or TCP) 180 Ringing
180
Ringing
200 OK
200 OK
ACK
ACK
RTP Stream
Media (UDP)
BYE BYE
200 OK 200 OK
IP
Invite
Moved
SIP Signaling and SDP Invite
(UDP or TCP)
100 Trying
180 Ringing
200 OK
ACK
BYE
200 OK
sip:14085551234;
Mixed format password=changeme@10.1.1.1
sip:jdoe@10.1.1.1
SIP Proxy
(UAS)
Register
Here I am! SIP UACs
SIP UACs
SIP Proxy
IP
1. Initiate Call
2. Invite
4. Ring SIP
3. 100 Trying
Called Party Signaling
5. 180 Ringing (UDP or
6. Ringback Tone TCP)
7. Answer Call
8. 200 OK (SDP: media offer)
IP
1. Initiate Call
2. Invite (SDP: media offer)
IP
Invite
IP
Invite
router(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(config-sip-ua)#
authentication username username password [0|7] password
Enables SIP digest authentication
Only one username can be configured globally in SIP UA
© 2010 Cisco Systems, Inc. All rights reserved. CVOICE v8.0—2-94
Dial Peer Configuration
router(config-sip-ua)#
sip-server {dns:host-name | ipv4:ipv4-address | ipv6:
[ipv6-address][: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
Cisco Unified
Communications Manager: 192.168.1.100
10.1.1.15
SIP
Gateway
SIP ITSP
sip-ua
authentication username JDoe password secret
Ext.: 2… registrar 10.1.1.15
sip-server 10.1.1.15
!
dial-peer voice 2001 voip
destination-pattern 2...
session protocol sipv2
session target sip-server
!
dial-peer voice 2002 voip
destination-pattern 9T
session target ipv4:192.168.1.100
session protocol sipv2
Calling:
Alice Doe Incoming Call
PRI/BRI
IP ISDN
Called SIP SIP Gateway SIP Gateway Caller
Phone
router(conf-voi-serv)#
signaling forward {none | unconditional}
Specifies whether or not the originating gateway 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 supp-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
Calling:
Alice Doe Incoming Call
T1 1/0
IP ISDN
Called SIP SIP Gateway SIP Gateway Caller
Phone
Calling:
xxx Incoming Call
PRI/BRI
IP ISDN
Called SIP SIP Gateway SIP Gateway Caller
Phone
© 2010 Cisco Systems, Inc. All rights reserved. CVOICE v8.0—2-102
Blocking and Substituting Caller ID
Commands
router(conf-voi-serv)#
router(config-dial-peer)#
clid strip pi-restrict
Block caller ID information when privacy exists
Available in voice service voip and dial peer configuration modes
router(conf-voi-serv)#
router(config-dial-peer)#
clid 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
Calling:
xxx Incoming Call
IP ISDN
Called SIP SIP Gateway SIP Gateway Caller
Phone
router(conf-dial-peer)#
voice-class sip
Enters dial peer SIP configuration mode
router(conf-voi-ser)#
router(conf-dial-peer)#
sip
Enters SIP configuration mode, in:
– Voice service VoIP configuration mode, or
– Dial peer voice class SIP configuration mode
router(conf-ser-sip)#
url sips
Enables SIPS by generating URLs in SIPS format for VoIP calls
Available globally or in dial peer configuration mode
router(conf-voi-ser)#
router(conf-dial-peer)#
securertp
Configures secure RTP media, in:
– Voice service VoIP configuration mode, or
– Dial peer voice class SIP configuration mode
router(conf-voi-ser)#
router(conf-dial-peer)#
securertp fallback
Enables fallback to RTP calls in case secure RTP calls fail due to lack of support
from an endpoint
Available globally or in dial peer configuration mode
© 2010 Cisco Systems, Inc. All rights reserved. CVOICE v8.0—2-108
SIPS and SRTP Configuration Example
10.1.1.1 10.2.1.1
IP
1001 SIP Gateway SIP Gateway 2001
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
router(conf-voi-ser)#
bind {control | media | all} source-interface interface-id
[ipv4-address ipv4-address | ipv6-address ipv6-address]
Binds the source address for signaling and media packets to the
address of a specific interface
router(config-sip-ua)#
timers
Configures various timers for the SIP UA
Default
Timer Description
value
connect Time (in milliseconds) to wait for a 200 response to an 500
ACK request
disconnect Time (in milliseconds) to wait for a 200 response to a BYE 500
request
expires Time (in milliseconds) for which an INVITE request is valid 180000
hold Time to wait during hold before disconnecting (in minutes) 2880
notify Time to wait before NOTIFY retransmission 500
refer Time to wait before REFER retransmission. Refer request 500
is sent by the originating gateway to the receiving gateway
and initiates call forward and call transfer capabilities
register Time to wait before REGISTER retransmission 500
trying Time (in milliseconds) to wait for a 100 response to an 500
INVITE request
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
Response Message SIP Handling Status Treatment
180 response with SDP Enabled (default) Early media cut-through
180 response with SDP Disabled Local ringback
180 response without SDP Not affected Local ringback
183 response with SDP Not affected (default enabled) Early media cut-through
© 2010 Cisco Systems, Inc. All rights reserved. CVOICE v8.0—2-115
Gateway-to-Gateway Configuration Example
R1: R2:
Loopback 0 Loopback 0
1001 10.1.1.1 10.2.1.1 2001
IP
SIP ITSP
voice service voip
sip
bind all source-interface loopback0 ipv4-address 10.1.1.1
!
sip-ua
authentication username JDoe password secret
registrar 10.1.1.15 expires 3600
sip-server 10.1.1.15
timers connect 1000
timers register 300
!
dial-peer voice 10 voip
destination-pattern 9T
session target ipv4:192.168.1.100
session protocol sipv2
session transport top
Command Description
show sip-ua service Displays the status of the SIP service
show sip-ua status Displays the status of the SIP UA
Displays the status of E.164 numbers that a
show sip-ua register status SIP gateway has registered with an external
primary SIP registrar
show sip-ua timers Displays SIP UA timers
show sip-ua connections Displays active SIP UA connections
show sip-ua calls Displays active SIP UA calls
show sip-ua statistics Displays SIP traffic statistics
Command Description
debug ccsip For general SIP debugging; has
many detailed options, for example
for viewing direction-attribute settings
and port and network address-
translation traces
debug voip ccapi inout Shows every interaction with the call
control API
debug voip ccapi protoheaders Displays messages sent between the
originating and terminating gateways
INVITE sip:3660210@166.34.245.231;user=phone;phone-context=unknown
SIP/2.0
Via: SIP/2.0/UDP 166.34.245.230:55820
From: "3660110" <sip:3660110@166.34.245.230>
To: <sip:3660210@166.34.245.231;user=phone;phone-context=unknown>
...
Content-Type: application/sdp
v=0
o=CiscoSystemsSIP-GW-UserAgent 4629 354 IN IP4 55.1.1.42
s=SIP Call
c=IN IP4 55.1.1.42
t=0 0
m=audio 18978 RTP/AVP 0 100
c=IN IP4 10.1.1.42
a=rtpmap:0 PCMU/8000
a=rtpmap:100 X-NSE/8000
SIP/2.0 200 OK
Via: SIP/2.0/UDP 166.34.245.230:55820
From: "3660110" <sip:3660110@166.34.245.230>
To: <sip:3660210@166.34.245.231;user=phone;phone-context=unknown>;tag=27DBC6D8-1357
Date: Mon, 08 Mar 1993 22:45:12 GMT
Call-ID: ABBAE7AF-823100E2-0-1CD274BC@172.18.192.194
Timestamp: 731427554
Server: Cisco VoIP Gateway/ IOS 12.x/ SIP enabled
Contact: <sip:3660210@166.34.245.231:5060;user=phone>
CSeq: 101 INVITE
Content-Type: application/sdp
Content-Length: 138
v=0
o=CiscoSystemsSIP-GW-UserAgent 1193 7927 IN IP4 166.34.245.231
s=SIP Call
t=0 0
c=IN IP4 166.34.245.231
m=audio 20224 RTP/AVP 0
MGCP Architecture
MGCP Call Flows
MGCP Special Considerations
Configuring MGCP Gateways
Customizing MGCP Gateways
Verifying MGCP Gateways
Cisco Voice
Gateways Call Agent (MGCP) Cisco Unified
Communications
Manager
FX
S*
PRI PRI
IP PSTN
S1/SU1/DS1-1@gw1.domain.com
AALN/S2/SU1/1@gw1.domain.com
Slot 2 Subunit 1 Hostname
AALN/S2/SU1/1@gw1.domain.com
T1/E1 VWIC
MGCP 1/1/1 PSTN/
PBX
FXS VWIC
2/1/1
Command Description
AuditEndpoint (AUEP) Call agent requests the status of an endpoint
AuditConnection (AUCX) Call agent requests the status of a connection
EndpointConfiguration (EPCF) Call agent instructs the gateway about the coding characteristics
expected by the "line-side" of the endpoint
CreateConnection (CRCX) Call agent instructs the gateway to establish a connection with an
endpoint
ModifyConnection (MDCX) Call agent instructs the gateway to update its connection parameters
for a previously established connection
DeleteConnection (DLCX) Gateway or call agent reports that it no longer has the resources to
sustain the call and informs the recipient to delete connection
NotificationRequest (RQNT) Call agent instructs the gateway to watch for events on an endpoint
and the action to take when they occur
Notify (NTFY) Gateway informs the call agent of an event for which notification was
requested
RestartInProgress (RSIP) Gateway notifies the call agent that the gateway and its endpoints are
removed from service or are being placed back in service
RTP Stream
RTP Stream
On Hook RTCP Stream
NTFY
DLCX DLCX
DLCX Response DLCX Response
MDCX Response
RTP/RTCP Streaming
Q931 Connect
Communications Manager
via TCP port 2428. PRI
Backhaul
T1 PRI
Call
Agent
Notification Request (RQNT)
NTFY (Off-hook)
Notification Request (RQNT)
Off-hook NTFY (1) Call agent keeps
and dialed Notification Request (RQNT) requesting digits
1234 NTFY (2) until it finds a
dial plan match
Notification Request (RQNT)
NTFY (3)
Notification Request (RQNT)
NTFY (4)
Two scenarios:
Residential gateway
– Dial peer configuration
Trunking gateway
– Controller configuration
router(config)#
mgcp [port]
Starts the MGCP daemon on specified UDP port (default 2427)
Allocates resources to MGCP processes
router(config)#
ccm-manager mgcp
Enables MGCP communications with Unified CM*
Enables redundancy when a backup Unified CM* is available
router(config)#
mgcp call-agent {host-name | ip-address} [port] [service-
type type [version protocol-version]]
Defines the address and protocol of the call agent
Service type set to mgcp
router(config)#
ccm-manager config server {ip-address | name}]
Specifies the TFTP server address
Downloads Cisco Unified Communications Manager XML
configuration files
router(config)#
mgcp bind {control | media} source-interface int-id
Sets the source address for signaling and media packets to the
IP address of a specific interface
If not configured, the IP layer selects the best address
router(config)#
mgcp default-package package
Configure the default package capability type
Default for residential gateways: line-package
Default for trunking gateways: trunk-package
router(config)#
mgcp package-capability package
Configure additional package capability
– In addition to the default package
Package should be supported by the specific call agent
IP
ccm-manager mgcp
mgcp
mgcp call-agent 10.1.1.1
mgcp bind control source-interface Fastethernet0/0
mgcp bind media source-interface Fastethernet0/0
!
network-clock-participate wic 0
network-clock-select 1 e1 0/1/0
ccm-manager mgcp
mgcp
mgcp call-agent 10.1.1.1
mgcp bind control source-interface Fastethernet0/0
mgcp bind media source-interface Fastethernet0/0
!
controller t1 0/1/0
ds0-group 1 timeslots 1-24 service mgcp
!
mgcp default-package trunk-package
mgcp package-capability dt-package
© 2010 Cisco Systems, Inc. All rights reserved. CVOICE v8.0—2-154
Verifying MGCP
Gateways
Command Description
show mgcp Displays MGCP status and parameters
show ccm-manager Displays the registration state with the
primary, secondary, and tertiary call agent
show mgcp endpoint Displays the MGCP endpoint names, related
voice ports, and administrative status
show mgcp statistics Shows MGCP packet statistics
Interface T1 0/1/0
Audio Clarity
QoS Requirements
Transporting Modulated Data over IP Networks
Understanding Fax/Modem Pass-Through, Relay, and Store
and Forward
Gateway Signaling Protocols and Fax/Modem Pass-Through
and Relay
DTMF Support
Delay: Time it takes for the signal to propagate from one end
to the other end of the conversation
Jitter: Variation in the arrival of voice packets
Fidelity: Audio accuracy or quality
Echo: Usually due to impedance mismatch
Packet loss: Loss of packets in the network
Sidetone: Allows speakers to hear their own voice
Background noise: Low-volume noise heard at the far end of
the conversation
Propagation
DSP
Delay Prop. DSP
Delay
Delay Delay
Processing
Proc.
Delay
Prop. Delay
Process. Dejitter
Delay Delay Buffer
Queuing Queuing
Queuing Queuing
Delay Delay
Delay Delay
Serialization Delay
Processing Propagation
Delay Delay
Queuing
Delay
Delay in ms
Description
(one way)
0–150 Acceptable for most user applications
Acceptable, provided that administrators are aware of
150–400 the transmission time and its impact on the
transmission quality of user applications
Unacceptable for general network planning purposes
Above 400 (However, it is recognized that in some exceptional
cases, this limit will be exceeded.)
Time
Lost Audio
Bandwidth
Type of traffic Description
Requirement
Voice media 17–106 kb/s Per-call bandwidth including Layer 3+
overhead. Depends on the codec
type. The bandwidth should be
guaranteed end-to-end.
Signaling (SCCP) 150 b/s Approximate value per call, irregular
bandwidth usage.
Header compression
– Lowers the packet overhead
FRF.12
– Splits large data packets into smaller fragments to allow timely voice transmission
IP RTP Priority and Frame Relay IP RTP Priority
– Prioritization of voice media traffic
Low Latency Queuing (LLQ)
– Voice prioritization over data packets
Multilink PPP (MLP)
– Link aggregation
Resource Reservation Protocol (RSVP)
– Method for Call Admission Control
PSTN fallback
– Back up over PSTN if network service below required level
VoIP
QoS
Pass-Through Relay
Available for fax or modem Available for fax or modem
Carries signal in-band, as RTP packets Carries signal out-of-band as Simple
Packet Relay Transport (SPRT)
packets, over UDP
If supported by both ends, switches to If supported by both ends, may apply
G.711 or clear channel, no VAD, no echo compression
canceller
Capability of the other end learned via Capability of the other end learned via
Network Signaling Events (NSE), upon Network Signaling Events (NSE), upon
fax or modem signal detection fax or modem signal detection
If not supported by the other end, falls If not supported by the other end, can
back to regular RTP with configured fall back to pass-through, or from T.38
codec fax relay to Cisco fax relay
0110011 0110011
G.711 64-kb/s G.711 64-kb/s
Encoding Decoding
IP Network
0110011 0110011
End-to-End Connection
0110011 0110011
DSP DSP
Demodulates Modulates
IP Network
0110011 0110011
Fax Email
PSTN
Email Fax
PSTN
IP Network
VoIP Call
T.30
CED Tone
NSE Accept
IP Network
DIS Message
Fax Relay Switchover (PT96)
IP Network
CED Tone
DIS Message
Mode Request
IP Network
CED Tone
DIS Message
INVITE (T.38 in SDP)
200 OK
ACK
S0
256 G.729 Codec S1
kb/s Being Used 256
kb/s
1/0/0
1001 2/1/0
PSTN
dial-peer voice 1 pots dial-peer voice 1 pots
incoming called-number . incoming called-number .
direct-inward-dial direct-inward-dial
! dial-peer voice 2 voip
dial-peer voice 2 voip incoming called-number .
incoming called-number . dial-peer voice 2001 pots
! destination-pattern 2001
dial-peer voice 1001 pots port 1/0/0
destination-pattern 1001 dial-peer voice 2002 pots
port 1/0/0 destination-pattern 2002
! port 1/0/1
dial-peer voice 2000 voip dial-peer voice 1000 voip
destination-pattern 200. destination-pattern 100.
session target ipv4:10.2.1.1 session target ipv4:10.1.1.1
© 2010 Cisco Systems, Inc. All rights reserved. CVOICE v8.0—2-204
VoIP Dial Peer Characteristics
Criteria Description
Signaling protocol Default H.323. Can be changed with session protocol sipv2
command.
Source IP Outgoing interface address. Can be changed with h323-gateway
address voip bind srcaddr (interface mode) or bind (sip mode)
command.
Digit consumption No digits are consumed (equivalent to forward-digits all).
Session target IP address, DNS name, gatekeeper (RAS), or SIP server.
Configured with session target command.
Inbound dial peer Incoming called-number, answer-address, destination-pattern.
matching Default dial peer: any codec, no DTMF relay, IP precedence 0,
VAD enabled.
Outbound dial Most explicit match on destination-pattern.
peer matching
Direct Inward Dial Does not apply. Related only to inbound POTS dial peers.
router(config-dial-peer)#
dtmf-relay {[cisco-rtp] [h245-alphanumeric] [h245-signal]
[rtp-nte [digit-drop]] [sip-notify]}
H.323 options (in priority order): cisco-rtp, h245-signal,
h245-alphanumeric, rtp-nte, none
SIP options (in priority order): sip-notify, rtp-nte, none
If no common dtmf-relay method is negotiated, the call is set
up with dtmf-relay none (DTMF tones left in the RTP
channel)
Digit-drop option (available for RTP-NTE) is required for
Cisco Unified Border Element interworking with out-of-band
methods (H.245 and SIP-Notify)
2001
R1 1/0/0
R2
1001 10.1.1.1
10.2.1.1
IP WAN 1/0/1 2002
1/0/0
router(conf-voi-serv)
router(config-dial-peer)#
fax protocol {cisco | none | system | pass-through
{g711ulaw | g711alaw}}
Enables Cisco fax relay and pass-through globally (voice
service voip) or in dial-peer mode
System option exists in dial-peer mode and refers to global
setting
Default for voice service voip: cisco
Default for dial-peer: system
router(conf-voi-serv)
router(config-dial-peer)#
fax protocol t38 [nse [force]] [ls-redundancy value [hs-
redundancy value]] [fallback {cisco | none | pass-through
{g711ulaw | g711alaw}}]
Enables T.38 fax relay globally (voice service voip) or in dial-peer
Overwrites fax protocol command (cisco, none, pass-through)
Dial-peer setting takes precedence over global setting
Optionally, can use named signaling events (NSEs) conditionally or
unconditionally (force) to switch to T.38
Packet redundancy:
– Low-speed – from 0 (default, no redundancy) to 7 copies
– High-speed – from 0 (default, no redundancy) to 3 copies
Fallback options: Cisco proprietary fax relay, none, fax pass-through
router(config-dial-peer)#
fax rate {2400 | 4800 | 7200 | 9600 | 12000 | 14400}
{disable | voice} [bytes milliseconds]
Throttles down fax transmission speed in dial-peer mode
– Affects transmission length
disable: Disables fax relay transmission capability
voice: Highest possible transmission speed allowed by the voice
rate.
– Can monopolize bandwidth
bytes: fax packetization rate, in milliseconds.
– Range is 20 to 48. Default is 20
Fax relay transport is UDP, not RTP/UDP
– RTP header compression does not apply
router(conf-voi-serv)
router(config-dial-peer)#
fax-relay {ans-disable | ecm disable | sg3-to-g3 [system]}
Enables Super Group 3 (SG3) fax machines to negotiate down to
G3 speeds (from up to 33.6 kb/s to up to 14.4 kb/s)
Applicable to Cisco proprietary and T.38 fax relay
ans-disable: Disables ANS tones from originating in SG3 fax
machines so that these machines can operate at G3 speeds
ecm disable: Suppresses Error Correction Mode
SG3-to-G3: Allows SG3 machines to negotiate down to G3 speeds
System option exists in dial-peer mode and refers to global setting
Default: Not enabled—modem upspeed can occur when ANS tones
are detected, fax-relay ECM is enabled, and SG3-to-SG3 fax relay
communication is not supported and probably will fail
Result: Cisco fax relay, fax rate 4800 b/s, SG3 support
R1 R2
1001 10.1.1.1 2001
10.2.1.1
IP WAN 1/0/1
1/0/0
R1 R2
1001 10.1.1.1 2001
10.2.1.1
IP WAN 1/0/1
1/0/0
router(config)#
voice class codec class_tag
Creates a codec voice class
router(config-class)#
codec preference value codec-type [mode frame-size][bytes
payload-size]
Configures the codec voice class with codecs and their preferences
Mode and frame size apply to iLBC:
– 20: 20-ms frames for 15.2 kb/s bit rate (default)
– 30: 30-ms frames for 13.33 kb/s bit rate
Payload size: voice payload of each frame
– Values depend on the codec type
Additional options exist for GSMAMR-NB codec
router(config-dial-peer)#
voice-class codec class_tag
Assigns codec voice class to dial peer (multiple codec option)
router(config-dial-peer)#
codec {codec [bytes payload-size] | transparent} [fixed-
bytes]
Defines an individual codec on a dial peer
payload size: voice payload of each frame
– Values depend on the codec type
transparent: enables codec capabilities to be passed transparently
between endpoints in a Cisco Unified Border Element
fixed-bytes: codec byte size is fixed and nonnegotiable
Default: g729r8, 20-byte payload
1/0/0
router(config-dial-peer)#
max-conn number
Specifies the maximum number of incoming or outgoing
connections for a particular dial peer
Typically used to define the number of connections used
simultaneously to send or receive fax-mail, for off-ramp
store-and-forward fax functions
Can be applied to these dial peer types: POTS, VoIP,
Multimedia Mail over IP (MMoIP), or Voice over Frame Relay
(VoFR)
Number range: 1 to 2,147,483,647
Default: no limit
VoIP dial peers relate to voice call legs established over the
IP WAN.
DTMF relay options (cisco-rtp, h245-alphanumeric, h245-
signal, rtp-nte, and sip-notify) are configured in the dial
peer, and are subject to negotiation.
T.38 fax relay can fall back to Cisco proprietary fax relay or
fax pass-through, while Cisco proprietary modem relay may
fall back to modem pass-through, if not supported by the
peer gateway.
Dial peers can be configured with a prioritized codec list or a
single codec.
The number of calls can be limited in the dial peer.