Table Of Contents
Tag Switching/MPLS Terminology
Supporting CoS in an MPLS Backbone
LSRs Used at the Edge of an MPLS Network
LSRs Used at the Core of an MPLS Network
Interfaces Supporting MPLS CoS Features
Benefits of MPLS CoS in IP Backbones
Related Features and Technologies
Supported Standards, MIBs, and RFCs
Configuring MPLS CoS on Cisco 7200/7500 Series Routers
Configuring WRED/DWRED on Cisco 7200/7500 Series Routers
Verifying WRED/DWRED on Cisco 7200/7500 Series Routers
Configuring CAR/DCAR on Cisco 7200/7500 Series Routers
Verifying CAR/DCAR Configuration on Cisco 7200/7500 Series Routers
Configuring CBWFQ on Cisco 7200/7500 Series Routers
Verifying CBWFQ Configuration on Cisco 7200/7500 Series Routers
Configuring MPLS CoS on a Cisco 12000 Series GSR Router
Configuring WRED/MDRR on a Cisco 12000 Series GSR Router
Configuring Outgoing GSR Interfaces in the Transmit (frfab) Direction
Verifying WRED/MDRR in the Transmit (frfab) Direction
Configuring Incoming GSR Interfaces in the Receive (tofab) Direction
Verifying WRED/MDRR in the Receive (tofab) Direction
Configuration Examples for Cisco 7200/7500 Series Routers
Configuring Cisco Express Forwarding
Configuration Examples for Cisco 12000 Series GSR Routers
Configuring WRED on a POS Interface
Configuring MDRR on a POS Interface
WRED/MDRR Configuration Example
MPLS Class of Service (CoS)
This feature module describes the use of the MPLS class of service (CoS) functionality in an MPLS network. The document contains the following major sections:
•
Supported Standards, MIBs, and RFCs
•
Configuration Examples for Cisco 7200/7500 Series Routers
•
Configuration Examples for Cisco 12000 Series GSR Routers
The following table shows the change history of this document.
Feature Overview
MPLS CoS functionality enables network administrators to provide differentiated services across an MPLS network. Network administrators can satisfy a wide range of networking requirements by specifying the class of service applicable to each transmitted IP packet. Different classes of service can be established for IP packets by setting the IP precedence bit in the header of each packet.
MPLS CoS supports the following differentiated services in an MPLS network:
•
Packet classification
•
Congestion avoidance
•
Congestion management
Table 1 describes the MPLS CoS services and functions.
For more information about configuring CoS functions (CAR, WRED, and WFQ), see the Cisco IOS Quality of Service Solutions Configuration Guide.
For complete command syntax information for CAR, WRED, and WFQ, see the Cisco IOS Quality of Service Solutions Command Reference.
MPLS CoS enables you to duplicate Cisco IOS IP CoS (Layer 3) features as closely as possible in MPLS devices, including label edge switch routers (edge LSRs) and label switch routers (LSRs). MPLS CoS functions map nearly one-for-one to IP CoS functions on all types of interfaces.
Tag Switching/MPLS Terminology
Table 2 lists the existing legacy tag switching terms and the new, equivalent MPLS IETF terms used in this document and other related Cisco publications.
Supporting CoS in an MPLS Backbone
This section describes the following types of MPLS CoS configurations:
•
LSRs Used at the Edge of an MPLS Network
•
LSRs Used at the Core of an MPLS Network
LSRs Used at the Edge of an MPLS Network
LSRs used at the edge of an MPLS network backbone are usually Cisco 7200 or Cisco 7500 series routers running MPLS software. The edge LSRs can be at the ingress or the egress of the network.
At the ingress of an MPLS network, routers process packets as follows:
1.
IP packets enter the edge of the MPLS network at the edge LSR.
2.
The edge LSR uses committed access rate (CAR) or some other classification mechanism, such as Modular QoS CLI (on the Cisco series 7200 and 7500 routers only), to classify incoming IP packets and set the IP precedence value. Alternatively, IP packets can be received with the IP precedence value already set.
3.
For each packet, the router performs a lookup on the IP address to determine the next-hop LSR.
4.
The appropriate label is inserted into the packet, and the IP precedence bits are copied into the MPLS EXP bits in the label header.
5.
The labeled packets are forwarded to the appropriate output interface for processing.
6.
The packets are differentiated by class according to one of the following:
–
Drop probability—Weighted random early detection (WRED)
–
Bandwidth allocation and delay—Class-based weighted fair queueing (CBWFQ)
In either case, LSRs enforce the defined differentiation by continuing to employ WRED or CBWFQ on every ingress router.
At the egress of an MPLS network, routers process packets as follows:
1.
MPLS-labeled packets enter the edge LSR from the MPLS network backbone.
2.
The MPLS labels are removed and IP packets may be (re)classified.
3.
For each packet, the router performs a lookup on the IP address to determine the packet's destination and forwards the packet to the destination interface for processing.
4.
The packets are differentiated by the IP precedence values and treated appropriately, depending on the WRED or CBWFQ drop probability configuration.
LSRs Used at the Core of an MPLS Network
LSRs used at the core of an MPLS network are usually Cisco GSR 12000 series routers or Cisco 7500 series routers running MPLS software. These routers at the core of an MPLS network process packets as follows:
1.
MPLS labeled packets coming from the edge routers or other core routers enter the core router.
2.
A lookup is done at the core router to determine the next hop LSR.
3.
An appropriate label is placed (swapped) on the packet and the MPLS EXP bits are copied.
4.
The labeled packet is then forwarded to the output interface for processing.
5.
The packets are differentiated by the MPLS EXP field marking and treated appropriately, depending on the WRED and CBWFQ configuration.
Interfaces Supporting MPLS CoS Features
This section identifies the MPLS CoS features that are supported on various Cisco devices and interfaces.
Table 3 lists the MPLS CoS features that are supported on packet interfaces.
1. This feature is supported in IOS release 12.1 and IOS release 12.1T
Table 4 lists the MPLS CoS features that are supported on ATM interfaces.
1. This feature is available on the ATM Lite port adapter (PA-A1).
2. This feature is available on the ATM Deluxe port adapter (PA-A3).
Benefits of MPLS CoS in IP Backbones
You realize the following benefits when you use MPLS CoS in a backbone consisting of IP routers running MPLS:
•
Efficient resource allocation—WFQ is used to allocate bandwidth on a per-class and per-link basis, thereby guaranteeing a percentage of link bandwidth for network traffic.
•
Packet differentiation—When IP packets traverse an MPLS network, packets are differentiated by mapping the IP precedence bits of the IP packets to the MPLS CoS bits in the MPLS EXP field. This mapping of bits enables the service provider to maintain end-to-end network guarantees and meet the provisions of customer service level agreements (SLAs).
•
Future service enhancements—MPLS CoS provides building blocks for future service enhancements (such as virtual leased lines) by meeting bandwidth requirements.
Related Features and Technologies
You can use MPLS CoS functionality in any MPLS network.
Related Documents
For additional information about the following MPLS applications running on routers or switches in an MPLS network, consult the documentation listed below for Cisco IOS Release 12.0(10)ST and the Quality of Service Solutions Configuration Guide for Cisco IOS Release 12.0:
•
MPLS Label Distribution Protocol—This feature enables peer label switching routers (LSRs) in an MPLS network to exchange label binding information for supporting hop-by-hop forwarding along normally routed paths.
•
Multiprotocol Label Switching on Cisco Routers—This feature, implemented on Cisco routers and ATM switches, combines the performance of Layer 2 (data link layer) switching with the scalability of Layer 3 (network layer) routing. This combination enables service providers to handle the explosive growth now occurring in network utilization and to differentiate services without having to alter the existing network infrastructure. MPLS supports the dynamic creation of different routes between source and destination nodes, thus enabling IP services to be delivered efficiently by means of Internet backbones.
•
MPLS Traffic Engineering and Enhancements—This feature enables an MPLS backbone to replicate and expand upon the traffic engineering capabilities of Layer 2 ATM and Frame Relay networks. In service provider and Internet service provider (ISP) backbones, traffic engineering provides an effective means of managing networks. Such backbones must support high transmission capacities and be resilient to link or node failures.
•
MPLS Egress Netflow Accounting—This feature enables the detection of MPLS and IP flows traveling over links from the provider edge (PE) router to the customer edge (CE) router in a virtual private network (VPN).
•
AAL5 Transport Over MPLS— This feature supports the transport of AAL5 protocol data units (PDUs) across an IP/MPLS backbone, providing an ATM permanent virtual circuit (PVC) transport service for PDUs with rate-limit policing and a configurable priority for PVCs.
•
MPLS Virtual Private Networks (VPNs)—This feature enables users to deploy and administer IPv4 Layer 3, value-added services and business applications across a public network infrastructure. By deploying business applications on a broad scale over wide area networks (WANs), MPLS VPN users can reduce costs, increase revenue, and develop new business opportunities.
•
Quality of Service Solutions Configuration Guide (Cisco IOS Release 12.0)—This document describes the quality of service (QoS) features in Cisco IOS and the service models that deliver QoS functionality. It also outlines the benefits that come from incorporating QoS functionality in your network and describes the Cisco IOS features that ensure better services to selected network traffic in Frame Relay, Asynchronous Transfer Mode (ATM), Ethernet, SONET, and IP-routed networks.
Supported Platforms
The routers that support MPLS CoS at the edge and core of a packet-based MPLS network are listed below:
•
Cisco 7200 series routers
•
Cisco 7500 series routers
•
Cisco 12000 series GSR routers
Supported Standards, MIBs, and RFCs
Standards
No new or modified standards are supported by this MPLS CoS feature.
MIBs
•
CISCO-WRED-MIB
•
CISCO-CAR-MIB
For descriptions of supported MIBs and instructions for using MIBs, see the Cisco MIB website on CCO at http://www.cisco.com/public/sw-center/netmgmt/cmtk/mibs.shtml.
RFCs
No new or modified RFCs are supported by this MPLS CoS feature.
Prerequisites
To use MPLS CoS to full advantage in your network, the following functionality must be supported:
•
Multiprotocol label switching (MPLS)—MPLS is the standardized label switching protocol defined by the Internet Engineering Task Force (IETF).
•
Cisco express forwarding (CEF)—CEF is an advanced Layer 3 IP switching technology that optimizes performance and scalability in networks that handle large volumes of traffic and that exhibit dynamic traffic patterns.
•
Asynchronous Transfer Mode (ATM)—ATM signaling support is required if you are using ATM interfaces in your network.
Note
If you are using only packet interfaces in your network, ATM functionality is not needed.
•
Quality of Service (QoS) features:
–
Weighted fair queueing (WFQ)—WFQ, a dynamic scheduling method used on non-GSR platforms, allocates bandwidth fairly to all network traffic.
WFQ applies priorities, or weights, to traffic to classify the traffic into flows and determine how much bandwidth to allow each flow. WFQ moves interactive traffic to the front of a queue to reduce response time and fairly shares the remaining bandwidth among high-bandwidth flows.
–
Weighted random early detection (WRED)—WRED, a congestion avoidance mechanism, extends RED functionality by allowing different RED parameters to be configured per IP precedence value.
IP precedence bits, contained in the type of service (ToS) octet in the IP packet header, are used to denote the relative importance or priority of an IP packet. WRED uses these IP precedence values to classify packets into different discard priorities or classes of service.
–
Modified deficit round robin (MDRR)—MDRR, a traffic class prioritization mechanism used only on GSR platforms, incorporates emission priority as a facet of quality of service. MDRR is similar in function to WFQ on non-GSR platforms.
In MDRR, IP traffic is mapped to different classes of service queues. A group of queues is assigned to each traffic destination. On the transmit side of the platform, a group of queues is defined on a per-interface basis; on the receive side of the platform, a group of queues is defined on a per-destination basis. IP packets are then mapped to these queues, based on their IP precedence value.
These queues are serviced on a round-robin basis, except for a queue that has been defined to run in either of two ways: a) strict priority mode, or b) alternate priority mode.
In strict priority mode, the high priority queue is serviced whenever it is not empty; this ensures the lowest possible delay for high priority traffic. In this mode, however, the possibility exists that other traffic might not be serviced for long periods of time if the high priority queue is consuming most of the available bandwidth.
In alternate priority mode, the traffic queues are serviced in turn, alternating between the high priority queue and the remaining queues.
–
Committed access rate (CAR)—CAR is a QoS feature that limits the input or output transmission rate on an interface and classifies packets by setting the IP precedence value or the QoS group in the IP packet header. CAR is supported on Cisco 7200 series routers, Cisco 7500 series routers, and Engine 0 cards on Cisco 12000 series GSR routers.
Configuration Tasks
This section describes the following configuration tasks:
•
Configuring MPLS CoS on Cisco 7200/7500 Series Routers
–
Configuring WRED/DWRED on Cisco 7200/7500 Series Routers
–
Verifying WRED/DWRED on Cisco 7200/7500 Series Routers
–
Configuring CAR/DCAR on Cisco 7200/7500 Series Routers
–
Verifying CAR/DCAR Configuration on Cisco 7200/7500 Series Routers
–
Configuring CBWFQ on Cisco 7200/7500 Series Routers
–
Verifying CBWFQ Configuration on Cisco 7200/7500 Series Routers
•
Configuring MPLS CoS on a Cisco 12000 Series GSR Router
–
Configuring WRED/MDRR on a Cisco 12000 Series GSR Router
–
Configuring Outgoing GSR Interfaces in the Transmit (frfab) Direction
–
Verifying WRED/MDRR in the Transmit (frfab) Direction
–
Configuring Incoming GSR Interfaces in the Receive (tofab) Direction
–
Verifying WRED/MDRR in the Receive (tofab) Direction
Configuring MPLS CoS on Cisco 7200/7500 Series Routers
Configuring WRED/DWRED on Cisco 7200/7500 Series Routers
To configure weighted random early detection (WRED) or distributed weighted random early detection (DWRED) on a Cisco 7200 or 7500 series router interface, issue the commands shown in the following table.
Verifying WRED/DWRED on Cisco 7200/7500 Series Routers
To verify weighted random early detection (WRED) or distributed weighted random early detection (DWRED) on a Cisco 7200 or 7500 series router interface, issue a command of the form shown in the following table. This example is based on "Router2" in the network topology shown in Figure 1.
Configuring CAR/DCAR on Cisco 7200/7500 Series Routers
To configure committed access rate (CAR) or distributed committed access rate (DCAR) on a Cisco 7200 or 7500 series router interface, issue the commands shown in the following table.
Verifying CAR/DCAR Configuration on Cisco 7200/7500 Series Routers
To verify CAR/DCAR configuration on a Cisco 7200 or 7500 series router interface, issue a command of the following form. This example is based on "Router 2" in the network topology shown in Figure 1.
Router2# show interfaces e1/3 rate-limitEthernet1/3Inputmatches:access-group 101params: 496000 bps, 32000 limit, 64000 extended limitconformed 2137 packets, 576990 bytes; action:set-prec-transmit 4exceeded 363 packets, 98010 bytes; action:set-prec-transmit 0last packet:11788ms ago, current burst:39056 byteslast cleared 00:01:18 ago, conformed 58000 bps, exceeded 10000 bpsConfiguring CBWFQ on Cisco 7200/7500 Series Routers
To configure class-based weighted fair queueing (CBWFQ) on a Cisco 7200 or 7500 series router interface, issue the commands shown in the following table.
Verifying CBWFQ Configuration on Cisco 7200/7500 Series Routers
To verify CBWFQ configuration on a Cisco 7200 or 7500 series router interface, issue a command of the following form. This example is based on "Router 5" in the network topology shown in Figure 1.
Router5# show policy-map interface fa5/1/0FastEthernet5/1/0service-policy output:outputmapclass-map:prec_01 (match-all)522 packets, 322836 bytes5 minute rate 1000 bpsmatch:ip precedence 0 1queue size 0, queue limit 1356packet output 522, packet drop 0tail/random drop 0, no buffer drop 0, other drop 0bandwidth:class-based wfq, weight 10random-detect:Exp-weight-constant:9 (1/512)Mean queue depth:0Class Random Tail Minimum Maximum Mark Outputdrop drop threshold threshold probability packets0 0 0 3390 6780 1/10 5221 0 0 3813 6780 1/10 02 0 0 4236 6780 1/10 03 0 0 4659 6780 1/10 04 0 0 5082 6780 1/10 05 0 0 5505 6780 1/10 06 0 0 5928 6780 1/10 07 0 0 6351 6780 1/10 0class-map:prec_23 (match-all)0 packets, 0 bytes5 minute rate 0 bpsmatch:ip precedence 2 3queue size 0, queue limit 0packet output 0, packet drop 0tail/random drop 0, no buffer drop 0, other drop 0bandwidth:class-based wfq, weight 15random-detect:Exp-weight-constant:9 (1/512)Mean queue depth:0Class Random Tail Minimum Maximum Mark Outputdrop drop threshold threshold probability packets0 0 0 0 0 1/10 01 0 0 0 0 1/10 02 0 0 0 0 1/10 03 0 0 0 0 1/10 04 0 0 0 0 1/10 05 0 0 0 0 1/10 06 0 0 0 0 1/10 07 0 0 0 0 1/10 0class-map:prec_45 (match-all)2137 packets, 576990 bytes5 minute rate 16000 bpsmatch:ip precedence 4 5queue size 0, queue limit 2712packet output 2137, packet drop 0tail/random drop 0, no buffer drop 0, other drop 0bandwidth:class-based wfq, weight 20random-detect:Exp-weight-constant:9 (1/512)Mean queue depth:0Class Random Tail Minimum Maximum Mark Outputdrop drop threshold threshold probability packets0 0 0 3390 6780 1/10 01 0 0 3813 6780 1/10 02 0 0 4236 6780 1/10 03 0 0 4659 6780 1/10 04 0 0 5082 6780 1/10 21375 0 0 5505 6780 1/10 06 0 0 5928 6780 1/10 07 0 0 6351 6780 1/10 0class-map:prec_67 (match-all)0 packets, 0 bytes5 minute rate 0 bpsmatch:ip precedence 6 7queue size 0, queue limit 0packet output 0, packet drop 0tail/random drop 0, no buffer drop 0, other drop 0bandwidth:class-based wfq, weight 25random-detect:Exp-weight-constant:9 (1/512)Mean queue depth:0Class Random Tail Minimum Maximum Mark Outputdrop drop threshold threshold probability packets0 0 0 0 0 1/10 01 0 0 0 0 1/10 02 0 0 0 0 1/10 03 0 0 0 0 1/10 04 0 0 0 0 1/10 05 0 0 0 0 1/10 06 0 0 0 0 1/10 07 0 0 0 0 1/10 0class-map:class-default (match-any)0 packets, 0 bytes5 minute rate 0 bpsmatch:any0 packets, 0 bytes5 minute rate 0 bpsqueue size 0, queue limit 4068packet output 90, packet drop 0tail/random drop 0, no buffer drop 0, other drop 0Router5#Router5# show queueing interface fa5/1/0Interface FastEthernet5/1/0 queueing strategy:VIP-based fair queueingFastEthernet5/1/0 queue size 0pkts output 2756, wfq drops 0, nobuffer drops 0WFQ:aggregate queue limit 13561 max available buffers 13561Class 0:weight 30 limit 4068 qsize 0 pkts output 97 drops 0Class 2:weight 10 limit 1356 qsize 0 pkts output 522 drops 0Class 3:weight 15 limit 0 qsize 0 pkts output 0 drops 0Class 4:weight 20 limit 2712 qsize 0 pkts output 2137 drops 0Class 5:weight 25 limit 0 qsize 0 pkts output 0 drops 0Configuring MPLS CoS on a Cisco 12000 Series GSR Router
Configuring WRED/MDRR on a Cisco 12000 Series GSR Router
To configure WRED/MDRR on a Cisco 12000 series GSR router interface, issue the commands shown in the following table.
Command Purpose Router(config)# cos-queue-group cos-queue-group nameCreates a cos-queue-group. For an example of a complete cos-queue-group, see Step 1 in the table under the heading entitled "Configuring Outgoing GSR Interfaces in the Transmit (frfab) Direction."
Step 2
Router(config)# interface type numberSpecifies the interface type and number.
Step 3
Router(config-if)# tx-cos cos-queue-group nameAssigns a cos-queue-group to the transmit interface.
Configuring Outgoing GSR Interfaces in the Transmit (frfab) Direction
To configure MPLS CoS on a Cisco 12000 series GSR router interface in the transmit direction, issue the commands shown in the following table.
Verifying WRED/MDRR in the Transmit (frfab) Direction
To verify WRED/MDRR configuration in the transmit direction on a Cisco 12000 series GSR router interface, issue a command of the following form.
Router# show interface pos6/0:1 random-detectPOS6/0:1cos-queue-group: wred-testRED Drop CountsTx Link To FabricRED Label Random Threshold Random Threshold0 0 0 0 01 0 0 0 02 0 0 0 03 72913 345267 0 04 0 0 0 05 216225 433182 0 06 0 0 0 0Tx-queue-limit drops: 0Queue LengthsTx Queue (DRR configured) wred-testQueue Average High Water Mark Weight0 0.000 0.000 101 0.000 0.000 102 0.000 0.000 103 846.000 956.000 104 0.000 0.000 105 873.000 1141.000 106 0.000 0.000 10Low latency 0.000 0.000 10Tx RED configPrecedence 0: not configured for dropPrecedence 1: not configured for dropPrecedence 2: not configured for dropPrecedence 3: 500 min threshold, 1000 max threshold, 1/1 mark weightPrecedence 4: not configured for dropPrecedence 5: 700 min threshold, 1200 max threshold, 1/1 mark weightPrecedence 6: not configured for dropPrecedence 7: not configured for dropweight 1/2Configuring Incoming GSR Interfaces in the Receive (tofab) Direction
To configure MPLS CoS on a Cisco 12000 series GSR router interface in the receive direction, issue the commands shown in the following table.
Verifying WRED/MDRR in the Receive (tofab) Direction
To verify the configuration of WRED/MDRR in the receive direction of an interface on a Cisco 12000 series GSR router interface, issue a command of the following form.
Router# show cos statistics (Supported on Engine 0 only)Slot 4---------------Dest slot 6cos-queue-group: wred-testRED Drop CountsTo FabricRED Label Random Threshold0 534885 2507931 538361 2488462 526379 2594003 520537 2555984 0 05 0 06 0 0Queue LengthsTo Fabric Queues (DRR configured) wred-testQueue Average High Water Mark Weight0 712.000 5562.000 101 702.000 7716.000 102 702.000 11540.000 103 753.000 14368.000 104 0.000 0.000 105 0.000 0.000 106 0.000 0.000 10Low latency 0.000 0.000 10Tx RED configPrecedence 0: 500 min threshold, 1000 max threshold, 1/1 mark weightPrecedence 1: 500 min threshold, 1000 max threshold, 1/1 mark weightPrecedence 2: 500 min threshold, 1000 max threshold, 1/1 mark weightPrecedence 3: 500 min threshold, 1000 max threshold, 1/1 mark weightPrecedence 4: not configured for dropPrecedence 5: not configured for dropPrecedence 6: not configured for dropPrecedence 7: not configured for dropweight 1/2Slot 5---------------Dest slot 6cos-queue-group: wred-testRED Drop CountsTo FabricRED Label Random Threshold0 554626 2496511 543842 2631472 538321 2669743 534728 2581484 0 05 0 06 0 0Queue LengthsTo Fabric Queues (DRR configured) wred-testQueue Average High Water Mark Weight0 753.000 6539.000 101 761.000 10190.000 102 753.000 11272.000 103 771.000 5980.000 104 0.000 0.000 105 0.000 0.000 106 0.000 0.000 10Low latency 0.000 0.000 10Tx RED configPrecedence 0: 500 min threshold, 1000 max threshold, 1/1 mark weightPrecedence 1: 500 min threshold, 1000 max threshold, 1/1 mark weightPrecedence 2: 500 min threshold, 1000 max threshold, 1/1 mark weightPrecedence 3: 500 min threshold, 1000 max threshold, 1/1 mark weightPrecedence 4: not configured for dropPrecedence 5: not configured for dropPrecedence 6: not configured for dropPrecedence 7: not configured for dropweight 1/2Configuration Examples for Cisco 7200/7500 Series Routers
This section provides the following configuration examples for interfaces on Cisco 7200 and Cisco 7500 series routers.
•
Configuring Cisco Express Forwarding
The configuration examples in this section are based on the sample network topology shown in Figure 1.
A later section entitled "Configuration Examples for Cisco 12000 Series GSR Routers" provides configuration examples for packet interfaces on Cisco 12000 series GSR routers. These configuration examples are likewise based on the sample network topology shown in Figure 1.
Figure 1 Sample Network Topology for Configuring MPLS CoS on Router Interfaces
Configuring Cisco Express Forwarding
Cisco express forwarding (CEF) is a prerequisite for using MPLS CoS; CEF must be running on all routers and switches in the MPLS network. To enable CEF on a router or a switch, issue the following command, as appropriate:
ip cef distributed (for Cisco 7500 series routers)!ip cef (for Cisco 7200 series routers)!Running IP on Router 1
The following commands enable IP routing on Router 1 (see Figure 1). All routers in Figure 1 must have IP enabled.
Note
Router 1 is not part of the MPLS network.
!ip routing!hostname R1!interface Loopback0ip address 11.11.11.11 255.255.255.255!interface Ethernet0/3ip address 90.0.0.1 255.0.0.0!router ospf 100network 11.0.0.0 0.255.255.255 area 100network 90.0.0.0 0.255.255.255 area 100Running MPLS on Router 2
Router 2 (see Figure 1) is a label edge router. CEF and MPLS must be enabled on this router. CAR is also configured on Router 2 and interface e1/3. The CAR policy used at interface e1/3 acts on incoming traffic matching access-list 101. If the traffic rate is less than the committed information rate (in this example, 496000), the traffic will be sent with IP precedence 4. Otherwise, this traffic will be sent with IP precedence 0.
!ip routing!hostname R2!ip cefmpls iptag-switching advertise-tags!interface Loopback0ip address 10.10.10.10 255.255.255.255!interface Ethernet1/3ip address 90.0.0.2 255.0.0.0rate-limit input access-group 101 496000 32000 64000 conform-action set-prec-transmit 4 exceed-action set-prec-transmit 0!interface POS6/0ip address 91.0.0.1 255.0.0.0mpls label protocol ldpmpls iprandom-detectclock source internal!router ospf 100network 10.0.0.0 0.255.255.255 area 100network 90.0.0.0 0.255.255.255 area 100network 91.0.0.0 0.255.255.255 area 100!access-list 101 permit ip host 11.11.11.11 anyRunning MPLS on Router 3
Router 3 (see Figure 1) is running MPLS. CEF and MPLS must be enabled on this router.
!ip routingmpls iptag-switching advertise-tags!hostname R3!interface Loopback0ip address 15.15.15.15 255.255.255.255!interface POS0/1ip address 91.0.0.2 255.0.0.0mpls label protocol ldpmpls ipcrc 16!interface POS3/0ip address 92.0.0.1 255.0.0.0mpls label protocol ldpmpls ipcrc 16clock source internaltx-cos stm16-rx!router ospf 100network 15.0.0.0 0.255.255.255 area 100network 91.0.0.0 0.255.255.255 area 100network 92.0.0.0 0.255.255.255 area 100!cos-queue-group stm16-rxprecedence 0 random-detect-label 0precedence 0 queue 0precedence 1 queue 1precedence 1 random-detect-label 1precedence 2 queue 2precedence 2 random-detect-label 2precedence 3 random-detect-label 2precedence 4 random-detect-label 2precedence 5 random-detect-label 2precedence 6 random-detect-label 2precedence 7 queue low-latencyprecedence 7 random-detect-label 2random-detect-label 0 250 1000 1random-detect-label 1 500 1250 1random-detect-label 2 750 1500 1queue 0 50queue 1 100queue 2 150queue low-latency alternate-priority 500Running MPLS on Router 4
Router 4 (see Figure 1) is running MPLS. CEF and MPLS must be enabled on this router.
!ip routingmpls iptag-switching advertise-tags!hostname R4!interface Loopback0ip address 13.13.13.13 255.255.255.255!interface POS1/2ip address 93.0.0.1 255.0.0.0mpls label protocol ldpmpls ipcrc 16clock source internaltx-cos stm16-rx!router ospf 100network 13.0.0.0 0.255.255.255 area 100network 92.0.0.0 0.255.255.255 area 100network 93.0.0.0 0.255.255.255 area 100!cos-queue-group stm16-rxprecedence 0 queue 0precedence 0 random-detect-label 0precedence 1 queue 1precedence 1 random-detect-label 1precedence 2 queue 2precedence 2 random-detect-label 2precedence 3 random-detect-label 2precedence 4 random-detect-label 2precedence 5 random-detect-label 2precedence 6 random-detect-label 2precedence 7 queue low-latencyrandom-detect-label 0 250 1000 1random-detect-label 1 500 1250 1random-detect-label 2 750 1500 1queue 0 50queue 1 100queue 2 150queue low-latency alternate-priority 200Running MPLS on Router 5
Router 5 (see Figure 1) is running MPLS. CEF and MPLS must be enabled on this router. Router 5 has CBWFQ enabled on interface fa5/1/0. In this example, class-maps are created, matching packets with various IP precedence values. These class-maps are then used in a policy-map named "outputmap," where CBWFQ is assigned to each class. Finally, the policy-map is assigned to the outbound interface fa5/1/0.
!


