Guest

Cisco IOS Software Releases 12.0 S

Any Transport over MPLS (AToM): Layer 2 QoS for the Cisco 12000 Series Router (Quality of Service)

Table Of Contents

Any Transport over MPLS (AToM): Layer 2 QoS (Quality of Service)

Contents

Information About Any Transport over MPLS (AToM): Layer 2 QoS (Quality of Service)

How to Configure MDRR and WRED

Configuring WDRR and WRED with the Legacy CLI Configuration: Example

How to Configure Traffic Policing and Shaping for Frame Relay over MPLS

Configuring FRoMPLS Two-rate Three-color Policer

Restrictions

Two-rate Three-color Color-blind Policer: Example

Two-rate Three-color Color-blind Policer with Multiple Actions: Example

Two-rate Three-color Color-aware Policer with Multiple Actions: Example

Configuring FRoMPLS Traffic Shaping

Configuring FRoMPLS Per-VC Disposition Shaping

Configuring FRoMPLS Per-class Disposition Shaping

Configuring FRoMPLS Per-VC Imposition Shaping

Configuring FRoMPLS Per-Class Imposition Shaping

FRoMPLS Per-Class Imposition Shaping: Example

Configuration Examples for FRoMPLS Traffic Policing and Shaping

Attaching a Service Policy to Main Interface: Example

Attaching a Service Policy to Main Interface with Map-class: Example

Attaching a Service Policy to a Subinterface: Example

Frame Relay Customer-facing Interface: Example

Per-DLCI Egress Shaping: Example

How to Configure ATMoMPLS Traffic Policing

Configuring ATMoMPLS Policer

Constant Bit Rate—CBR.1

Unspecified Bit Rate—UBR.1

Variable Bit Rate —VBR.1

Variable Bit Rate —VBR.2 and VBR.3 Without Cell Tagging

Variable Bit Rate —VBR.3 with Cell Tagging

Policing Configuration Excluding OAM Cells

How to Configure ATMoMPLS Traffic Shaping

Configuring ATMoMPLS Per VC/VP Disposition Shaping

Configuring ATMoMPLS Per-class Imposition Shaping

Configuration Examples for ATMoMPLS

Attaching Service Policy to Permanent Virtual Circuit: Example

Matching on ATM OAM Cells: Example

Matching on ATM CLP: Example

How to Configure Traffic Policing and Shaping for EoMPLS

Configuring EoMPLS Policers

EoMPLS Policer Restrictions

Configuring the EoMPLS One-Rate Two-Color Policer

Configuring the EoMPLS Two-Rate Three-Color Policer

Configuring EoMPLS Traffic Shaping

Configuring EoMPLS Per-VLAN Disposition Shaping

Configuring EoMPLS Per-VLAN Imposition Shaping

Configuring EoMPLS Per-Class Disposition Shaping

Configuring EoMPLS Per-Class Imposition Shaping

Configuration Examples for Ethernet over MPLS

Attaching Service Policy to the Main Interface (Port Mode): Example

Attaching Service Policy to Subinterface (VLAN): Example

EoMPLS Customer-facing Interface Configuration: Example

Additional Configuration Examples for Any Transport over MPLS (AToM): Layer 2 QoS (Quality of Service)

Attaching Service Policy to Main Interface (PPP or HDLCoMPLS): Example

Example Policy Templates

Additional References

Related Documents

Standards

MIBs

RFCs

Technical Assistance

Command Reference


Any Transport over MPLS (AToM): Layer 2 QoS (Quality of Service)


This document describes MPLS Quality of Service (QoS) implementations for Cisco 12000 Series line cards configured for Frame Relay over MPLS (FRoMPLS), ATM over MPLS (ATMoMPLS), and Ethernet over MPLS (EoMPLS). Local Switching features are noted but not discussed in this document.

Feature History for Any Transport over MPLS (AToM): Layer 2 QoS (Quality of Service)

Release
Modification

12.0(30)S

These features were introduced on the Cisco 12000 series routers and line cards.

12.0(32)S

Support for these features on the Engine 5 line card was added, as well as per-DLCI egress shaping within Frame Relay over MPLS, and two-rate three-color color-aware policing for Ethernet VLANS.


Finding Support Information for Platforms and Cisco IOS Software Images

Use Cisco Feature Navigator to find information about platform support and Cisco IOS software image support. Access Cisco Feature Navigator at http://www.cisco.com/go/fn. You must have an account on Cisco.com. If you do not have an account or have forgotten your username or password, click Cancel at the login dialog box and follow the instructions that appear.

Contents

Information About Any Transport over MPLS (AToM): Layer 2 QoS (Quality of Service)

How to Configure MDRR and WRED

How to Configure Traffic Policing and Shaping for Frame Relay over MPLS

How to Configure ATMoMPLS Traffic Policing

How to Configure ATMoMPLS Traffic Shaping

How to Configure Traffic Policing and Shaping for EoMPLS

Additional Configuration Examples for Any Transport over MPLS (AToM): Layer 2 QoS (Quality of Service)

Additional References

Information About Any Transport over MPLS (AToM): Layer 2 QoS (Quality of Service)

Policing and shaping Layer 2 VPN traffic at the MPLS imposition and disposition interfaces permits the Service Provider to offer service level agreements (SLAs) to customers in terms that include bandwidth, delay, jitter, and packet-loss guarantees. At imposition, Frame Relay, Asynchronous Transfer Mode, or Ethernet QoS markers are mapped to MPLS experimental bits. The traffic can be classified by the MPLS experimental bit, then policed and shaped on the provider interfaces. For traffic traversing the Cisco 12000 Series Router, Modified Deficit Round Robin (MDRR) congestion management and Weighted Random Early Detection (WRED) congestion avoidance are now supported for MPLS packets with Layer 2 VPN payloads. Because packet queuing characteristics vary among the Cisco 12000 Series line cards, MDRR and WRED configurations can vary with the line card combinations used for MPLS imposition and disposition interfaces. Table 1 displays a summary of the Layer 2 QoS features introduced in Cisco Release 12.0(32)S, as well as those supported in previous Cisco IOS releases.

Layer 2 QoS features supported by the Cisco 12000 Series router and line cards for Cisco IOS Release 12.0(32)S are as follows:

For All Transport Types:

Per-class traffic shaping on egress (disposition) for all Cisco 12000 Series line cards

Per-class traffic shaping on ingress (imposition) for all Cisco 12000 Series line cards

Frame Relay Features

Support of Two-rate, Three-color policer for Cisco 12000 Series ISE Packet-over-SONET line cards, based on RFC-2698.

Support for marking MPLS experimental bits (EXP) as a policing action, in addition to setting the discard eligibility (DE) bits

Mapping and copying of Layer 2 Class of Service (CoS) DE bits to MPLS experimental bits at the ingress

Per-DLCI egress shaping on Engine 5

ATM Features

Support of AAL5 policing in Cisco 12000 Series ISE ATM line cards, based on the Generic Cell Rate Algorithm (GCRA) policer in the ATM Traffic Management Specification Version 4.1 (TM 4.1)

Support of Two-rate, Three-color policer for Cisco 12000 Series ATM line cards based on
GCRA for ATM and RFC-2698.

Support for marking MPLS experimental bits as a policing action, in addition to setting Cell Loss Priority bits

Mapping and copying of Layer 2 Class of Service (CoS) Cell Loss Priority (CLP) bits to MPLS experimental bits at the ingress for all Cisco 12000 Series ATM line cards

Filtering and classification of control traffic for ATM line cards with match OAM command to permit OAM cells that are in sequence to be excluded from classification

Per-VC shaping for all Cisco 12000 Series ATM line cards

Support for the CLP thresholds (0/1) discard mechanism on Cisco 12000 Series ISE ATM line cards.

Ethernet Features

Support of Two-rate, Three-color policer for Cisco 12000 Series ISE Ethernet line cards, including VLANS, based on RFC-2698.

Support for marking MPLS experimental bits as a policing action, in addition to setting the 802.1p User Priority field (P-bits)

Mapping and copying of the Layer 2 class of service (COS) P-bits to MPLS experimental bits at the ingress

Mapping and copying of MPLS experimental bits to Layer 2 CoS P-bits at the egress.

Setting of Layer 2 CoS P-bits based on the VLAN ID at egress

Egress traffic shaping on all line cards.

HDLC/PPP Features

Exp marking

Miscellaneous Features

Support for MDRR/WRED (tofab and frfab) for MPLS packets with Layer 2 Virtual Private Network (L2VPN) payloads

Support for the set-qos-group and set-discard-class policer action options for the Cisco 12000 Series line cards based on Engine 3 and Engine 5.

Support for class-based QoS MQC MIBS relating to MPLS-based Layer 2 VPNs.

Table 1 MPLS and Local Switching Quality of Service Command Summary for Cisco IOS Release 12.0(32)S

Feature
Frame Relay over MPLS & LS
ATM over MPLS & LS
Ethernet over MPLS & LS
30S+=supported in 30S & afterwards
X=not supported in 30S or 32S
LSW=in 30S & 32S local switching only
Imposition
Disposition
Imposition
Disposition
Imposition
Disposition

  IN

OUT

  IN

OUT

  IN

OUT

  IN

OUT

  IN

OUT

  IN

OUT

Traffic Classification Options—class map

match any

pre- 30S

pre- 30S

pre- 30S

pre- 30S

pre- 30S

pre- 30S

pre- 30S

pre- 30S

pre- 30S

pre- 30S

pre- 30S

pre- 30S

match fr-de

30S+

n/a

n/a

n/a

  —

  —

  —

  —

  —

  —

  —

  —

match atm clp

  —

  —

  —

  —

30S+

n/a

n/a

n/a

  —

  —

  —

  —

match atm oam-cell

  —

  —

  —

  —

30S+

n/a

n/a

n/a

  —

  —

  —

  —

match qos-group qos-group-value

n/a

LSW

n/a

30S+

n/a

LSW

n/a

30S+

n/a

LSW

n/a

30S+

match cos cos_value

  —

  —

  —

  —

  —

  —

  —

  —

pre- 30S

  —

n/a

n/a

match mpls experimental exp-value

n/a

30S+

30S+

n/a

n/a

30S+

30S+

n/a

n/a

30S+

30S+

n/a

match vlan vlan-id

  —

  —

  —

  —

  —

  —

  —

  —

30S+

n/a

n/a

n/a

map -class frame-relay map-class-name

30S+

  —

  —

  32S

  —

  —

  —

  —

  —

   
Policers

Percent CIR and PIR

30S+

n/a

n/a

n/a

30S+

n/a

n/a

n/a

30S+

n/a

n/a

n/a

Percent TM4.0 (ms bc/be)

  —

  —

  —

  —

30S+

n/a

n/a

n/a

  —

  —

  —

  —

Policer Options

1-rate, 2-color

   X

n/a

n/a

n/a

   X

n/a

n/a

n/a

pre- 30S

n/a

n/a

31S

2-rate, 3-color; color-blind

pre-
30S

n/a

n/a

n/a

   X

n/a

n/a

n/a

30S+

n/a

n/a

n/a

2-rate, 3-color; color-aware

30S+

n/a

n/a

n/a

   X

n/a

n/a

n/a

32S

n/a

n/a

n/a

TM4.0 (SAR-based)

  —

  —

  —

  —

30S+

n/a

n/a

n/a

  —

  —

  —

  —

conform-action transmit

pre-
30S

   X

   X

   X

pre-
30S

   X

   X

   X

pre-
30S

   X

   X

   X

conform-action set-mpls-exp-imposition-transmit exp-value

30S+

   X

   X

   X

30S+

   X

   X

   X

30S+

   X

   X

   X

exceed-action transmit

30S+

   X

   X

   X

30S+

   X

   X

   X

30S+

   X

   X

   X

exceed-action drop

30S+

   X

   X

   X

30S+

   X

   X

   X

30S+

   X

   X

31S

exceed-action set-mpls-exp-imposition-transmit exp-value

30S+

   X

   X

   X

30S+

   X

   X

   X

30S+

   X

   X

   X

exceed-action set-frde-transmit

30S+

   X

   X

   X

  —

  —

  —

  —

  —

  —

  —

  —

exceed-action set-clp-transmit * n/a for AAL5oMPLS

  —

  —

  —

  —

30S+

   X

   X

   X

  —

  —

  —

  —

exceed-action set-qos-group-transmit qos-group-value

LSW

   X

   X

   X

LSW

   X

   X

   X

LSW

   X

   X

   X

exceed-action set-discard-class-transmit discard-class-value

LSW

   X

   X

   X

LSW

   X

   X

   X

LSW

   X

   X

   X

exceed-action set-qos-group-transmit value
and
set-discard-class-transmit value

LSW

   X

   X

   X

LSW

   X

   X

   X

LSW

   X

   X

   X

exceed-action set-mpls-exp-imposition exp
and
set-frde-transmit

30S+

   X

   X

   X

  —

  —

  —

  —

  —

  —

  —

  —

exceed-action set-mpls-exp-imposition exp
and
set-clp-transmit

  —

  —

  —

  —

30S+

   X

   X

   X

  —

  —

  —

  —

violate-action drop

pre-
30S

   X

   X

   X

pre-
30S

   X

   X

   X

pre-
30S

   X

   X

   X

Traffic Shaping Options

Per-VC Egress (Disposition) Shaping

n/a

n/a

n/a

32S

n/a

n/a

n/a

30S+

n/a

n/a

n/a

30S+

Per-VC Ingress (Imposition) Shaping

   X

n/a

n/a

n/a

   X

n/a

n/a

n/a

30S+

n/a

n/a

n/a

Per-Class Egress (Disposition) Shaping

n/a

n/a

n/a

30S+

n/a

n/a

   n/a

30S+

n/a

n/a

n/a

30S+

Per-Class Ingress (Imposition) Shaping

   X

n/a

n/a

n/a

   X

n/a

n/a

n/a

30S+

n/a

n/a

n/a

set mpls experimental [topmost | imposition] {exp-value}

(topmost not supported for AToM)

LSW

n/a

n/a

n/a

LSW

n/a

n/a

n/a

LSW

n/a

n/a

n/a

set cos cos-value
(802.1p bits)

  —

  —

  —

  —

  —

  —

  —

  —

n/a

n/a

n/a

30S+

set qos-group qos-group-value

LSW

   X

30S+

   X

LSW

   X

30S+

   X

LSW

   X

30S+

   X

set discard-class discard-class-value

LSW

   X

30S+

   X

LSW

   X

30S+

   X

LSW

   X

30S+

   X

bandwidth {bw-value | [ [percent | remaining] percentage >] }

   X

30S+

   X

30S+

   X

30S+

   X

30S+

   X

30S+

   X

30S+

shape { [max buffer-limit] | [ [peak | average] target-bit-rate] }

   X

30S+

   X

30S+

   X

30S+

   X

30S+

   X

30S+

   X

30S+

priority

   X

30S+

   X

30S+

   X

30S+

   X

30S+

   X

30S+

   X

30S+

queue-limit num-of-cells-or-pkts

   X

30S+

   X

30S+

   X

30S+

   X

30S+

   X

30S+

   X

30S+

random-detect discard-class value min-thr max-thr prob-den

   X

30S+

   X

30S+

   X

30S+

   X

30S+

   X

30S+

   X

30S+

random-detect precedence value min-thr max-thr prob-den

(precedence=mpls-exp)

30S+

30S+

30S+

30S+

30S+

30S+

30S+

30S+

30S+

30S+

30S+

30S+

Miscellaneous Features

Filtering on BPDU
(drop or rate-limit, also other types of traffic)

  —

  —

  —

  —

  —

  —

  —

  —

30S+

n/a

n/a

n/a


How to Configure MDRR and WRED

For configuration overview information on MDRR for the Cisco 12000 Series line cards, see Understanding and Configuring MDRR/WRED on the Cisco 12000 Series Internet Router at the following URL:
http://www.cisco.com/warp/public/63/mdrr_wred_overview.html

For WRED legacy CLI configuration information, examples, and command descriptions, see
Weighted Random Early Detection on the Cisco 12000 Series Router at the following URL:
http://www.cisco.com/univercd/cc/td/doc/product/software/ios112/ios112p/gsr/wred_gs.htm

On the ToFab (Rx) side of the Cisco 12000 Series routers, you must use the legacy QoS CLI and the Modular Quality of Service CLI (MQC) configuration on the FrFab (Tx) side. The QoS policy for ToFab or the FrFab side can be applied on imposition and disposition routers.

On the ToFab side, the QoS policy is constructed based on the MPLS experimental bits. The keyword precedence implies EXP bits for MPLS packets, which covers AToM packets as well on the imposition Rx card. The correct output queue (OQ) or local output queue (LOQ) value is selected and a different WRED profile is applied based on the experimental bit settings.

On the FrFab side for imposition, QoS policy can be constructed using MQC to match on EXP bits. On the FrFab side for disposition, EXP value is conveyed to the Tx line card by the qos-group ID/discard-class and QoS policy can be constructed using MQC to match on qos-group ID bits to select the OQ/LOQ and discard-class to select WRED profile. This functionality is used to achieve egress shaping on EXP values. The QoS policy is created on a source-slot/destination-slot table basis.

Configuring WDRR and WRED with the Legacy CLI Configuration: Example

rx-cos-slot 0 slot0
slot-table-cos slot0
destination-slot 1 slot0-to-slot1
cos-queue-group slot0-to-slot1
precedence 0 queue low-latency
precedence 1 queue 1
precedence 1 random-detect-label 1
precedence 2 queue 2
precedence 2 random-detect-label 2
precedence 3 queue 3
precedence 3 random-detect-label 3
random-detect-label 1 100 200 1
random-detect-label 2 200 300 1
random-detect-label 3 300 400 1
queue 0 20
queue 1 20
queue 2 30
queue 3 30
queue low-latency strict-priority 

How to Configure Traffic Policing and Shaping for Frame Relay over MPLS

Configuring FRoMPLS Two-rate Three-color Policer

Table 2 displays the FroMPLS policer options supported in Release 12.0(32)S.

See Cisco IOS Quality of Service Solutions Command Reference, Release 12.3 at the following URL for further information on police policy-map configuration commands:
http://www.cisco.com/univercd/cc/td/doc/product/software/ios123/123cgcr/qos_r/index.htm

Table 2 FRoMPLS Policer Commands for Layer 2 VPN in Cisco IOS Release 12.0(32)S

Supported Policer Commands, Options, or Actions
Details

police cir percent percentage [burst-in-ms] [bc conform-burst-in-msec ms] [be peak-burst-in-msec ms] [ pir percent percent]

Configures traffic policing on the basis of the specified bandwidth percentage and optional burst sizes. Percentage-based policing and shaping is supported as in Cisco IOS Release 12.0(28)S.

police {cir cir} [bc conform-burst] {pir pir} [be peak-burst] [conform-action action [exceed-action action [violate-action action]]]

Two-rate traffic policer policy-map configuration command.

exceed-action drop

This option causes the router to discard packets that are received at a rate exceeding the committed information rate and less than or equal to the peak information rate (PIR).

exceed-action transmit

This option causes the router to transmit packets that are received at a rate exceeding the committed information rate and less than or equal to the peak information rate (PIR).

set-mpls-exp-transmit value

This action is a conform-action and exceed-action option for the Two-rate Three-color policer. The set-mpls-exp-transmit option sets the Multiprotocol Label Switching (MPLS) experimental bits from 0 to 7 and sends the packet with the new MPLS experimental bit value setting. This option can be used with set-frde-transmit in multiple action mode.

set-frde-transmit

This action is a conform-action and exceed-action option for the Two-rate Three-color policer. The set-frde-transmit policing action option sets the Frame Relay discard eligible (DE) bit from 0 to 1 on the Frame Relay frame then transmits that packet. In congested environments, frames with the DE bit set to 1 are discarded before frames with the DE bit set to 0. This option can be used with set-mpls-exp-transmit in multiple action mode.

violate-action drop

Causes the router to discard packets that are received at a rate exceeding the peak information rate (PIR).


Cisco IOS 12.0(30)S introduced support for the following Two-rate, Three-color policer in color-aware mode for FRoMPLS, with matching on Frame Relay discard eligible bit (match fr-de) as a color:

police {cir cir} [bc conform-burst] {pir pir} [be peak-burst] [conform-action action [exceed-action action [violate-action action]]]

The set-frde-transmit and set-mpls-exp-transmit value options can be used in multiple action mode.

The color-blind version of the Three-color policer was supported for Layer 2 VPNs in earlier Cisco IOS releases.

For further information on Two-rate, Three-color policers see QoS: Color-Aware Policer at the following URL:
http://www.cisco.com/univercd/cc/td/doc/product/software/ios120/120newft/120limit/120s/120s26/12s_cap.htm

For further information on multiple actions policing, see Policer Enhancement — Multiple Actions at the following URL:
http://www.cisco.com/univercd/cc/td/doc/product/software/ios122/122newft/122t/122t8/ftpolenh.htm

Restrictions

Two-rate three-color color-blind policer is supported on Cisco 12000 Series line card with Engines 0, 2, 3 or 5 (ISE). Two-rate three-color color-aware policer is supported on Cisco 12000 Series line card with Engines 3 or 5 (ISE).

Two-rate Three-color Color-blind Policer: Example

The following color-blind configuration fragment sets the DE bit to 1 for packets in flows that exceed the committed information rate (CIR) but are less than or equal to the peak information rate (PIR). Packets in flows that exceed the PIR are discarded:

Router(config-pmap-c)# police cir 64000 bc 10000 pir 128000 be 20000 conform-action 
transmit exceed-action set-frde-transmit violate drop

Two-rate Three-color Color-blind Policer with Multiple Actions: Example

The following color-blind, multi-action configuration example sets the DE bit to 1 and the MPLS experimental value to 5 for packets in flows that exceed the committed information rate (CIR) but are less than or equal to the peak information rate (PIR). Packets in flows that exceed the PIR are discarded:

Router(config-pmap-c)# Police cir 64000 pir 128000
Router(config-pmap-c-police)# conform-action transmit
Router(config-pmap-c-police)# exceed-action set-mpls-exp-transmit 5
Router(config-pmap-c-police)# exceed-action set-frde-transmit
Router(config-pmap-c-police)# violate-action drop

Two-rate Three-color Color-aware Policer with Multiple Actions: Example

The following color-aware configuration fragment demonstrates the use of the discard eligibility bit as a color:

Router(config)# class-map frde_class
Router(config-cmap)# match fr-de

Router(config)# class-map no_frde_class
Router(config-cmap)# match not fr-de

Router (config)# policy-map color-aware-fr 
Router(config-pmap)# class kulur-awhere
Router(config-pmap-c)# police cir 64000  bc 10000 pir 128000 be 20000 
Router(config-pmap-c-police)# conform-color no_frde_class exceed-color 
frde-class
Router(config-pmap-c-police)# conform-action transmit  
Router(config-pmap-c-police)# exceed-action set-frde-transmit 
Router(config-pmap-c-police)# violate-action drop 

Configuring FRoMPLS Traffic Shaping

In general Frame Relay allows two types of traffic shaping: Generic Traffic Shaping (GTS) and Frame-relay Traffic Shaping (FRTS). For FRoMPLS, GTS per-class disposition shaping and per-class imposition shaping are supported. Beginning with Engine 5, per-DLCI egress shaping also is supported.

The following sections on traffic shaping relate only to Cisco 12000 Series ISE line cards (Engine 3 and Engine 5):

Configuring FRoMPLS Per-VC Disposition Shaping

Configuring FRoMPLS Per-class Disposition Shaping

Configuring FRoMPLS Per-VC Imposition Shaping

Configuring FRoMPLS Per-Class Imposition Shaping

Configuring FRoMPLS Per-DLCI Egress Shaping, page 13

Table 3 lists the FRoMPLS policy-map configuration commands supported in Cisco IOS Release 12.0(32)S.


Note For per-DLCI egress shaping the only supported instructions are match any, class-default, shape, queue-limit, and random-detect discard-class.


Table 3 FRoMPLS Map, Set, and WRED MQC Commands

Supported Policy Map Configuration Command
Details

match any

Supported as per Cisco IOS Releases 12.0(27)S and 12.0(28)S.

match fr-de

The match fr-de packet classification option, when specified in a class map, matches packets that have the Frame Relay DE bit set to 1.

match mpls experimental exp-value

Configure a class map to use the specified value of the EXP field as a match criterion.

match qos-group qos-group-value

Identifies a specific QoS group value marking on a packet. This command can also be used to convey the received Multiprotocol Label Switching (MPLS) experimental (EXP) field value to the output interface.

set mpls experimental imposition exp-value

Designates the value to which the MPLS bits are set if the packets match the specified policy map.

set qos-group group-id

The set qos-group command allows you to associate a group ID with a packet. The group ID can be used later to classify packets into QoS groups based as prefix, autonomous system, and community string. This action marks a packet on the Rx card so that Tx features such as policing and shaping can be applied to the matching packets on the Tx card.

The treatment of packets in a qos-group is defined through the configuration of QoS policies in policy-map class configuration mode. The qos-group-value is simply a group identifier, and does not indicate precedence or classification in itself.

The qos-group-value is local to the router and is removed on egress from the router.

set discard-class

Use this command to specify the type of traffic to be dropped when there is congestion. There is no corresponding match action for discard-class for Cisco 12000 Series line cards. This command marks a packet on the RX card so that WRED can be applied on the TX card.

bandwidth {bw-value | [ [percent | remaining] percentage >] }

Supported as per Cisco IOS Releases 12.0(27)S and 12.0(28)S, but not supported in per-DLCI egress shaping.

priority

Supported as per Cisco IOS Releases 12.0(27)S and 12.0(28)S.

queue-limit num-of-cells-or-pkts

Supported as per Cisco IOS Releases 12.0(27)S and 12.0(28)S, and on per-DLCI egress shaping in 12.0(32)S.

random-detect discard-class value min-thr max-thr prob-den

Supported as per Cisco IOS Releases 12.0(27)S and 12.0(28)S, and on per-DLCI egress shaping in 12.0(32)S.

random-detect precedence value min-thr max-thr prob-den

(precedence=mpls-exp)

Supported as per Cisco IOS Releases 12.0(27)S and 12.0(28)S.

shape { [max buffer-limit] | [ [peak | average] target-bit-rate] }

Supported as per Cisco IOS Releases 12.0(27)S and 12.0(28)S, and on per-DLCI egress shaping in 12.0(32)S.


For further information on QoS commands, See Cisco IOS Quality of Service Solutions Command Reference, Release 12.3 at the following URL:
http://www.cisco.com/univercd/cc/td/doc/product/software/ios123/123cgcr/qos_r/index.htm

Configuring FRoMPLS Per-VC Disposition Shaping

On Engine 5 line cards, output policy is attached to the FR interface or sub-interface using the map-class command. (The switched-dlci method, used in releases before 12.0(32)S, has now been retired). The switched-dlci method is also not supported on the SIP-400 linecard with SPA-4XcT3/DS0 running release12.0(31)S2.

The commands allowed are match-any and class-default.

The actions allowed are share, queue-limit, and random detect discard-class.

The following table shows how to configure per-dlci egress shaping.

 
Command or Action
Purpose

Step 1 

enable

Example:

Router> enable

Enables privileged EXEC mode.

Enter your password if prompted.

Step 2 

configure terminal

Example:

Router# configure terminal

Enters global configuration mode.

Step 3 

policy-map policy-map-name

Example:

Router(config)# policy-map shaper_16kbps

Creates the name of a traffic policy map, and opens policy map configuration mode.

Step 4 

class {class-name|class-default}

Example:

Router(config-pmap)# class class-default

Creates the name of a traffic class (or the default class) whose policy will be specified, and opens policy-map class configuration mode.

Step 5 

shape [average|peak] mean-rate [[burst-size] [excess-burst-size]]

Example:

Router(config-pmap-c)# shape average 16000

Shapes the traffic in that class to the indicated bit rate. This will become the egress traffic's behavior when the remaining steps in this table have been entered.

Alternative available actions are queue-limit and random detect discard-class.

Step 6 

exit

Router(config-pmap-c)# exit

Exits policy-map class configuration mode.

Step 7 

exit

Router(config-pmap)# exit

Exits policy map configuration mode.

Step 8 

map-class frame-relay map-class-name

Example:

Router(config)# map-class frame-relay fr_100

Creates the name of a map class, and opens map-class configuration mode.

Step 9 

service-policy {input|output} policy-map-name

Example:

Router(config-mp)# service-policy output shaper_16kbps

Associates the policy map created in Step 3 with a single direction of traffic (in this example, egress), and with the just-named map class.

Step 10 

interface interface-name

Example:

Router(config)# interface p0/0

Enters interface configuration mode for the interface whose egress traffic is to be governed by the policy.

Step 11 

frame-relay interface-dlci dlci switched

Example:

Router(config-if)# frame-relay interface-dlci 100 switched

Opens Frame Relay DLCI interface configuration mode for the SVC that carries the output traffic.

Step 12 

class map-class-name

Example:

Router(config-fr-dlci)# class fr_100

Attaches the traffic-shaping policy to this particular SVC (DLCI).

Configuring FRoMPLS Per-class Disposition Shaping

For FRoMPLS per-class disposition traffic shaping, match on the MPLS experimental value on the ingress disposition card then set the qos-group and the discard-class (if necessary).

On the egress port on the disposition router, match and shape on the class represented by the qos-group. WRED can be applied on discard-class values.

The policy is attached in the output direction on the customer-facing main interface.

The following procedure demonstrates the steps recommended to configure FRoMPLS per-class disposition shaping:


Step 1 Define the classes for matching the MPLS experimental values.

class-map match-any exp1
match mpls exp 1

class-map match-any exp2
match mpls exp 2

Step 2 Define the ingress policy to be applied to the RX interface.

policy-map  ingress-policy
class exp1
set qos-group 1
set discard-class 1
class exp2
set qos-group 2
set discard-class 2

Step 3 Define the classes for matching on qos-group on egress.

class-map match-all qos1
match qos-group 1
class-map match-all qos2
match qos-group 2

Step 4 Define the egress policy to be applied to TX interface.

Policy-map egress-policy
Class qos1
bandwidth percent 10
shape average 64000000
random-detect discard-class-based
random-detect discard-class 1 1000 2000
random-detect discard-class 2 2000 3000

Configuring FRoMPLS Per-VC Imposition Shaping

Per-virtual circuit imposition shaping is not supported for FRoMPLS in Cisco IOS Release 12.0(32)S.

Configuring FRoMPLS Per-Class Imposition Shaping

To configure per-class imposition shaping for FRoMPLS, mark the packets with set experimental imposition on the Rx line card, then apply shaping on the Tx line card.

The policy is attached in the output direction on the core-facing interface.

FRoMPLS Per-Class Imposition Shaping: Example

In the following example, the map class labeled fr_set_exp1 is applied to the Rx interface, and the policy map labeled imposition_tx_shaping is applied as shown below to the Tx interface.

policy-map set_exp1
  class class-default
   set mpls experimental imposition 1

map-class frame-relay fr_set_exp1
 service-policy input set_exp1

class-map match-all match_exp1
  match mpls experimental 1

policy-map imposition_tx_shaping
  class match_exp1
   shape average 64000 32000
   queue-limit 200 packets

interface POS0/0
frame-relay interface-dlci 100 switched
  class fr_set_exp1

interface POS1/0
  service-policy output imposition_tx_shaping

Configuration Examples for FRoMPLS Traffic Policing and Shaping

Attaching a Service Policy to Main Interface: Example

Attaching a Service Policy to Main Interface with Map-class: Example

Attaching a Service Policy to a Subinterface: Example

Frame Relay Customer-facing Interface: Example

Per-DLCI Egress Shaping: Example

Attaching a Service Policy to Main Interface: Example

interface POS0/0
service-policy input ingress_policy

connect from101 POS0/0 101 l2transport
xconnect 5.5.5.5 101 encapsulation mpls

Attaching a Service Policy to Main Interface with Map-class: Example

interface POS0/0
frame-relay interface-dlci 101 switched
class dlci_101

map-class frame-relay dlci_101
service-policy input ingress_policy

connect from101 POS0/0 101 l2transport
xconnect 5.5.5.5 101 encapsulation mpls

Attaching a Service Policy to a Subinterface: Example

interface POS0/0.1 point-to-point
switched-dlci 101
service-policy input ingress_policy

connect from101 POS0/0 101 l2transport
xconnect 5.5.5.5 101 encapsulation mpls