Implementing Quality of Service (QoS) The MQC http://www.INE.com
Copyright © 2010 Internetwork Expert, Inc Module 3 Overview Implementation Copyright © 2010 Internetwork Expert, Inc www.INE.com
Copyright © 2010 Internetwork Expert, Inc Overview of Class Maps Class Maps Consist of a case sensitive name; a series of match commands; a match-all or match-any instruction (default is match-all) Class maps can nest inside of other class maps Copyright © 2010 Internetwork Expert, Inc www.INE.com
Copyright © 2010 Internetwork Expert, Inc Configuration Syntax router(config)# class-map [match-all | match-any] cmap_name router(config-cmap)# match condition router(config-cmap)# match not condition router(config-cmap)# match class-map cmap_name router(config-cmap)# match any router(config-cmap)# description my_description Example R1(config)# class-map match-all CM_SAMPLE R1(config-cmap)# match protocol ip R1(config-cmap)# match qos-group 3 R1(config-cmap)# match access-group 110 Copyright © 2010 Internetwork Expert, Inc www.INE.com
Copyright © 2010 Internetwork Expert, Inc Configuration, con’t Nesting Example R1(config)# class-map match-all CM_SAMPLE_CHILD R1(config-cmap)# match protocol ip R1(config-cmap)# match qos-group 3 R1(config-cmap)# exit R1(config)# class-map match-any CM_SAMPLE_PARENT R1(config-cmap)# match class-map CM_SAMPLE_CHILD R1(config-cmap)# match input-interface FastEthernet 0/1 Verification show class-map [class_name] [ | {begin | exclude | include } exp ] Copyright © 2010 Internetwork Expert, Inc www.INE.com
The class-default Class Automatically created by the IOS Catch-all class – matches all traffic that does not fall under one of your class-maps We configure (if we need to) under the policy-map Copyright © 2010 Internetwork Expert, Inc www.INE.com
Overview of Policy Maps What do we do to the traffic in the class maps? Once again, a case-sensitive name; traffic class(es); the policy or policies Up to 256 classes can be in a single policy map Policy maps can be nested Copyright © 2010 Internetwork Expert, Inc www.INE.com
Copyright © 2010 Internetwork Expert, Inc Configuration Syntax router(config)# policy-map policy_map_name router(config-pmap)# class {class-name | class-default} router(config-pmap-c)# Example R1(config)# class-map CM_SAMPLE1 R1(config-cmap)# match access-group 110 R1(config-cmap)# class-map CM_SAMPLE2 R1(config-cmap)# match access-group 112 R1(config-cmap)# ! R1(config-cmap)# policy-map PM_TEST R1(config-pmap)# class CM_SAMPLE1 R1(config-pmap-c)# bandwidth 100 R1(config-pmap-c)# class SM_SAMPLE2 R1(config-pmap-c)# bandwidth 200 Copyright © 2010 Internetwork Expert, Inc www.INE.com
Nesting in Policy-Maps Nesting Policy Maps (Hierarchical) Example – shape all traffic to 3 MB; inside that 3 MB, guarantee Web traffic at least 1 MB We use a service-policy (normally done with interfaces) to assign policy inside policy-map Restrictions set command not supported on the child policy priority command can be used in either the parent or the child policy, but not both fair-queue command cannot be used in the parent Copyright © 2010 Internetwork Expert, Inc www.INE.com
Copyright © 2010 Internetwork Expert, Inc Nesting Example class-map CM_ALL_TRAFFIC match any ! class-map CM_WEB match protocol http policy-map PM_CHILD class CM_WEB bandwidth 1000 policy-map PM_PARENT class CM_ALL_TRAFFIC shape 3000000 service-policy PM_CHILD Copyright © 2010 Internetwork Expert, Inc www.INE.com
Copyright © 2010 Internetwork Expert, Inc Verification show policy-map show policy-map interface int_name Copyright © 2010 Internetwork Expert, Inc www.INE.com
Copyright © 2010 Internetwork Expert, Inc The Service Policy Where to apply the QoS policy Syntax router(config-if)# service-policy {input | output} pm_name Example R1(config-if)# service-policy output PM_TEST Copyright © 2010 Internetwork Expert, Inc www.INE.com