11-20

Cisco ONS 15310-CL and Cisco ONS 15310-MA Ethernet Card Software Feature and Configuration Guide R8.5
78-18133-01
Chapter 11 Configuring Quality of Service on the ML-Series Card
QoS Configuration Examples
Match input-interface SPR1
Match cos 1
ML-Series VoIP Example

Figure 11-7 shows an example of ML-Series voice-over- IP (VoIP). The associated commands are

provided in Example 11-9.

Figure 11-7 ML-Series VoIP Example
Example 11-9 ML-Series VoIP Commands
Router(config)# class-map match-all voip
Router(config-cmap)# match ip precedence 5
Router(config-cmap)# exit
Router(config)# class-map match-any default
Router(config-cmap)# match any
Router(config-cmap)# exit
Router(config)# policy-map pos0
Router(config-pmap)# class default
Router(config-pmap-c)# bandwidth 1000
Router(config-pmap-c)# class voip
Router(config-pmap-c)# priority 1000
Router(config-pmap-c)# interface FastEthernet0
Router(config-if)# ip address 1.1.1.1 255.255.255.0
Router(config-if)# interface POS0
Router(config-if)# ip address 2.1.1.1 255.255.255.0
Router(config-if)# service-policy output pos0
Router(config-if)# crc 32
Router(config-if)# no cdp enable
ML-Series Policing Example

Figure 11-8 shows an example of ML-Series policing. The example shows how to configure a policer

that restricts traffic with an IP precedence of 0 to 1,000,000 bps. The associated code is provided in

Example 11-10.

ML-Series

Router_A

Fast Ethernet 0 POS 0
SONET/SDH
STS-1 circuit
VoIP Traffic
General Data Traffic
During periods of congestion, the ML-Series card services
all VoIP traffic before servicing any general data traffic.
124087