Cisco Commands | Huawei Commands |
mls qos map cos-dscp 0 8 16 24 32 40 46 56 | # diffserv domain default ip-dscp-outbound af1 green map 8 ip-dscp-outbound af2 green map 2 ip-dscp-outbound af3 green map 24 ip-dscp-outbound af4 green map 32 ip-dscp-outbound be green map 0 ip-dscp-outbound ef green map 40 ip-dscp-outbound cs6 gr |
random-detect | drop-profile drop-profile-name |
conform-action transmit | qos car inbound cir cir-value green pass |
exceed-action transmit | qos car inbound cir cir-value yellow pass |
fair-queue | queue wfq |
match direction ingress | traffic-policy policy-name [global] inbound |
match ip precedence ip-precedence-value | if-match ip-precedence ip-precedence-value |
mls qos map cos-dscp dscp1 dscp2 dscp3 dscp4 dscp5 dscp6 dscp7 dscp8 | ip-dscp-outbound service-class color map dscp-value |
priority percent percentage | queue ef bandwidth pct percentage |
random-detect | drop-profile drop-profile-name wred { dscp | ip-precedence } |
router(config-cmap)#match [not] class-map class1-name | [router-classifier]if-match [not] classifier class1-name |
router(config-if)#rate-limit {input | output} {bps | access-group acl-index | [rate-limit] rate-limit-acl-index] | dscp dscp-value | qos-group qos-group-number} burst-normal burst-max conform-action conform-action exceed-action exceed-action | [router-serial1/0/0]qos car { cir cir-value [pir pir-value] } [ cbs cbs-value pbs pbs-value ] [ green { discard | pass [ service-class class color color ] } | yellow { discard | pass [ service-class class color color ] } | red { discard | pass [ service-class class color color]}]* {inbound | outbound} [ vlan { vlan-id1 [to vlan-id2 ] &<1-10> }] |
router(config-pmap-c)#random-detect {discard-class-based|dscp-based |precedence-based} | [router]port-wred wred-name [router-wred]{ green | yellow | red } low-limit 20 high-limit 50 discard-percentage 90 and !!!! [router-ether1/0/0]port-queue cos-value { { pq | wfq weight weight-value | lpq} | shaping { shaping-value | shaping-percentage-value } | port-wred wred-name } outbound |
router(config-pmap-c)#set [ip] precedence ip-precedence | [router-behavior]remark ip-precedence ip-precedence |
router(config-pmap-c)#shape {average| peak} units [burst-size] [burst-units] | [router-ether1/0/0]port shaping shaping-value |
router(config-pmap-c)#shape {average| peak} units [burst-size] [burst-units] | [router-ether1/0/0]port-queue cos-value { { pq | wfq weight weight-value | lpq} | shaping { shaping-value | shaping-percentage shaping-percentage-value } | port-wred wred-name } * outbound |
router(config-pmap)#bandwidth {bandwidth-kbps | remaining percent percentage | percent percentage} | [router-ether1/0/0]port-queue cos-value { { pq | wfq weight weight-value | lpq} | shaping { shaping-value | shaping-percentage shaping-percentage-value } | port-wred wred-name } outbound |
router(config-pmap)#priority {bandwidth-kbps | percent percentage} [burst] | [router-ether1/0/0]port-queue cos-value { { pq | wfq weight weight-value | lpq} | shaping { shaping-value | shaping-percentage shaping-percentage-value } | port-wred wred-name} outbound |
router(config-pmap)#random-detect discard-class value min-threshold max-threshold mark-prob-denominator | [router]port-wred wred-name [router-wred]{ green | yellow | red } low-limit 20 high-limit 50 discard-percentage 90 and !!!! [router-ether1/0/0]port-queue cos-value { { pq | wfq weight weight-value | lpq} | shaping { shaping-value | shaping-percentage-value } | port-wred wred-name } outbound |
router(config-pmap)#random-detect dscp dscpvalue min-threshold max-threshold [mark-probability-denominator] | [router]port-wred wred-name [router-wred]{ green | yellow | red } low-limit 20 high-limit 50 discard-percentage 90 and !!!! [router-ether1/0/0]port-queue cos-value { { pq | wfq weight weight-value | lpq} | shaping { shaping-value | shaping-percentage-value } | port-wred wred-name } outbound |
router(config-pmap)#random-detect exponential-weighting-constant exponent | [router]port-wred wred-name [router-wred]{ green | yellow | red } low-limit 20 high-limit 50 discard-percentage 90 and !!!! [router-ether1/0/0]port-queue cos-value { { pq | wfq weight weight-value | lpq} | shaping { shaping-value | shaping-percentage-value } | port-wred wred-name } outbound |
router(config-pmap)#random-detect precedence {precedence | rsvp} min-threshold max-threshold mark-prob-denominator | [router]port-wred wred-name [router-wred]{ green | yellow | red } low-limit 20 high-limit 50 discard-percentage 90 and !!!! [router-ether1/0/0]port-queue cos-value { { pq | wfq weight weight-value | lpq} | shaping { shaping-value | shaping-percentage-value } | port-wred wred-name } outbound |
service-policy policy-name | traffic-policy policy-name |
set ip dscp dscp-name | remark dscp dscp-name |
router(config-if)#rate-limit {input | output} {bps | access-group acl-index | [rate-limit] rate-limit-acl-index] | dscp dscp-value | qos-group qos-group-number} burst-normal burst-max conform-action conform-action exceed-action exceed-action | [router]qos car car-name cir cir-value [ cbs cbs-value [ pbs pbs-value ] | pir pir-value [ cbs cbs-value pbs pbs-value ] ] [router-ether1/0/0]qos car inbound car-name |
router(config-if)#rate-limit {input | output} {bps | access-group acl-index | [rate-limit] rate-limit-acl-index] | dscp dscp-value | qos-group qos-group-number} burst-normal burst-max conform-action conform-action exceed-action exceed-action | [Quidway] traffic classifier classifier-name operator and [Quidway-classifier-c1] if-match any [Quidway] traffic behavior behavior-name [Quidway-behavior-b1] car cir cir-value pir pir-value green pass yellow pass red discard [Quidway] traffic policy policy-name [Quidway-trafficpolicy-p1] class |
class-map {match-any|match-all} classifier-name | traffic classifier classifier-name operator {or|and} |
vlan access-map name [ number ] | traffic classifier classifier-name traffic behavior behavior-name traffic policy policy-name classifier classifier-name behavior behavior-name |
match access-group access-list-number | if-match acl access-list-number |
match ip address access-list-number | if-match acl access-list-number |
match mac address name | if-match acl access-list-number |
router(config-cmap)#match [not] access-group acl-number | [router-classifier]if-match [not] acl acl-number |
match access-group name acl-name | if-match acl acl-name |
router(config-cmap)#match [not] access-group name acl-name (extended) | [router-classifier]if-match [not] acl acl-name |
router(config-cmap)#match [not] access-group name acl-name (standard) | [router-classifier]if-match [not] acl acl-name |
match input-interface interface-type interface-number | if-match inbound-interface interface-type interface-number |
router(config-cmap)#match [not] input-interface interface-type interface-number | [router-classifier]if-match [not] inbound-interface interface-type interface-number |
match cos 8021p-value | if-match 8021p 8021p-value |
router(config-cmap)#match [not] cos 8021p-value | [router-classifier]if-match [not] 8021p 8021p-value |
match precedence ip-precedence-value | if-match ip-precedence ip-precedence-value |
router(config-cmap)#match [not] precedence ip-precedence-value | [router-classifier]if-match [not] ip-precedence ip-precedence-value |
match dscp dscp-value | if-match dscp dscp-value |
router(config-cmap)#match [not] dscp dscp-value | [router-classifier]if-match [not] dscp dscp-value |
match dscp mpls experimental topmost exp-value | if-match mpls-exp exp-value |
router(config-cmap)#match [not] mpls experimental topmost exp-value | [router-classifier]if-match [not] mpls-exp exp-value |
match any | if-match any |
router(config-cmap)#match [not] any | [router-classifier]if-match [not] any |
vlan access-map behavior-name action {drop|forward} | traffic behavior behavior-name {deny|permit} |
mls qos cos 3 | # traffic behavior behavior-name remark local-precedence af3 # |
action {drop|forward} | {deny|permit} |
router(config-pmap-c)#police {cir cir} [bc conform-burst] {pir pir} [be peak-burst] [conform-action action [exceed-action action [violate-action action]]] | car cir cir-value [ pir pir-value ] [ cbs cbs-value pbs pbs-value ] [ mode { color-blind | color-aware } ] [ green { discard | pass [ service-class class color color ] } | yellow { discard | pass [ service-class class color color ] } | red { discard | pass [ service-class class color color ] } ]* |
router(config-pmap-c)#police bps [burst-normal] [burst-max] conform-action action exceed-action action [violate-action action] | car cir cir-value [ pir pir-value ] [ cbs cbs-value pbs pbs-value ] [ mode { color-blind | color-aware } ] [ green { discard | pass [ service-class class color color ] } | yellow { discard | pass [ service-class class color color ] } | red { discard | pass [ service-class class color color ] } ]* |
router(config-pmap-c)#police cir percent percent [bc conform-burst-in-msec] [pir percent percent][be peak-burst-in-msec] | car cir cir-value [ pir pir-value ] [ cbs cbs-value pbs pbs-value ] [ mode { color-blind | color-aware } ] [ green { discard | pass [ service-class class color color ] } | yellow { discard | pass [ service-class class color color ] } | red { discard | pass [ service-class class color color ] } ]* |
router(config-pmap-c)#set [ip] dscp dscp-value | [router-behavior]remark dscp dscp-value |
router(config-pmap-c)#set cos 8021p-value | [router-behavior]remark 8021p 8021p-value |
router(config-pmap-c)#set mpls experimental {imposition| topmost} exp-value | [router-behavior]remark mpls-exp exp-value |
set cos 8021p-value | remark 8021p 8021p-value |
set dscp {dscp-name | dscp-value } | remark dscp {dscp-name | dscp-value } |
police cir-value | car cir value |
set [ip] precedence ip-precedence-value | remark ip-precedence ip-precedence-value |
bandwidth bandwidth | queue af bandwidth bandwidth |
bandwidth percent percentage | queue af bandwidth pct percentage |
priority bandwidth-kbps | queue ef bandwidth bandwidth-kbps |
shape average cir-value | gts cir cir-value |
shape average percent percentage | gts cir bandwidth*percentage% |
router(config-pmap-c)#police rate {value [units] | percent percentage} [burst burst-size [burst-units]][peak-rate value [units]] [peak-burst peak-burst [burst-units]] | car cir cir-value [ pir pir-value ] [ cbs cbs-value pbs pbs-value ] [ mode { color-blind | color-aware } ] [ green { discard | pass [ service-class class color color ] } | yellow { discard | pass [ service-class class color color ] } | red { discard | pass [ service-class class color color ] } ]* |
class class-name | traffic behavior behavior-name classifier classfier-name behavior behavior-name |
vlan filter access-map-name vlan-list vlan-id | vlan vlan-id traffic-policy policy-name inbound |
router(config-if)#service-policy input policy-name | traffic-policy policy-name inbound |
router(config-if)#service-policy output policy-name | traffic-policy policy-name outbound |
service-policy { inbound | outbound } policy-name | traffic-policy policy-name { inbound | outbound } |
mls qos trust {cos|dscp|ip-precedence} | trust {8021p|dscp|ip-precedence} |
ip access-group acl-name in | traffic-filter inbound acl acl-name |
ip access-group acl-number in | traffic-filter inbound acl acl-number |
router(config-if)#rate-limit {input | output} {bps | access-group acl-index | [rate-limit] rate-limit-acl-index] | dscp dscp-value | qos-group qos-group-number} burst-normal burst-max conform-action onform-action exceed-action exceed-action | qos car { inbound | outbound } cir cir-value [ pir pir-value ] [ cbs cbs-value pbs pbs-value ] [ green { discard | pass [ remark-8021p 8021p-value | remark-dscp dscp-value | remark-mpls-exp exp-value ] } ] [ yellow { discard | pass [ remark-8021p 8021p-value]}] |
bandwidth bandwidth | qos gts cir cir-value |
ip access-group {access-list-number|name} in | traffic-filter inbound acl {access-list-number|name name} |
ip access-group {access-list-number|name} out | traffic-filter outbound acl {access-list-number|name name} |
mac access-group acl-name in | traffic-filter inbound acl name acl-name |
match ip address acl-number * | if-match acl acl-number |