10.1. QOS Commands

10.1.1. table-map

Command Purpose

To create or modify a mutation map and enter the mutation configuration mode, use the mutation command. To remove a mutaiton map, use the no form of this command.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

table-map NAME

no table-map NAME

Parameter

Parameter Description

Parameter Value

NAME

Name assigned to the mutation map.

The name can be a maximum of 40 characters. The name is case sensitive and can only contain alphanumeric characters, hyphens, and underscores.

Command Mode

Global Config

Default

None

Usage

You can define a mutation map for each class of qos to be used to set cos or set dscp.

Examples

Switch# configure terminal
Switch(config)# table-map dscp-table

10.1.2. map

Command Purpose

To map from one vlaue to another one in a muation map.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

map from FROM_VALUE [ FROM_VALUE ] [ FROM_VALUE ] [ FROM_VALUE ] [ FROM_VALUE ] [ FROM_VALUE ] [ FROM_VALUE ] [ FROM_VALUE ] to TO_VALUE

no map from FROM_VALUE [ FROM_VALUE ] [ FROM_VALUE ] [ FROM_VALUE ] [ FROM_VALUE ] [ FROM_VALUE ] [ FROM_VALUE ] [ FROM_VALUE ] to TO_VALUE

Parameter

Parameter Description

Parameter Value

FROM_VALUE

Source value

range 0-63

TO_VALUE

Destination value

range 0-63

Command Mode

Default

None

Usage

You can set the mapping value in a muation table. Set 8 vaules at most by one command and can be set repeatly.

Examples

Switch# configure terminal
Switch(config)# table-map dscp-table
Switch(config-tmap)# map from 0 1 2 3 4 5 6 7 to 1

Related Commands

None

10.1.3. default

Command Purpose

To set the default action for unmapping value in a mutaion map.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

default { VALUE | copy | ignore }

no default { VALUE | copy | ignore }

Parameter

Parameter Description

Parameter Value

VALUE

Set tablemap default value

range 0-63

copy

Set the default behavior for value not found in the table map to copy

-

ignore

Set the default behavior for value not found in the table map to ignore

-

Command Mode

Default

copy

Usage

Each mutation table has only one default action.

When the default action is not copy,it will become copy when you set no command.

When the default action is copy,it will become ignore when you set no command.

Examples

Switch# configure terminal
Switch(config)# table-map dscp-table
Switch(config-tmap)# default 1
Switch(config-tmap)# default copy
Switch(config-tmap)# default ignore

Related Commands

None

10.1.4. class-map type qos

Command Purpose

To create or modify a class map and enter the class-map configuration mode, use the class-map command. To remove a class map, use the no form of this command.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

class-map type qos NAME

no class-map NAME

Parameter

Parameter Description

Parameter Value

NAME

Name assigned to the class map.

The name can be a maximum of 40 characters. The name is case sensitive and can only contain alphanumeric characters, hyphens, and underscores. The name class-default is reserved.

Command Mode

Global Config

Default

None

Usage

You can define a class map for each class of traffic to be used in QoS policies. If the packet matches any of the criteria configured for this class map with the match command, then this class map is applied to the packet. If no execution strategy is specified (match-any or match-all), then the default value of match-any is applied to the traffic class.

Examples

Switch# configure terminal
Switch(config)# policy-map type qos pmap_qos
Switch(config-pmap-qos)# class type qos cmap_qos

Related Commands

class type qos

show class-map

10.1.5. match access-group

Command Purpose

Use this command to configure a match criterion by referencing an access list in a class-map. To remove the access-list from a class-map, use the no form of this command.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

match access-group NAME

no match access-group NAME

Parameter

Parameter Description

Parameter Value

NAME

access-list name

The name can be a maximum of 40 characters. The name is case sensitive and can only contain alphanumeric characters, hyphens, and underscores.

Command Mode

Class-map Configuration

Default

None

Usage

None

Examples

Switch# configure terminal
Switch(config)# class-map type qos cmap_qos
Switch(config-cmap-qos)# match access-group example

Related Commands

None

10.1.6. match cos

Command Purpose

To define the class of traffic using the class of service (CoS) value in class map, use the match cos command. To remove the match on the CoS value, use the no form of this command.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

match cos [ inner ] COS

no match cos [ inner ] COS

Parameter

Parameter Description

Parameter Value

COS

Specified CoS value

0-7

Command Mode

Class-map Configuration

Default

None

Usage

None

Examples

Switch# configure terminal
Switch(config)# class-map type qos cmap_qos
Switch(config-cmap-qos)# match cos 5

Related Commands

None

10.1.7. match dscp

Command Purpose

To identify specific differentiated services code point (DSCP) values as a match criterion, use the match dscp command. To remove specified DSCP values as a match criterion, use the no form of this command.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

match dscp DSCP_STR

no match dscp DSCP_STR

Parameter

Parameter Description

Parameter Value

DSCP_STR

Specified DSCP value

0-63

Command Mode

Class-map Configuration

Default

None

Usage

Match criteria can be PHB string

Examples

Switch# configure terminal
Switch(config)# class-map type qos cmap_qos
Switch(config-cmap-qos)# match dscp af11

Related Commands

None

10.1.8. class-map type traffic-class

Command Purpose

To create or modify a class map and enter the class-map configuration mode, use the class-map command. To remove a class map, use the no form of this command.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

class-map type traffic-class NAME

no class-map NAME

Parameter

Parameter Description

Parameter Value

NAME

Name assigned to the class map.

The name can be a maximum of 40 characters. The name is case sensitive and can only contain alphanumeric characters, hyphens, and underscores. The name class-default is reserved.

Command Mode

Global Config

Default

None

Usage

This type class-map is used to identify traffic flows with different traffic class.

Examples

Switch# configure terminal
Switch(config)# class-map type traffic-class cmap_tc

Related Commands

class type traffic-class

show class-map

10.1.9. match traffic-class

Command Purpose

To configure a class map to use a specific QoS traffic-class value as a match criterion, use the match traffic-class command. To remove the specified protocol as match criteria, use the no form of this command.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

match traffic-class CLASS-ID

no match traffic-class CLASS-ID

Parameter

Parameter Description

Parameter Value

CLASS-ID

Specified traffic class value .

The valid values are from 1 to 7.

Command Mode

Class-map Configuration

Default

None

Usage

None

Examples

Switch# configure terminal
Switch(config)# class-map type traffic-class cmap_tc
Switch(config-cmap-tc)# match traffic-class 6

Related Commands

class-map

10.1.10. policy-map type qos

Command Purpose

Use this command to create a policy map. To remove the policy-map, use the no form of this command.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

policy-map type qos NAME

no policy-map NAME

Parameter

Parameter Description

Parameter Value

NAME

Name assigned to the policy map.

The name can be a maximum of 40 characters. The name is case sensitive and can only contain alphanumeric characters, hyphens, and underscores.

Command Mode

Global Config

Default

None

Usage

The policy-map can be attached to multiple physical ports at ingress directions.

Examples

Switch# configure terminal
Switch(config)# policy-map type qos pmap_qos

Related Commands

service-policy type qos

show policy-map

10.1.11. class type qos

Command Purpose

To add a reference to an existing class map in a policy map and enter the class mode, use the class command. To remove a class from the policy map, use the no form of this command

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

class type qos NAME

no class type qos NAME

Parameter

Parameter Description

Parameter Value

NAME

Reference to a class map.

The name can be a maximum of 40 characters. The name is case sensitive and can only contain alphanumeric characters, hyphens, and underscores.

Command Mode

Policy-map Configuration

Default

None

Usage

Policy actions in the first class that matches the traffic type are performed.

By default, the class-default class is created under every policy map in the system. You cannot change this mapping.

You cannot remove the class-default. If you attempt to delete the class-default class, the switch returns an error message.

Examples

Switch# configure terminal
Switch(config)# policy-map type qos pmap_qos
Switch(config-cmap-tc)# class type qos cmap1

Related Commands

policy-map type qos

class-map type qos

10.1.12. class type qos class-default

Command Purpose

To add a reference to the system default class that does not match any traffic class, use the class class-default command. To remove the system default class from the policy map, use the no form of this command.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

class type qos class-default

no class type qos class-default

Command Mode

Policy-map Configuration

Default

None

Usage

Traffic that fails to match any class is assigned to a default class of traffic called class-default. You cannot delete this class

Examples

Switch# configure terminal
Switch(config)# policy-map type qos pmap_qos
Switch(config-pmap-qos)# class type qos class-default

Related Commands

policy-map type qos

10.1.13. set cos

Command Purpose

Use this command to remark packet CoS value.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

set cos { [ inner ] COS | cos table NAME | dscp table NAME }

no set cos [ [ inner ] COS | cos table NAME | dscp table NAME ]

Parameter

Parameter Description

Parameter Value

COS

CoS value

range 0-7

NAME

Reference to a mutation map

-

Command Mode

Config-pmap-c Configuration

Default

Disabled

Usage

There are four ways to set cos.Each way can only be reset by its no command while “no set cos” command can reset all ways.

“no set cos COS” command do not care COS value.

Examples

Switch# configure terminal
Switch(config)# policy-map type qos pmap_qos
Switch(config-pmap-qos)# class type qos cmap_qos
Switch(config-pmap-qos-c)# set cos 3

Related Commands

None

10.1.14. set dscp

Command Purpose

Use this command to mark DSCP value.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

set dscp { DSCP | PHB_STR | default | dscp table NAME | cos table NAME }

no set dscp [ DSCP | PHB_STR | default | dscp table NAME | cos table NAME ]

Parameter

Parameter Description

Parameter Value

DSCP

DSCP value

range 0-63

PHB_STR

PHB name

af11|af12|af13|af21|af22|af23|af31|af32|af33|af41|af42|af43|ef|df|cs1|cs2|cs3|cs4|cs5|cs6|cs7

default

default value(000000)

-

NAME

Reference to a mutation map

The name can be a maximum of 40 characters. The name is case sensitive and can only contain alphanumeric characters, hyphens, and underscores.

Command Mode

Config-pmap-c Configuration

Default

Disabled

Usage

There are three ways to set dscp.Each way can only be reset by its no command while “no set dscp” command can reset all ways.

“no set dscp DSCP” command do not care DSCP value.

Examples

Switch# configure terminal
Switch(config)# policy-map type qos pmap_qos
Switch(config-pmap-qos)# class type qos cmap_qos
Switch(config-pmap-qos-c)# set dscp cs3

Related Commands

None

10.1.15. set traffic-class

Command Purpose

Use this command to set traffic flow’s class ID.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

set traffic-class CLASS-ID

no set traffic-class

Parameter

Parameter Description

Parameter Value

CLASS-ID

traffic class ID

range is 0-7

Command Mode

Config-pmap-c Configuration

Default

None

Usage

Traffic flow with different traffic class ID would be given varieties of treatments in ingress and egress.This command has higher priority with policer set traffic-class command.

Examples

Switch# configure terminal
Switch(config)# policy-map type qos pmap_qos
Switch(config-pmap-qos)# class type qos cmap_qos
Switch(config-pmap-qos-c)# set traffic-class 3

Related Commands

None

10.1.16. set color

Command Purpose

Use this command to set traffic flow’s color.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

set color { red | yellow }

no set color

Parameter

Parameter Description

Parameter Value

red

red color

-

yellow

yellow color

-

Command Mode

Config-pmap-c Configuration

Default

None

Usage

None

Examples

Switch# configure terminal
Switch(config)# policy-map type qos pmap_qos
Switch(config-pmap-qos)# class type qos cmap_qos
Switch(config-pmap-qos-c)# set color red

Related Commands

None

10.1.17. policer

Command Purpose

Use this command to rate-limit traffic matching this traffic class for a specified interface. To cancel rate limit, use the no form of this command.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

policer { color-blind | color-aware } cir CIR [ cbs CBS ] [ eir EBS ] [ ebs EBS ] [ conform { transmit [ set-traffic-class CLASS-ID ] | drop } | exceed { transmit [ set-traffic-class CLASS-ID ] | drop } | violate { transmit [ set-traffic-class CLASS-ID ] | drop } ] [ statistics ]

policer pps { color-blind | color-aware } cir CIR [ cbs CBS ] [ eir EBS ] [ ebs EBS ] [ conform { transmit [ set-traffic-class CLASS-ID ] | drop } | exceed { transmit [ set-traffic-class CLASS-ID ] | drop } | violate { transmit [ set-traffic-class CLASS-ID ] | drop } ] [ statistics ]

no policer

Parameter

Parameter Description

Parameter Value

color-blind

Do not care input packet`s color

-

color-aware

Care input packet`s color

-

pps

PPS mode, default is BPS mode

-

CIR

CIR - Commit Information Rate.

On BPS mode, the range is 0-100,000,000 kbps; On PPS mode, the range is 0-148,809,523 kbps.

CBS

CBS - Commit Burst Size.

On BPS mode, the range is 0-640,000 bytes, default value is 640000; On PPS mode, the range is 0-7,600 packets, default value is 4400.

EIR

EIR - Excess Information Rate. When eir is not set, use RFC 2697. When eir is set, use RFC 4115.

On BPS mode, the range is 0-100,000,000 kbps; On PPS mode, the range is 0-148,809,523 kbps.

EBS

EBS - Excess Burst Size.

On BPS mode, the range is 0-640,000 bytes, default value is 640000; On PPS mode, the range is 0-7,600 packets, default value is 4400.

conform

The action when the traffic not exceed C bucket. The default action is transmit

-

exceed

On single bucket mode, is the action when the traffic exceed C bucket.The default action is drop. On double bucket mode, is the action when the traffic exceed C bucket and not exceed E bucket, the default action is transmit

-

violate

On single bucekt mode, not support this action. On double bucket mode, is the action when the traffic exceed E bucket, the default action is drop.

-

transmit

transmit the packet

-

drop

drop the packet

-

set-traffic-class CLASS-ID

set traffic-class for the packet

range 0-7

statistics

enable policer statistics

-

Command Mode

Config-pmap-c Configuration

Default

None

Usage

Policer and aggraget-policer can not be set together in the same policy map.This command has lower priority with set traffic-class command.

Examples

Switch# configure terminal
Switch(config)# policy-map type qos pmap_qos
Switch(config-pmap-qos)# class type qos cmap_qos
Switch(config-pmap-qos-c)# policer color-blind cir 50000 cbs 40000 ebs 30000 conform-action transmit exceed-action drop statistics

Related Commands

show policy-map type qos statistics interface policer

show policy-map type qos statistics policer

10.1.18. qos aggregate-policer

Command Purpose

Use this command to create an aggregate policer instance. The aggregate policer can be shared by multiple classes of traffic. To remove the aggregate policer instance, use the no form of this command.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

qos aggregate-policer NAME { color-blind | color-aware } cir CIR [ cbs CBS ] [ eir EBS ] [ ebs EBS ] [ conform { transmit [ set-traffic-class CLASS-ID ] | drop } | exceed { transmit [ set-traffic-class CLASS-ID ] | drop } | violate { transmit [ set-traffic-class CLASS-ID ] | drop } ] [ statistics ]

qos aggregate-policer NAME pps { color-blind | color-aware } cir CIR [ cbs CBS ] [ eir EBS ] [ ebs EBS ] [ conform { transmit [ set-traffic-class CLASS-ID ] | drop } | exceed { transmit [ set-traffic-class CLASS-ID ] | drop } | violate { transmit [ set-traffic-class CLASS-ID ] | drop } ] [ statistics ]

no qos aggregate-policer NAME

Parameter

Parameter Description

Parameter Value

NAME

Specify an aggregate-policer name

The name can be a maximum of 40 characters. The name is case sensitive and can only contain alphanumeric characters, hyphens, and underscores.

color-blind

Do not care input packet`s color

-

color-aware

Care input packet`s color

-

pps

PPS mode, default is BPS mode

-

CIR

CIR - Commit Information Rate.

On BPS mode, the range is 0-100,000,000 kbps;On PPS mode, the range is 0-148,809,523 kbps.

CBS

CBS - Commit Burst Size.

On BPS mode, the range is 0-640,000 bytes, default value is 640000;On PPS mode, the range is 0-7,600 packets, default value is 4400.

EIR

EIR - Excess Information Rate.When eir is not set, use RFC 2697.When eir is set, use RFC 4115.

On BPS mode, the range is 0-100,000,000 kbps;On PPS mode, the range is 0-148,809,523 kbps.

EBS

EBS - Excess Burst Size.

On BPS mode, the range is 0-640,000 bytes, default value is 640000;On PPS mode, the range is 0-7,600 packets, default value is 4400.

conform

The action when the traffic not exceed C bucket. The default action is transmit

-

exceed

On single bucket mode, is the action when the traffic exceed C bucket.The default action is drop.On double bucket mode, is the action when the traffic exceed C bucket and not exceed E bucket, the default action is transmit

-

violate

On single bucekt mode, not support this action.On double bucket mode, is the action when the traffic exceed E bucket, the default action is drop.

-

transmit

transmit the packet

-

drop

drop the packet

-

set-traffic-class CLASS-ID

set traffic-class for the packet

range 0-7

statistics

enable policer statistics

-

Command Mode

Global Config

Default

None

Usage

All the flow who use aggreagte policer will share the same bandwitdh, it is different with policer.

Examples

Switch# configure terminal
Switch(config)# qos aggregate-policer example color-aware cir 1000 cbs 2000 eir 3000 ebs 4000 exceed drop statistics

Related Commands

aggregate-policer

show qos aggregate-policer

10.1.19. aggregate-policer

Command Purpose

Use this command to rate-limit the aggregate traffic matching this traffic class for all interfaces in the same slot. To cancel rate limit, use the no form of this command.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

aggregate-policer NAME

no aggregate-policer

Parameter

Parameter Description

Parameter Value

NAME

Aggregate policer name.

The name can be a maximum of 40 characters. The name is case sensitive and can only contain alphanumeric characters, hyphens, and underscores.

Command Mode

Config-pmap-c Configuration

Default

Disabled

Usage

Policer and aggraget-policer can not be set together in the same policy map.This command has lower priority with set traffic-class command.

Examples

Switch# configure terminal
Switch(config)# policy-map type qos pmap_qos
Switch(config-pmap-qos)# class type qos cmap_qos
Switch(config-pmap-qos-c)# aggregate-policer transmit1

Related Commands

qos aggregate-policer

show qos aggregate policer

10.1.20. policy-map type traffic-class

Command Purpose

Use this command to create a policy map. To remove the policy-map, use the no form of this command.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

policy-map traffic-class NAME

Parameter

Parameter Description

Parameter Value

NAME

Specify a policy-map name

The name can be a maximum of 40 characters. The name is case sensitive and can only contain alphanumeric characters, hyphens, and underscores.

Command Mode

Global Config

Default

Disabled

Usage

This command is used to create policy map to identify traffic flows with different traffic class.

Examples

Switch# configure terminal
Switch(config)# policy-map type traffic-class pmap_tc

Related Commands

service-policy traffic-class

10.1.21. class type traffic-class

Command Purpose

To add a reference to an existing class map in a policy map and enter the class mode, use the class command. To remove a class from the policy map, use the no form of this command.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

class type traffic-class NAME

no class type traffic-class NAME

Parameter

Parameter Description

Parameter Value

NAME

Reference to a class map.

The name can be a maximum of 40 characters. The name is case sensitive and can only contain alphanumeric characters, hyphens, and underscores.

Command Mode

Policy-map Configuration

Default

None

Usage

Using this command, traffic classified by traffic-class can be specified varieties of properties, such as priority, bandwidth, etc.

Examples

Switch# configure terminal
Switch(config)# policy-map type traffic-class pmap_tc
Switch(config-pmap-tc)# class type traffic-class cmap_tc

Related Commands

policy-map type traffic-class

class-map type traffic-class

10.1.22. class type traffic-class class-default

Command Purpose

To add a reference to an existing class map in a policy map and enter the class mode, use the class command. To remove a class from the policy map, use the no form of this command.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

class type traffic-class class-default

no class type traffic-class class-default

Command Mode

Policy-map Configuration

Default

None

Usage

Using this command, traffic classified by traffic-class can be specified varieties of properties, such as priority, bandwidth, etc.

Examples

Switch# configure terminal
Switch(config)# policy-map type traffic-class pmap_tc
Switch(config-pmap-tc)# class type traffic-class cmap_tc

Related Commands

policy-map type traffic-class

10.1.23. priority level

Command Purpose

To assign a strict priority level to a traffic class in a policy map, use the priority level command. To remove the mapping, use the no form of this command,

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

priority level LEVEL

no priority level

Parameter

Parameter Description

Parameter Value

LEVEL

Specifies the strict-priority level.

range 0-7

Command Mode

Config-pmap-c Configuration

Default

None

Usage

When the level is the same,queues will be scheduled on WDRR mode, otherwise will be scheduled on SP mode.

Examples

Switch# configure terminal
Switch(config)# policy-map type traffic-class pmap_tc
Switch(config-pmap-tc)# class type traffic-class cmap_tc
Switch(config-pmap-tc-c)# priority level 5

Related Commands

show qos interface egress

10.1.24. bandwidth percentage

Command Purpose

Use this command to allocate a percentage of the interface bandwidth to a queue. To remove configuration, use the no form of this command.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

bandwidth percentage PERCENTAGE

no bandwidth percentage

Parameter

Parameter Description

Parameter Value

PERCENTAGE

Specifies the percentage of bandwidth of the underlying link rate.

The range is 1-100.

Command Mode

Config-pmap-c Configuration

Default

None

Usage

Total percentage of all queues is 100. Unused bandwidth is allocated to default class.

Examples

Switch# configure terminal
Switch(config)# policy-map type traffic-class pmap_tc
Switch(config-pmap-tc)# class type traffic-class cmap_tc
Switch(config-pmap-tc-c)# bandwidth percentage 20

Related Commands

show qos interface egress

10.1.25. queue-limit

Command Purpose

Use this command to specify queue buffer.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

queue-limit SIZE [ ecn-threshold THRESHOLD ]

no queue-limit

Parameter

Parameter Description

Parameter Value

SIZE

Queue buffer cell number, 288 bytes per cell

range 32-8192 or maximum value.

THRESHOLD

ECN threshold,288 bytes per cell, range 32-8191. ECN threshold default value is queue size if no set.

range 32-8191 or maximum value.

Command Mode

Config-pmap-c Configuration

Default

64 buffer cells for control traffic;

256 buffer cells for non-drop traffic.

Usage

Queue-limit,queue-limit dynamic and random-detect are conflict.

Examples

Switch# configure terminal
Switch(config)# policy-map type traffic-class pmap_tc
Switch(config-pmap-tc)# class type traffic-class cmap_tc
Switch(config-pmap-tc-c)# queue-limit 200

Related Commands

show qos interface egress

10.1.26. queue-limit dynamic

Command Purpose

Use this command to specify dynamic buffer for queue.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

queue-limit dynamic LEVEL

Parameter

Parameter Description

Parameter Value

LEVEL

Queue level

range 0-10

Command Mode

Config-pmap-c Configuration

Default

10

Usage

Queue buffer can be caculated by the following expression:

threshold = (f / (1 + f)) * remainCnt (f = 1/128 ~ 8)。

f mapping: level factor percent of remain buffer

  1. 1/128 ~0.8%

  2. 1/64 ~1.5%

  3. 1/32 ~3%

  4. 1/16 ~6%

  5. 1/8 ~11%

  6. 1/4 20%

  7. 1/2 ~33%

  8. 1 50%

  9. 2 ~66%

  10. 4 ~80%

  11. 8 ~89%

Queue-limit,queue-limit dynamic and random-detect are conflict.

Examples

Switch# configure terminal
Switch(config)# policy-map type traffic-class pmap_tc
Switch(config-pmap-tc)# class type traffic-class cmap_tc
Switch(config-pmap-tc-c)# queue-limit dynamic 2

Related Commands

show qos interface egress

10.1.27. random-detect

Command Purpose

Use this command to configure random detect parameters.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

random-detect maximum-threshold MAX [ minimum-threshold MIN ] [ ecn ]

no random-detect

Parameter

Parameter Description

Parameter Value

MAX

maximum value in buffer cell, 288 bytes per cell

range 32-8192.

MIN

minimum value in buffer cell, 288 bytes per cell. MIN default value is MAX / 8 if no set.

range 32-8192.

ecn

enable ecn

-

Command Mode

Config-pmap-c Configuration

Default

None

Usage

Queue-limit,queue-limit dynamic and random-detect are conflict.

The real maximum queue buffer depends on the minimum of buffer threshold and buffer cell resource.

Examples

Switch# configure terminal
Switch(config)# policy-map type traffic-class pmap_tc
Switch(config-pmap-tc)# class type traffic-class cmap_tc
Switch(config-pmap-tc-c)# random-detect maximum-threshold 200 ecn

Related Commands

show qos interface egress

10.1.28. service-policy type qos

Command Purpose

Use this command to apply a policy-map to member interfaces of the port group to affect the traffic classification rules. To remove the policy-map from the port group , use the no form of this command.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

service-policy type qos input NAME

no service-policy type qos input

Parameter

Parameter Description

Parameter Value

NAME

Policy-map name

The name can be a maximum of 40 characters. The name is case sensitive and can only contain alphanumeric characters, hyphens, and underscores.

Command Mode

Interface Configuration

Port-group Configuration

Default

None

Usage

None

Examples

Switch# configure terminal
Switch(config)# port-group port_group_1
Switch(config-port-group)# service-policy type qos input pmap_qos

Related Commands

policy-map type qos

10.1.29. service-policy type traffic-class

Command Purpose

Use this command to apply a policy-map to an interface to affect the traffic queuing rules. To remove the policy-map from the interface, use the no form of this command.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

service-policy type traffic-class NAME

no service-policy type traffic-class

Parameter

Parameter Description

Parameter Value

NAME

Policy-map name

The name can be a maximum of 40 characters. The name is case sensitive and can only contain alphanumeric characters, hyphens, and underscores.

Command Mode

Interface Configuration

Configure-qos-global-view

Default

None

Usage

This command is used to apply queuing and priority-flow-control parameters on interface.

Examples

Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# service-policy type traffic-class pmap_tc

Related Commands

policy-map type qos

class-map type traffic-class

10.1.30. qos policer

Command Purpose

Use this command to configure a port-policer for an interface matching all traffic transmitted or received in different direction. To cancel the rate limit, use the no form of this command.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

qos policer input { color-blind | color-aware } cir CIR [ cbs CBS ] [ eir EBS ] [ ebs EBS ] [ conform { transmit [ set-traffic-class CLASS-ID ] | drop } | exceed { transmit [ set-traffic-class CLASS-ID ] | drop } | violate { transmit [ set-traffic-class CLASS-ID ] | drop } ] [ statistics ]

qos policer input pps { color-blind | color-aware } cir CIR [ cbs CBS ] [ eir EBS ] [ ebs EBS ] [ conform { transmit [ set-traffic-class CLASS-ID ] | drop } | exceed { transmit [ set-traffic-class CLASS-ID ] | drop } | violate { transmit [ set-traffic-class CLASS-ID ] | drop } ] [ statistics ]

qos policer output { color-blind | color-aware } cir CIR [ cbs CBS ] [ eir EBS ] [ ebs EBS ] [ conform { transmit | drop } | exceed { transmit | drop } | violate { transmit | drop } ] [ statistics ]

qos policer output pps { color-blind | color-aware } cir CIR [ cbs CBS ] [ eir EBS ] [ ebs EBS ] [ conform { transmit | drop } | exceed { transmit | drop } | violate { transmit | drop } ] [ statistics ]

no qos policer { input | output }

Parameter

Parameter Description

Parameter Value

color-blind

Do not care input packet`s color

-

color-aware

Care input packet`s color

-

pps

PPS mode, default is BPS mode

-

CIR

CIR - Commit Information Rate.

On BPS mode, the range is 0-100,000,000 kbps;On PPS mode, the range is 0-148,809,523 kbps.

CBS

CBS - Commit Burst Size.

On BPS mode, the range is 0-640,000 bytes, default value is 640000;On PPS mode, the range is 0-7,600 packets, default value is 4400.

EIR

EIR - Excess Information Rate.When eir is not set, use RFC 2697.When eir is set, use RFC 4115.

On BPS mode, the range is 0-100,000,000 kbps;On PPS mode, the range is 0-148,809,523 kbps.

EBS

EBS - Excess Burst Size.

On BPS mode, the range is 0-640,000 bytes, default value is 640000;On PPS mode, the range is 0-7,600 packets, default value is 4400.

conform

The action when the traffic not exceed C bucket. The default action is transmit

-

exceed

On single bucket mode, is the action when the traffic exceed C bucket.The default action is drop.On double bucket mode, is the action when the traffic exceed C bucket and not exceed E bucket, the default action is transmit

-

violate

On single bucekt mode, not support this action.On double bucket mode, is the action when the traffic exceed E bucket, the default action is drop.

-

transmit

transmit the packet

-

drop

drop the packet

-

set-traffic-class CLASS-ID

set traffic-class for the packet

range 0-7

statistics

enable policer statistics

-

Command Mode

Interface Configuration

Default

None

Usage

This command is used to configure policing on port level.

Examples

Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# qos policer input color-blind cir 50000 cbs 40000 ebs 30000 exceed drop statistics

Related Commands

show qos interface statistics policer

10.1.31. qos shape rate

Command Purpose

Use this command to configure shaping for a physical port in absolute value mode. To remove port shaping, use the no form of this command.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

qos shape rate pir PIR ( ecn-percentage PERCENTAGE | )

no qos shape rate

Parameter

Parameter Description

Parameter Value

RATE

Shaping rate

range 0 -100,000,0000.

PERCENTAGE

ECN percentage value

50%-100%

Command Mode

Interface Configuration

Default

None

Usage

In port shaping configuration, the larger the PIR value is, the better the ECN marking effect is.

Examples

Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# qos shape rate 1000

Related Commands

None

10.1.32. show table-map

Command Purpose

Use this command to show mutation table information.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

show table-map NAME

Parameter

Parameter Description

Parameter Value

NAME

Mutation map`s name

The name can be a maximum of 40 characters. The name is case sensitive and can only contain alphanumeric characters, hyphens, and underscores.

Command Mode

Privileged EXEC

Default

None

Usage

None

Examples

Switch# show table-map dscp-table

table-map dscp-table
 map from 4 to 3
 default copy

Related Commands

table-map

10.1.33. show class-map

Command Purpose

Use this command to show class map information.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

show class-map [ NAME ]

Parameter

Parameter Description

Parameter Value

NAME

Class map`s name

The name can be a maximum of 40 characters. The name is case sensitive and can only contain alphanumeric characters, hyphens, and underscores.

Command Mode

Privileged EXEC

Default

None

Usage

None

Examples

Switch# show class-map cos1

    CLASS-MAP-NAME: cos1 (qos)
      match cos 1

Related Commands

class-map type qos

10.1.34. show policy-map

Command Purpose

Use this command to show policy map information.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

show policy-map [ NAME ]

Parameter

Parameter Description

Parameter Value

NAME

Policy map`s name

The name can be a maximum of 40 characters. The name is case sensitive and can only contain alphanumeric characters, hyphens, and underscores.

Command Mode

Privileged EXEC

Default

None

Usage

None

Examples

Switch# show policy-map q1

  POLICY-MAP-NAME: q1 (qos)
    State: attached

    CLASS-MAP-NAME: cos0
      match cos 0 
        set traffic-class       : 7
        statistics  : enable
policer color-aware cir 10000000 cbs 640000 ebs 640000 statistics

Related Commands

policy-map type qos

10.1.35. show qos aggregate-policer

Command Purpose

Use this command to show aggregator-policer information.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

show qos aggregator-policer NAME

Parameter

Parameter Description

Parameter Value

NAME

aggregate policer name

The name can be a maximum of 40 characters. The name is case sensitive and can only contain alphanumeric characters, hyphens, and underscores.

Command Mode

Privileged EXEC

Default

None

Usage

None

Examples

Switch# show qos aggregate-policer example 

Aggreate policer: test
  color blind
  CIR 1000 kbps, CBS 640000 bytes, EBS 640000 bytes
  drop violate packets

Related Commands

aggregate-policer

10.1.36. show qos interface ingress

Command Purpose

Use this command to show interface ingress information.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

show qos interface NAME ingress { cos-policy | inner-cos-policy | dscp-policy | acl-policy }

Parameter

Parameter Description

Parameter Value

NAME

interface name

Supportphysical/aggregation/vlanports

cos-policy

show cos mapping information

-

inner-cos-policy

show inner cos mapping information

-

dscp-policy

show dscp mapping information

-

acl-policy

show acl mapping information

-

Command Mode

Privileged EXEC

Default

None

Usage

None

Examples

Switch# show qos interface eth-0-1 ingress cos-policy

CoS                  TC         Color      Mark-Type  Mark-Value
0                    0          green      -          -
1                    1          green      -          -
2                    2          green      -          -
3                    3          green      -          -
4                    4          green      -          -
5                    5          green      -          -
6                    6          green      -          -
7                    7          green      -          -

Related Commands

service-policy type qos

service-policy type traffic-class

10.1.37. show qos interface egress

Command Purpose

Use this command to show interface egress information.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

show qos interface IFNAME egress

Parameter

Parameter Description

Parameter Value

IFNAME

interface name

- Supportphysical/aggregation/vlanports

Command Mode

Privileged EXEC

Default

None

Usage

None

Examples

Switch# show qos interface eth-0-1 egress

TC Priority Bandwidth Shaping(kbps) Drop-Mode   Queue-Limit(Max/Min) ECN
0  0        Remaining -             dynamic     level 0              -
1  1        -         -             dynamic     level 0              -
2  2        -         -             dynamic     level 0              -
3  3        -         -             dynamic     level 0              -
4  4        -         -             dynamic     level 0              -
5  5        -         -             dynamic     level 0              -
6  6        -         -             dynamic     level 0              -
7  7        -         -             tail-drop   64                   -

Related Commands

service-policy type qos

10.1.38. show qos aggregate-policer statistics

Command Purpose

Use this command to show aggregator-policer’s statistics information.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

show qos aggregator-policer NAME statistics

Parameter

Parameter Description

Parameter Value

NAME

aggregate policer name

The name can be a maximum of 40 characters. The name is case sensitive and can only contain alphanumeric characters, hyphens, and underscores.

Command Mode

Privileged EXEC

Default

None

Usage

None

Examples

Switch# show qos aggregate-policer example statistics

  Aggreate policer: example
    rfc2697    bps    color-aware
    CIR 1000000 kbps, CBS 640000 bytes, EBS 640000 bytes
    Conform packets transmit
    Exceed packets transmit
    Violate packets drop
  Statistics:
    Type    Packets              Bytes                Action
    Conform 0                    0                    Transmit
    Exceed  0                    0                    Transmit
    Violate 0                    0                    Drop
    Total   0                    0                    -

Related Commands

service-policy type traffic-class

10.1.39. show policy-map type qos statistics interface ace

Command Purpose

Use this command to show the ace statistics of policy-map on interface.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

show policy-map type qos statistics interface NAME input ace ( ace-based | class-based | ) ( class CMAP-NAME | )

Parameter

Parameter Description

Parameter Value

NAME

interface name

-

input

The statistics of input direction will be shown

-

ace-based

The statistics of matching ace will be shown

-

class-based

statistics of class-map will be shown

-

CMAP-NAME

statistics of the specified class-map can be shown

-

Command Mode

Privileged EXEC

Default

None

Usage

Using this command, the flow policer stats can be shown when class-based is specified and flow policer stats is enabled.

The statistics of ace-based and class-based have results only when the statistics is enabled.

Examples

Switch# show policy-map type qos statistics interface eth-0-1 input ace class-based 

Interface: eth-0-1
 Input service policy type qos: q1

  Class name: cos0, operator: match-any(match 0 bytes 0)

  Class name: cos1, operator: match-any(match 0 bytes 0)

Switch# show policy-map type qos statistics interface eth-0-1 input ace ace-based 
 Interface: eth-0-1
 Input service policy type qos: q1

  Class name: cos0, operator: match-any
    match cos 0 ( 0 match 0 bytes)
total 0 match 0 bytes

Class name: cos1, operator: match-any
match cos 1 ( 0 match 0 bytes)
total 0 match 0 bytes

Related Commands

None

10.1.40. show policy-map type qos statistics vlan ace

Command Purpose

Use this command to show the ace statistics of policy-map on vlan.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

show policy-map type qos statistics vlan VLAN_ID input ace ( ace-based | class-based | ) ( class CMAP-NAME | )

Parameter

Parameter Description

Parameter Value

VLAN_ID

VLAN ID

1-4094

input

The statistics of input direction will be shown

-

ace-based

The statistics of matching ace will be shown

-

class-based

statistics of class-map will be shown

-

CMAP-NAME

statistics of the specified class-map can be shown

The name can be a maximum of 40 characters. The name is case sensitive and can only contain alphanumeric characters, hyphens, and underscores.

Command Mode

Privileged EXEC

Default

None

Usage

Using this command, the flow policer stats can be shown when class-based is specified and flow policer stats is enabled.

The statistics of ace-based and class-based have results only when the statistics is enabled.

Examples

Switch# show policy-map type qos statistics vlan 2 input ace class-based 

 Vlan:2
 Input service policy type qos: q1

  Class name: cos0, operator: match-any(match 0 bytes 0)

  Class name: cos1, operator: match-any(match 0 bytes 0)

Switch# show policy-map type qos statistics vlan 2 input ace ace-based 
 Vlan:2
 Input service policy type qos: q1

  Class name: cos0, operator: match-any
    match cos 0 ( 0 match 0 bytes)
    total 0 match 0 bytes

  Class name: cos1, operator: match-any
    match cos 1 ( 0 match 0 bytes)
    total 0 match 0 bytes

Related Commands

service-policy type qos

service-policy type traffic-class

10.1.41. show policy-map type qos statistics port-group ace

Command Purpose

Use this command to show the ace statistics of policy-map on port-group.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

show policy-map type qos statistics port-group PG_NAME input ace ( ace-based | class-based | ) ( class CMAP-NAME | )

Parameter

Parameter Description

Parameter Value

PG_NAME

port-group name

Up to 32 characters

input

The statistics of input direction will be shown

-

ace-based

The statistics of matching ace will be shown

-

class-based

statistics of class-map will be shown

-

CMAP-NAME

statistics of the specified class-map can be shown

The name can be a maximum of 40 characters. The name is case sensitive and can only contain alphanumeric characters, hyphens, and underscores.

Command Mode

Privileged EXEC

Default

None

Usage

Using this command, the flow policer stats can be shown when class-based is specified and flow policer stats is enabled.

The statistics of ace-based and class-based have results only when the statistics is enabled.

Examples

Switch# show policy-map type qos statistics port-group pg input ace class-based 

 Port-group:pg
 Input service policy type qos: q1

  Class name: cos0, operator: match-any(match 0 bytes 0)

  Class name: cos1, operator: match-any(match 0 bytes 0)

Switch# show policy-map type qos statistics vlan 2 input ace ace-based 
 Vlan:2
 Input service policy type qos: q1

  Class name: cos0, operator: match-any
    match cos 0 ( 0 match 0 bytes)
total 0 match 0 bytes

Class name: cos1, operator: match-any
match cos 1 ( 0 match 0 bytes)
total 0 match 0 bytes

Related Commands

service-policy type qos

service-policy type traffic-class

10.1.42. show policy-map type qos statistics vlan-group ace

Command Purpose

Use this command to show the ace statistics of policy-map on vlan-group.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

show policy-map type qos statistics vlan-group VG_NAME input ace ( ace-based | class-based | ) ( class CMAP-NAME | )

Parameter

Parameter Description

Parameter Value

VG_NAME

vlan-group name

Up to 32 characters

input

The statistics of input direction will be shown

-

ace-based

The statistics of matching ace will be shown

-

class-based

statistics of class-map will be shown

-

CMAP-NAME

statistics of the specified class-map can be shown

The name can be a maximum of 40 characters. The name is case sensitive and can only contain alphanumeric characters, hyphens, and underscores.

Command Mode

Privileged EXEC

Default

None

Usage

Using this command, the flow policer stats can be shown when class-based is specified and flow policer stats is enabled.

The statistics of ace-based and class-based have results only when the statistics is enabled.

Examples

Switch# show policy-map type qos statistics vlan-group vg input ace class-based 

 Vlan-group:vg
 Input service policy type qos: q1

  Class name: cos0, operator: match-any(match 0 bytes 0)

  Class name: cos1, operator: match-any(match 0 bytes 0)

Switch# show policy-map type qos statistics vlan 2 input ace ace-based 
 Vlan:2
 Input service policy type qos: q1

  Class name: cos0, operator: match-any
    match cos 0 ( 0 match 0 bytes)
total 0 match 0 bytes

Class name: cos1, operator: match-any
match cos 1 ( 0 match 0 bytes)
total 0 match 0 bytes

Related Commands

service-policy type qos

service-policy type traffic-class

10.1.43. show policy-map type qos statistics interface policer

Command Purpose

Use this command to show the policer statistics of policy-map on interface.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

show policy-map type qos statistics interface IFNAME input policer ( class CMAP-NAME | )

Parameter

Parameter Description

Parameter Value

IFNAME

interface name

Supportphysical/aggregation/vlanports

input

The statistics of input direction will be shown

-

CMAP-NAME

statistics of the specified class-map can be shown

The name can be a maximum of 40 characters. The name is case sensitive and can only contain alphanumeric characters, hyphens, and underscores.

Command Mode

Privileged EXEC

Default

None

Usage

The statistics have results only when the policer statistics is enabled.

Examples

Switch# show policy-map type qos statistics interface eth-0-1 input policer 

 Interface: eth-0-1
 Input service policy type qos: q1

  Class name: cos0, operator : match-any

  Class name: cos1, operator : match-any
    Policer(mode rfc2697, rate mode bps, CIR 10000000 kbps, CBS 640000 bytes, EBS 640000 bytes, color mode color-aware, conform transmit, exceed transmit, violate drop)
    Conform packets 0, bytes 0
    Exceed packets 0, bytes 0
    Violate packets 0, bytes 0

Related Commands

service-policy type qos

service-policy type traffic-class

10.1.44. show policy-map type qos statistics vlan policer

Command Purpose

Use this command to show the policer statistics of policy-map on vlan.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

show policy-map type qos statistics vlan VLAN_ID input policer ( class CMAP-NAME | )

Parameter

Parameter Description

Parameter Value

VLAN_ID

VLAN ID

1-4094

input

The statistics of input direction will be shown

-

CMAP-NAME

statistics of the specified class-map can be shown

The name can be a maximum of 40 characters. The name is case sensitive and can only contain alphanumeric characters, hyphens, and underscores.

Command Mode

Privileged EXEC

Default

None

Usage

The statistics have results only when the policer statistics is enabled.

Examples

Switch# show policy-map type qos statistics vlan 2 input policer 

 Vlan:2
 Input service policy type qos: q1

  Class name: cos0, operator : match-any

  Class name: cos1, operator : match-any
    Policer(mode rfc2697, rate mode bps, CIR 10000000 kbps, CBS 640000 bytes, EBS 640000 bytes, color mode color-aware, conform transmit, exceed transmit, violate drop)
    Conform packets 0, bytes 0
    Exceed packets 0, bytes 0
    Violate packets 0, bytes 0

Related Commands

service-policy type qos

service-policy type traffic-class

10.1.45. show policy-map type qos statistics port-group policer

Command Purpose

Use this command to show the policer statistics of policy-map on port-group.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

show policy-map type qos statistics port-group PG_NAME input policer (class CMAP-NAME |)

Parameter

Parameter Description

Parameter Value

PG_NAME

port-group name

Up to 32 characters

input

The statistics of input direction will be shown

-

CMAP-NAME

statistics of the specified class-map can be shown

The name can be a maximum of 40 characters. The name is case sensitive and can only contain alphanumeric characters, hyphens, and underscores.

Command Mode

Privileged EXEC

Default

None

Usage

The statistics have results only when the policer statistics is enabled.

Examples

Switch# show policy-map type qos statistics port-group pg input policer 

 Port-group: pg
 Input service policy type qos: q1

  Class name: cos0, operator : match-any

  Class name: cos1, operator : match-any
    Policer(mode rfc2697, rate mode bps, CIR 10000000 kbps, CBS 640000 bytes, EBS 640000 bytes, color mode color-aware, conform transmit, exceed transmit, violate drop)
    Conform packets 0, bytes 0
    Exceed packets 0, bytes 0
    Violate packets 0, bytes 0

Related Commands

service-policy type qos

service-policy type traffic-class

10.1.46. show policy-map type qos statistics vlan-group policer

Command Purpose

Use this command to show the policer statistics of policy-map on vlan-group.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

show policy-map type qos statistics vlan-group VG_NAME input policer ( class CMAP-NAME | )

Parameter

Parameter Description

Parameter Value

VG_NAME

vlan-group name

Up to 32 characters

input

The statistics of input direction will be shown

-

CMAP-NAME

statistics of the specified class-map can be shown

The name can be a maximum of 40 characters. The name is case sensitive and can only contain alphanumeric characters, hyphens, and underscores.

Command Mode

Privileged EXEC

Default

None

Usage

The statistics have results only when the policer statistics is enabled.

Examples

Switch# show policy-map type qos statistics vlan-group vg input policer 

 Vlan-group: vg
 Input service policy type qos: q1

  Class name: cos0, operator : match-any

  Class name: cos1, operator : match-any
    Policer(mode rfc2697, rate mode bps, CIR 10000000 kbps, CBS 640000 bytes, EBS 640000 bytes, color mode color-aware, conform transmit, exceed transmit, violate drop)
    Conform packets 0, bytes 0
    Exceed packets 0, bytes 0
    Violate packets 0, bytes 0

Related Commands

service-policy type qos

service-policy type traffic-class

10.1.47. show qos interface statistics policer

Command Purpose

Use this command to display port statistics.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

show qos interface IFNAME statistics policer ( input | output )

Parameter

Parameter Description

Parameter Value

IFNAME

Interface name

- Supportphysical/aggregation/vlanports

Command Mode

Privileged EXEC

Default

None

Usage

None

Examples

Switch# show qos interface eth-0-1 statistics policer input

 Interface: eth-0-1
  Input port policer:
    rfc2697    bps    color-aware
    CIR 2000000 kbps, CBS 640000 bytes, EBS 640000 bytes
    Conform packets transmit
    Exceed packets transmit
    Violate packets drop
  Statistics:
    Type        Packets          Bytes                Action
    Conform     0                0                    Transmit
    Exceed      0                0                    Transmit
    Violate     0                0                    Drop
    Total       0                0                    -

Related Commands

service-policy type qos

10.1.48. show qos interface statistics queue

Command Purpose

Use this command to display the statistics of traffic class per interface.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

show qos interface IFNAME statistics queue

Parameter

Parameter Description

Parameter Value

IFNAME

Interface name

Supportphysical/aggregation/vlanports

Command Mode

Privileged EXEC

Default

None

Usage

None

Examples

Switch# show qos interface eth-0-1 statistics queue

Queue    Transmit-packets     Transmit-Bytes       Drop-packets     Drop-Bytes
UC0      0                    0                    0                0
UC1      0                    0                    0                0
UC2      0                    0                    0                0
UC3      0                    0                    0                0
UC4      0                    0                    0                0
UC5      0                    0                    0                0
UC6      0                    0                    0                0
UC7      0                    0                    0                0
MC0      0                    0                    0                0
MC1      0                    0                    0                0
MC2      0                    0                    0                0
MC3      0                    0                    0                0
SPAN0    0                    0                    0                0

Related Commands

service-policy type traffic-class

10.1.49. clear qos aggregate-policer statistics

Command Purpose

Use this command to clear aggregate policing statistics.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

clear qos aggregate-policer NAME statistics

Parameter

Parameter Description

Parameter Value

NAME

Aggregate policer name.

The name can be a maximum of 40 characters. The name is case sensitive and can only contain alphanumeric characters, hyphens, and underscores.

Command Mode

Privileged EXEC

Default

None

Usage

None

Examples

Switch# clear qos aggregate-policer example statistics

Related Commands

show qos aggregate-policer statistics

10.1.50. clear policy-map type qos statistics interface ace

Command Purpose

Use this command to clear the ace statistics of policy-map on interface.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

clear policy-map type qos statistics interface IFNAME input ace

Parameter

Parameter Description

Parameter Value

IFNAME

Interface name

- Supportphysical/aggregation/vlanports

Command Mode

Privileged EXEC

Default

None

Usage

None

Examples

Switch# clear policy-map type qos statistics interface eth-0-1 input ace

Related Commands

show policy-map type qos statistics interface ace

10.1.51. clear policy-map type qos statistics vlan ace

Command Purpose

Use this command to clear the ace statistics of policy-map on vlan.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

clear policy-map type qos statistics vlan VLAN_ID input ace

Parameter

Parameter Description

Parameter Value

VLAN_ID

VLAN ID

1-4094

Command Mode

Privileged EXEC

Default

None

Usage

None

Examples

Switch# clear policy-map type qos statistics vlan 2 input ace

Related Commands

show policy-map type qos statistics vlan ace

10.1.52. clear policy-map type qos statistics port-group ace

Command Purpose

Use this command to clear the ace statistics of policy-map on port-group.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

clear policy-map type qos statistics port-group PG_NAME input ace

Parameter

Parameter Description

Parameter Value

PG_NAME

port-group name

Up to 32 characters

Command Mode

Privileged EXEC

Default

None

Usage

None

Examples

Switch# clear policy-map type qos statistics port-group pg input ace

Related Commands

show policy-map type qos statistics port-group ace

10.1.53. clear policy-map type qos statistics vlan-group ace

Command Purpose

Use this command to clear the ace statistics of policy-map on vlan-group.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

clear policy-map type qos statistics vlan-group VG_NAME input ace

Parameter

Parameter Description

Parameter Value

VG_NAME

vlan-group name

Up to 32 characters

Command Mode

Privileged EXEC

Default

None

Usage

None

Examples

Switch# clear policy-map type qos statistics vlan-group vg input ace

Related Commands

show policy-map type qos statistics vlan-group ace

10.1.54. clear policy-map type qos statistics ace

Command Purpose

Use this command to clear all the ace statistics of policy-map.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

show policy-map type qos statistics [ input ] ace

Parameter

Parameter Description

Parameter Value

input

The statistics of input direction will be clear

-

Command Mode

Privileged EXEC

Default

None

Usage

None

Examples

Switch# clear policy-map type qos statistics input ace

Related Commands

show policy-map type qos statistics ace

10.1.55. clear policy-map type qos statistics interface policer

Command Purpose

Use this command to clear the policer statistics of policy-map on interface.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

clear policy-map type qos statistics interface IFNAME input policer

Parameter

Parameter Description

Parameter Value

IFNAME

Interface name.

Supportphysical/aggregation/vlanports

Command Mode

Privileged EXEC

Default

None

Usage

None

Examples

Switch# clear policy-map type qos statistics interface eth-0-1 input policer

Related Commands

show policy-map type qos statistics interface policer

10.1.56. clear policy-map type qos statistics vlan policer

Command Purpose

Use this command to clear the policer statistics of policy-map on vlan.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

clear policy-map type qos statistics vlan VLAN_ID input policer

Parameter

Parameter Description

Parameter Value

VLAN_ID

VLAN ID

1-4094

Command Mode

Privileged EXEC

Default

None

Usage

None

Examples

Switch# clear policy-map type qos statistics vlan 2 input policer

Related Commands

show policy-map type qos statistics vlan policer

10.1.57. clear policy-map type qos statistics port-group policer

Command Purpose

Use this command to clear the policer statistics of policy-map on port-group.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

clear policy-map type qos statistics port-group PG_NAME input policer

Parameter

Parameter Description

Parameter Value

PG_NAME

port-group name

Up to 32 characters

Command Mode

Privileged EXEC

Default

None

Usage

None

Examples

Switch# clear policy-map type qos statistics port-group pg input policer

Related Commands

show policy-map type qos statistics port-group policer

10.1.58. clear policy-map type qos statistics vlan-group policer

Command Purpose

Use this command to clear the policer statistics of policy-map on vlan-group.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

clear policy-map type qos statistics vlan-group VG_NAME input policer

Parameter

Parameter Description

Parameter Value

VG_NAME

vlan-group name

Up to 32 characters

Command Mode

Privileged EXEC

Default

None

Usage

None

Examples

Switch# clear policy-map type qos statistics vlan-group vg input policer

Related Commands

show policy-map type qos statistics vlan-group policer

10.1.59. clear policy-map type qos statistics policer

Command Purpose

Use this command to clear all the policer statistics of policy-map.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

clear policy-map type qos statistics [ input ] policer

Parameter

Parameter Description

Parameter Value

input

The statistics of input direction will be clear

-

Command Mode

Privileged EXEC

Default

None

Usage

None

Examples

Switch# clear policy-map type qos statistics input policer

Related Commands

show policy-map type qos statistics policer

10.1.60. clear qos interface statistics policer

Command Purpose

Use this command to clear port policer statistics.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

clear qos interface IFNAME statistics policer ( input | output )

Parameter

Parameter Description

Parameter Value

IFNAME

Interface name.

Supportphysical/aggregation/vlanports

Command Mode

Privileged EXEC

Default

None

Usage

None

Examples

Switch# clear qos interface eth-0-1 statistics policer input

Related Commands

clear qos interface statistics policer

10.1.61. clear qos vlan statistics policer

Command Purpose

Use this command to clear vlan policer statistics.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

clear qos vlan VLAN_ID statistics policer ( input | output )

Parameter

Parameter Description

Parameter Value

VLAN_ID

VLAN ID

1-4094

Command Mode

Privileged EXEC

Default

None

Usage

None

Examples

Switch# clear qos vlan 2 statistics policer input

Related Commands

show qos vlan statistics policer

10.1.62. clear qos interface statistics queue

Command Purpose

Use this command to clear the queue statistics on specified interface.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

clear qos interface IFNAME statistics queue

Parameter

Parameter Description

Parameter Value

IFNAME

Interface name.

Supportphysical/aggregation/vlanports

Command Mode

Privileged EXEC

Default

None

Usage

None

Examples

Switch# clear qos interface eth-0-1 statistics queue

Related Commands

show qos interface statistics queue

10.1.63. flow-policer number

Command Purpose

To set the number of policers for qos, such as normal and extend mode.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

Flow-policer number ( normal | extend )

Parameter

Parameter Description

Parameter Value

normal

Normal mode supports 576 policers

-

extend

Extend mode supports 3064 policers

-

Command Mode

Global Config

Default

Normal

Usage

When reset the number of policers, it needs to save the configuration and restart the switch.

Examples

Switch# configure terminal
Switch(config)# flow-policer number extend
 % Configuration about flow-policer number has been stored, but cannot
  take effect until the next reload.
% When setting the extend number of policers, It only supports the 10G
  rate of policers, please check the rate of policers.

Related Commands

show policy-map type qos statistics interface ace

10.1.64. ipg shaping enable

Command Purpose

Use the ipg shaping enable to let shaping calculate IPG bytes. Use the no form of this command to return to the default setting.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

ipg shaping enable

no ipg shaping enable

Command Mode

Global Config

Default

Disabled

Usage

This command can be configured on global configure mode.

Examples

This example shows how to configure shaping to calculate IPG bytes:

Switch# configure terminal
Switch(config)# ipg shaping enable

This example shows how to disable shaping to calculate IPG bytes:

Switch# configure terminal
Switch(config)# no ipg shaping enable

Related Commands

None

10.1.65. ipg policer enable

Command Purpose

Uses the ipg policer enable to let policer calculate IPG bytes. Use the no form of this command to return to the default setting.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

ipg policer enable

no ipg policer enable

Command Mode

Global Config

Default

Disabled

Usage

This command can be configured on global configure mode and do not work on pps mode.

Examples

This example shows how to configure policer to calculate IPG bytes:

Switch# configure terminal
Switch(config)# ipg policer enable

This example shows how to disable policer to calculate IPG bytes:

Switch# configure terminal
Switch(config)# no ipg policer enable

Related Commands

None

10.1.66. smart buffer enable

Command Purpose

Use this command to enable queue drop smart buffer globally.Use the no form of this command to disable queue drop smart buffer globally.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

smart-buffer enable

no smart-buffer enable

Command Mode

Global Config

Default

Enable

Usage

This command can be configured on global configure mode.

Examples

This example shows how to enable the queue drop smart buffer.:

Switch# configure terminal
Switch(config)# smart-buffer enable

This example shows how to disable the queue drop smart buffer.:

Switch# configure terminal
Switch(config)# no smart-buffer enable

Related Commands

None

10.1.67. service-policy

Command Purpose

Use this command to apply a policy-map to member interfaces (member vlan) of the port group (vlan group) to affect the traffic classification rules. To remove the policy-map from the port group (vlan group), use the no form of this command.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

service-policy ( input | output ) NAME

no service-policy ( input | output )

Parameter

Parameter Description

Parameter Value

NAME

the policy-map name

The name can be a maximum of 40 characters. The name is case sensitive and can only contain alphanumeric characters, hyphens, and underscores.

input

apply policy-map to the inbound of member interfaces (member vlan)

-

output

apply policy-map to the outbound of member interfaces (member vlan)

-

Command Mode

Port-group Configuration

Vlan-group Configuration

Default

None

Usage

Use this command to apply a policy map defined by the policy-map command to the input or output of member interfaces (member vlan) of the port group (vlan group).

If the interface (vlan) has already been applied a policy-map, it cannot be added to the port group (vlan group).

Examples

Configure a policy to ingress of member interfaces of the port group :

Switch# configure terminal
Switch(config)# port-group port_group_1
Switch(config-port-group)# service-policy input plc_map1

Remove a policy from ingress of member interfaces of the port group :

Switch# configure terminal
Switch(config)# port-group port_group_1
Switch(config-port-group)# no service-policy input

Related Commands

policy-map

10.1.68. access-group

Command Purpose

Use this command to apply a policy-map to member interfaces (member vlan) of the port group (vlan group) to affect the traffic classification rules. To remove the policy-map from the port group (vlan group), use the no form of this command.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

access-group ( input | output ) NAME

no access-group ( input | output ) ( NAME | )

Parameter

Parameter Description

Parameter Value

NAME

the policy-map name

The name can be a maximum of 40 characters. The name is case sensitive and can only contain alphanumeric characters, hyphens, and underscores.

input

apply access-group to the inbound of member interfaces (member vlan)

-

output

apply access-group to the outbound of member interfaces (member vlan)

-

Command Mode

Port-group Configuration

Vlan-group Configuration

Default

None

Usage

Use this command to apply a access-group to the input or output of member interfaces (member vlan) of the port group (vlan group).

If the interface (vlan) has already been applied a access-group, it cannot be added to the port group (vlan group).

Examples

Configure a access-group to ingress of member interfaces of the port group :

Switch# configure terminal
Switch(config)# port-group port_group_1
Switch(config-port-group)# access-group input access_group1

Remove a access-group from ingress of member interfaces of the port group :

Switch# configure terminal
Switch(config)# port-group port_group_1
Switch(config-port-group)# no access-group input

Related Commands

None

10.1.69. trust

Command Purpose

Use this command to configure the port trust state. To return to the default value, use the no form of this command.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

trust ( dscp | cos ( stag-cos | ctag-cos | ) | port )

no trust

Parameter

Parameter Description

Parameter Value

dscp

Trust DSCP indicates all incoming IP packets will be assigned with the priority and color according to the packet DSCP field, and for other packets, the priority and color of that packet will be mapped the same as trust CoS.

-

cos

Select which CoS will be specified for interface. The range of CoS is from 0 to 7.

-

ctag-cos

Trust ctag-cos indicates all incoming packets will be assigned with the priority and color according to the packet inner CoS field if the packet is double-tagged. If that packet is carried with only one VLAN tag or it is untagged, the behavior should be the same as that of trust port.

-

stag-cos

Trust stagc-cos indicates all incoming packets will be assigned with the priority and color according to the packet outer CoS field if the packet is double-tagged. If that packet is carried with only one VLAN tag or it is untagged, the behavior should be the same as that of trust CoS.

-

port

Trust port indicates all incoming packets will be assigned with the priority and color according to the port CoS value.

-

Command Mode

Interface Configuration

Default

Trust the CoS value in packets.

Usage

The port trust state is the criteria for classifying incoming packets from the port. All classified packets will be indentified with a priority and color according to the trust state. The default port trust state is trust cos.

Examples

This example shows how to configure the trust state:

Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# trust dscp

Related Commands

show qos interface