![]() |
Cisco MPLS Controller Software Configuration Guide 9.3.10
|
|||||||||||||||||||||||||||||||||||||||||||||||||
MPLS CoS with BPX 8650
![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||
Table of ContentsMPLS CoS with BPX 8650MPLS CoS Overview MPLS CoS in An IP+ATM Network ATM CoS Service Templates and Qbins on the BPX 8650 MPLS CoS over IP+ATM Operation Configuration Example MPLS CoS with BPX 8650This chapter describes MPLS Class of Service (CoS) with the use of the BPX 8650 ATM Label Switch Router (ATM LSR). A summary example is provided for configuring BPX 8650 ATM LSRs, their associated LSCs (6400, 7200, or 7500 series), and Edge Label Switch Routers: For an overview of design issues, see Chapter 3, "Quality of Service in MPLS Networks." For additional information, refer to Cisco 6400, 7200, or 7500 series router and MPLS-related IOS documentation. Refer to release notes for supported features. MPLS CoS OverviewThe MPLS CoS feature enables network administrators to provide differentiated types of service across an MPLS Switching network. Differentiated service satisfies a range of requirements by supplying the particular kind of service specified for each packet by its CoS. Service can be specified in different ways—for example, through use of the IP precedence bit settings in IP packets or in source and destination addresses. The MPLS CoS feature can be used optionally with MPLS Virtual Private Networks. MPLS CoS can also be used in any MPLS switching network. In supplying differentiated service, MPLS CoS offers packet classification, congestion avoidance, and congestion management. Table 6-1 lists these functions and the means by which they are delivered. Table 6-1 CoS Services and Features MPLS CoS lets you duplicate Cisco IOS IP CoS (Layer 3) features as closely as possible in MPLS switching devices, including Label Switching Routers (LSRs), Edge LSRs, and ATM label switching routers (ATM LSRs). MPLS CoS functions map nearly one-for-one to IP CoS functions on all interface types. Related DocumentsFor more information on configuration of the CoS functions (CAR, WRED, and WFQ), refer to the Cisco IOS Class of Service for Tag Switching Feature Guide, and the Cisco IOS Quality of Service Solutions Configuration Guide. For complete command syntax information for CAR, WRED, and WFQ, refer to the Cisco IOS Quality of Service Solutions Command Reference. For additional information on BPX 8650 CLI commands, refer to the Cisco WAN Switch Command Reference. PrerequisitesTo use the MPLS CoS feature, your network must be running these Cisco IOS features: MPLS CoS in An IP+ATM NetworkIn IP+ATM networks, MPLS uses predefined sets of labels for each service class, so switches automatically know which traffic requires priority queuing. A different label is used per destination to designate each service class (see Figure 6-1). There can be up to four labels per IP source-destination. Using these labels, core LSRs implement class-based WFQ to allocate specific amounts of bandwidth and buffer to each service class. Cells are queued by class to implement latency guarantees. On a Cisco IP+ATM LSR, the weights assigned to each service class are relative, not absolute. The switch can therefore borrow unused bandwidth from one class and allocate it to other classes according to weight. This scenario enables very efficient bandwidth utilization. The class-based WFQ solution ensures that customer traffic is sent whenever unused bandwidth is available, whereas ordinary ATM VCs drop cells in oversubscribed classes even when bandwidth is available. Figure 6-1 Multiple LVCs for IP QoS Services Packets have their precedence bits in the Type of Service field of the IP header, set at either the host or an intermediate router, which could be the Edge Label Switch Router (LSR). The precedence bits define a Class of Service (CoS) 0-3, corresponding for to premium, standard, available, or control, for example. To establish CoS operation when the BPX and the associated LSC router (6400, 7200, or 7500 series) are initially configured, the binding type assigned each LVC interface on the BPX is configured to be multiple LVCs. Then under the routing protocol (OSPF, for example), four LVCs are set up across the network for each IP source to destination requirement. Depending on the precedence bits set in the packets that are received by the Edge LSR, the packet ATM cells that are sent to the ATM LSR will be one four classes (as determined by the cell label, that is, VPI.VCI). Furthermore, two subclasses are distinguishable within each class by the use of the cell loss priority (CLP) bit in the cells. Then the ATM LSR performs a MPLS data table look-up and assigns the appropriate template Class of Service template and Qbin characteristics. The default mapping for CoS is listed in Table 6-2. Two IP Types of Service (ToS) are carried in each MPLS CoS. In the default mapping, both ToS 0 and ToS 4 are carried in the so-called "Available" VC. The two types are distinguished by the CLP bit. In the default mapping, cells of IP packets with IP ToS 0 are carried with CLP=1, whereas cells of IP packets with IP ToS 4 are carried with CLP=0. This means that in times of congestion in the switches, packets with ToS 0 will be discarded, while ToS 4 packets will not be discarded unless the congestion becomes particularly severe.
Figure 6-2 shows an example of IP traffic across an ATM core consisting of BPX 8650 ATM LSRs. The host is sending two types of traffic across the network, interactive video and non-time-critical data. Because multiple LVCs have automatically been generated for all IP source-destination paths, traffic for each source destination is assigned to one of four LVCs, based on the precedence bit setting in the IP packet header. In this case, the video traffic might be assigned to the premium CoS, and transmitted across the network starting with the cell label "51" out of the Edge LSR-A, and continuing across the network with the cell label "91" applied to the Edge LSR-C. In each BPX 8650 ATM LSR, the cells are processed with the pre-assigned bandwidth, queuing, and other ATM QoS functions suitable to "premium" traffic. In a similar fashion, low-priority data traffic cells with the same IP source-destination might be assigned label "53 out of Edge LSR-A and arrive at Edge LSR-C with the label "93", receiving pre-assigned bandwidth, queuing and other ATM QoS functions suitable to "available" traffic. Figure 6-2 Example of Multiple LVCs CoS with BPX 8650s ATM CoS Service Templates and Qbins on the BPX 8650The service class template provide a means of mapping a set of extended parameters. These are generally platform specific, based on the set of standard ATM parameters passed to the VSI slave in a BXM port interface during the initial setup of the interface. A set of service templates is stored in each switch (BPX 8650) and downloaded to the service modules (BXMs) as needed during initial configuration of the VSI interface when a trunk or line is enabled on the BXM. An MPLS service template is assigned to the VSI interface when the trunk or port is initialized. The label switch controller (LSC) automatically sets up LVCs via a routing protocol (such as OSPF) and the Label Distribution Protocol (LDP), when the Class of Service Multiple LVC option is enabled at the edge label switch routers (LSRs). With the Multiple VC option enabled (at Edge LSRs), four LVCs are configured for each IP source-destination. Each of the four LVCs is assigned a service type. For example, one of the four cell labels might be assigned to label cos2 service type category. Each service type has an associated Qbin (see Figure 6-3). The Qbins provide the ability to manage bandwidth by temporarily storing cells and then serving them out as bandwidth is available based on a number of factors, including bandwidth availability and the relative priority of different Classes of Service. When ATM cells arrive from the Edge LSR at the BXM port with one of four CoS labels, they receive CoS handling based on that label. A table look-up is performed, and the cells are processed, based on their connection classification. Based on its label, a cell receives the ATM differentiated service associated with its template type, (MPLS1 template) and service type (for example, label cos2 bw), plus associated Qbin characteristics and other associated ATM parameters. Initial Setup of LVCsThe service template contains two classes of data:
When a connection setup request is received from the VSI master in the Label Switch Controller, the VSI slave (in the BXM, for example) uses the service type identifier to index into a Service Class Template database (Figure 6-3) containing extended parameter settings for connections matching that index. The slave uses these values to complete the connection setup and program the hardware. Service Template QbinsWhen you use the upport or uptrk command to activate an interface on the BXM card, the default service template, which is MPLS1, is assigned to the interface (Figure 6-3). Each template table row includes an entry that defines the Qbin to be used for that Class of Service. This mapping defines a relationship between the template and the interface Qbin's configuration. Qbin templates are used only with Qbins that are available to VSI partitions, namely Qbins 10 through 15. Qbins 10 through 15 are used by the VSI on interfaces configured as trunks or ports. The rest of the Qbins (0-9) are reserved for and configured by AutoRoute. Figure 6-3 Service Template and Associated Qbin Selection MPLS CoS over IP+ATM OperationIn a typical operation for MPLS CoS, a packet makes its way from the host on the left side of a network, through the network of conventional routers, label edge routers (LERs), Edge LSRs, and ATM LSRs such as a BPX 8650. As the packet progresses, basic functions are applied to it, as shown in Figure 6-4: 1. Set the IP Type of Service (ToS) for a packet in the host (or router). 2. In the Edge LSR, label the packet by putting it on a label-VC. There is a choice of up to four label-VCs to each IP destination-prefix, for different CoS. Choose one based on the IP ToS in the packet. 3. Apply ATM CoS bandwidth and queuing to ATM cells based on their Class of Service in the ATM LSR (BPX 8650, for example). 4. At the Edge LSR, receive the packet from the label VC, discard the label information, and forward the IP packet with appropriate ToS towards its destination (Edge LSR). Figure 6-4 MPLS CoS over IP+ ATM with BPX 8650 LSRs
The preceding discussion applies to MPLS networks where the entire network runs ATM MPLS. MPLS CoS also works in networks using a mixture of ATM MPLS and packet-based MPLS. For more information, see the MPLS chapter in the Cisco IOS Switching Services Configuration Guide. Configuration ExampleThere are four default policy types for MPLS CoS as shown in Table 6-3 with default relative bandwidth per xtagatm interface. Table 6-3 Class of Service and Relative Bandwidth Weighting
The relative bandwidth weights determine the proportion of bandwidth available to MPLS, which is given to each Class of Service on each link. If a CoS does not use the bandwidth given to it, then the bandwidth may be shared among the other CoSs. The Control CoS is important to guarantee a good quality of service for MPLS control traffic. For this reason, it is desirable to reserve a small amount of bandwidth for the Control CoS as shown in Table 6-4. Table 6-4 Class of Service and Relative Bandwidth Weighting Setup
To verify an xtagatm interface after configuration on the LSC, run this command: where xx is the interface number. The maximum value for CoS bandwidth is 100. The setup for the configuration example is shown in Figure 6-5. Figure 6-5 Configuration Example for MPLS CoS with BPX 8650 LSRs Configure the following resources according to the sample setup shown in Figure 6-5: When configuring BPX1 and BPX1, verify that no software, card, or trunk errors are reported on the console. In this example, all VSI resources are allocated to maximum value. BPX ConfigurationsBPX1 uptrk 1.1 //LSC1 control port
uptrk 1.3 //trunk via BPX1 upln 1.2 //up line for LER1 cnfrsrc 1.1 0 352207 y 1 e 0 3000 1 20 352207 352207 //LSC1 cnfrsrc 1.3 0 352207 y 1 e 0 3000 1 20 352207 352207 //trunk cnfrsrc 1.2 0 352207 y 1 e 0 3000 1 20 352207 352207 //LER1 port addshelf v 1 1 //control-id=1;partition number=1 BPX2 uptrk 2.1 //LSC2 control port
uptrk 2.3 //trunk via BPX1 upln 2.2 //up line for LER2 cnfrsrc 2.1 0 352207 y 1 e 0 3000 1 20 352207 352207 //LSC2 cnfrsrc 2.3 0 352207 y 1 e 0 3000 1 20 352207 352207 //trunk cnfrsrc 2.2 0 352207 y 1 e 0 3000 1 20 352207 352207 //LER2 port addshelf v 2 1 //control-id=2;partition number=1 dsptrks //successful with no alarms dspvsipartinfo //verify lcns and bandwidth are allocated successfully dsplns //no alarm dspctrlrs //controller ID is added successfully There are four default policy parameters for relative bandwidth per xtagatm interface: Once xtagatm interface has been defined for each LSC, exeute the command: where xx is interface number. Verify that default relative bandwidth is properly assigned in percentage value. The maximum value for CoS bandwidth is 100. LSC ConfigurationsLSC1 LSC11-1#config t
LSC1(config)#int atm1/0 //LSC1LSC1 control port LSC1(config-if)#no shut LSC1(config-if)#tag-control-protocol vsi LSC1(config-if)#exit LSC1(config)#int xtagatm12 //LSR1 port 1.2 LSC1(config-if)#extended-port atm1/0 bpx 1.2 LSC1(config-if)#tag-switching ip LSC1(config-if)#tag-switching atm cos available 49 LSC1(config-if)#tag-switching atm cos standard 50 LSC1(config-if)#tag-switching atm cos premium 0 LSC1(config-if)#tag-switching atm cos control 1 LSC1(config-if)ip unnumbered loopback0 LSC1(config-if)#exit LSC1(config)#int xtagatm13 //LSR1 port 1.3 LSC1(config-if)#extended-port atm1/0 bpx 1.3 LSC1(config-if)#tag-switching ip LSC1(config-if)#tag-switching atm cos available 49 LSC1(config-if)#tag-switching atm cos standard 50 LSC1(config-if)#tag-switching atm cos premium 0 LSC1(config-if)#tag-switching atm cos control 1 LSC1(config-if)ip unnumbered loopback0 LSC1(config-if)#exit LSC1(config)#int loopback0 //configure loopback0 interface LSC1(config-if)#ip address 200.200.200.1 255.255.255.255 LSC1(config-if)#exit LSC1(config)#ip routing //enable IP routing LSC1(config)#ip cef //enable Cisco Express Forwarding Protocol LSC1(config)#router ospf 10 LSC1(config-router)#network 200.200.200.1 0.0.0.0 area 0 LSC1(config-router)#end LSC2 LSC2#config t
LSC2(config)#int atm2/0 //LSC2 control port LSC2(config-if)#no shut LSC2(config-if)#tag-control-protocol vsi id 2 LSC2(config-if)#exit LSC2(config)#int xtagatm22 //LSR2 port 2.2 LSC2(config-if)#extended-port atm1/0 bpx 2.2 LSC2(config-if)#tag-switching ip LSC2(config-if)#tag-switching atm cos available 49 LSC2(config-if)#tag-switching atm cos standard 50 LSC2(config-if)#tag-switching atm cos premium 0 LSC2(config-if)#tag-switching atm cos control 1 LSC2(config-if)ip unnumbered loopback0 LSC2(config-if)#exit LSC2(config)#int xtagatm23 //LSR2 port 2.3 LSC2(config-if)#extended-port atm1/0 bpx 2.3 LSC2(config-if)#tag-switching ip LSC2(config-if)#tag-switching atm cos available 49 LSC1(config-if)#tag-switching atm cos standard 50 LSC1(config-if)#tag-switching atm cos premium 0 LSC1(config-if)#tag-switching atm cos control 1 LSC2(config-if)ip unnumbered loopback0 LSC2(config-if)#exit LSC2(config)#int loopback0 //configure loopback0 interface LSC2(config-if)#ip address 200.200.200.2 255.255.255.255 LSC2(config-if)#exit LSC2(config)#ip routing //enable IP routing LSC2(config)#ip cef //enable Cisco Express Forwarding Protocol LSC2(config)#router ospf 10 LSC2(config-router)#network 200.200.200.2 0.0.0.0 area 0 LSC2(config-router)#end Edge LSR ConfigurationsLSR1 LSR1LSR1#config t
LSR1(config)#int atm1/0 //LSR1 interface LSR1(config-if)#no shut LSR1(config-if)#exit LSR1(config)#interface atm1/0.1 tag-switching //create tag sub-interface LSR1(config-subif)#ip unnumbered loopback0 LSR1(config-subif)#tag-switching atm multi-vc //enable multi-vc mode (4 VCs) LSR1(config-subif)#tag-switching ip LSR1(config)#int loopback0 //configure loopback0 interface LSR1(config-if)#ip address 200.200.100.1 255.255.255.255 LSR1(config)#ip routing //enable IP routing LSR1(config)#ip cef //enable Cisco Express Forwarding Protocol LSR1(config)#router ospf 10 LSR1(config-router)#network 200.200.100.1 0.0.0.0 area 0 LSR1(config-router)#exit In default multiple LVC mode, there are four MPLS Cos LVCs created by cos-map with clp set to off. The four classes of service are available (0/4), standard (1/5), premium (2/6), and control (3/7).
LSR2 LSR2#config t
LSR2LSR2(config)#int atm2/0 //LSR2 interface LSR2(config-if)#no shut LSR2(config-if)#exit LSR2(config)#interface atm2/0.1 tag-switching //create tag sub-interface LSR2(config-if)#ip unnumbered loopback0 LSR2(config-if)#tag-switching ip LSR2(config)#int loopback0 //configure loopback0 interface LSR2(config-if)#ip address 200.200.100.2 255.255.255.255 LSR2(config)#ip routing //enable IP routing LSR2(config)#ip cef //enable Cisco Express Forwarding Protocol LSR2(config)#router ospf 10 LSR2(config-router)#network 200.200.100.2 0.0.0.0 area 0 LSR2(config-router)#end LSR2(config)#tag-switching cos-map 1 //configure Cos-Map LSR2(config-tag-cos-map)#end //for now use default 4 VCs LSR2#sho tag-switching cos-map //there should be 4 VCs w/ clp off LSR2#config t LSR2(config)#access-list 1 permit 200.200.100.1 0.0.0.0 //create access list for network 200.200.100.1 LSR2(config)#tag-switching prefix-map 1 access-list 1 cos-map 1 //map access-list to cos-map 1 LSR2(config)#show tag forward 200.200.100.1 32 detail //verify forwarding table Verify that the LSC/LSR is operational and BPXs have clear alarms. LSR1 should be able to ping to LSR2 successfully. Check that VSI resources have been allocated that the and controller was added successfully. BPXs should have clear alarms and no software log and trunk errors. BPX1/BPX1 dsptrks //successful with no alarms
dspvsipartinfo //verify lcns and bandwidth are allocated successfully dsplns //no alarm dspctrlrs //controller ID is added successfully Check that LSC/Edge LSR interfaces are operational and TDP bindings are successful. LSC1 and LSC2 LSC1#sho tag interface //xtagatm interfaces are operational
LSC1#sho xtag cross-connect //verify crosss-connect LSC1#sho xtag vc //verify tag vc LSC1#sho control vsi descriptor //verify VSI VPI range and Bw LSC1#sho control vsi control-interface //verify number of connections for each cross-connect LSC1#sho control vsi traffic //verify traffic statistics LSC1#sho tag atm bind //verify tag atm bindings LSC1#sho tag atm sum //verify local/remote connections LSR1 and LSR2LSR1#sho tag interface //xtagatm interfaces are operational
|
||||||||||||||||||||||||||||||||||||||||||||||||||
|
|