MPLS-QoS Jay Kumarasamy jayk@cisco.com © 2001, Cisco Systems Agenda • QoS Models • Differentiated Model Features • Modular QoS CLI (MQC) • MPLS QoS • Sample Examples 2001 Cisco Systems, Inc www.cisco.com QoS Models • Integrated Services (IntServ) • Differentiated Services (Diffserv) 2001 Cisco Systems, Inc www.cisco.com The QoS Pendulum Time N o s ta te A g g re g a te d s ta te B e s t E ffo rt D iffS e r v P e r -flo w s ta te In t S e r v / R S V P T h e o r ig in a l IP s e r v ic e F ir s t e f f o r t s a t IP Q o S S e e k in g s im p lic ity a n d s c a le B a n d w id th O p tim iz a tio n & e e S L A s ( ( In t S e r v + D if f S e r v + T r a f f ic E n g in e e r in g ) ) 2001 Cisco Systems, Inc www.cisco.com Integrated Model • Application requests a specific kind of QoS service, through explicit signaling • Resource Reservation Protocol (RSVP) is used by applications to signal their QoS requirements to the router • Complex to use • Difficult to support with a large number of RSVP connections, due to: the amount of state information required for every flow the amount of control traffic • Fine grain, providing strict QoS 2001 Cisco Systems, Inc www.cisco.com Differentiated Model • Qos is provided by differential treatment to each packet or class of packets • No explicit signaling from the application • This model is appropriate for aggregate flows • Coarse grain, not strict QoS (no guarantees) 2001 Cisco Systems, Inc www.cisco.com Differentiated Model Divide Traffic into Classes Differentiated IP Services Voice Platinum Class Low Latency Gold Guaranteed: Latency and Delivery Silver Guaranteed Delivery Bronze Best Effort Delivery E-Commerce Application Traffic Traffic Classification E-mail, Web Browsing Voice 2001 Cisco Systems, Inc www.cisco.com Differentiated Model Classification/ Marking policy Drop policy Scheduling policy Switching Fabric rx queue tx queue tx hw recv hw 2001 Cisco Systems, Inc www.cisco.com Agenda • QoS Models • Differentiated Model Features • Modular QoS CLI (MQC) • MPLS QoS • Sample Examples 2001 Cisco Systems, Inc www.cisco.com Differential Model Features 2001 Cisco Systems, Inc • Classification • Marking • Policing and Shaping • Congestion Avoidance • Congestion Management www.cisco.com 10 Agenda • QoS Models • Differentiated Model Features • Modular QoS CLI (MQC) • MPLS Class of Service • Examples 2001 Cisco Systems, Inc www.cisco.com 38 Examples MPLS Network PE CE Po s P3 1/ PE CE PE Pos Pos / CE PE /0 /1 CE PE 2001 Cisco Systems, Inc Pos www.cisco.com Pos 4/ 39 Examples ! Matching voice traffic from customer Pe1(config)# class-map match-all cus1_voice Pe1(config-cmap)# match interface POS1/0 Pe1(config-cmap)# match ip precedence Pe1(config-cmap)# end ! Matching voice traffic from customer Pe1(config)# class-map match-all cus2_voice Pe1(config-cmap)# match interface POS1/1 Pe1(config-cmap)# match ip precedence Pe1(config-cmap)# end ! Matching any e2e traffic Pe1(config)# class-map erp Pe1(config-cmap)# match ip precedence Pe1(config-cmap)# end 2001 Cisco Systems, Inc www.cisco.com 40 Examples Pe1(config)# class-map isp_voice Pe1(config-cmap)# match mpls experimental Pe1(config-cmap)# end Pe1(config)# class-map isp_erp Pe1(config-cmap)# match mpls experimental Pe1(config-cmap)# end Pe1(config)# class-map isp_routine Pe1(config-cmap)# match mpls experimental Pe1(config-cmap)# end 2001 Cisco Systems, Inc www.cisco.com 41 Examples ! Input Policy for setting experimental 4, 2, Pe1(config)# policy-map pe1_input Pe1(config-pmap)# class cus1_voice Pe1(config-pmap-c)# set mpls experimental Pe1(config-pmap-c)# exit Pe1(config-pmap)# class cus2_voice Pe1(config-pmap-c)# set mpls experimental Pe1(config-pmap-c)# exit Pe1(config-pmap)# class erp Pe1(config-pmap-c)# set mpls experimental Pe1(config-pmap-c)# exit Pe1(config-pmap)# class class-default Pe1(config-pmap-c)# set mpls experimental Pe1(config-pmap)# exit 2001 Cisco Systems, Inc www.cisco.com 42 Examples ! Output Policy for configuring bandwidth, queue… Pe1(config)# policy-map policy pe1_output Pe1(config-pmap)# class isp_voice Pe1(config-pmap-c)# priority 100 Pe1(config-pmap-c)# exit Pe1(config-pmap)# class isp_erp Pe1(config-pmap-c)# bandwidth 50 Pe1(config-pmap-c)# queue-limit 30 Pe1(config-pmap-c)# exit Pe1(config-pmap)# class class-default Pe1(config-pmap-c)# bandwidth 20 Pe1(config-pmap-c)# queue-limit 100 Pe1(config-pmap-c)# exit Pe1(config-pmap)# exit 2001 Cisco Systems, Inc www.cisco.com 43 Examples Pe1(config)# interface POS1/0 Pe1(config-if)# service-policy input pe1_input Pe1(config)# interface POS1/1 Pe1(config-if)# service-policy input pe1_input Pe1(config)# interface POS2/0 Pe1(config-if)# service-policy output pe1_output 2001 Cisco Systems, Inc www.cisco.com 44 Examples MPLS Network PE Po CE s1 /0 PE PE LSC1 LC-ATM CE PE Pos /0 ATM Core Pos /1 CE CE PE 2001 Cisco Systems, Inc www.cisco.com Pos 4/ 45 Examples Pe1(config)# ATM1/0 Pe1(config-if)# no ip address Pe1(config-if)# atm clock INTERNAL Pe1(config-if)# no atm ilmi-keepalive Pe1(config-if)# exit Pe1(config)# interface ATM1/0.1 tag-switching Pe1(config-if)# ip unnumbered loopback0 Pe1(config-if)# tag-switching multi-vc Pe1(config-if)# tag-switching atm vpi 2-5 Pe1(config-if)# tag-switching ip ! Sets up LVCs Pe1(config)# cos-map Pe1(config-mpls-cos-map)# class standard Pe1(config-mpls-cos-map)# exit ! - standard ! - premium ! - standard ! – available Pe1(config)# mpls prefix-map access-list cos-map 2001 Cisco Systems, Inc www.cisco.com 46 Examples ! Matching voice traffic from customer Pe1(config)# class-map match-all cus1_voice Pe1(config-cmap)# match interface POS1/0 Pe1(config-cmap)# match ip precedence Pe1(config-cmap)# end ! Matching voice traffic from customer Pe1(config)# class-map match-all cus2_voice Pe1(config-cmap)# match interface POS1/1 Pe1(config-cmap)# match ip precedence Pe1(config-cmap)# end ! Matching any e2e traffic Pe1(config)# class-map erp Pe1(config-cmap)# match ip precedence Pe1(config-cmap)# end 2001 Cisco Systems, Inc www.cisco.com 47 Examples P! Input Policy for setting experimental 2, 1, e1(config)# policy-map pe1_input Pe1(config-pmap)# class cus1_voice Pe1(config-pmap-c)# set mpls experimental ! Voice for customer Pe1(config-pmap-c)# exit Pe1(config-pmap)# class cus2_voice Pe1(config-pmap-c)# set mpls experimental ! Voice for customer Pe1(config-pmap-c)# exit Pe1(config-pmap)# class erp Pe1(config-pmap-c)# set mpls experimental ! ERP data Pe1(config-pmap-c)# exit Pe1(config-pmap)# class class-default Pe1(config-pmap-c)# set mpls experimental ! All other traffic Pe1(config-pmap)# exit Pe1(config)# class-map isp_voice Pe1(config-cmap)# match mpls experimental Pe1(config-cmap)# end www.cisco.com 2001 Cisco Systems, Inc 48 Examples Pe1(config)# class-map isp_erp Pe1(config-cmap)# match mpls experimental Pe1(config-cmap)# end Pe1(config)# class-map isp_available Pe1(config-cmap)# match mpls experimental Pe1(config-cmap)# end ! Output Policy for configuring bandwidth, queue… Pe1(config)# policy-map policy pe1_output Pe1(config-pmap)# class isp_voice Pe1(config-pmap-c)# priority 100 2001 Cisco Systems, Inc www.cisco.com 49 Examples Pe1(config-pmap-c)# exit Pe1(config-pmap)# class isp_erp Pe1(config-pmap-c)# bandwidth 50 Pe1(config-pmap-c)# queue-limit 30 Pe1(config-pmap-c)# exit Pe1(config-pmap)# class isp_available Pe1(config-pmap-c)# bandwidth 20 Pe1(config-pmap-c)# queue-limit 100 Pe1(config-pmap-c)# exit Pe1(config-pmap)# exit 2001 Cisco Systems, Inc www.cisco.com 50 Examples LSC1 Interface XTagATM11 extended-port ATM3/0 bpx 1.1 tag-switching atm vpi 2-15 tag-switching atm cos available 20 tag-switching atm cos standard 30 tag-switching atm cos premium 50 tag-switching ip Interface XTagATM12 extended-port ATM3/0 bpx 1.2 tag-switching atm vpi 2-15 tag-switching atm cos available 20 tag-switching atm cos standard 30 tag-switching atm cos premium 50 tag-switching ip 2001 Cisco Systems, Inc www.cisco.com 51 Thank You! 2001 Cisco Systems, Inc www.cisco.com 52 ... Precedence into MPLS EXP • Mapping of IP Precedence into MPLS EXP MPLS Domain Non -MPLS Domain IPv4 Packet MPLS MPLS EXP: xyz Prec: xyz 2001 Cisco Systems, Inc Hdr www .cisco. com Prec: xyz 24 MPLS QoS Diff-Serv... Cisco Systems, Inc www .cisco. com 15 Agenda • QoS Models • Differentiated Model Features • Modular QoS CLI (MQC) • MPLS QoS • Sample Examples 2001 Cisco Systems, Inc www .cisco. com 16 Modular QoS. .. www .cisco. com Agenda • QoS Models • Differentiated Model Features • Modular QoS CLI (MQC) • MPLS QoS • Sample Examples 2001 Cisco Systems, Inc www .cisco. com Differential Model Features 2001 Cisco