class

This command binds the specified QoS-class to the policy and the transition to the configuration mode of the class parameters.

The use of a negative form (no) of the command removes a bind of class to the policy.

Syntax
[no] class <NAME>
Parameters

<NAME> – name of the class being bound, set by the string of up to 31 characters. When specifying the 'class-default' value, the incoming unclassified traffic falls into this class.

Required privilege level

10

Command mode

CONFIG-POLICY-MAP

Example
esr(config-policy-map)# class telnet_traffic
esr(config-class-policy-map)#
CODE

class-map

Create QoS class and switch to the class parameters configuration mode.

The use of a negative form (no) of the command removes a created rule.

Syntax
[no] class-map <NAME>
Parameters

<NAME> – name of the class being created, set by the string of up to 31 characters.

Required privilege level

10

Command mode

CONFIG

Example
esr(config)# class-map telnet_traffic
CODE

compression header ip tcp

This command enables tcp headers compression protocol for the certain class traffic.

The use of a negative form of the command (no) cancels the use of the tcp header compression protocol for traffic of a particular class.

Syntax
[no] compression header ip tcp
Parameters

None.

Required privilege level

10

Command mode

CONFIG-POLICY-MAP-CLASS

Example
esr(config-class-policy-map)# compression header ip tcp
CODE

description

This command defines QoS classificator description.

The use of a negative form (no) of the command removes description.

Syntax
description <DESCRIPTION>
no description
Parameters

<DESCRIPTION> – interface description, set by the string of up to 255 characters.

Required privilege level

15

Command mode

CONFIG-CLASS-MAP

CONFIG-POLICY-MAP

Example
esr(config-class-map)# description "VoIP"
CODE

fair-queue

Specify the limited number of virtual queues.

The use of a negative form (no) of the command sets the default value.

Syntax
fair-queue <QUEUE-LIMIT>
no fair-queue
Parameters

<QUEUE-LIMIT> – limited number of virtual queues, takes values in the range of [16..4096].

Default value

16

Required privilege level

10

Command mode

CONFIG-POLICY-MAP-CLASS

Example
esr(config-class-policy-map)# fair-queue 200
CODE

ip firewall sessions classification enable

This command enables session classification based on QoS policy.

The use of a negative form (no) of the command disables session classification.

Syntax
[no] ip firewall sessions classification enable
Parameters

The command does not contain parameters.

Default value

Disabled.

Required privilege level

10

Command mode

CONFIG

Example
esr(config)# ip firewall sessions classification enable
CODE

match access-group

This command binds the access control list (ACL), which will define the ratio of incoming traffic to a configurable class.

The use of a negative form (no) of the command removes the binding of access control list to this class.

Syntax
[no] match access-group {<NAME> | all }
Parameters

<NAME> – access control list name, set by the string of up to 31 characters.

When deleting, it is possible to use the 'all' key to delete all specified access lists.

Required privilege level

10

Command mode

CONFIG-CLASS-MAP

Example
esr(config-if-gi)# match access-group acl-ssh-traffic
CODE

match dscp

This command sets the value of the DSCP code, the traffic of which will be processed in this class-map.

The use of a negative form (no) of the command cancels the assignment.

Syntax
[no] match dscp <DSCP>
Parameters

<DSCP> – DSCP code value, takes values in the range of [0..63].

When deleting, it is possible to use the 'all' key to delete all specified dscp.

Required privilege level

10

Command mode

CONFIG-CLASS-MAP

Example
esr(config-class-map)# match dscp 55
CODE

mode

This command defines mode of class operation.

The use of a negative form (no) of the command sets the default value.

Syntax
mode <MODE>
no mode
Parameters

<MODE> – class mode:

  • fifo – FIFO mode (First In, First Out);
  • gred – GRED mode (Generalized RED);
  • red – RED mode (Random Early Detection);
  • sfq – SFQ mode (SFQ queue allocates flow-based packets transmission).
Default value

FIFO

Required privilege level

10

Command mode

CONFIG-POLICY-MAP-CLASS

Example
esr(config-class-policy-map)# mode red
CODE

policy-map

Create QoS policy and switch to the policy parameters configuration mode.

The use of a negative form (no) of the command removes a created policy.

Syntax
[no] policy-map <NAME>
Parameters

<NAME> – name of the policy being created, set by the string of up to 31 characters.

Required privilege level

10

Command mode

CONFIG

Example
esr(config)# policy-map input_policy
CODE

priority class

This command stes class priority in WRR process. Classes with the highest priority are proceeded first.

The use of a negative form (no) of the command sets the default value.

Syntax
priority class <PRIORITY>
no priority
Parameters

<PRIORITY> – priority of class in WRR process, takes values of [1..8].

Default value

1

Required privilege level

10

Command mode

CONFIG-POLICY-MAP-CLASS

Example
esr(config-class-policy-map)# priority class 5
CODE

priority level

This command switchs the class to Strict Priority mode and sets class priority. Classes with the highest priority are proceeded first.

The use of a negative form (no) of the command disables the WRR mode.

Syntax
priority level <PRIORITY>
no priority
Parameters

<PRIORITY> – priority of class in WRR process, takes values of [1..8].

Default value

The default value: tha class operates in WRR mode, the priority is not specified.

Required privilege level

10

Command mode

CONFIG-POLICY-MAP-CLASS

Example
esr(config-class-policy-map)# priority level 5
CODE

priority-queue out

This command sets limit of packets in queue.

The use of a negative form (no) of the command sets the default value.

Syntax
priority-queue out <QUEUE> limit <LIMIT>
no priority-queue out <QUEUE> limit
Parameters

<QUEUE> – queue identifier, takes values in the range of [1..8];

<QUEUE-LIMIT> – limited number of packets in a virtual queue, takes values in the range of [100..-1000].

Default value

500

Required privilege level

10

Command mode

CONFIG-GI 1

CONFIG-SUBIF

CONFIG-PORT-CHANNEL 1

CONFIG-BRIDGE

CONFIG-LOOPBACK

CONFIG-IP4IP4

CONFIG-GRE

CONFIG-L2TPV3

Example
esr(config-if)# priority-queue out 1 limit 800
CODE

1 This functionality is supported on the ESR-10/12V/12VF/14VF/20/21/100/200 routers only

priority-queue out num-of-queues

This command sets the number of priority queues from the eighth to the first. The remaining queues are weighted.

The use of a negative form (no) of the command sets the default value.

Syntax
priority-queue out num-of-queues <VALUE>
no priority-queue out num-of-queues
Parameters

<VALUE> – amount of queues, takes values of [1..8], where:

  • 0 – all queues take part in WRR (WRR – weight-based queue processing mechanism);
  • 8 – all queues are served as «strictpriority» (strictpriority – priority queue is served as soon as the packets appear).
Default value

8

Required privilege level

10

Command mode

CONFIG

Example
esr(config)# priority-queue out num-of-queues 5
CODE

qos dscp-mutation

Enable DSCP codes changes according to the DSCP-Mutation table. DSCP codes are changed only for inbound traffic of trusted ports in QoS Basic mode.

The use of a negative form (no) of the command disables DSCP codes changing.

Syntax
[no] qos dscp-mutation
Parameters

The command does not contain parameters.

Default value

Disabled.

Required privilege level

10

Command mode

CONFIG

Example
esr(config)# qos wrr-queue 3 bandwidth 130
CODE

qos enable

The command enables QoS on the interface. If a QoS policy is not associated with an interface (the policy binding is described in section service-policy), then the interface operates in Basic QoS mode, otherwise Policy-based QoS.

Basic QoS – traffic classification is performed based on DSCP and/or 802.1p codes depending on the selected trust mode (the command is described in section qos trust). Traffic is sent to the queues in accordance with the DSCP-Queue and/or CoS-Queue tables.

Policy-based QoS — classification and direction of traffic in the queue is based on QoS policies. Each policy defines a set of classes into which traffic should be divided. The ratio of traffic to a specific class of policy is defined at the entrance to the router by ACL rules (the ACL binding is described in section match access-group), for this purpose, a QoS policy is assigned to the incoming direction. To limit the bandwidth of previously classified traffic and other functions, a QoS policy is assigned to the outbound direction.

The use of a negative form (no) of the command disables QoS service on the interface.

Syntax
[no] qos enable
Parameters

The command does not contain parameters.

Default value

Disabled.

Required privilege level

10

Command mode

CONFIG-GI

CONFIG-TE

CONFIG-SUBIF

CONFIG-QINQ-IF

CONFIG-PORT-CHANNEL

CONFIG-CELLULAR-MODEM

CONFIG-BRIDGE

CONFIG-LOOPBACK

CONFIG-E1

CONFIG-IP4IP4

CONFIG-GRE

CONFIG-SUBTUNNEL

CONFIG-VTI

CONFIG-L2TPV3

CONFIG-PPPOE

CONFIG-PPTP

CONFIG-L2TP

CONFIG-OPENVPN

Example
esr(config-if-gi)# qos enable
CODE

qos map cos-queue

Set the match between 802.1p codes values of incoming packets and outgoing queues.

The use of a negative form (no) of the command sets the default value.

Syntax
qos map cos-queue <COS> to <QUEUE>
no qos map dscp-queue <COS>
Parameters

<COS> – service classifier in 802.1q packet tag, takes values in the range of [0..7];

<QUEUE> – queue identifier, takes values in the range of [1..8].

Default values:

CoS: (0), queue 1

CoS: (1), queue 2

CoS: (2), queue 3

CoS: (3), queue 4

CoS: (4), queue 5

CoS: (5), queue 6

CoS: (6), queue 7

CoS: (7), queue 8

Required privilege level

10

Command mode

CONFIG

Example
esr(config)# qos map cos-queue 7 to 5
CODE

qos map dscp-mutation

Set the match between DSCP codes values of incoming packets and outgoing DSCP codes.

The use of a negative form (no) of the command sets the default value.

Syntax
qos map dscp-mutation <DSCP> to <DSCP>
no qos map dscp-mutation <DSCP>
Parameters

<DSCP> – service classifier in a packet IP header, takes values in the range of [0..63].

Default values:

Set the match between DSCP codes values of incoming packets and outgoing DSCP codes.

Required privilege level

10

Command mode

CONFIG

Example
esr(config)# qos map dscp-mutation 10 to 40
CODE

qos map dscp-queue

Set the match between DSCP codes values of incoming packets and outgoing queues.

The use of a negative form (no) of the command sets the default value.

Syntax
qos map dscp-queue <DSCP> to <QUEUE>
no qos map dscp-queue <DSCP>
Parameters

<DSCP> – service classifier in a packet IP header, takes values in the range of [0..63];

<QUEUE> – internal queue to which packets with the previously described DSCP must be sent takes the value [1..8].

Default values:

DSCP: (0-7), queue 1

DSCP: (8-15), queue 2

DSCP: (16-23), queue 3

DSCP: (24-31), queue 4

DSCP: (32-39), queue 5

DSCP: (40-47), queue 6

DSCP: (48-55), queue 7

DSCP: (56-63), queue 8

Required privilege level

10

Command mode

CONFIG

Example
esr(config)# qos map dscp-queue 42 to 5
CODE

qos queue default

This command sets the default queue number for all traffic except IP in DSCP priorities trust mode in the case of Basic QoS, as well as non-classified traffic in the case of Policy-based QoS.

The use of a negative form (no) of the command sets the default value.

Syntax
qos queue default <QUEUE>
no qos queue default
Parameters

<QUEUE> – queue identifier, takes values in the range of [1..8].

Default value

1

Required privilege level

10

Command mode

CONFIG

Example
esr(config)# qos queue default 3
CODE

qos trust

This command sets the mode of trusting the values of 802.1p and DSCP codes in incoming packets for the Basic QoS mode of the interface.

The use of a negative form (no) of the command sets the default value.

Syntax
qos trust <MODE>
no qos trust
Parameters

<MODE> – trust mode for 802.1p and DSCP codes values, takes one of the following values:

  • dscp – trust mode for DSCP codes values in IP header. Not IP packets will be sent to the default queue (the command is described in section qos queue default);
  • cos – trust mode for 802.1p codes values in 802.1q tag. Untagged packets will be sent to the default queue (the command is described in section qos queue default);
  • cos-dscp – trust mode for DSCP codes values in IP packets and for 802.1p codes values in other packets.
Default value

dscp – trust mode for DSCP codes values in IP header.

Required privilege level

10

Command mode

CONFIG

Example
esr(config)# qos trust cos-dscp
CODE

qos wrr-queue

This command defines weights of corresponded weighted queues.

The use of a negative form (no) of the command sets the default queue weight value.

Syntax
qos wrr-queue <QUEUE> bandwidth <WEIGHT>
no qos wrr-queue <QUEUE>
Parameters

<QUEUE> – queue identifier, takes values in the range of [1..8];

<WEIGHT> – weight value, takes values in the range of [1..255].

Default value

1

Required privilege level

10

Command mode

CONFIG

Example
esr(config)# qos wrr-queue 3 bandwidth 130
CODE

queue-limit

Specify the limited number of packets for a virtual queue.

The use of a negative form (no) of the command sets the default value.

Syntax
queue-limit <QUEUE-LIMIT>
no queue-limit
Parameters

<QUEUE-LIMIT> – limited number of packets in a virtual queue, takes values in the range of [2..4096].

Default value

127

Required privilege level

10

Command mode

CONFIG-POLICY-MAP-CLASS

Example
esr(config-class-policy-map)# queue-limit 200
CODE

random-detect

This command defines RED parameters.

The use of a negative form (no) of the command cancels the assignment.

Syntax
random-detect <LIMIT> <MIN> <MAX> <APS> <APS-NUM> <PROBABILITY>
no random-detect
Parameters

<LIMIT> – limited size of a queue in bytes, takes values of in the range of [1..1000000];

<MIN> – minimum size of a queue in bytes, takes value in the range of [1..1000000];

<MAX> – maximum size of a queue in bytes, takes value in the range of [1..1000000];

<MIN> – minimum size of a queue in bytes, takes value in the range of [1..10000000];

<APS-NUM> – the number of medium-size packets allowed for short-term transmission, takes a value in the range [0..10000000];

<PROBABILITY> – probability of packet drop, takes values of [0..100].

When specifying values, the following rules should be followed:

<MAX> > 2 * <MIN> <LIMIT> >3 * <MAX>

Required privilege level

10

Command mode

CONFIG-POLICY-MAP-CLASS

Example
esr(config-class-policy-map)# random-detect 9000 1500 3000 10
CODE

random-detect queue

This command defines GRED parameters.

The use of a negative form (no) of the command cancels the assignment.

Syntax
random-detect queue <QUEUE-NUM> [ dscp <DSCP> | precedence <IPP> ] <LIMIT> <MIN> <MAX> <APS> <APS-NUM> <PROBABILITY>
no random-detect queue <PRECEDENCE>
Parameters

<QUEUE-NUM> – queue number [1..16];

<DSCP> – service classifier in a packet IP header, takes values in the range of [0..63];

<IPP> – IP Precedence code value, takes values in the range of [0..7];

<PRECEDENCE> – IPPrecendence value [0..7];

<LIMIT> – limited size of a queue in bytes, takes values of in the range of [1..1000000];

<MIN> – minimum size of a queue in bytes, takes value in the range of [1..1000000];

<MAX> – maximum size of a queue in bytes, takes value in the range of [1..1000000];

<MIN> – minimum size of a queue in bytes, takes value in the range of [1..10000000];

<APS-NUM> – the number of medium-size packets allowed for short-term transmission, takes a value in the range [0..10000000];

<PROBABILITY> – probability of packet drop, takes values of [0..100].

When specifying values, the following rules should be followed:

<MAX> > 2 * <MIN>

<LIMIT> > 3 * <MAX>

Required privilege level

10

Command mode

CONFIG-POLICY-MAP-CLASS

Example
esr(config-class-policy-map)# random-detect precedence 2 9000 1500 3000 10
CODE

random-detect queue default

This command defines default queue for GRED mechanism.

The use of a negative form (no) of the command cancels the assignment.

Syntax
random-detect queue default <QUEUE-NUM>
no random-detect queue default <QUEUE-NUM>
Parameters

<QUEUE-NUM> – queue number [1..16];

Required privilege level

10

Command mode

CONFIG-POLICY-MAP-CLASS

Example
esr(config-class-policy-map)# random-detect queue default
CODE

rate-limit

This command limits the incoming traffic speed. The command is relevant only for BasicQoS mode of the interface.

The use of a negative form (no) of the command removes the restriction.

Syntax
rate-limit <BANDWIDTH> [BURST]
no rate-limit
Parameters

<BANDWIDTH> – average traffic rate in Kbps, takes the value of [1..10000000] for TengigabitEthernet interfaces and [1..1000000] for other interfaces and tunnels;

<BURST> – size of the restrictive threshold in KB, takes the value [4..16000]. By default 128 KB.

Default value

Disabled.

Required privilege level

10

Command mode

CONFIG-GI

CONFIG-TE

CONFIG-SUBIF

CONFIG-QINQ-IF

CONFIG-PORT-CHANNEL

CONFIG-CELLULAR-MODEM

CONFIG-BRIDGE

CONFIG-LOOPBACK

CONFIG-E1

CONFIG-IP4IP4

CONFIG-GRE

CONFIG-VTI

CONFIG-L2TPV3

CONFIG-L2TP

CONFIG-PPPOE

CONFIG-PPTP

CONFIG-OPENVPN

Example
esr(config-if-gi)# rate-limit 1670000
CODE

service-policy

This command binds the specified QoS policy to a configurable interface to classify incoming (input) or prioritize outgoing (output) traffic.

The use of a negative form (no) of the command removes a bind of policy to this interface.

Syntax
service-policy { input | output } <NAME>
service-policy dynamic { upstream | downstream | all }
no service-policy { input | output }
Parameters

<NAME> – QoS policy name, set by the string of up to 31 characters;

dynamic — binds a dynamic QoS policy to a configurable interface for prioritizing upstream traffic, downstream traffic, or all traffic. The policy is populated with data received from the RADIUS server.

Required privilege level

10

Command mode

CONFIG-GI

CONFIG-TE

CONFIG-SUBIF

CONFIG-QINQ-IF

CONFIG-PORT-CHANNEL

CONFIG-CELLULAR-MODEM

CONFIG-BRIDGE

CONFIG-LOOPBACK

CONFIG-E1

CONFIG-IP4IP4

CONFIG-GRE

CONFIG-VTI

CONFIG-L2TPV3

CONFIG-SUBTUNNEL (With "input" key only)

CONFIG-PPPOE

CONFIG-PPTP

CONFIG-L2TP

CONFIG-OPENVPN

Example
esr(config-if-gi)# service-policy input input_policy
CODE

service-policy

This command binds QoS policy to class for hierarchical QoS creation.

The use of a negative form (no) of the command removes a bind of policy to the class.

Syntax
[no] service-policy <NAME>
Parameters

<NAME> – policy name, set by the string of up to 31 characters.

Required privilege level

10

Command mode

CONFIG-POLICY-MAP-CLASS

Example
esr(config-class-policy-map)# service-policy input_policy
CODE

set class-default cos

Specify 802.1p priority value which will be set in packets corresponding to the default class (class-default).

The use of a negative form (no) of the command cancels the assignment.

Syntax
set class-default cos <COS>
no set class-default cos
Parameters

<COS> – service classifier in 802.1q packet tag, takes values in the range of [0..7].

Required privilege level

10

Command mode

CONFIG-POLICY-MAP

Example
esr(config-class-policy-map)# set class-default cos 5
CODE

set class-default dscp

Specify DSCP code value which will be set in IP packets corresponding to the default class (class-default).

The use of a negative form (no) of the command cancels the assignment.

Syntax
set class-default dscp <DSCP>
no set class-default dscp
Parameters

<DSCP> – DSCP code value, takes values in the range of [0..63].

Required privilege level

10

Command mode

CONFIG-POLICY-MAP

Example
esr(config-class-map)# set class-default dscp 16
CODE

set class-default ip-precedence

Specify IP Precedence code value which will be set in IP packets corresponding to the default class (class-default).

The use of a negative form (no) of the command cancels the assignment.

Syntax
set class-default ip-precedence <IPP>
no set class-default ip-precedence
Parameters

<IPP> – IP Precedence code value, takes values in the range of [0..7].

Required privilege level

10

Command mode

CONFIG-POLICY-MAP

Example
esr(config-class-map)# set class-default ip-precedence 5
CODE

set cos

Specify 802.1p code value which will be set in packets corresponding to the class being configured.

The use of a negative form (no) of the command cancels the assignment.

Syntax
set cos <COS>
no set cos
Parameters

<COS> – service classifier in 802.1q packet tag, takes values in the range of [0..7].

Required privilege level

10

Command mode

CONFIG-CLASS-MAP

Example
esr(config-class-policy-map)# set cos 5
CODE

set dscp

Specify DSCP code value which will be set in IP packets corresponding to the class being configured.

The use of a negative form (no) of the command cancels the assignment.

Syntax
set dscp <DSCP>
no set dscp
Parameters

<DSCP> – DSCP code value, takes values in the range of [0..63].

Required privilege level

10

Command mode

CONFIG-CLASS-MAP

Example
esr(config-class-map)# set dscp 16
CODE

set ip-precedence

Specify IP Precedence code value which will be set in IP packets corresponding to the class being configured.

The use of a negative form (no) of the command cancels the assignment.

Syntax
set ip-precedence <IPP>
no set ip-precedence
Parameters

<IPP> – IP Precedence code value, takes values in the range of [0..7].

Required privilege level

10

Command mode

CONFIG-CLASS-MAP

Example
esr(config-class-map)# set ip-precedence 5
CODE

set queue

In the current firmware version this functionality is supported only by ESR-1000/1200/1500/1700 routers

This command sets the number of the output QoS queue to which the packets corresponding to the configurable class will be sent.

The use of a negative form (no) of the command cancels the assignment.

Syntax
set queue <QUEUE>
no set queue
Parameters

<QUEUE> – number of the output QoS hardware queue, takes the values [1..8].

Required privilege level

10

Command mode

CONFIG-CLASS-MAP

Example
esr(config-class-map)# set queue 5
CODE

shape auto-distribution

Enable automatic bandwidth allocation between classes without bandwidth configuration, including the default class.

The use of a negative form (no) of the command disables automatic band allocation.

Syntax
[no] shape auto-distribution
Parameters

The command does not contain parameters.

Required privilege level

10

Command mode

CONFIG-POLICY-MAP

Example
esr(config-policy-map)# shape auto-distribution
CODE

shape average

This command sets the guaranteed outgoing traffic bandwidth for a specific class or policy as a whole.

The use of a negative form (no) of the command removes the restriction.

Syntax
shape average <BANDWIDTH> [<BURST>]
no shape average
Parameters

<BANDWIDTH> – committed bandwidth in Kbps, takes the value of [1..10000000];

<BURST> – size of the restrictive threshold in bytes, takes the value:

  • for ESR-10/12V/12VF/14VF/20/21/100/200/1000 – [128..16000000];
  • for ESR-1200/1500 – [1000..4096000].
Default values:

<BANDWIDTH> – none

<BURST> – 128000

Required privilege level

10

Command mode

CONFIG-POLICY-MAP

CONFIG-POLICY-MAP-CLASS

Example
esr(config-policy-map)# shape average 100000 2000
CODE

shape peak

Set the shared outgoing bandwidth for a specific class. The class may occupy the bandwidth if a lower priority class has not occupied its committed bandwidth. The configuration is only relevant for weighted mode classes (WRR).

The use of a negative form (no) of the command removes the restriction.

Syntax
shape peak <BANDWIDTH> [BURST]
no shape peak
Parameters

<BANDWIDTH> – restrictive bandwidth in Kbps, takes the value [1..10000000];

<BURST> – size of the restrictive threshold in bytes, takes the value:

  • for ESR-10/12V/12VF/14VF/20/21/100/200/1000 – [128..16000000];
  • for ESR-1200/1500 – [1000..4096000].
Default values:

<BANDWIDTH> – none

<BURST> – 128000

Required privilege level

10

Command mode

CONFIG-POLICY-MAP-CLASS

Example
esr(config-policy-map)# shape average 100000 2000
CODE

show qos interface shapers

This command displays QoS parameters of the network interfaces.

Syntax
show qos interface shapers <IF>
Parameters

<IF> – an interface or a group of interfaces is specified in the form described in Section Types and naming order of router interfaces.

Required privilege level

1

Command mode

ROOT

Example
esr# show qos interface shapers gigabitethernet 1/0/2
gigabitethernet 1/0/2
Committed rate:  100000 Kbps
Committed burst: 1600 KBytes
CODE

show qos map cos-queue

This command displays information about the compliance of the 802.1p codes in the packets and output queues used in QoS.

Syntax
show qos map cos-queue
Parameters

The command does not contain parameters.

Required privilege level

1

Command mode

ROOT

Example
esr# show qos map dscp-queue
d1 : d2   0  1  2  3  4  5  6  7
-------   -------------------------
0         01 02 03 04 05 06 07 08
CODE

show qos map dscp-mutation

This command displays information about the correspondence of DSCP codes in batches and DSCP codes after changes.

Syntax
show qos map dscp-mutation
Parameters

The command does not contain parameters.

Required privilege level

1

Command mode

ROOT

Example
esr# show qos map dscp-mutation
d1 : d2   0  1  2  3  4  5  6  7  8  9
-------   -------------------------------
0         00 01 02 03 04 05 06 07 08 09
1         10 11 12 13 14 15 16 17 18 19
2         20 21 22 23 24 25 26 27 28 29
3         30 31 32 33 34 35 36 37 38 39
4         40 41 42 43 44 45 46 47 48 49
5         50 51 52 53 54 55 56 57 58 59
6         60 61 62 63
CODE

show qos map dscp-queue

This command displays information about the compliance of the DSCP codes in the packets and output queues used in QoS.

Syntax
show qos map dscp-queue
Parameters

The command does not contain parameters.

Required privilege level

1

Command mode

ROOT

Example
esr# show qos map dscp-queue
d1 : d2   0  1  2  3  4  5  6  7  8  9
-------   -------------------------------
0         01 01 01 01 01 01 01 01 02 02
1         02 02 02 02 02 02 03 03 03 03
2         03 03 03 03 04 04 04 04 04 04
3         04 04 05 05 05 05 05 05 05 05
4         06 06 06 06 06 06 06 06 07 07
5         07 07 07 07 07 07 08 08 08 08
6         08 08 08 08
CODE

show qos policy binding

This command displays the binded QoS policy to specified interface to classify incoming (input) or prioritize outgoing (output) traffic.

Syntax
show qos policy binding [ <IF> | <TUN> ]
Parameters

<IF> – an interface or a group of interfaces is specified in the form described in Section Types and naming order of router interfaces;

<TUN> – the name of the tunnel is specified as described in section Types and naming order of router tunnels.

Required privilege level

1

Command mode

ROOT

Example
esr# show qos policy binding gi1/0/1
gigabitethernet 1/0/1
Output: parent
    Class: class1
        Policy: child1
            Class: class3
    Class: class2
        Policy: child2
CODE

show qos policy configuration

This command displays configuration of specified QoS polocy.

Syntax
show qos policy configuration <NAME>
Parameters

<NAME> – policy name, set by the string of up to 31 characters.

Required privilege level

1

Command mode

ROOT

Example
esr# show qos policy configuration parent
Policy-map: parent
    Shape average:
        Bandwidth:          --
        Burst:              128
    Class: class1
        Set:
            COS:            --
            DSCP:           --
            IP-Precedence:  --
            Queue:          --
        Match access group: --
        Shape average:
            Bandwidth:      --
            Burst:          128
        Shape peak:
            Bandwidth:      --
            Burst:          128
        Mode:               FIFO
        Priority class:     8
        Queue limit:        127
        Service policy:     child1
    Class: class2
        Set:
            COS:            --
            DSCP:           --
            IP-Precedence:  --
            Queue:          --
        Match access group: --
        Shape average:
            Bandwidth:      --
            Burst:          128
        Shape peak:
            Bandwidth:      --
            Burst:          128
        Mode:               FIFO
        Priority class:     8
        Queue limit:        127
        Service policy:     child2
CODE

show qos policy statistics

This command displays statistics on sent and dropped packets. The command is relevant only for BasicQoS mode of the interface.

Syntax
show qos policy statistics [ <IF> | <TUN> ]
Parameters

<IF> – an interface or a group of interfaces is specified in the form described in Section Types and naming order of router interfaces;

<TUN> – the name of the tunnel is specified as described in section Types and naming order of router tunnels.

Required privilege level

1

Command mode

ROOT

Example
esr#  sh qos policy statistics
gigabitethernet 1/0/2
   Policy pom-1
   Input policy root
   Input class root
   Shape: bytes 750947679, packets 496667, drops 1002200
       Class clm-1
           Shape: bytes 750946896, packets 496658, drops 1002200
       Class class-default
           Shape: bytes 783, packets 9, drops 0
CODE

show qos statistics

This command displays statistics on sent and dropped packets. The command is relevant only for BasicQoS mode of the interface.

Syntax
show qos statistics [ <IF> | <TUN> ]
Parameters

<IF> – an interface or a group of interfaces is specified in the form described in Section Types and naming order of router interfaces;

<TUN> – the name of the tunnel is specified as described in section Types and naming order of router tunnels.

Required privilege level

1

Command mode

ROOT

Example
esr# show qos statistics vti 2
vti 2
Queue   Bytes                  Packets                Drops
-----   --------------------   --------------------   --------------------
1       0                      0                      0
2       0                      0                      0
3       0                      0                      0
4       0                      0                      0
5       0                      0                      0
6       964073836      1413598          0
7       121389180      177990            1235497
8       0                      0                      0
CODE

show qos tunnel shapers

This command displays QoS parameters of the tunnels.

Syntax
show qos tunnel shapers <TUN>
Parameters

<TUN> – the name of the tunnel is specified as described in section Types and naming order of router tunnels.

Required privilege level

1

Command mode

ROOT

Example
esr# show qos tunnel shapers vti 2
vti 2
qid   Target        Target
      Committed     Committed
      Rate [Kbps]   Burst [KBytes]
---   -----------   --------------
1     10000         128
2     6000          128
CODE

traffic-shape

Set the outgoing traffic rate limiting for a certain queue or interface in total. The command is relevant only for BasicQoS mode of the interface.

The use of a negative form (no) of the command removes the restriction.

Syntax
traffic-shape { <BANDWIDTH> [BURST] | queue <QUEUE> <BANDWIDTH> [BURST] }
no traffic-shape [ queue <QUEUE> ]
Parameters

<QUEUE> – queue identifier, takes values in the range of [1..8];

<BANDWIDTH> – average traffic rate in Kbps, may take values:

  • for gigabitethernet, loopback, e1 interfaces: [1..10000000];
  • for tengigabitethernet interfaces: [3000..100000000];
  • for fortyengigabitethernet interfaces: [3000..40000000];
  • for loopback interfaces:

<BURST> – size of the restrictive threshold in KB, takes the value [4..16000]. It is only possible to specify a value that is a multiple of 4.

Default values:

<BANDWIDTH> – none

<BURST> – 128

Required privilege level

10

Command mode

CONFIG-GI

CONFIG-TE

CONFIG-SUBIF

CONFIG-QINQ-IF

CONFIG-PORT-CHANNEL

CONFIG-CELLULAR-MODEM

CONFIG-BRIDGE

CONFIG-LOOPBACK

CONFIG-E1

CONFIG-IP4IP4

CONFIG-GRE

CONFIG-VTI

CONFIG-L2TPV3

CONFIG-PPPOE

CONFIG-PPTP

CONFIG-L2TP

CONFIG-OPENVPN

Example
esr(config-if)# traffic-shape queue 3 100000 2000
CODE