Quality Of Service

5.1 Commands for QoS and IPv4/IPv6 PBR

 

5.1.1 accounting

Command: accounting
no accounting
Function: Set the status for the classified traffic.
Parameters: None.
Command mode: Policy Map Configuration Mode
Default: Do not set the status for classified traffic.
Usage guide: This command adds the status to the policy class map traffic. In single bucket mode, the messages can only be red or green. The display shows in-profile as green and out-profile as red. In dual bucket mode, there are three colors of messages. The display shows in-profile as green and out-profile as red and yellow.
Example: Count the packets which satisfy the c1 rule.

active500EM(config)#policy-map p1
active500EM(config-policymap-p1)#class c1
active500EM(config-policymap-p1-class-c1)#accounting
active500EM(config-policymap-p1-class-c1)#exit
active500EM(config-policymap-p1)#exit

 

5.1.2 class

Command: class <class-map-name> [insert-before <class-map-name>] no class <class-map-name>
Function: Associates a class to a policy map and enters the policy class map mode. The no command deletes the specified class.
Parameters:

  • <class-map-name>: the class map name used by the class.
  • insert-before <class-map-name>: inserts a new configured class to the front of an existing class to improve the priority of the new class.

Command mode: Policy Map Configuration Mode
Default: No policy class is configured.
Usage guide: Before setting up a policy class, a policy map should be created and the user should enter Policy Map Mode. In the Policy Map Mode, classification and next hop configuration can be performed on packet traffic classified by the class map.
Example: After adding a policy class map named c1 to the policy map, add a policy class map named c2 and insert it in front of c1.

active500EM(config)#policy-map p1
active500EM(config-policymap-p1)#class c1
active500EM(config-policymap-p1-class-c1)#exit
active500EM(config-policymap-p1)#class c2 insert-before c1
active500EM(config-policymap-p1-class-c2)#exit

 

5.1.3 class-map

Command: class-map <class-map-name>
no class-map <class-map-name>
Function: Creates a class map and enter Class Map Mode. The no command deletes the specified class map.
Parameters:

  • <class-map-name>: the class map name.

Command mode: Global Mode
Default: No class map is configured.
Usage guide: Create a class map and enter Class Map Mode.
Example: Create and then delete a class map named c1.

active500EM(config)#class-map c1
active500EMconfig-classmap-c1)#exit
active500EM(config)#no class-map c1

 

5.1.4 clear mls qos statistics

Command: clear mls qos statistics [interface <interface-name> | vlan <vlan-id>] Function: Clear accounting data of the specified ports or VLAN Policy Map. If there are no parameters, clear accounting data of all policy maps.
Parameters:

  • <interface-name>: the interface name.
  • <vlan-id>: the VLAN ID.

Command mode: Admin Mode
Default: Data not cleared.
Usage guide: This command will clear the accounting data of the specified ports or VLAN Policy Map. If there are no parameters, it will clear the accounting data of all policy maps.
Example: Clear the Policy Map statistics of VLAN 100.

active500EM#clear mls qos statistics vlan 100

 

5.1.5 drop

Command: drop
no drop
Function: Drop data packets that match the class. The no command cancels the assigned action.
Parameters: None.
Command mode: Policy Class Map Configuration Mode
Default: Do not set the action.
Usage guide: This command will drop the specified packet after configuring this command.
Example: Drop the packets which satisfy the c1 rule.

active500EM(config)#policy-map p1
active500EM(config-policymap-p1)#class c1
active500EM(config-policymap-p1-class-c1)#drop
active500EM(config-policymap-p1-class-c1)#exit
active500EM(config-policymap-p1)#exit

 

5.1.6 match

Command: match {access-group <acl-index-or-name> | ip dscp <dscp-list> | ip precedence <ip-precedence-list> | ipv6 access-group <acl-index-or-name> | ipv6 dscp <dscp-list> | ipv6 flowlabel <flowlabel-list> | vlan <vlan-list> | cos <cos-list>}
no match {access-group | ip dscp | ip precedence| ipv6 access-group| ipv6 dscp | ipv6 flowlabel | vlan | cos}
Function: Configure the match standard of the class map. The no command deletes the specified match standard.
Parameters:

  • access-group <acl-index-or-name>: the match-specified IP ACL, MAC ACL, or IPv6 standard ACL. The parameters are the number or name of the ACL.
  • ip dscp <dscp-list> and ipv6 dscp <dscp-list>: the match-specified DSCP value. The parameter is a list of DSCP consisting of a maximum of 8 DSCP values within the range of 0 of 63.
  • ip precedence <ip-precedence-list>: the match-specified IP precedence. The parameter is an IP precedence list consisting of a maximum of 8 IP precedence values within a valid range of 0 to7.
  • ipv6 access-group <acl-index-or-name>: the match-specified IPv6 ACL. The parameter is the number or name of the IPv6 ACL.
  • ipv6 flowlabel <flowlabel-list>: the match-specified IPv6 flow label. The parameter is the IPv6 flow label value within a valid range of 0 to 1048575.
  • vlan <vlan-list>: the match-specified VLAN ID. The parameter is a VLAN ID list consisting of a maximum of 8 VLAN IDs with a valid range of 1 to 4094.
  • cos <cos-list> is a match-specified CoS value. The parameter is a CoS list consisting of a maximum of 8 CoS values with a valid range of 0 to 7.

Command mode: Class-Map Mode
Default: None.
Usage guide: Only one match standard can be configured in a class map. When configuring the match ACL, permit the rule as the match option and apply the Policy Map action. Deny the rule as the excluding option and do not apply the Policy Map action. When attempting to configure another match rule after one has been configured, the operation will fail. However, configuring the same match rule will overwrite the previous attempt.
Example: Create a class-map named c1 and configure the class rule of this class-map to match packets with an IP Precedence of 0.

active500EM(config)#class-map c1
active500EM(config-classMap-c1)#match ip precedence 0
active500EM(config-classMap-c1)#exit

 

5.1.7 mls qos aggregate-policy

Command: mls qos aggregate-policy <WORD> <CIR-value> <CBS-value>
Function: Create an aggregate policy for MLS QOS.
Parameters:

  • <WORD>: Aggregate policy name <1-64 characters>
  • <CIR-value>: CIR(Committed Information Rate) Kbits per second <1-10000000>
  • <CBS-value>: CBS(Committed Burst Size) Kbytes <1-1000000>

Command mode: Global mode
Default: None.
Usage guide: Configure the aggregate policy with rate limits.
Example: Configuration of the aggregate policy for MLS QoS.

active500EM(config)#mls qos aggregate-policy 123 100000 100000

 

5.1.8 mls qos cos

Command: mls qos cos {<default-cos>}
no mls qos cos
Function: Configures the default CoS value of the port. The no command restores to default.
Parameters:

  • <default-cos>: the default CoS value for the port. The valid range is from 0 to 7.

Command mode: Port Configuration Mode
Default: None.
Usage guide: Configure the default CoS value for the switch port. In the default configuration, the message ingress CoS from this port is the default value if the message has a tag. If the message does not have a tag, the message CoS value for the tag is used.
Example: Set the default CoS value of Ethernet port 1/0/1 to 7; i.e., packets coming in through this port will be assigned a default CoS value of 7 if no CoS value is present.

active500EM(config)#interface ethernet 1/0/1
active500EM(config-if-ethernet1/0/1)#mls qos cos 7

 

5.1.9 mls qos map

Command: mls qos map { cos-dp <dp1?dp8> | cos-intp <intp1?intp8> | dscp-dp <in-dscp list> to <out-dp> | dscp-dscp <in-dscp list> to <out-dscp> | dscp-intp <in-dscp list> to <out-intp> }
no mls qos map {cos-dp | cos-intp | dscp-dp | dscp-dscp | dscp-intp }
Function: Set the priority mapping of QoS. The no command restores the default mapping.
Parameters:

  • cos-dp: Map COS to Drop Precedence
  • cos-intp: Map COS to Internal Priority
  • dscp-dp: Map DSCP to Drop Precedence
  • dscp-dscp: Map ingress DSCP to egress DSCP
  • dscp-intp: Map DSCP to Internal Priority
  • <dp1..dp8>: 8 Drop Precedence values corresponding to the 0 to 7 CoS values. Each DP value is delimited with a space and ranges from 0 to 2.
  • <intp1..intp8>: 8 Internal Priority values corresponding to the 0 to 7 CoS values. Each INTP value is delimited with a space and ranges from 0 to 7.
  • <in-dscp list>: Incoming DSCP values. Up to 8 values are supported. Each DSCP value is delimited with a space and ranges from 0 to 63.
  • <out-dp>: the out Drop Precedence value. The range is from 0 to 2.
  • <out-dscp>: the out DSCP value. The range is from 0 to 63.
  • <out-intp>: the out Internal Priority value. The range is from 0 to 7.

Command mode: Global Mode
Default: Default mapping values are:

Default CoS-TO-DP Map
CoS Value 0 1 2 3 4 5 6 7
DP Value 0 0 0 0 0 0 0 0
Default DSCP-TO-DP Map
In-DSCP Value 0-7 8-15 16-23 24-31 32-39 40-47 48-55 56-63
DP Value 0 0 0 0 0 0 0 0
Default DSCP-TO-DSCP Map
In-DSCP Value 0-7 8-15 16-23 24-31 32-39 40-47 48-55 56-63
Out-DSCP Value 0 8 16 24 32 40 48 56
Default DSCP-TO-INTP Map
In-DSCP Value 0-7 8-15 16-23 24-31 32-39 40-47 48-55 56-63
INTP Value 0 1 2 3 4 5 6 7

Usage guide: INTP refers to the chip?s internal priority setting. dp refers to the drop precedence. The internal DSCP values have a range of 64 and the chip internal priority has a range of 8. Therefore, the dscp-cos mapping needs 8 continuous dscp-inside values when mapping to the same INTP or DP.
Examples:
Set the DSCP-to-DSCP mapping value of 0 1 2 3 and 4 to 2 and value of 4 5 6 and 7 to 4.

active500EM(config)#mls qos map dscp-dscp 0 1 2 3 to 2
active500EM(config)#mls qos map dscp-dscp 4 5 6 7 to 4

Set the Map DSCP 1, 2 to Internal Priority 7.

active500EM(config)#mls qos map dscp-intp 1 2 to 7

 

5.1.10 mls qos queue algorithm

Command: mls qos queue algorithm {sp | wrr | wdrr}
no mls qos queue algorithm
Function: After configuring this command, the queue management algorithm is set.
Parameters:

  • sp: strict priority; the higher the queue number, the higher the priority.
  • wrr: selects a wrr algorithm.
  • wdrr: selects a wdrr algorithm.

Command mode: Port Mode
Default: The default queue algorithm is WRR.
Usage guide: After configuring this command, the queue management algorithm is set.
Example: Set the queue management algorithm to sp.

active500EM(interface-ethernet1/0/1)#mls qos queue algorithm sp

 

5.1.11 mls qos queue wrr weight

Command: mls qos queue wrr weight <weight0..weight7>
no mls qos queue wrr weight
Function: After configuring this command, the queue weight is set.
Parameters:

  • <weight0..weight7>: defines the queue weight. For the WRR algorithm, this configuration is valid, but this configuration is invalid for the SP algorithm. When the weight is 0, this queue adopts the SP algorithm and the WRR algorithm turns into an SP+WRR algorithm. The absolute value of WRR is meaningless. WRR allocates bandwidth by using 8 weight values. The different chips support the different weight ranges. If the setting exceeds the chip range, a prompt will appear. When the chip supports 4 queues, its parameter adjusts to <weight1..weight4>.

Command mode: Port Mode
Default: The queue weight is 1 2 3 4 5 6 7 8.
Usage guide: If the queue weight is configured as 0, it uses an SP algorithm to manage while WRR turns into SWRR. When removing the queue, the system will manage the SP queue first and then manage the WRR queue. The SP queue executes the strict priority management mode; the WRR queue executes the weight rotation management mode.
Example: Configure the queue weight as 1 2 3 4 5 6 7 8.

active500EM(interface-ethernet1/0/1)#mls qos queue wrr weight 1 2 3 4 5 6 7 8

 

5.1.12 mls qos queue wdrr weight

Command: mls qos queue wdrr weight <weight0..weight7>
no mls qos queue wdrr weight
Function: After configuring this command, the queue weight is set.
Parameters:

  • <weight0..weight7>: defines the queue weight, in kilobytes. For a WDRR algorithm, this configuration is valid, but for an SP algorithm, it is invalid. When the weight is 0, this queue adopts an SP algorithm for management and the WDRR algorithm turns into an SP+WDRR algorithm. WRR, in bytes, allocates bandwidth by using 8 weight values. The different chips support the different weight ranges. If the setting exceeds the chip range it will prompt the right range. When the chip supports 4 queues, its parameter turns into <weight1..weight4>.

Command mode: Port Mode
Default: The queue weight is 10 20 40 80 160 320 640 1280.
Usage guide: If the queue weight is configured as 0, it uses the SP algorithm for management while WRR turns into SWDRR. When removing the queue, the system will manage the SP queue first, then manage the WDRR queue. The SP queue executes the strict priority management mode. The WDRR queue executes the weight rotation management mode.
Example: Configure the queue bandwidth as 10kbytes, 10kbytes, 20kbytes, 20kbytes, 30kbytes, 30kbytes, 40kbytes, 40kbytes.

active500EM(interface-ethernet1/0/1)#mls qos queue wdrr weight 10 10 20 20 40 40 80 80

 

5.1.13 mls qos queue bandwidth

Command: mls qos queue <queue-id> bandwidth <minimum-bandwidth> <maximum-bandwidth>
no mls qos queue <queue-id> bandwidth
Function: After configuring this command, the queue bandwidth guarantee is set.
Parameters:

  • <queue-id>: the specific queue ID to be configured with a bandwidth guarantee. Different chips support different queue counts within the valid range of 1 to 8.
  • <minimum-bandwidth>: the minimum bandwidth. The valid range is from 0 to 128000. When the input is 0, the minimum-bandwidth function will not take effect.
  • <maximum-bandwidth>: the maximum-bandwidth. The valid range is from 0 to 128000. When the input is 0, the max-bandwidth function will not take effect. The minimum-bandwidth must not be larger than the maximum-bandwidth.

Command mode: Port Mode
Default: The queue bandwidths have no guarantees.
Usage guide: The minimum-bandwidth guarantee and maximum-bandwidth limit can be configured at the same queue or on different queues. The queue bandwidth pledge for egress is relative to the management mode. For example: one port is the strict priority-queue. If the highest priority is queue 1 now, it will satisfy this queue traffic when a block occurs. However, if the user wants a queue with lower priority to have bandwidth, it can retain bandwidth via this command. The lower priority queue?s minimum-bandwidth will be satisfied first. Then, the excess bandwidth is managed according to the SP.
Example: Configure the minimum-bandwidth to 64kbps and the maximum-bandwidth to 128kbps for ethernet1/0/2queue1.

active500EM(config)#interface ethernet1/0/2
active500EM(config-if-ethernet1/0/2)#mls qos queue 1 bandwidth 64 128

 

5.1.14 mls qos trust

Command: mls qos trust dscp
no mls qos trust dscp
Function: Configures port trust. The no command disables the current trust status of the port.
Parameters:

  • dscp: configures the port to trust DSCP value.

Command mode: Port Configuration Mode
Default: Trust CoS value.
Usage guide: The trust DSCP mode allows a user to set the INTP field based on DSCP-to-INTP mapping, set the dp value based on the DSCP-to-dp mapping, and set the DSCP value based on the DSCP-to-DSCP mapping.
Example: Configure the port trust.

active500EM(config)#interface ethernet 1/0/1
active500EM(config-if-ethernet1/0/1)#mls qos trust dscp

 

5.1.15 policy

Command:
Single Bucket Mode:
policy <bits-per-second> <normal-burst-bytes> ({conform-action ACTION | exceed-action ACTION} )
 
Dual Bucket Mode:
policy <bits-per-second> <normal-burst-bytes> [pir <peak-rate-bps>] | <maximum-burst-bytes> [{conform-action ACTION | exceed-action ACTION | violate-action ACTION }]  
ACTION definition:
drop | transmit | set-dscp-transmit <dscp-value> | set-prec-transmit <ip-precedence-value> | set-cos-transmit <cos-value> | set-internal-priority <inp-value> | set-Drop-Precedence <dp-value>
no policy
Function: The non-aggregation policy command supports three colors. Determine whether the working mode of the token bucket is single rate single bucket, single rate dual bucket, or dual rate dual bucket. Then, set the corresponding action to the different color packets. The no command deletes the mode configuration.
Parameters:

  • <bits-per-second>: CIR (Committed Information Rate) in kbps. The valid range is from 1 to 10000000.
  • <normal-burst-bytes>: CBS (Committed Burst Size) in bytes. The valid range is from 1 to 1000000. When the configured CBS value exceeds the maximum limit of the chip, configure the hardware with the maximum number supported by the chip without a CLI prompt.
  • <peak-rate-bps>: PIR (Peak Information Rate) in kbps. The valid range is from 1 to 10000000. Without configuring the PIR, the security works in the single rate dual bucket mode; otherwise it works in the dual rate dual bucket mode. Note: the pir-peak-rate-bps configuration only exists in dual bucket mode.
  • <maximum-burst-bytes>: PBS (Peak Burst Size) in bytes. The valid range is from 1 to 10000000. When the configured PBS value exceeds the maximum limit of the chip, configure the hardware with the maximum number supported by the chip without a CLI prompt. Note: the maximum-burst-bytes configuration only exists in dual bucket mode.
  • conform-action: specifies the action to be taken when the CIR is not exceeded, which is indicated when the messages are green. The default action is transmit.
  • exceed-action: specifies the action to be taken when the CIR is exceeded but PIR is not exceeded, which is indicated when the messages are yellow. The default action is drop.
  • violate-action: specifies the action to be taken when the PIR is exceeded, which is indicated when the messages are red. The default action is drop.
  • ACTIONS include:
    • drop: drop the packets
    • transmit: transmit the packets
    • set-dscp-transmit: sets DSCP, which is valid for IPv4 and IPv6 packets. The set-dscp-transmit designation and set-prec-transmit are mutually exclusive.
    • set-prec-transmit: sets TOS, but only set-prec-transmit or set-dscp-transmit can be selected at one time.
    • set-cos-transmit: sets the CoS value of the L2 packets.
    • set-internal-priority: sets the internal priority of the packets.
    • set-Drop-Precedence: sets the drop precedence of the packets.

Command mode: Policy Class Map Configuration Mode
Default: No policy action. The default action of conform-action is transmit and the default action of exceed-action and violate-action are drop.
Usage guide: The CLI can support both single and dual bucket configurations and determine which one to select by checking whether PIR or PBS is configured. When configuring via the CLI, after configuring CBS, if the action is directly configured, the mode is single bucket dual color. If only PBS is configured, the mode is single rate dual bucket three color. If PIR and PBS are configured, the mode is dual rate dual bucket three color. If ?set? and ?policy??policy aggregate?are selected and have the same action in Policy Map, then the action selected by ?policy? will supercede the action of ?set?.
Example: In the policy class table configuration mode, set the CIR as 1000, CBS as 2000 and the action when CIR is not exceeded as transmitting the messages after changing DSCP to 23. Set the action triggered by exceeding CIR to transmit without changing the messages.

active500EM(config)#class-map cm
active500EM(config-classmap-cm)#match cos 0
active500EM(config-classmap-cm)#exit
active500EM(config)#policy-map 1
active500EM(config-policymap-1)#class cm
active500EM(config-policymap-1-class-cm)#policy 1000 2000 conform-action set-dscp-transmit 23

 

5.1.16 policy aggregate

Command: policy aggregate <aggregate-policy-name>
no policy aggregate <aggregate-policy-name>
Function: Policy Map refers to the aggregate policy and applies an aggregate policy to classified traffic. The no command deletes the specified aggregate policy.
Parameters:

  • <aggregate-policy-name>: the policy set name.

Command mode: Policy Class Map Configuration Mode
Default: None.
Usage guide: The same policy set can be referred to by different policy class maps.
Example: Create a class-map. The match rule of the CoS value is 0; policy-map is 1. Enter the Policy Map Mode, set the policy, and choose the color of the policy for the current list.

active500EM(config)#class-map cm
active500EM(config-classmap-cm)#match cos 0
active500EM(config-classmap-cm)#exit
active500EM(config)#policy-map 1
active500EM(config-policymap-1)#class cm
active500EM(config-policymap-1-class-cm)#policy aggregate color

 

5.1.17 policy-map

Command: policy-map <policy-map-name>
no policy-map <policy-map-name>
Function: Creates a policy map and enters the Policy Map Mode. The no command deletes the specified policy map.
Parameters:

  • <policy-map-name>: the policy map name.

Command mode: Global Mode
Default: None.
Usage guide: PBR classification matching and marking the next hop operation can be set in Policy Map Configuration Mode.
Example: Create and delete a policy map named p1.

active500EM(config)#policy-map p1
active500EM (config-policymap-p1)#exit
active500EM(config)#no policy-map p1

 

5.1.18 service-policy input

Command: service-policy input <policy-map-name>
no service-policy input {<policy-map-name>}
Function: Applies a policy map to the specified port. The no command deletes the specified policy map applied to the port or all of the policy maps applied on the ingress direction of the port if there is no specified policy map name.
Parameters:

  • input <policy-map-name>: the specified policy map to the ingress direction of the switch port.

Command mode: Port Configuration Mode
Default: None.
Usage guide: Only one policy map can be applied to each direction of each port or VLAN interface. It is not recommended to use the policy map command on a VLAN and that VLAN?s port at the same time. Egress policy map is not yet supported.
Example: Bind policy p1 to ingress Ethernet port1/0/1.

active500EM(config)#interface ethernet 1/0/1
active500EM(config-if-ethernet1/0/1)#service-policy input p1

Bind policy p1 to ingress redirection of v1 interface.

active500EM(config)#interface vlan 1
active500EM(config-if-vlan1)#service-policy input p1

 

5.1.19 service-policy input vlan

Command: service-policy input <policy-map-name> vlan <vlan-list>
no service-policy input {<policy-map-name>} vlan < vlan-list>
Function: Applies a policy map to the specified VLAN interface. The no command deletes the specified policy map applied to the VLAN interface or deletes all of the policy maps applied in the ingress direction of the VLAN interface if there is no specified policy map name.
Parameters:

  • input <policy-map-name>: the specified policy map to the ingress direction of the switch VLAN interface.
  • vlan <vlan-list>: identifies the VLAN list of binding policy maps.

Command mode: Global Configuration Mode
Default: No policy map is bound to the VLAN interface..
Usage guide: Only one policy map can be applied to each direction of each port or VLAN interface. It is not recommended to use the policy map command on the VLAN and that VLAN?s port at the same time. Egress policy map is not yet supported.
Example: Bind policy p1 to the ingress of VLAN interface v2, v3, v4, v6.

active500EM(config)#service-policy input p1 vlan 2-4;6

 

5.1.20 set

Command: set {ip dscp <new-dscp> | ip precedence <new-precedence> | internal priority <new-inp> | drop precedence <new-dp> | ip [default] nexthop [vrf <vrf>] <ip-address> | ipv6 [default] nexthop [vrf <vrf>] <nexthop-ip> | cos <new-cos>}
no set {ip dscp | ip precedence | internal priority | drop precedence | ip nexthop | ipv6 nexthop | cos}
Function: Assign a new DSCP or IP Precedence for the classified traffic. The no command deletes the assigned values.
Parameters:

  • ip dscp <new-dscp>: identifies a new DSCP value. It does not distinguish v4 and v6.
  • ip precedence <new-precedence>: identifies a new IP Precedence.
  • ipv6 flowlabel <new-flowlabel>: identifies a new IPv6 FL value.
  • ip default nexthop [vrf <vrf>] <ip-address>: identifies the next hop IP address and sets the route of the next hop for PBR. Default establishes a route of the lowest priority, placing the priority below the route map and neighbor map.
  • <vrf>: virtual route forwarding. The valid range is from 0 to 252.
  • ipv6 default nexthop [vrf <vrf>] <ip-address> next hop IPv6 address: sets the route of nexthop for IPv6 PBR. Default establishes a route of the lowest priority, placing the priority below the route map and neighbor map.
  • cos <new cos>: new CoS value.

Command mode: Policy Class Map Mode
Default: Not assigned.
Usage guide: Only the classified traffic which matches the set standard will be assigned with the new values.
Example: Set the IP Precedence of the packets matching the c1 class rule to 3.

active500EM(config)#policy-map p1
active500EM(config-policymap-p1)#class c1
active500EM(config-policymap-p1-class-c1)#set ip precedence 3
active500EM(config-policymap-p1-class-c1)#exit
active500EM(config-policymap-p1)#exit

 

5.1.21 show class-map

Command: show class-map [<class-map-name>] Function: Displays a class map of QoS.
Parameters:

  • <class-map-name>: the class map name.

Command mode: Admin Mode
Default: None.
Usage guide: Displays all configured class maps or specified class map information.
Example: Display a class map of QoS.

active500EM#show class-map
Class map name:c1, used by 1 times
 match acl name:1
Displayed information Explanation
Class map name:c1 Name of the class map
used by 1 times Used times
match acl name:1 Classifying rule for the class map.

 

5.1.22 show policy-map

Command: show policy-map [<policy-map-name>] Function: Displays the QoS policy map.
Parameters:

  • <policy-map-name>: policy map name.

Command mode: Admin Mode
Default: None.
Usage guide: Displays all configured policy-maps or specified policy-map information.
Example: Display the QoS policy map.

active500EM#show policy-map
Policy Map p1, used by 0 port
 Class Map name: c1
  policy CIR: 1000 CBS: 1000 PIR: 200 PBS: 3000
  conform-action:
   transmit
  exceed-action:
   drop
  violate-action:
   drop
Displayed information Explanation
Policy Map p1 Name of the policy map.
Class map name:c1 Name of the class map.
policy CIR: 1000 CBS: 1000 PIR: 200 PBS: 3000 Policies implemented.
conform-action: transmit
exceed-action: drop
violate-action: drop

 

5.1.23 show mls qos interface

Command: show mls qos interface [ [ethernet] <IFNAME> [policy|queuing] [?|? {begin|include|exclude} <regular-expression>] ] Function: Displays the QoS configuration information on a port.
Parameters:

  • <IFNAME>: Interface name or number.
  • policy: policy setting on the port.
  • queuing: queue setting for the port.
  • begin: Begin with the line that matches <regular expression>
  • exclude: Exclude lines that match <regular expression>
  • include: Include lines that match <regular expression>

Command mode: Admin Mode
Default: None.
Usage guide: In single rate single bucket mode, the messages can only be red or green when passing a policy. In the displayed information, in-profile means green and out-profile means red. In dual bucket mode, there are three colors of messages, but because the counter can only count two kinds of messages, the red and yellow ones will both be treated as out-profile. Statistic information is only provided when configuring ingress policies.
Example: Display QoS configuration information on a port.

active500EM#show mls qos interface ethernet 1/0/2
Ethernet 1/0/2
Default COS: 0
Trust: COS DSCP EXP
Attached Policy Map for Ingress: p1
Classmap    classified    in-profile    out-profile (in packets)
 c1         20            10            10
 c2         NA            NA            NA
Internal-Priority-TO-Queue map:
INTP	  0     1     2     3     4     5     6     7
-----------------------------------------------------------
Queue     0     1     2     3     4     5     6     7
Queue Algorithm: WRR
Queue weights:
Queue     0     1     2     3     4     5     6     7
-----------------------------------------------------------
weight    1     2     3     4     5     6     7     8
Bandwidth Guarantee Configuration:
Queue      0     1     2     3     4     5     6     7
-----------------------------------------------------------
MinBW(K)  128	 0     0     0     0	 0     0     0
MaxBW(K)  256    0     0     0     0	 0     0     0
Displayed Information Explanation
Ethernet1/0/2 Port name.
default cos:0 Default CoS value of the port.
Trust: COS DSCP EXP The trust state of the port.
Attached Policy Map for Ingress: p1 Policy name bound to the port.
ClassMap ClassMap name.
classified Total data packets. If there is no Accounting for the class map, NA is displayed.
in-profile Total in-profile data packets. If there is no Accounting for class map, NA is displayed.
out-profile Total out-profile data packets. If there is no Accounting for Class Map, NA is displayed.
Internal-Priority-TO-Queue map:: Internal-Priority to queue mapping.
Queue Algorithm: WRR or PQ queue out method.
Queue weights Queue weights configuration.
Bandwidth Guarantee Configuration Bandwidth guarantee configuration.
active500EM(config)#show mls qos interface Ethernet 1/0/2 queuing
Ethernet1/0/2:
 Internal-Priority-TO-Queue map:
 INTP	0     1     2     3     4     5     6     7
 --------------------------------------------------------
 Queue  0     1     2     3     4     5     6     7
 Queue Algorithm: WRR
 Queue weights:
 Queue    0     1     2     3     4     5     6     7
 --------------------------------------------------------
 weight   1     2     3     4     5     6     7     8
 Bandwidth Guarantee Configuration:
 Queue      0     1     2     3     4     5     6     7
 ----------------------------------------------------------
 MinBW(K)  128	  0     0     0     0	  0     0     0
 MaxBW(K)  256    0     0     0     0     0     0     0
Displayed Information Explanation
Internal-Priority-TO-Queue map:: Internal-Priority to queue mapping.
Queue Algorithm: WRR or PQ queue out method.
Queue weights Queue weights configuration.
Bandwidth Guarantee Configuration Bandwidth guarantee configuration.
active500EM#show mls qos interface ethernet 1/0/2 policy
Ethernet1/0/2:
 Attached Policy Map for Ingress: p1
 Accounting: ON
 Classmap    classified    in-profile    out-profile (in packets)
 c1          0             0             0
Displayed Information Explanation
Ethernet1/0/2 Port name.
Attached Policy Map for Ingress: p1 Policy name bound to the port.
ClassMap Class map name.
classified Total data packets.
in-profile Total in-profile data packets.
out-profile Total out-profile data packets.
active500EM#show mls qos vlan 100
Vlan 100:
Attached Policy Map for Ingress: p1
Classmap    classified    in-profile    out-profile (in packets)
 c1         20            10            10
 c2         NA            NA            NA

 

5.1.24 show mls qos in (interface policy | vlan )

Command: show mls qos in {interface [ethernet] <IFNAME> policy | vlan <vlan-id>}
Function: Show the policy configuration information of the ingress direction of the port or VLAN.
Parameters:

  • <IFNAME>: Interface name or number.
  • <vlan-id>: Vlan ID, range is 1- 4094

Command mode: Admin and Configuration Mode
Default: None.
Usage guide: Show the policy configuration information of the ingress direction.
Example: Show the policy configuration information of the ingress direction.

active500EM#show mls qos in interface ethernet 1/0/1 policy
Ethernet1/0/1:
Attached Policy Map for Ingress: p

 

5.1.25 show mls qos maps

Command: show mls qos maps [ {cos-dp | cos-intp | dscp-dp | dscp-dscp | dscp-intp} [?|? {begin|include|exclude} <regular-expression>] ] Function: Display the QoS mapping configuration.
Parameters:

  • cos-dp: Map COS to Drop Precedence
  • cos-intp: Map COS to Internal Priority
  • dscp-dp: Map DSCP to Drop Precedence
  • dscp-dscp: Map DSCP to DSCP
  • dscp-intp: Map DSCP to Internal Priority
  • begin: Begin with the line that matches <regular-expression>
  • exclude: Exclude lines that match <regular-expression>
  • include: Include lines that match <regular-expression>

Command mode: Admin and Configuration Mode
Default: None.
Usage guide: Displays the map configuration information of QoS.
Example: Display configuration information of the mapping table.

active500EM#show mls qos maps
Ingress COS-TO-Internal-Priority map:
COS:  0   1   2   3   4   5   6   7
 -----------------------------------------
INTP: 0   1   2   3   4   5   6   7
Ingress DSCP-TO-Internal-Priority map:
d1 : d2  0   1   2   3   4   5   6   7   8   9
0:       0   7   7   0   0   0   0   0   1   1
1:       1   1   1   1   1   1   2   2   2   2
2:       2   2   2   2   3   3   3   3   3   3
3:       3   3   4   4   4   4   4   4   4   4
4:       5   5   5   5   5   5   5   5   6   6
5:       6   6   6   6   6   6   7   7   7   7
6:       7   7   7   7
Ingress COS-TO-Drop-Precedence map:
COS:  0   1   2   3   4   5   6   7
 -----------------------------------------
DP:   0   0   0   0   0   0   0   0
Ingress DSCP-TO-DSCP map:
d1 : d2  0   1   2   3   4   5   6   7   8   9
0:       2   2   2   2   4   4   4   4   8   8
1:       8   8   8   8   8   8  16  16  16  16
2:      16  16  16  16  24  24  24  24  24  24
3:      24  24  32  32  32  32  32  32  32  32
4:      40  40  40  40  40  40  40  40  48  48
5:      48  48  48  48  48  48  56  56  56  56
6:      56  56  56  56
Ingress DSCP-TO-Drop-Precedence map:
d1 : d2  0   1   2   3   4   5   6   7   8   9
0:       0   0   0   0   0   0   0   0   0   0
1:       0   0   0   0   0   0   0   0   0   0
2:       0   0   0   0   0   0   0   0   0   0
3:       0   0   0   0   0   0   0   0   0   0
4:       0   0   0   0   0   0   0   0   0   0
5:       0   0   0   0   0   0   0   0   0   0
6:       0   0   0   0

 

5.1.26 show mls qos vlan

Command: show mls qos vlan <vlan-id>
Function: Show MLS QoS for the VLAN.
Parameters:

  • <vlan-id>: ranges from 1 to 4094.

Command mode: Admin Mode
Default: None.
Usage guide: Shows MLS QoS for the VLAN.
Example: Show MLS QoS for the VLAN.

active500EM#show mls qos vlan 1

 

5.1.27 show mls qos aggregate-policy

Command: show mls qos aggregate-policy [<WORD>] Function: Shows information about aggregate policy.
Parameters:

  • <WORD>: Aggregate policy name

Command mode: Admin Mode
Default: None.
Usage guide: This command is used to show the implemented aggregate policy.
Example: Show the information of the previously implemented aggregate policy.

active500EM#show mls qos aggregate-policy 123

 

5.1.28 transmit

Command: transmit
no transmit
Function: Transmit data packages that match the class. The no command cancels the assigned action.
Parameters: None.
Command mode: Policy Class Map Configuration Mode
Default: Do not set the action.
Usage guide: Sends the packets directly after configuring this command.
Example: Send the packets which satisfy c1.

active500EM(config)#policy-map p1
active500EM(config-policymap-p1)#class c1
active500EM(config-policymap-p1-Class-c1)#transmit
active500EM(config-policymap-p1-Class-c1)#exit
active500EM(config-policymap-p1)#exit

 


Return to Controller Wired CLI Table of Contents