Implementing MPLS QoS for Layer 2 VPN Implementations
Command Reference
Command |
Description |
---|---|
Router(config)# class-map {match-all | match-any} name |
Configures a class map to associate class of traffic |
Router(config-cmap)# match any |
Associates any packet into this class |
Router(config-cmap)# match [not] access-group {Access-list-number | Name Access-list-name} |
Associates packets defined by predefined access list into traffic class |
Router(config-cmap)# match [not] cos cos-value-1 [cos-value-2] [cos-value-3] [cos-value-4] |
Associates packets with certain CoS value into traffic class |
Router(config-cmap)# match [not] atm clp |
Associates packets by ATM CLP |
Router(config-cmap)# match [not] dscp dscp-value-1 [dscp-value-2] [dscp-value-3] [dscp-value-4] |
Associates packets with certain DSCP value(s) to traffic class |
Router(config-cmap)# match [not] ip {dscp | precedence} {dscp-value-1 | IP-precedence-value-1} [dscp-value-2 | IP-precedence-value-2] [dscp-value-3 | IP-precedence-value-3] [dscp-value-4 | IP-precedence-value-4] |
Associates packets with certain IP Precedence or DSCP value to traffic class |
Router(config-cmap)# match [not] mpls experimental MPLS-exp-value-1 [MPLS-exp-value-2] [MPLS-exp-value-3] [MPLS-exp-value-4] [MPLS-exp-value-5] [MPLS-exp-value-6] [MPLS-exp-value-7] [MPLS-exp-value-8] |
Matches packets with specific MPLS EXP value to traffic class |
Router(config-cmap)# match [not] protocol protocol-identifier-name |
Matches packets based on protocol ID |
Router(config-cmap)# match [not] qos-group qos-group-value |
Matches packets based on locally defined QoS group values |
Router(config-cmap)# match [not] vlan vlan-id |
Matches packets based on VLAN ID values in L2 header |
Router(config)policy-map policy-map-name |
Configures QOS policy |
Router(config-pmap)# class class-map-name |
Configures per-class PHB under policy map |
Router(config-pmap-c)# bandwidth {bandwidth-in-kbps | percent percentage-of-total-bandwidth | remaining percentage-of-remaining-bandwidth} |
Configures the bandwidth allocation per class |
Router(config-pmap-c)# priority |
Identifies the class to be treated with LLQ |
Router(config-pmap-c)# set {dscp dscp-value | IP dscp dscp-value | IP precedence precedence-value | precedence precedence-value | atm-clp | cos cos-value | discard-class discard-class-value | fr-de | qos-group qos-group-value | MPLS experimental {exp-value | imposition exp-value | topmost exp-value}} |
Configures the PHB marking parameters for DSCP and IP Precedence per class under policy-map configuration |
Router(config-pmap-c)# random-detect {prec-based | dscp-based} Router(config-pmap-c)# random-detect precedence precedence-value min-threshold [cells | milliseconds | packets | microseconds] max-threshold [cells | milliseconds | packets | microseconds] mark-probability-denominator Router(config-pmap-c)# random-detect dscp dscp-value min-threshold [cells | milliseconds | packets | microseconds] max-threshold [cells | milliseconds | packets | microseconds] mark-probability-denominator |
Configures WRED under each class (either Precedence based or DSCP based) for congestion avoidance |
Router(config-pmap-c)# police {cir cir} [bc conform-burst] {pir pir} [be peak-burst] [conform-action action [exceed-action action [violate-action action]]] OR Router(config-pmap-c)# police bps [burst-normal] [burst-max] conform-action action exceed-action action [violate-action action] OR Router(config-pmap-c)# police cir percent percent [bc conform-burst-in-msec] [pir percent percent] [be peak-burst-in-msec] |
Configures policing per class under policy-map configuration Where action = {drop | set-clp-transmit | set-discard-class-transmit discard-class-value | set-dscp-transmit dscp-value| set-frde-transmit | set-mpls-exp-imposition-transmit mpls-exp-value | set-mpls-exp-topmost-transmit mpls-exp-value | set-prec-transmit precedence-value| set-qos-transmit qos-group-value | transmit} |
Router(config-pmap-c)# shape {average | peak} cir [bc] [be] OR Router(config-pmap-c)# shape {average | peak} percent percent [bc] [be] OR Router(config-pmap-c)# shape [average | peak] mean-rate [[burst-size] [excess-burst-size]] |
Configures shaping per class under policy-map configuration |
Router(config)# interface interface-type number Router(config-if)# service-policy {in | out } policy-map-name |
Associates the policy map with an interface, either ingress or egress |