Table Of Contents
Provisioning
Setting Up Basic IP UPC Services
Network-Service Considerations
Establishing a Network-Service Definition
Configuring Voice over IP
VoIP Basics
Call Flow
Dial Peers
Configuring Basic VoIP
Perform Preconfiguration Tasks
Configure Signaling on Voice Ports
Configure Dial Peers
Tweak Your System Configuration
Voice QoS Basics
Enabling QoS Features for VoIP
Congestion Management
Fragmentation and Interleaving
Traffic Shaping for Frame Relay
Other Bandwidth-Reduction Features
Additional VoIP Resources
Configuring SS7 F-links
Upgrading Cisco IOS Images
Upgrading SPE Firmware
Obtaining SPE Firmware
Upgrade Commands
Choosing an SPE-Firmware Update or Upgrade Strategy
SPE Firmware Upgrade Scenarios
Displaying SPE Firmware Versions
Upgrading SPE Firmware from the Cisco.com TFTP Server
Downloading SPE Firmware from Cisco.com
Copying SPE Firmware from a Local TFTP Server
Upgrading SPE Firmware from Diskettes
Copying SPE Firmware to Your PC
Copying SPE Firmware from Your PC to the SPEs
Using the SPE Firmware Bundled with the Cisco IOS Software
Split Modes
Classic-Split Mode
Configuring Classic-Split Mode
Classic-Split Configuration Commands
Classic-Split Show Commands
Managing a Classic Split
Handover-Split Mode
Upgrading to a High-Availability Cisco IOS Release
Configuring Handover-Split Mode
Configuring Handover-Split Mode in Extraload
Handover-Split Configuration Commands
Handover-Split Show Commands
Managing a Handover Split with SS7
Sample Handover-Split Configuration
Provisioning
This chapter describes basic service provisioning, including IP service considerations, configuration of Voice over IP, upgrade procedures, and configuration of split modes. It contains the following sections:
•
Setting Up Basic IP UPC Services
•
Configuring Voice over IP
•
Configuring SS7 F-links
•
Upgrading Cisco IOS Images
•
Upgrading SPE Firmware
•
Split Modes
Tip
House the Cisco AS5850 in an area with constant temperature and humidity. Cooler environments are ideal for stabilizing hardware temperatures. Humidity should be high enough to prevent accumulation of static electricity, yet low enough to prevent condensation; relative humidity up to 90 percent is acceptable.
For details on safety recommendations, site requirements (including shelf specifications, space, chassis heights, rack types, mounting options, power, and plant wiring), and site logs for monitoring installation progress or recording upgrade history, refer to the Cisco AS5850 Universal Gateway Hardware Installation Guide, available online at the Cisco AS5850 product documentation website.
Setting Up Basic IP UPC Services
This section describes how to set up and provision basic IP universal-port-card services using a Cisco AS5850 universal gateway. It is tailored for network engineers who work with dialup access technologies, and assumes that the reader is Cisco certified or familiar with Cisco IOS routers and technologies.
Corporate users and Internet service providers (ISPs) install dialup services to facilitate e-mail, e-commerce, and application/database access for employees, roaming sales personnel, household consumers, and students (see Figure 5-1). As a corporate user or ISP, you can do the following:
•
Enable remote UPC users to access IP backbone resources through the public switched telephone network (PSTN)
•
Build an access network foundation that scales to support larger dial implementations for the future
Figure 5-1 Business Scenario
Network-Service Considerations
The network-service definition for a corporate user generally differs from that for an ISP, as shown in Table 5-1.
Table 5-1 Network-Service-Definition Perspectives
Attribute
|
Corporate-User Perspective
|
ISP Perspective
|
Scaling projections
|
Have smaller projections.
|
Have larger projections, and require higher-density network gateways such as the Cisco AS5850.
|
Line requirements
|
Have lower requirements.
|
Have higher requirements.
|
Client types and Internet access
|
Control the client types used by their employees.
|
Offer Internet access to all client types.
|
Security and billing
|
Care more about security and less about billing.
|
Care more about billing and less about security.
|
V.90
|
Have lower V.90 priority and spend less time fine-tuning V.90. Revenue streams do not depend on high modem-connect speeds, and so will most likely deploy dialup service for employees.
|
Have higher V.90 priority and spend more time fine-tuning V.90. Primary objective is to enable 56K modem connections, because higher connect speeds equate to increased sales.
|
AAA design
|
Consider to be important, because a defined security policy protects enterprise network resources.
|
Consider to be less important.
|
Multilink PPP support for remote dialin
|
Generally do not need.
|
Need in a stacked solution for future deployment.
|
Password changes
|
Enable network administrators to change their own passwords using an EXEC shell login.
|
Allow users to change their own passwords using a website interface.
|
Password security
|
For the short term, store user passwords in a local username database inside the route switch controller (RSC). In the long term, may scale to remote TACACS+ security for storing user passwords; users can change passwords using the EXEC shell.
|
For the short term, store user passwords in a local username database inside the RSC. In the long term, scale to remote AAA RADIUS security for storing user passwords; users can change passwords using the Cisco Secure website.
|
Per-user attribute definitions (authorization)
|
Support; enable vendors to dial in, pass through filters, and access specific devices.
|
Do not support; provide Internet access only.
|
Establishing a Network-Service Definition
Begin your implementation of basic IP UPC services by establishing a network service definition. Use the perspectives described in Table 5-1 preceding and in the following list of design and configuration considerations as a guide. A conservative approach is to project your current deployment and design into a three-month, one-year, and five-year timeline.
Step 1
Project user growth and resulting line requirements (lines=users/busy-hour ratio) over the following intervals:
•
3 months (example: 25 lines)
•
1 year (example: 50 lines)
•
5 years (example: 100 lines)
Step 2
Determine user-to-line ratio during busy hours.
Step 3
Determine access media to be used for dial services:
•
Analog lines
•
ISDN BRI lines
Step 4
Determine types of remote devices to support:
•
Analog modems
•
Remote LANs
•
PCBUS ISDN terminal adaptors
•
V.110
•
V.120
Step 5
Determine operating systems to support:
•
Windows 95
•
Windows 98
•
Windows NT
•
UNIX
•
Mac OS
Step 6
Determine if dial-in modem services will be supported.
Step 7
Rank technology priorities:
•
AAA design
•
IP design
•
V.90 modem performance
Step 8
Determine which access service will be used for connecting to modems:
•
EXEC shell sessions
•
PPP sessions
•
SLIP sessions
Step 9
Determine if multilink will be supported. If yes, indicate whether you will scale to a stacked multichassis solution.
Step 10
Determine if PPP timeouts (accounting) will be supported.
Step 11
Determine where user passwords will be stored in the short term:
•
Local AAA database in the router
•
Remote AAA database in a server
Step 12
Determine if an AAA server will be used in the long term. If yes, specify which protocol will be used:
•
TACACS+
•
RADIUS
Step 13
Determine if users will be allowed to change their own passwords. If yes, specify how:
•
EXEC shell
•
CiscoSecure website
Step 14
Determine if the access network will use an external authentication database such as SecureID, Windows NT, or Novell NDS.
Step 15
Determine if per-user attribute definitions (authorization) will be supported.
Step 16
Indicate whether an existing accounting system to monitor call-detail records is in place.
Step 17
Indicate whether you are running an existing network-management system. If no, determine whether a network-element management server is needed.
Configuring Voice over IP
Voice over IP (VoIP) technology enables voice-capable routers and switches to transport packetized live voice traffic such as telephone calls over IP data intranetworks or internetworks rather than public switched telephone networks (PSTN) or private TDM (PBX) networks. VoIP thus enables toll bypass, remote PBX presence over WANs, unified voice and data trunking, and plain old telephone service (POTS)-Internet telephony gateways. VoIP enables more efficient and full use of your existing IP data network, reducing both transmission costs and possibly your need to support dual (voice and data) networks.
Routers and switches such as the Cisco AS5350 and Cisco AS5400 universal gateways can handle origination, transport, and termination of VoIP traffic. They digitize analog voice signals, compress them, package them into a series of discrete packets, and transport them interleaved with data packets. They can transmit VoIP packets to both VoIP and non-VoIP destinations, and can receive both VoIP and non-VoIP calls. When data lines are busy, they can spill traffic onto the PSTN.
To ensure acceptable quality of service (QoS) for your voice users, it is important that you configure your gateway carefully and monitor its performance vigilantly—to ensure, for voice traffic, priority service with minimal loss and delay. Unlike most other types of data, voice is intolerant of almost any form of loss or delay. Users cannot wait for a destination device to reorder packets and request that the sending device retransmit any that are missing, as it does for most other data types.
To configure basic VoIP, in general you need to do the following:
•
Configure signaling on voice ports
•
Configure dial peers
You might also need to do the following:
•
Configure voice QoS features
•
Configure Frame Relay for VoIP
•
Configure the gateway to distinguish between voice and modem calls (necessary when the network-access server supports both modem dialup and VoIP users on the same POTS interface)
•
Optimize dial-peer and network-interface configurations
•
Configure VoIP for Microsoft NetMeeting
This section briefly introduces the subject of configuring VoIP and overviews the first few configuration tasks. It describes, at a high level, some of the voice QoS features that you can enable. Most important, it points you to other references from which you can gain a broader and deeper look at the subject.
Section contents are as follows:
•
VoIP Basics
•
Configuring Basic VoIP
•
Voice QoS Basics
•
Enabling QoS Features for VoIP
•
Additional VoIP Resources
Note
It is critical that you consult the additional references sited throughout and at the end of the section before you configure VoIP. These plus additional references throughout the Cisco website (search for configure voip to locate the most current references) provide the information that you need to optimize settings. The more information that you have at your disposal, the greater your probability of success, as measured by cost savings and user acceptance.
Note
Although VoIP technology is primarily software-based, it requires that you install a universal-port dial feature card into the appropriate slot of your Cisco AS5350 or Cisco AS5400 universal gateway. The number of ports or channels available for sending VoIP data depends on the capacity of your card.
VoIP Basics
Before you configure VoIP on your gateway, you should understand at a high level what happens when you place a VoIP call. Think of each event in a call flow as occurring on one of the several "legs" of a call, as shown in the following typical scenario. Other scenarios are possible, of course, including ones where the call destination is an IP phone and the call never leaves the IP network.
•
Call-leg 1: Originating device to originating gateway
•
Call-leg 2: Originating gateway into the IP network
•
Call-leg 3: IP network to destination gateway
•
Call-leg 4: Destination gateway to destination device
Figure 5-2 Call Legs
Legs connecting a local device (typically a phone, fax machine, or PBX) to a gateway are called POTS (plain old telephone service) legs. Legs connecting a gateway to the IP network are called VoIP legs. A POTS or VoIP leg is either inbound or outbound, from the perspective of the associated gateway, as shown in Table 5-2 below.
Table 5-2 Call Legs
A call leg from...
|
To...
|
Is of this type...
|
Originating device
|
Originating gateway
|
Inbound POTS
|
Originating gateway
|
IP network
|
Outbound VoIP
|
IP network
|
Destination gateway
|
Inbound VoIP
|
Destination gateway
|
Destination device
|
Outbound POTS
|
A gateway conferences two call legs—an inbound POTS with an outbound VoIP or an inbound VoIP with an outbound POTS—to create an end-to-end call through the gateway. A call that passes through both an originating gateway and a destination gateway has four call legs.
Call Flow
Table 5-3 and Table 5-4 detail the general call flow from the perspective of an originating and destination gateway respectively.
Table 5-3 VoIP Call Flow, Originating Gateway View
Event
|
Leg Type
|
User sends dialed digits via public switched telephone network to gateway.
|
Inbound POTS
|
Gateway does the following:
• Processes information (maps dialed digits, per information stored in dial-peer configuration tables, either to an IP host that connects directly to the destination gateway or to a PBX at the destination that can complete the call).
• Initiates H.323 session across network.
• Processes voice signals and sends packets over network. As appropriate, sends call-progress and other in-band signals.
• Ends session.
|
Outbound VoIP
|
Table 5-4 VoIP Call Flow, Destination Gateway View
Event
|
Leg Type
|
Gateway receives dialed digits.
|
Inbound VoIP
|
Gateway does the following:
• Processes information (maps dialed digits, per information stored in dial-peer configuration tables, to a destination device).
• Gateway participates in H.323 session across network.
• Processes voice signals and sends packets over network. As appropriate, sends call-progress and other in-band signals.
• Ends session.
|
Outbound POTS plus inbound VoIP
|
Dial Peers
Each kind of call leg into or out of a gateway—inbound POTS, outbound VoIP, inbound VoIP, and outbound POTS—must have assigned to it a set of allowable call scenarios, called dial peers.
•
POTS dial peers associate gateway ports with destination endpoints. You need a POTS dial peer for every port-to-endpoint association.
•
VoIP dial peers associate destination phone numbers with IP addresses or other means to send packets to that destination. You need a VoIP dial peer for every set of destination endpoints.
A dial peer is, essentially, a single static route within a routing table. A collection of dial peers constitutes a dial plan.
Syntax
A POTS dial peer has the following syntax:
destination-pattern number
other configurable options
where tag is a numeric value of local significance only, number is the full E.164 phone number of the associated endpoint, and port# is the voice port in the gateway through which the call is transmitted once a destination pattern is matched.
A VoIP dial peer has the following syntax:
destination-pattern number
session target data address
other configurable options
where tag is a numeric value of local significance only, number is the full E.164 phone number of the associated endpoint, and data address is where the gateway sends a call whose destination pattern matches the one in the peer.
Matching Rules
A gateway redirects an incoming call along the most appropriate outbound leg. It selects the most appropriate leg by first finding the POTS or VoIP (depending on call direction) dial peer whose destination pattern matches the call's dialed digits. For outbound VoIP legs, it chooses the longest matching dial peer. If more than one such match exists, it checks whether preferences have been assigned those peers and selects the peer with the lowest preference level.
Example
Let us say, for a very simple example (your implementation will be far more complex), that a company has offices in San Jose and Newark. Extensions in the San Jose office are in the range 5000 to 5999, those in the Newark office in the range 6000 to 6999. A caller at San Jose extension 5000 wants to call Newark extension 6000. The dial peers shown in Table 5-5are needed to make this connection.
Table 5-5 Sample Dial Peers
Dial-peer (tag) number
|
Dial peer
|
Function
|
San Jose Gateway
|
1
|
|
Associates San Jose extension 5000 with San Jose gateway port 1/0:1.
|
2
|
session target ipv4:172.16.1.1
|
Transmits San Jose's Newark-bound calls (extensions 6000-6999) to the gateway in Newark whose IP address is 172.16.1.1.
|
Newark Gateway
|
3
|
session target ipv4:172.19.1.1
|
Transmits Newark's San Jose-bound calls (extensions 5000-5999) to the gateway in San Jose whose IP address is 172.19.1.1.
|
4
|
|
Associates Newark extension 6000 with Newark gateway port 1/0:3.
|
When the San Jose caller at extension 5000 dials the digits 6000, the originating gateway in San Jose does the following:
1.
Receives, through port 1/0:1 to which extension 5000 connects, the dialed digits 6000.
2.
Searches its VoIP dial peers until it finds dial-peer 2, whose destination pattern best matches the dialed digits.
3.
Sends the dialed digits through the IP network to the gateway specified by dial-peer 2's session target (172.16.1.1).
The destination gateway in Newark now does the following:
1.
Receives the dialed digits through the IP network.
2.
Searches its POTS dial peers until it finds dial-peer 4, whose destination pattern matches the dialed digits.
3.
Sends the call out the port specified by that dial peer (port 1/0:3, which connects to extension 6000).
In this west-to-east scenario, dial peers 2 and 4 are used, in that order. If Newark extension 6000 were to call San Jose extension 5000, dial peers 3 and 1 would be used, in that order.
Configuring Basic VoIP
Configuring basic VoIP involves the following:
•
Perform Preconfiguration Tasks
•
Configure Signaling on Voice Ports
•
Configure Dial Peers
•
Tweak Your System Configuration
Perform Preconfiguration Tasks
Before you configure your gateway for VoIP, complete the following tasks. See the earlier sections in this book and the references at the end of this section for the additional information you need to do so.
Step 1
Establish a working IP network in which delay (as measured by ping tests) and jitter are minimized.
Step 2
Install a universal port dial feature card into the appropriate slot of your gateway. The number of ports or channels available for sending VoIP data depends on the capacity of the card.
Step 3
Complete basic gateway configuration.
Step 4
Formulate the beginning of a dial plan that includes the following:
•
Logical network diagram showing voice ports and components to which they connect, including phones, fax machines, PBX or key systems, other voice devices that require connection, and voice-enabled routers
•
Connection details, including physical interfaces (T1, analog, etc.), relevant LAN and WAN ports, and all voice ports; for each WAN, type (Frame Relay, PPP, etc.); for Frame Relay, relevant PVCs and link-access rates
•
Phone numbers or extensions for each voice port, logically laid out and consistent with existing private dial plans and external dialing schemes
Step 5
Establish a working telephony network based on that dial plan.
Step 6
Integrate the dial plan and telephony network into your existing IP network topology. The following is recommended:
•
Make routing or dialing transparent to users by, for example, avoiding such inconveniences as secondary dial tones.
•
Contact your PBX vendor to learn how to reconfigure PBX interfaces.
Configure Signaling on Voice Ports
Your dial feature card supports ISDN PRI, E1 R2, and T1 CAS digital signaling. Configure your voice ports according to signaling type. Set parameters as needed for input gain, output attenuation, echo cancellation, various timeouts, and translation rules. Defaults are generally adequate, but may need to be tweaked for some networks.
Note
For ISDN configurations, voice ports (with serial interfaces acting as D channels) are created automatically when you configure an ISDN PRI group. Before configuring your voice ports, configure both B and D channels.
Tip
For more information, refer to the following documents:
•
Cisco IOS Voice, Video, and Fax Configuration Guide, Release 12.2, available online at
http://www.cisco.com/en/US/products/sw/iosswrel/ps1835/products_configuration_guide_book09186a0080080ada.html
•
E1 R2 Signaling Configuration and Troubleshooting, available online at
http://www.cisco.com/warp/public/788/signalling/e1r2config.html
ISDN PRI Signaling
Signaling for ISDN PRI VoIP is handled by ISDN PRI group configuration. If you have ISDN PRI voice ports, be sure to complete ISDN PRI, D-channel, and NFAS configuration, as appropriate.
Ensure that multiframes are established on the serial interfaces (acting as D channel). Then set parameters as needed for input gain, output attenuation, echo cancellation, various timeouts, and translation rules.
E1 R2 Signaling
R2 is an international signaling standard for channelized E1 networks used in Europe, Asia, and South America, equivalent to channelized T1 signaling in North America. There are two elements to R2 signaling:
•
Line signaling (supervision), including R2 digital, R2 analog, and R2 pulse
•
R2 interregister signaling (call-setup control), including compelled, noncompelled, and semi-compelled
If you have ISDN PRI voice ports, be sure to complete E1 R2 signaling configuration. Configure signaling types and, if necessary, set parameters unique to specific countries.
T1 CAS Signaling
Channel-associated signaling (CAS) occurs in-band within the data channel, rather than on a separate signaling channel as is the case (on the D channel) with ISDN PRI. For T1 CAS, specify parameters such as frame type and line code.
Configure Dial Peers
Your next step in preparing to set up dial peers is to determine the configurable options that you want to enable.
Configurable Options
Configurable options are the attributes to be applied to calls handled using that dial peer. These typically include, at a minimum, required quality of service, codec for voice encoding, and whether voice-activity detection is to be enabled. The following attributes, for example, are typical in a VoIP dial peer:
You have many options and great flexibility in configuring dial peers. Table 5-6 and Table 5-7 show the most common configurable options that you can enable in POTS and VoIP dial peers, respectively, from config or config-dial-peer mode.
Table 5-6 POTS Dial-Peer Configuration Commands
Command
|
Purpose
|
|
Sets call-destination number.
|
|
Sets selected application.
|
|
Sets calling number (for fgd_eana signaling only).
|
|
Sets a command to its defaults.
|
|
Sets full E.164 telephone number.
|
|
Strips digits from the POTS dialed number.
|
|
Sets called number as final call destination.
|
|
Exits dial-peer configuration mode.
|
|
Configures the destination digits forward of this dial peer.
|
|
Stops hunting on dial peers.
|
|
Sets incoming called number.
|
|
Prepends info digits to the calling number.
|
|
Sets information type for dial peer.
|
|
Sets maximum connections per peer; "no" sets to unlimited.
|
|
Negates a command or sets its defaults.
|
|
Sets calling/called party numbering type.
|
|
Sets voice port associated with the peer.
|
|
Configures preference order of the peer.
|
|
Sets prefix to be dialed before the dialed number.
|
|
Indicates call progress.
|
|
Registers E.164 number of this peer with gatekeeper.
|
|
Sets resource allocation policy.
|
|
Sets session [target | protocol | transport] for this peer.
|
|
Changes admin state of this peer to down (no->up).
|
|
Sets translation rule.
|
Table 5-7 VoIP Dial-Peer Configuration Commands
Command
|
Purpose
|
|
Sets minimally acceptable quality of service for calls to this peer.
|
|
Sets call destination number.
|
|
Sets selected application.
|
|
Restricts display of caller ID.
|
|
Sets codec for calls to this peer.
|
|
Set a command to its defaults.
|
|
Sets full E.164 telephone number.
|
|
Transports DTMF digits across IP link.
|
|
Exits dial-peer configuration mode.
|
|
Sets expectation factor for voice quality.
|
|
Configures fax service.
|
|
Sets fax-relay options.
|
|
Stops hunting on dial peers.
|
|
Sets calculated planning-impairment factor.
|
|
Sets incoming called number.
|
|
Sets information type for dial peer.
|
|
Sets IP packet options.
|
|
Sets maximum connections per peer; "no" sets to unlimited.
|
|
Sets maximum redirects for this peer.
|
|
Negates a command or sets its defaults.
|
|
Sets calling/called party numbering type.
|
|
Configures preference order of the peer.
|
|
Sets required quality of service for calls to this peer.
|
|
Sets use of roaming server.
|
|
Sets session [target | protocol | transport] for this peer.
|
|
Sets use of settlement server.
|
|
Changes admin state of this peer to down (no->up).
|
|
Modifies SNMP voice-peer parameters.
|
|
Sets H.323 gateway technology prefix.
|
|
Sets translation rule.
|
|
Sets use of Voice Activity Detection.
|
|
Sets dial-peer voice-class control parameters.
|
Here are a few of the things that you can do with these commands in config or config-dial-peer mode:
•
Configure destination patterns with wildcards and other operators.
Example: Use 6... to denote a 4-digit number beginning with 6.
•
Define fixed-length or variable-length destination patterns.
Example: Use 6... to denote a 4-digit number beginning with 6; use 9t to denote a variable-length number beginning with 9.
•
Specify that a prefix be added to calls on certain outgoing POTS call legs.
Example: Prepend 9 to calls that pass through a PBX requiring 9 to access an outside line; replace prefixes that are stripped by a dial peer because they match the destination pattern.
•
Specify that certain dialed digits be expanded.
Example: Expand local 5-digit extensions beginning with 7 to the full E.164 number 1-408-7xxx.
•
Create a hunt group to handle inbound calls.
Example: Establish multiple dial peers, each for a different voice port, and each containing the same destination pattern; the gateway directs inbound calls to the voice ports in sequence until it reaches one that is not busy.
•
Set up preferences for routing outbound calls.
Example: Assign preference 1 to dial-peer voice 1, which directs outbound calls over the IP network; assign preference 2 to dial-peer voice 2, which directs calls over the PSTN; the gateway, looking for the longest exact match, finds both dial peers and then uses preference as a tie breaker among those matches.
Tip
For more information, refer to the following document:
•
Voice over IP for the Cisco AS5300, available online at
http://www.cisco.com/univercd/cc/td/doc/product/software/ios120/120newft/120t/120t3/voip5300/
Dial-Peer Configuration Table
The next step in creating dial peers is to create a dial-peer configuration table. Under the following headings, show data for all of your gateways and associated dial peers. Table 5-8 is for the simple gateway-to-gateway scenario described earlier; your own will be far more complex.
Table 5-8 Dial-Peer Configuration Table
Dial-Peer Tag
|
Extension
|
Destination Pattern
|
Type
|
Voice Port
|
Session Target
|
CODEC
|
QoS
|
San Jose Gateway
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Newark Gateway
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Tip
Consult the references at the end of the section before you create a dial-peer configuration table.
Tweak Your System Configuration
Should you have problems with QoS, try adding the following commands to your configuration:
•
At the top-level configuration level:
•
Under the Fast Ethernet interface:
Voice QoS Basics
Quality of service refers to the ability of a network to provide differentiated service to selected network traffic over various underlying technologies. QoS is not inherent in a network infrastructure. Rather, you institute QoS by strategically enabling appropriate QoS features throughout an intranetwork or internetwork.
Characteristics of Voice Traffic
Voice traffic differs from data traffic in a number of ways:
•
Data is often bursty by nature; voice is deterministic (smooth).
•
Data applications resend dropped packets; voice applications can only conceal dropped packets.
•
Data applications can usually tolerate some delay; voice applications must minimize delay, so that the recipient does not hear clips in the transmission.
All of these mandate use of QoS strategies to give strict priority to voice traffic, ensuring reliable delivery and minimal delay for networks that carry both voice and data.
Note
The ITU-T G.114 recommendation specifies, for good voice quality, that no more than 150 ms of one-way, end-to-end delay should occur. In many situations, 200 ms may be acceptable.
Reliability and Predictability
QoS features for voice focus on two things—reliability and predictability. Reliability ensures delivery without packet loss. Predictability ensures delivery without excessive delay. Together, they serve to eliminate poor-quality voice transmission, including crackles and missing syllables that render a call unsatisfactory or even incoherent to the recipient.
Levels of Service
Voice traffic requires real-time service, with steady and predictable throughput and low delay. In the presence of bursty, delay-tolerant data traffic, you must provide for voice traffic a differentiated—that is, higher-priority—level of service. Because networking equipment and devices that carry both data and voice cannot differentiate traffic that requires high-priority service from traffic that does not, your only means for ensuring that voice traffic is expedited or that it receives constant, predictable transmission across a backbone shared by data traffic is by enabling QoS features.
Effective end-to-end QoS throughout a network must serve disparate users, applications, organizations, and technologies, all at reasonable cost and effort. QoS features enable you to balance service levels for user satisfaction, granting priority service to voice while servicing data transmission to the degree of fairness that you require. In addition, other benefits can accrue: Internet service providers (ISPs), for example, can selectively enable QoS features so as to offer their customers differentiated services with different associated costs, as well as a spectrum of new applications and additional services based on these levels of service.
Cisco IOS software provides many features for optimizing QoS. Fine-tuning your network to adequately support VoIP almost certainly involves enabling some of these features. Be sure to read the sited references as you enable features, as the details of wide-scale QoS deployment are beyond the scope of this document. Also, keep in mind that you must configure QoS throughout your network, not just on the devices running VoIP, to optimize voice performance.
Not all QoS features are appropriate for all network devices and topologies. Edge devices and backbone devices do not necessarily perform the same operations: Edge devices handle packet classification, fragmentation, queuing, bandwidth management, and policing; backbone devices handle switching and transport, congestion management, and queue management. Thus, the QoS tasks that they perform might differ. Consider the functions of both edge and backbone devices in your network, and enable QoS features for each type as appropriate.
Enabling QoS Features for VoIP
The following text briefly overviews some of the most important QoS features that you can enable, and cites references that you need to make informed decisions about the use and optimization of those features. Features discussed include the following:
•
Congestion Management
–
Weighted Fair Queuing
–
Low-Latency Queuing
–
IP RTP Priority and Frame Relay IP RTP Priority
–
Resource Reservation
–
Call-Admission Control
•
Fragmentation and Interleaving
•
Traffic Shaping for Frame Relay
•
Other Bandwidth-Reduction Features
–
Voice Encoding
–
RTP Packet-Header Compression
–
Serialization Delay
–
Voice Activity Detection
–
Jitter Buffering
References in Additional VoIP Resources provide more information.
Congestion Management
Weighted Fair Queuing
You need to avoid congestion on backbone gateways serving high-traffic, high-speed networks. A weighted-fair-queuing methodology called WRED (weighted random early detection) queues traffic according to priority values that you set (you set voice traffic to critical, for example), sets different packet-drop thresholds for each queue, and drops packets in lower-priority queues as necessary so that higher-priority queues can be adequately served. This ensures that low-bandwidth conversations get through, even in the presence of other high-bandwidth applications.
Tip
For more information and configuration options, refer to the following documents:
•
Configuring Weighted Fair Queueing, available online at
http://www.cisco.com/univercd/cc/td/doc/product/software/ios120/12cgcr/qos_c/qcpart2/
Low-Latency Queuing
If you need to give voice packets priority but cannot allow them to starve other applications, the recommended queuing methodology is LLQ (low-latency queuing), used in conjunction with IP RTP Priority. LLQ directs voice traffic into a priority queue, but allows you to place limits on the amount of traffic serviced at this and each other priority level before the next-lower priority level is serviced.
Tip
For more information and configuration options, refer to the following document:
•
Low-Latency Queueing, available online at
http://www.cisco.com/univercd/cc/td/doc/product/software/ios120/120newft/120t/120t7/
IP RTP Priority and Frame Relay IP RTP Priority
IP RTP Priority creates a strict-priority queue for VoIP calls. Only when the priority queue empties does the gateway process the other queues. The feature becomes active only when congestion exists on the interface.
Configure IP RTP Priority when you configure dial peers. Set an IP priority level to specify, in the packet header, that a voice call be accorded class-5 (critical) priority. Other queuing and traffic-management functions such as RSVP detect this information and provide priority service.
If your voice traffic passes through a Frame Relay network, the same argument holds, but the feature is called Frame Relay IP RTP Priority (described in the third reference below).
Tip
For more information and configuration options, refer to the following documents:
•
Voice over IP Quality of Service for Low-Speed PPP Links, available online at
http://www.cisco.com/warp/public/788/voice-qos/voip-mlppp.html
•
IP RTP Priority, available online at
http://www.cisco.com/univercd/cc/td/doc/product/software/ios120/120newft/120t/120t5/iprtp.htm
•
Frame Relay IP RTP Priority, available online at
http://www.cisco.com/univercd/cc/td/doc/product/software/ios120/120newft/120t/120t7/
friprtp.htm
Resource Reservation
You can set things up so that your and any other similarly set-up sending or receiving system can reserve bandwidth, on a call-by-call basis, along a router path by enabling RSVP (Resource Reservation Protocol) on all WAN links that transport voice traffic.
Configure RSVP when you configure dial peers. Do not enable RSVP in conjunction with Frame Relay traffic shaping.
Tip
For more information and configuration options, refer to the following document:
•
Voice over IP for the Cisco AS5300, available online at
http://www.cisco.com/univercd/cc/td/doc/product/software/ios120/120newft/120t/120t3/voip5300/
Call-Admission Control
You can gracefully prevent calls from entering your Cisco AS5850 from the PSTN when certain resources—such as CPU, memory, and interfaces—are not available to process those calls. Such intervention is called call-admission control.
If your system experiences high CPU usage, large call volumes, or occasional large numbers of simultaneous calls, you need to control two specific aspects of call-admission control: call spikes and call thresholds. Doing so is especially important if you handle transactions involving debit cards, which require AAA and similar types of support.
Configure call spikes to limit the number of incoming calls over a short period of time. Configure call thresholds to define under which circumstances system resources should be enabled.
Tip
For more information and configuration options, including how to configure limits on call spikes and call thresholds, refer to the following document:
•
Call Admission Control for H.323 VoIP Gateways, available online at
http://www.cisco.com/univercd/cc/td/doc/product/software/ios122/122newft/122limit/122x/122xa/122xa_2/ft_pfavb.htm
Fragmentation and Interleaving
Transmission of voice packets, usually small (60 to 240 bytes) in size, can be unduly delayed in networks that also transmit large data packets. Fragmenting large data packets into smaller ones and interleaving voice packets among the fragments reduces jitter and delay. Use fragmentation and interleaving in conjunction with a congestion-management technique such as IP RTP Priority and/or RSVP if you have a low-bandwidth (<1.5 Mbps) WAN circuit, but not if you have a high-bandwidth (>1.5 Mbps) WAN circuit. The recommended fragmentation and interleaving methodology is FRF.12 for Voice over Frame Relay, Multilink PPP for VoIP-over-PPP leased lines.
Tip
For more information and configuration options, refer to the following documents:
•
For FRF.12, Frame Relay Fragmentation for Voice, available online at
http://www.cisco.com/warp/public/788/vofr/fr_frag.html
•
For Multilink PPP, Voice over IP Quality of Service for Low-Speed PPP Links, available online at
http://www.cisco.com/warp/public/788/voice-qos/voip-mlppp.html
Traffic Shaping for Frame Relay
You must regulate traffic flow so that packets arrive at their destination only as fast as the destination can handle them. You do so by buffering packets that are generated faster than a configured value, and releasing them at that value. It is especially important that you enable traffic shaping in Frame Relay networks, but not in conjunction with RSVP. Do not enable traffic shaping with PPP leased lines.
Tip
For more information and configuration options, refer to the following documents:
•
VoIP over Frame Relay with Quality of Service (Fragmentation, Traffic Shaping, IP RTP Priority), available online at
http://www.cisco.com/warp/public/788/voice-qos/voip-ov-fr-qos.html
•
Frame Relay Traffic Shaping for Voice, available online at
http://www-vdtl/SPUniv/Vofr/FR_traffic.htm
Note
Successful traffic shaping on a Frame Relay network requires that you set not just this but many other QoS features. Refer to these references and the "Additional VoIP Resources" section for more information.
Other Bandwidth-Reduction Features
Voice Encoding
The Cisco AS5350 and Cisco AS5400 gateways offer the following codec (coder-decoder) methodologies for encoding (digitizing and, optionally, compressing) voice:
•
G.711/PCM (pulse-code modulation): Digitizes, does not compress
•
G.729a/CS-ACELP (conjugate structure - algebraic code excited linear prediction): Digitizes and compresses
•
G.723.1/MP-MLQ (multipulse multilevel quantization), 6.3 or 5.3 kbps: Digitizes and compresses
Choosing a coding methodology is a matter of balancing tradeoffs among several factors, principal among them those listed for various methodologies in Table 5-9.
Table 5-9 Tradeoffs Among Codec Methodologies
Methodology
|
|
Frame Size (ms) (low is optimal)
|
Processing Required (mips) (low is optimal)
|
Perceived Quality (1=bad, 5=excellent) (high is optimal) 2
|
G.711 PCM
|
64 (very high)
|
0.125 (low)
|
0.34 (low)
|
4.1 (high)
|
G.729a CS-ACELP
|
8 (low)
|
10 (med)
|
10 (med)
|
3.7 (med)
|
G.723.1 MP-MLQ
|
6.3/5.3 (low)
|
30 (high)
|
16 (med-high)
|
3.9 (med)
|

Note
Tandem switching (also called dual encodings or dual compressions) can cause additional problems. Digital calls routed to a tandem (toll) office are converted there to analog form for processing, and then reconverted to digital form for further transmission. Converting and reconverting in this way more than about twice distorts signals irreparably. If your calls are subject to significant toll-office processing, choose PCM if you have sufficient bandwidth. It is also recommended that you employ a Cisco IOS Multimedia Conference Manager (H.323 gatekeeper) or management application such as Cisco Voice Manager to help manage these types of processes.
Other factors that might enter into your decision, or that you can use to tweak performance, include the likelihood of multiple tandem encodings and how you handle packet fragmentation.
Tip
For more information and configuration options, refer to the following document:
•
Voice over IP Quality of Service for Low-Speed PPP Links, available online at
http://www.cisco.com/warp/public/788/voice-qos/voip-mlppp.html
RTP Packet-Header Compression
Because of the repetitive nature of subsequent IP/UDP/RTP (network/transport/session-layer) headers, you can compress them significantly. A recommended methodology is cRTP (Compressed Real-Time Transfer Protocol), which, by tracking first-order and second-order differences between headers on subsequent packets, compresses the 40-byte header to just 2 or 4 (without or with UDP checksum) bytes. Other methodologies may be preferable if cRTP's high CPU usage causes delay. Employ a compression methodology on both ends of low-bandwidth (<1.5 Mbps) WAN circuits, but not at all on high-speed (>1.5 Mbps) WANs.
Tip
For more information and configuration options, refer to the following document:
•
Voice over IP Quality of Service for Low-Speed PPP Links, available online at
http://www.cisco.com/warp/public/788/voice-qos/voip-mlppp.html
Serialization Delay
You can control packet (payload) size—which, in turn, controls how long one packet takes to be placed on the system interface. Set this in bytes, ideally equating to no greater than 20 ms (typically equivalent to two 10-ms voice samples per packet). Increasing serialization delay increases end-to-end delay. You want to incur no more than 150-to-200 ms of 1-way, end-to-end delay.

Note
Take care when you assign a payload size for your chosen codec. To assign a codec and payload size, you use the codec codec bytes payload_size command under the dial-peer voip command. Although the codec command permits a wide range of payload sizes, the universal port card permits a much smaller range of sizes, to help ensure that end-to-end delay for voice signals does not exceed 200 ms. For the (default) g729r8 codec, these sizes are just 10ms, 20ms (recommended), and 30ms, which correspond to 10 bytes, 20 bytes, and 30 bytes of payload. If your network uses a variety of gateway and router types, you may need to ensure that payload sizes are set both optimally (so as not to incur excessive end-to-end delay) and consistently.
Tip
For more information and configuration options, refer to the following document:
•
Voice over IP - Per Call Bandwidth Consumption, available online at
http://www.cisco.com/warp/public/788/pkt-voice-general/bwidth_consume.html
Voice Activity Detection
Because telephone users generally speak in turn, a typical voice conversation contains up to 50 percent silence. A feature called VAD (voice activity detection) causes the gateway to transmit when speech starts and cease transmitting when speech stops. During silences, it generates white noise so that callers do not mistake silence for a disconnected call. By suppress