8.12. QoS Queue Group Template Command Reference

8.12.1. Command Hierarchies

8.12.1.1. Configuring Egress Queue Group Templates

config
— qos
egress
queue-group queue-group-name [create]
— no queue-group queue-group-name
description description-string
fc fc-name [create]
— no fc fc-name
queue queue-id
— no queue
packet-byte-offset {add add-bytes | subtract sub-bytes}
[no] queue queue-id
adaptation-rule [pir {max | min | closest}]
burst-limit size [bytes | kilobytes]
mbs {size [kilobytes | bytes] | default}
— no mbs
rate pir-rate
— no rate
slope-policy hsmda-slope-policy-name
wrr-weight weight
— no wrr-weight
wrr-policy wrr-policy-name
— no wrr-policy
policer policer-id [create]
— no policer policer-id
adaptation-rule [pir {max | min | closest}] [cir {max | min | closest}]
adv-config-policy adv-config-policy-name
cbs {size [bytes | kilobytes] | default}
— no cbs
description description-string
high-prio-only percent-of-mbs
mbs {size [bytes | kilobytes] | default}
— no mbs
packet-byte-offset {add add-bytes | subtract sub-bytes}
parent {root | arbiter-name} [level level] [weight weight-within-level]
— no parent
rate {max | pir-rate} [cir {max | cir-rate}]
— no rate
stat-mode {no-stats | minimal | offered-profile-no-cir | offered-profile-cir | offered-total-cir | offered-limited-capped-cir | offered-profile-capped-cir | offered-total-cir-exceed | offered-four-profile-no-cir | offered-total-cir-four-profile}
— no stat-mode
queue queue-id [queue-type] [create]
— no queue queue-id
adaptation-rule [pir adaptation-rule] [cir adaptation-rule]
adv-config-policy adv-config-policy-name
burst-limit {size [bytes | kilobytes] | default}
cbs {size-in-kbytes | default}
— no cbs
exceed
high
low
[no] dynamic-mbs
mbs {size [bytes | kilobytes] | default}
— no mbs
packet-byte-offset {add add-bytes | subtract sub-bytes}
parent scheduler-name [weight weight] [level level] [cir-weight cir-weight] [cir-level cir-level]
— no parent
percent-rate pir-percent [cir cir-percent]
port-parent [weight weight] [level level] [cir-weight cir-weight] [cir-level cir-level]
queue-delay delay
rate pir-rate [cir cir-rate]
— no rate
wred-queue [policy slope-policy-name] [mode mode] [slope-usage slope-usage]
— no wred-queue

8.12.1.2. Configuring Ingress Queue Group Templates

config
— qos
queue-group queue-group-name [create]
— no queue-group queue-group-name
description description-string
policer policer-id [create]
— no policer policer-id
adaptation-rule [pir adaptation-rule] [cir adaptation-rule]
adv-config-policy adv-config-policy-name
cbs {size [bytes | kilobytes] | default}
— no cbs
description description-string
high-prio-only percent-of-mbs
mbs {size [bytes | kilobytes] | default}
— no mbs
packet-byte-offset {add add-bytes | subtract sub-bytes}
parent {root | arbiter-name} [level level] [weight weight-within-level]
— no parent
rate {max | pir-rate} [cir {max | cir-rate}]
stat-mode {no-stats | minimal | offered-profile-no-cir | offered-priority-no-cir | offered-limited-profile-cir | offered-profile-cir | offered-priority-cir | offered-total-cir | offered-profile-capped-cir | offered-limited-capped-cir}
— no stat-mode
queue queue-id [multipoint] [queue-type] [queue-mode] [create]
— no queue queue-id
adaptation-rule [pir adaptation-rule] [cir {max | min | closest}] [fir {max | min | closest}]
adv-config-policy adv-config-policy-name
burst-limit {size [bytes | kilobytes] | default}
cbs {size-in-kbytes | default}
— no cbs
low
mbs {size [bytes | kilobytes] | default}
— no mbs
packet-byte-offset {add add-bytes | subtract sub-bytes}
parent scheduler-name [weight weight] [level level] [cir-weight cir-weight] [cir-level cir-level]
— no parent
rate pir-rate [cir cir-rate] [fir fir-rate]
rate pir-rate police
— no rate

8.12.1.3. Configuring VXLAN VNI Queue Group Redirection

config
— qos
queue-group-redirect-list redirect-list-name [create]
— no queue-group-redirect-list redirect-list-name
match field-value instance instance-id
— no match field-value
type redirect-list-type
— no type

8.12.1.4. Show Commands

show
— qos
queue-group [queue-group-name] {ingress | egress} [association | detail]
queue-group summary
queue-group-redirect-list [policy-name] [association | detail]
show
port queue-group [{ingress | egress}] [queue-group-name] [{access | network}] [instance instance-id] [{statistics | associations | queue-depth [queue queue-id]}]
port queue-group summary

8.12.1.5. Monitor Commands

For more information about monitor commands, refer to the 7450 ESS, 7750 SR, 7950 XRS, and VSR Basic System Configuration Guide for command usage and CLI syntax.

monitor
card slot-number fp fp-number ingress {access | network} queue-group queue-group-name instance instance-id [interval seconds] [repeat repeat] policer policer-id [absolute | percent-rate [reference-rate]]
— qos
— arbiter-stats
card slot-number fp fp-number queue-group queue-group-name instance instance-id [ingress] [access | network] [interval seconds] [repeat repeat] [absolute | percent-rate [reference-rate]] [arbiter {root | name}]
port port-id egress network queue-group queue-group-name instance instance-id [interval seconds] [repeat repeat] [absolute | rate] [arbiter {root | name}]
— scheduler-stats
port port-id queue-group queue-group-name [ingress | egress] [interval seconds] [repeat repeat] [absolute | rate] [access | network] [instance instance-id]
port port-id vport name [interval seconds] [repeat repeat] [absolute | rate]

8.12.2. Command Descriptions

8.12.2.1. Configuration Commands

8.12.2.1.1. Generic Commands

description

Syntax 
description description-string
no description
Context 
config>qos>qgrps>egr>queue-group
config>qos>qgrps>ing>>qgrps>ing>queue-group
config>qos>qgrps>egr>qgrp>policer
config>qos>qgrps>ing>qgrp>policer
Description 

This command creates a text description stored in the configuration file for a configuration context. The description command associates a text string with a configuration context to help identify the content in the configuration file.

The no form of this command removes the string from the configuration.

Parameters 
description-string—
The description character string. Allowed values are any string up to 80 characters, composed of printable, 7-bit ASCII characters. If the string contains special characters (#, $, spaces, etc.), the entire string must be enclosed within double quotes.

8.12.2.1.2. Queue Group Commands

queue-group-templates

Syntax 
queue-group-templates
Context 
config>qos
Description 

This command enables the context to define ingress and egress queue group templates.

ingress

Syntax 
ingress
Context 
config>qos>queue-group-templates
Description 

This command enables the context to create ingress queue group templates. Ingress queue group templates can be applied to ingress ports to create an ingress queue group of the same name.

An ingress template must be created for a group-name prior to creating a queue group with the same name on an ingress port.

queue-group

Syntax 
queue-group queue-group-name [create]
no queue-group queue-group-name
Context 
config>qos>qgrps>egress
config>qos>qgrps>ingress
Description 

This command creates a queue group template. The system does not maintain default queue groups or queue group templates. Each queue group template used in the system must be explicitly created.

The no form of this command removes the specified queue group template from the system. If the queue group template is currently in use by an ingress port, the command will fail. If queue-group-name does not exist, the command has no effect and does not return an error.

Parameters 
queue-group-name—
Specifies the name of the queue group template up to 32 characters. Each ingress queue group template must be uniquely named within the system. Multiple ingress queue group templates may not share the same name. An ingress and egress queue group template may share the same name.
create—
Keyword used to create the queue group instance. The create keyword requirement can be enabled/disabled in the environment>create context.

policer

Syntax 
policer policer-id [create]
no policer policer-id
Context 
config>qos>qgrps>ing>queue-group
Description 

This command is used in ingress and egress queue-group templates to create, modify, or delete a policer.

Policers are created and used in a similar manner to queues. The policer ID space is separate from the queue ID space, allowing both a queue and a policer to share the same ID. The ingress queue-group template may have up to 32 policers (numbered 1 through 32) and may be defined, while the egress queue-group template supports a maximum of eight (numbered 1 through 8). While a policer may be defined in a queue-group template, it is not actually created until the queue-group template is instantiated on the ingress context of a forwarding plane or on the egress context of a port.

When a policer is created, the policer's metering rate and profiling rates may be defined, as well as the policer's maximum and committed burst sizes (MBS and CBS, respectively). Unlike queues that have dedicated counters, policers allow various stat-mode settings that define the counters that will be associated with the policer. Another supported feature—packet-byte-offset—provides a policer with the ability to modify the size of each packet based on a defined number of bytes.

When a policer is created, it cannot be deleted from the queue-group template unless any forwarding classes that are redirected to the policer are first removed.

The no version of this command deletes the policer.

Parameters 
policer-id—
The policer-id must be specified when executing the policer command. If the specified ID already exists, the system enters that policer's context to allow the policer’s parameters to be modified. If the ID does not exist and is within the allowed range for the QoS policy type, a context for the policer ID will be created (depending on the system's current create keyword requirements, which may require the create keyword to actually add the new policer ID to the QoS policy) and the system enters that new policer’s context for possible parameter modification.
Values—
1 to 32

 

adaptation-rule

Syntax 
adaptation-rule [pir {max | min | closest}] [cir {max | min | closest}]
no adaptation-rule
Context 
config>qos>queue-group-templates>egress>queue-group>policer
 
Description 

This command defines the method used by the system to derive the operational CIR and PIR settings when the policer is provisioned in hardware. For the CIR and PIR parameters individually, the system attempts to find the best operational rate depending on the defined constraint.

When configured on an egress HSQ queue group queue, the cir keywords are ignored. This command is ignored for egress HSQ queue group queues which are attached to an HS WRR group within an associated HS attachment policy. In this case, the configuration of the adaptation rule is performed under the hs-wrr-group within the egress queue group template.

When a specific adaptation-rule is removed, the default constraints for pir and cir apply.

The no form of this command removes any explicitly defined constraints used to derive the operational CIR and PIR created by the application of the policy.

Default 

adaptation-rule pir closest cir closest

Parameters 
pir—
Defines the constraints enforced when adapting the policer’s PIR. The pir parameter requires a qualifier that defines the constraint used when deriving the operational PIR for the policer. When the pir parameter is not specified, the default constraint applies.
cir—
Defines the constraints enforced when adapting the policer’s CIR. The cir parameter requires a qualifier that defines the constraint used when deriving the operational CIR for the policer. When the cir parameter is not specified, the default constraint applies.
max—
Specifies that the operational rate for the policer will be equal to or less than the requested rate.
min—
Specifies that the operational rate for the policer will be equal to or greater than the requested rate.
closest—
Specifies that the operational rate for the policer will be the rate closest to the requested rate.

adv-config-policy

Syntax 
adv-config-policy adv-config-policy-name
no adv-config-policy
Context 
config>qos>qgrps>egr>qgrp>policer
config>qos>qgrps>egr>qgrp>queue
config>qos>qgrps>ing>qgrp>policer
config>qos>qgrps>ing>qgrp>queue
Description 

This command specifies the name of the advanced configuration policy to be applied with this policer.

Parameters 
adv-config-policy-name—
Specifies an existing advanced configuration policy up to 32 characters.

cbs

Syntax 
cbs {size-in-kbytes | default}
no cbs
Context 
config>qos>qgrps>egr>qgrp>policer
config>qos>qgrps>ing>qgrp>policer
Description 

The cbs command is used to define the default committed buffer size for the template queue or the CBS for the template policer. Overall, the cbs command follows the same behavior and provisioning characteristics as the cbs command in the SAP ingress and egress QoS policy.

The no form of this command restores the default CBS size to the template policer.

Default 

default

Parameters 
size-in-kbytes—
For the queues, the size parameter is an integer expression of the number of kilobytes reserved for the queue. If a value of 10 kbytes is desired, enter the value 10. A value of 0 specifies that no reserved buffers are required by the queue (a minimal reserved size can still be applied for scheduling purposes). For policers, the size parameter is an integer expression of the number of kilobytes for the policer CBS.
Values—
0 to 16777216 or default
Minimum default value: 16 Mbytes when CIR equals max or is greater than or equal to the FP capacity (this overrides an explicit configured CBS value); otherwise, 10 ms volume of traffic for a configured non-zero/non-max CIR capped to 3968 kbytes, with a minimum of 256 bytes.

 

high-prio-only

Syntax 
high-prio-only percent-of-mbs
no high-prio-only
Context 
config>qos>qgrps>egr>qgrp>policer
config>qos>qgrps>ing>qgrp>policer
Description 

This command is used to configure the percentage of the policer’s PIR leaky bucket's MBS (maximum burst size) that is reserved for high-priority traffic. While the mbs value defines the policer’s high-priority violate threshold, the percentage value defined is applied to the mbs value to derive the bucket’s low-priority violate threshold. See the mbs command details for information on which types of traffic is associated with each violate threshold.

Parameters 
percent-of-mbs—
The percent-of-mbs parameter is required when specifying high-prio-only and is expressed as a percentage.
Values—
0 to 100

 

Default—
10

mbs

Syntax 
mbs {size [bytes | kilobytes] | default}
no mbs
Context 
config>qos>qgrps>egr>qgrp>policer
config>qos>qgrps>ing>qgrp>policer
Description 

This command specifies the default maximum buffer size for the template queue in bytes or kilobytes.

The MBS value is used by a queue to determine whether it has exhausted all of its buffers while enqueuing packets. When the queue has exceeded the amount of buffers allowed by MBS, all packets are discarded until packets have been drained from the queue.

The port>ethernet>access>ingress>queue-group and port>ethernet>access>egress>queue-group contexts for mbs provides a mechanism for overriding the default maximum size for the queue.

The sum of the MBS for all queues on an ingress access port can oversubscribe the total amount of buffering available. When congestion occurs and buffers become scarce, access to buffers is controlled by the RED slope that a packet is associated with. A queue that has not exceeded its MBS size is not guaranteed that a buffer will be available when needed or that the packet’s RED slope will not force the discard of the packet. Setting proper CBS parameters and controlling CBS oversubscription is one major safeguard against queue starvation (when a queue does not receive its fair share of buffers). Another is properly setting the RED slope parameters for the needs of services on this port or channel.

When configured on an egress queue group queue, this command and the queue-delay command are mutually exclusive. In order to change between the mbs and queue-delay parameters, the current parameter must be removed before adding the new parameter; that is, changing from mbs to queue-delay requires a no mbs before the queue-delay is configured and changing from queue-delay to mbs requires a no queue-delay before the mbs is configured. If queue-delay is configured for an egress queue group queue, it is not possible to override the MBS for that queue.

For policers, this command is used to configure the policer’s PIR leaky bucket’s high-priority violate threshold. The high-prio-only command is applied to the MBS value to derive the bucket’s low-priority violate threshold.

At ingress, trusted in-profile packets and untrusted high-priority packets use the policer’s high-priority violate threshold while trusted out-of-profile and untrusted low-priority packets use the policer's low-priority violate threshold.

At egress, inplus-profile and in-profile packets use the policer’s high-priority violate threshold and out-of-profile packets use the policer's low-priority violate threshold. Exceed-profile packets are discarded unless enable-exceed-pir is configured, in which case they are forwarded.

The PIR bucket’s violate threshold represents the maximum burst tolerance allowed by the policer. If the policer's offered rate is equal to or less than the policer's defined rate, the PIR bucket depth hovers around the 0 depth with spikes up to the maximum packet size in the offered load. If the offered rate increases beyond the metering rate, the amount of data allowed above the rate is capped by the threshold. The low-priority violate threshold provides a smaller burst size for the lower priority traffic associated with the policer. Since all lower priority traffic is discarded at the lower burst tolerance size, the remaining burst tolerance defined by high-prio-only is available for the higher priority traffic.

The policer’s mbs size defined in the QoS policy may be overridden on an SLA profile or SAP where the policy is applied.

The no form of this command returns the MBS size assigned to the queue to the value.

Default 

default

Parameters 
size —
For queues, the size parameter is an integer expression of the maximum number of bytes or kilobytes of buffering allowed for the queue. For a value of 100 kbytes, enter the value 100. A value of 0 causes the queue to discard all packets. For policers, the size parameter is an integer expression of the maximum number of bytes for the policer's MBS. The queue MBS maximum value used is constrained by the pool size in which the queue exists and by the shared pool space in the corresponding megapool.
Values—
0 to 16777216
Default value: 16 Mbytes when PIR equals max or is greater than or equal to the FP capacity (this overrides an explicitly configured MBS value); otherwise, 10 ms volume of traffic for a configured non-zero/non-max PIR capped to 3968 kbytes, with a minimum of 256 bytes.

 

[bytes | kilobytes]—
Select bytes or kilobytes.
Default—
kilobytes
default—
Sets the MBS to its default value.

packet-byte-offset

Syntax 
packet-byte-offset {add add-bytes | subtract sub-bytes}
no packet-byte-offset
Context 
config>qos>qgrps>ing>qgrp>policer
Description 

This command configures a packet byte offset for the QoS ingress queue-group policer.

Default 

no packet-byte-offset

Parameters 
add-bytes—
Specifies the number of bytes to add as the offset amount.
Values—
0 to 31

 

sub-bytes—
Specifies the number of bytes to add as the offset amount.
Values—
1 to 32

 

parent

Syntax 
parent {root | arbiter-name} [level level] [weight weight-within-level]
no parent
Context 
config>qos>qgrps>egr>qgrp>policer
config>qos>qgrps>ing>qgrp>policer
Description 

This command is used to create a child-to-parent mapping between each instance of the policer and either the root arbiter or a specific tiered arbiter on the object where the policy is applied. Defining a parent association for the policer causes the policer to compete for the parent policer’s available bandwidth with other child policers mapped to the policer control hierarchy.

Policer control hierarchies may be created on SAPs or on a subscriber or multiservice site context. To create a policer control hierarchy on an ingress or egress SAP context, a policer-control-policy must be applied to the SAP. When applied, the system will create a parent policer that is bandwidth limited by the policy’s max-rate value under the root arbiter. The root arbiter in the policy also provides the information used to determine the various priority level discard-unfair and discard-all thresholds. Besides the root arbiter, the policy may also contain user-defined tiered arbiters that provide arbitrary bandwidth control for subsets of child policers that are either directly or indirectly parented by the arbiter.

When the QoS policy containing the policer with a parent mapping to an arbiter name exists on the SAP, the system will scan the available arbiters on the SAP. If an arbiter exists with the appropriate name, the policer to arbiter association is created. If the specified arbiter does not exist either because a policer-control-policy is not currently applied to the SAP or the arbiter name does not exist within the applied policy, the policer is placed in an orphan state. Orphan policers operate as if they are not parented and are not subject to any bandwidth constraints other than their own PIR. When a policer enters the orphan state, it is flagged as operationally degraded due to the fact that it is not operating as intended and a trap is generated. Whenever a policer-control-policy is added to the SAP or the existing policy is modified, the SAP's policer's parenting configurations must be reevaluated. If an orphan policer becomes parented, the degraded flag is cleared and a resulting trap is generated.

For subscribers, the policer control hierarchy is created through the policer-control-policy applied to the sub-profile used by the subscriber. A unique policer control hierarchy is created for each subscriber associated with the sub-profile. The QoS policy containing the policer with the parenting command comes into play through the subscriber sla-profile that references the QoS policy. The combining of the sub-profile and the sla-profile at the subscriber level provides the system with the proper information to create the policer control hierarchy instance for the subscriber. This functionality is available only for the 7450 ESS and 7750 SR.

Executing the parent command will fail if:

  1. The policer’s stat-mode in the QoS policy is set to no-stats
  2. A stat-mode no-stats override exists on an instance of the policer on a SAP or subscriber or multiservice site context

A policer with a parent command applied cannot be configured with stat-mode no-stats in either the QoS policy or as an override on an instance of the policer.

When a policer is successfully parented to an arbiter, the parent commands level and weight parameters are used to determine at what priority level and at which weight in the priority level that the child policer competes with other children (policers or other arbiters) for bandwidth.

The no form of this command is used to remove the parent association from all instances of the policer.

Parameters 
{root | arbiter-name}—
When the parent command is executed, either the keyword root or an arbiter-name must be specified.
Default—
root
root—
The root keyword specifies that the policer is intended to become a child to the root arbiter where an instance of the policer is created. If the root arbiter does not exist, the policer will be placed in the orphan state.
arbiter-name—
The arbiter-name parameter specifies that the policer is intended to become a child to one of the tiered arbiters with the given arbiter-name where an instance of the policer is created. If the specified arbiter-name does not exist, the policer will be placed in the orphan state.
weight weight-within-level
The weight weight-within-level keyword and parameter are optional when executing the parent command. When weight is not specified, a default level of 1 is used in the parent arbiters priority level. When weight is specified, the weight-within-level parameter must be specified as an integer value from 1 through 100.
Default—
1

profile-capped

Syntax 
[no] profile-capped
Context 
config>qos>qgrps>egr>qgrp>policer
config>qos>qgrps>ing>qgrp>policer
Description 

This command enables a limit on the profile.

Default 

no profile-capped

rate

Syntax 
rate {max | pir-rate} [cir {max | cir-rate}]
no rate
Context 
config>qos>qgrps>egr>qgrp>policer
config>qos>qgrps>ing>qgrp>policer
Description 

This command is used to configure the policer’s metering and optional profiling rates. The metering rate is used by the system to configure the policer’s PIR leaky bucket’s decrement rate while the profiling rate configures the policer’s CIR leaky bucket’s decrement rate. The decrement function empties the bucket while packets applied to the bucket attempt to fill it based on each packet’s size. If the bucket fills faster than how much is decremented per packet, the bucket’s depth eventually reaches its exceed (CIR) or violate (PIR) threshold. The cbs, mbs, and high-prio-only commands are used to configure the policer’s PIR and CIR thresholds.

If a packet arrives at the policer while the bucket’s depth is less than the threshold associated with the packet, the packet is considered to be conforming to the bucket’s rate. If the bucket depth is equal to or greater than the threshold, the packet is considered to be in the exception state. For the CIR bucket, the exception state is exceeding the CIR rate while the PIR bucket's exception state is violating the PIR bucket rate. If the packet is violating the PIR, the packet is marked red and will be discarded. If the packet is not red, it may be green or yellow, based on the conforming or exceeding state from the CIR bucket.

When a packet is red, neither the PIR nor CIR bucket depths are incremented by the packets size. When the packet is yellow, the PIR bucket is incremented by the packet size, but the CIR bucket is not. When the packet is green, both the PIR and CIR buckets are incremented by the packet size. This ensures that conforming packets impact the bucket depth while exceeding or violating packets do not.

The policer’s adaptation-rule command settings are used by the system to convert the specified rates into hardware timers and decrement values for the policer’s buckets.

By default, the policer’s metering rate is max and the profiling rate is 0 kb/s (all packets out-of-profile).

The no form of this command is used to restore the default metering and profiling rate to a policer.

Parameters 
{max | pir-rate}—
Specifying the keyword max or an explicit pir-rate parameter directly following the rate command is required and identifies the policer’s metering rate for the PIR leaky bucket. When the policer is first created, the metering rate defaults to max. The pir-rate value must be expressed as an integer and defines the rate in kilobits-per-second. The integer value is multiplied by 1,000 to derive the actual rate in bits-per-second. When max is specified, the maximum policer rate used will be equal to the maximum capacity of the card on which the policer is configured. If the policer rate is set to a value larger than the maximum rate possible for the card, then the PIR used is equivalent to max.
Values—
max, 1 to 2000000000

 

cir {max | cir-rate}—
The optional cir keyword is used to override the default CIR rate of the policer. Specifying the keyword max or an explicit cir-rate parameter directly following the cir keyword is required and identifies the policer’s profiling rate for the CIR leaky bucket. When the policer is first created, the profiling rate defaults to 0 kb/s. The cir-rate value must be expressed as an integer and defines the rate in kilobits-per-second. The integer value is multiplied by 1,000 to derive the actual rate in bits-per-second. When max is specified, the maximum policer rate used will be equal to the maximum capacity of the card on which the policer is configured. If the policer rate is set to a value larger than the maximum rate possible for the card, then the CIR used is equivalent to max.
Values—
max, 0 to 2000000000

 

stat-mode

Syntax 
stat-mode {no-stats | minimal | offered-profile-no-cir | offered-priority-no-cir | offered-profile-cir | offered-priority-cir | offered-total-cir | offered-limited-profile-cir | offered-profile-capped-cir | offered-limited-capped-cir}
no stat mode
Context 
config>qos>qgrps>ing>qgrp>policer
Description 

This command is used to configure the forwarding plane counters that allow offered, forwarded, and dropped accounting to occur for the policer. An ingress policer has multiple types of offered packets (explicit in-profile, explicit out-of-profile, uncolored, high-priority or low-priority) and each of these offered types is interacting with the policer’s metering and profiling functions resulting in colored output packets (green, yellow, and red). Due to the large number of policers, it is not economical to allocate counters in the forwarding plane for all possible offered packet types and output conditions. Many policers, for example, will not be configured with a CIR profiling rate and not all policers will receive explicitly profiled offered packets. The stat-mode command allows provisioning of the number of counters each policer requires and how the offered packet types and output conditions should be mapped to the counters.

While a no-stats mode is supported that prevents any packet accounting, the use of the policer’s parent command requires that the policer's stat-mode be set at least to the minimal setting so that offered stats are available for the policer's Fair Information Rate (FIR) to be calculated. When a policer has been made a child to a parent policer, the stat-mode cannot be changed to no-stats unless the policer parenting is first removed.

Each time the policer’s stat-mode is changed, any previous counter values are lost and any new counters are set to zero.

Each mode uses a certain number of counters per policer instance that are allocated from the forwarding plane’s policer counter resources. The total/allocated/free stats can be viewed by using the tools dump resource-usage card fp command. If insufficient counters exist to implement a mode on any policer instance, the stat-mode change will fail and the previous mode will continue unaffected for all instances of the policer.

The stat-modes are described in Table 60.

Table 60:   Stat Mode Descriptions 

Stat Mode

Stat Resources

Traffic Counters (Packet/Octets)

Comments

Offered

Dropped/Forwarded

no-stats

0

None

None

Minimal

1

Single counter entering policer

Single counter for dropped/forwarded exiting policer

offered-profile-no-cir

2

In/out entering policer

In/out entering policer

Intended for when the policer does not change the profile of packets. Includes only in- and out-of-profile.

offered-priority-no-cir

2

High/low entering policer

High/low entering policer

Intended for when only packet priority stats are required.

offered-profile-cir

4

In/out/uncolored entering policer

In/out exiting policer

Intended for when the policer can change the profile of packets to in- and out-of-profile.

offered-priority-cir

4

High/low entering policer

In/out exiting policer

Intended for when packet priority entering the policer and profile exiting the policer is required.

offered-total-cir

2

Single counter entering policer

In/out exiting policer

offered-limited-profile-cir

3

Out/uncolored entering policer

In/out exiting policer

Intended for when the policer can change the profile of packet to in- and out-of-profile. The information is limited compared to offered-profile-capped-cir with the benefit of using one less stat resource.

offered-profile-capped-cir

5

In/out/uncolored entering policer

In/out exiting policer

Intended for when the policer has profile-capped configured.

offered-limited-capped-cir

4

In/uncolored entering policer

In/out exiting policer

Intended for when the policer has profile-capped configured. The information is limited compared to offered-profile-capped-cir with the benefit of using one less stat resource.

The default stat-mode when a policer is created within the policy is minimal.

The stat-mode setting defined for the policer in the QoS policy may be overridden on an sla-profile or SAP where the policy is applied. If insufficient policer counter resources exist to implement the override, the stat-mode override command will fail. The previous stat-mode setting active for the policer will continue to be used by the policer.

The no form of this command attempts to return the policer’s stat-mode setting to minimal. The command will fail if insufficient policer counter resources exist to implement minimal where the QoS policer is currently applied and has a forwarding class mapping.

Parameters 
no-stats—
Counter resource allocation: 0

The policer does not have any forwarding plane counters allocated and cannot provide offered, dropped and forwarded statistics. A policer using no-stats cannot be a child to a parent policer and the policer’s parent command will fail.

When collect-stats is enabled, no statistics are generated.

minimal—
Counter resource allocation: 1

This stat-mode provides the minimal accounting resource usage and counter information, and includes the total offered, dropped and forwarded packet and octet counters for traffic entering (offered) and exiting (dropped/forwarded) the policer.

The default stat-mode for a policer is minimal. The minimal mode allocates 1 forwarding plane offered counter and one traffic manager discard counter. The forwarding counter is derived by subtracting the discard counter from the offered counter. The counters do not differentiate possible offered types (profile or priority) and do not count in-profile or out-of-profile output. This does not prevent the policer from supporting different offered packet types and does not prevent the policer from supporting a CIR rate.

This counter mode is useful when only the most basic accounting information is required.

The counters displayed in the show output and those collected when collect-stats is enabled (the actual fields collected depends on the record configured in the applied accounting policy) are described in Table 61.

Table 61:  Ingress Accounting Statistics Collected in minimal stat-mode  

Show Output

Accounting Stats Collected

Field

Field Description

Off. All

apo

AllPacketsOffered

aoo

AllOctetsOffered

Dro. All

apd

AllPacketsDropped

aod

AllOctetsDropped

For. All

apf

AllPacketsForwarded

aof

AllOctetsForwarded

offered-profile-no-cir —
Counter resource allocation: 2

This stat-mode provides offered, dropped and forwarded packet and octet counters corresponding to the profile of traffic entering the policer.

The offered-profile-no-cir mode allocates two forwarding plane offered counters and two traffic manager discard counters.

The offered-profile-no-cir mode is most useful when the policer is receiving only in-profile and out-of-profile premarked (and trusted) packets. It is expected that, in this instance, a CIR rate will not be defined since all packets are already premarked. This mode does not prevent the policer from receiving untrusted (color undefined) nor does it prevent the policer from being configured with a CIR rate.

This mode is intended to be used without profile-capped configured within the policer as it could cause the traffic profile to be modified by the policer.

The counters displayed in the show output and those collected when collect-stats is enabled (the actual fields collected depends on the record configured in the applied accounting policy) are described in Table 62.

Table 62:  Ingress Accounting Statistics Collected in offered-profile-no-cir stat-mode  

Show Output

Accounting Stats Collected

Field

Field Description

Off. InProf

ipo

InProfilePacketsOffered

ioo

InProfileOctetsOffered

Off. OutProf

opo

OutOfProfilePacketsOffered

ooo

OutOfProfileOctetsOffered

Dro. InProf

ipd

InProfilePacketsDropped

iod

InProfileOctetsDropped

Dro. OutProf

opd

OutOfProfilePacketsDropped

ood

OutOfProfileOctetsDropped

For. InProf

ipf

InProfilePacketsForwarded

iof

InProfileOctetsForwarded

For. OutProf

opf

OutOfProfilePacketsForwarded

oof

OutOfProfileOctetsForwarded

offered-priority-no-cir —
Counter resource allocation: 2

This stat-mode provides offered, dropped and forwarded packet and octet counters corresponding to the packet priority of traffic entering the policer.

The offered-priority-no-cir mode allocates two forwarding plane offered counters and two traffic manager discard counters.

The offered-priority-no-cir mode is most useful when the policer is receiving only untrusted packets and the ingress priority high and priority low classification options are being used without a CIR profiling rate defined. This mode does not prevent the policer from receiving trusted packets that are premarked in-profile or out-of-profile nor does it prevent the policer from being configured with a CIR rate.

This mode is intended to be used without profile-capped configured within the policer as it could cause the traffic profile to be modified by the policer.

The counters displayed in the show output and those collected when collect-stats is enabled (the actual fields collected depends on the record configured in the applied accounting policy) are described in Table 63.

Table 63:  Ingress Accounting Statistics Collected in offered-priority-no-cir stat-mode  

Show Output

Accounting Stats Collected

Field

Field Description

Off. HiPrio

hpo

HighPriorityPacketsOffered

hoo

HighPriorityOctetsOffered

Off. LowPrio

lpo

LowPriorityPacketsOffered

loo

LowPriorityOctetsOffered

Dro. HiPrio

hpd

HighPriorityPacketsDropped

hod

HighPriorityOctetsDropped

Dro. LowPrio

lpd

LowPriorityPacketsDropped

lod

LowPriorityOctetsDropped

For. HiPrio

hpf

HighPriorityPacketsForwarded

hof

HighPriorityOctetsForwarded

For. LowPrio

lpf

LowPriorityPacketsForwarded

lof

LowPriorityOctetsForwarded

offered-profile-cir —
Counter resource allocation: 4

This stat-mode provides offered, dropped and forwarded packet and octet counters corresponding to the profile of traffic entering (offered) and exiting (dropped/forwarded) the policer when ingress reclassification is performed so that the traffic entering the policer comprises of hard in/out and uncolored. The offered counters cover traffic explicitly profiled to in-profile, traffic explicitly profiled to out-of-profile, and traffic that has not been explicitly profiled at ingress (uncolored).

The offered-profile-cir mode allocates four forwarding plane offered counters and four traffic manager discard counters.

The offered-profile-cir mode is most useful when the policer is receiving trusted out-of-profile and in-profile traffic and is also receiving untrusted packets that are being applied to a defined CIR profiling rate. This mode differs from offered-limited-profile-cir mode in that it expects both trusted in-profile and out-of-profile packets while still performing CIR profiling on packets with untrusted markings. If trusted in-profile packets are not being received, the offered-limited-profile-cir stat-mode could be used instead, which has the benefit of using a reduced number of stat resources.

This mode is intended to be used without profile-capped configured within the policer as this could cause the traffic profile to be modified by the policer in a way that is not accounted for in the statistics.

The counters displayed in the show output and those collected when collect-stats is enabled (the actual fields collected depends on the record configured in the applied accounting policy) are described in Table 64.

Table 64:  Ingress Accounting Statistics Collected in offered-profile-cir stat-mode  

Show Output

Accounting Stats Collected

Field

Field Description

Off. InProf

ipo

InProfilePacketsOffered

ioo

InProfileOctetsOffered

Off. OutProf

opo

OutOfProfilePacketsOffered

ooo

OutOfProfileOctetsOffered

Off. Uncolor

ucp

UncoloredPacketsOffered

uco

UncoloredOctetsOffered

Dro. InProf

ipd

InProfilePacketsDropped

iod

InProfileOctetsDropped

Dro. OutProf

opd

OutOfProfilePacketsDropped

ood

OutOfProfileOctetsDropped

For. InProf

ipf

InProfilePacketsForwarded

iof

InProfileOctetsForwarded

For. OutProf

opf

OutOfProfilePacketsForwarded

oof

OutOfProfileOctetsForwarded

offered-priority-cir —
Counter resource allocation: 4

This stat-mode provides offered, dropped and forwarded packet and octet counters corresponding to the priority of traffic entering the policer and the profile exiting the policer.

The offered-priority-cir mode allocates four forwarding plane offered counters and four traffic manager discard counters.

The offered-priority-cir mode is most useful when the policer is receiving only untrusted packets that are being classified as high priority or low priority and are being applied to a defined CIR profiling rate. This mode differs from offered-profile-cir mode in that it does not expect trusted in-profile and out-of-profile packets but does not exclude the ability of the policer to receive them.

This mode is intended to be used without profile-capped configured within the policer as it could cause the traffic profile to be modified by the policer in a way that is not accounted for in the statistics.

The counters displayed in the show output and those collected when collect-stats is enabled (the actual fields collected depends on the record configured in the applied accounting policy) are described in Table 65.

Table 65:  Ingress Accounting Statistics Collected in offered-priority-cir stat-mode  

Show Output

Accounting Stats Collected

Field

Field Description

Off. HiPrio

hpo

HighPriorityPacketsOffered

hoo

HighPriorityOctetsOffered

Off. LowPrio

lpo

LowPriorityPacketsOffered

loo

LowPriorityOctetsOffered

Dro. InProf

ipd

InProfilePacketsDropped

iod

InProfileOctetsDropped

Dro. OutProf

opd

OutOfProfilePacketsDropped

ood

OutOfProfileOctetsDropped

For. InProf

ipf

InProfilePacketsForwarded

iof

InProfileOctetsForwarded

For. OutProf

opf

OutOfProfilePacketsForwarded

oof

OutOfProfileOctetsForwarded

offered-total-cir—
Counter resource allocation: 2

This stat-mode provides offered, dropped and forwarded packet and octet counters corresponding to the profile of traffic entering (offered) and exiting (dropped/forwarded) the policer. All offered traffic is provided in a single counter.

The offered-total-cir mode allocates two forwarding plane offered counters and two traffic manager discard counters.

The offered-total-cir mode is most useful when the policer is not receiving trusted in-profile or out-of-profile traffic and both high- and low-priority classifications are not being used on the untrusted packets and the offered packets are being applied to a defined CIR profiling rate. This mode does not prevent the policer from receiving trusted in-profile or out-of-profile packets and does not prevent the use of priority high or low classifications on the untrusted packets.

This mode is intended to be used without profile-capped configured within the policer as it could cause the traffic profile to be modified by the policer in a way that is not accounted for in the statistics.

The counters displayed in the show output and those collected when collect-stats is enabled (the actual fields collected depends on the record configured in the applied accounting policy) are described in Table 66.

Table 66:  Ingress Accounting Statistics collected in offered-total-cir stat-mode  

Show Output

Accounting Stats Collected

Field

Field Description

Off. All

apo

AllPacketsOffered

aoo

AllOctetsOffered

Dro. InProf

ipd

InProfilePacketsDropped

iod

InProfileOctetsDropped

Dro. OutProf

opd

OutOfProfilePacketsDropped

ood

OutOfProfileOctetsDropped

For. InProf

ipf

InProfilePacketsForwarded

iof

InProfileOctetsForwarded

For. OutProf

opf

OutOfProfilePacketsForwarded

oof

OutOfProfileOctetsForwarded

offered-limited-profile-cir —
Counter resource allocation: 3

This stat-mode provides offered, dropped and forwarded packet and octet counters corresponding to the profile of traffic entering (offered) and exiting (dropped/forwarded) the policer when ingress reclassification is performed so that the traffic entering the policer comprises of hard out and uncolored. The offered counters cover traffic explicitly profiled to out-of-profile and traffic that has not been explicitly profiled at ingress (uncolored). The traffic explicitly profiled to in-profile is counted with the uncolored traffic.

The offered-limited-profile-cir mode allocates three forwarding plane offered counters and three traffic manager discard counters.

The offered-limited-profile-cir mode is most useful when the policer is receiving trusted out-of-profile (profile out but no profile in) traffic and untrusted packets are being applied to a defined CIR profiling rate. This mode does not prevent the policer from receiving trusted in-profile packets. If trusted in-profile packets are not being received, the offered-limited-profile-cir is preferred over offered-profile-cir because it uses a reduced number of stat resources.

This mode is intended to be used without profile-capped configured within the policer as it could cause the traffic profile to be modified by the policer in a way that is not accounted for in the statistics.

The counters displayed in the show output and those collected when collect-stats is enabled (the actual fields collected depends on the record configured in the applied accounting policy) are described in Table 67.

Table 67:  Ingress Accounting Statistics Collected in offered-limited-profile-cir stat-mode  

Show Output

Accounting Stats Collected

Field

Field Description

Off. OutProf

opo

OutOfProfilePacketsOffered

ooo

OutOfProfileOctetsOffered

Off. Uncolor

ucp

UncoloredPacketsOffered

uco

UncoloredOctetsOffered

Dro. InProf

ipd

InProfilePacketsDropped

iod

InProfileOctetsDropped

Dro. OutProf

opd

OutOfProfilePacketsDropped

ood

OutOfProfileOctetsDropped

For. InProf

ipf

InProfilePacketsForwarded

iof

InProfileOctetsForwarded

For. OutProf

opf

OutOfProfilePacketsForwarded

oof

OutOfProfileOctetsForwarded

offered-profile-capped-cir —
Counter resource allocation: 5

This stat-mode provides offered, dropped and forwarded packet and octet counters corresponding to the profile of traffic entering (offered) and exiting (dropped/forwarded) the policer when ingress reclassification is performed so that the traffic entering the policer comprises of hard in/out and uncolored. The offered counters cover traffic explicitly profiled to in-profile, traffic explicitly profiled to out-of-profile, and traffic that has not been explicitly profiled at ingress (uncolored).

When offered-profile-capped-cir is defined, the system creates five offered-output counters in the forwarding plane and five discard counters in the traffic manager.

The offered-profile-capped-cir mode is similar to the offered-profile-cir mode except that it includes support for profile in and soft-in-profile that may be output as ‘out-of-profile’ due to enabling profile-capped mode on the ingress policer.

The impact of using offered-profile-capped-cir stat-mode while profile-capped mode is disabled is that one of the counting resources in the forwarding plane and traffic manager will not be used.

The counters displayed in the show output and those collected when collect-stats is enabled (the actual fields collected depends on the record configured in the applied accounting policy) are described in Table 68.

Table 68:  Ingress Accounting Statistics Collected in offered-profile-capped-cir stat-mode  

Show Output

Accounting Stats Collected

Field

Field Description

Off. InProf

ipo

InProfilePacketsOffered

ioo

InProfileOctetsOffered

Off. OutProf

opo

OutOfProfilePacketsOffered

ooo

OutOfProfileOctetsOffered

Off. Uncolor

ucp

UncoloredPacketsOffered

uco

UncoloredOctetsOffered

Dro. InProf

ipd

InProfilePacketsDropped

iod

InProfileOctetsDropped

Dro. OutProf

opd

OutOfProfilePacketsDropped

ood

OutOfProfileOctetsDropped

For. InProf

ipf

InProfilePacketsForwarded

iof

InProfileOctetsForwarded

For. OutProf

opf

OutOfProfilePacketsForwarded

oof

OutOfProfileOctetsForwarded

offered-limited-capped-cir —
Counter resource allocation: 4

This stat-mode provides offered, dropped and forwarded packet and octet counters corresponding to the profile of traffic entering (offered) and exiting (dropped/forwarded) the policer when ingress reclassification is performed resulting in the traffic entering the policer comprising of hard in/out and uncolored. The offered counters cover in-profile traffic and traffic that has not been explicitly profiled at ingress (uncolored). The traffic explicitly profiled to out-of-profile is counted with the uncolored traffic.

offered-limited-capped-cir is defined, the system creates four forwarding plane offered-output counters in the network processor and four discard counters in the traffic manager.

The offered-limited-capped-cir mode is similar to the offered-profile-capped-cir mode except that it combines soft in-profile with profile in (InProf) and profile out (OutProf) with soft-out-of-profile (Uncolor) and eliminates the 'offered undefined' statistic. If trusted out-of-profile packets are not being received, the offered-limited-capped-cir is preferred over offered-profile-capped-cir because it uses a reduced number of stat resources.

This mode is intended to be used with profile-capped configured within the policer.

The impact of using offered-limited-capped-cir stat-mode while profile-capped mode is disabled is that one of the counting resources in the forwarding plane and traffic manager will not be used.

The counters displayed in the show output and those collected when collect-stats is enabled (the actual fields collected depends on the record configured in the applied accounting policy) are described in Table 69.

Table 69:  Ingress Accounting Statistics Collected in offered-limited-capped-cir stat-mode  

Show Output

Accounting Stats Collected

Field

Field Description

Off. InProf

ipo

InProfilePacketsOffered

ioo

InProfileOctetsOffered

Off. Uncolor

ucp

UncoloredPacketsOffered

uco

UncoloredOctetsOffered

Dro. InProf

ipd

InProfilePacketsDropped

iod

InProfileOctetsDropped

Dro. OutProf

opd

OutOfProfilePacketsDropped

ood

OutOfProfileOctetsDropped

For. InProf

ipf

InProfilePacketsForwarded

iof

InProfileOctetsForwarded

For. OutProf

opf

OutOfProfilePacketsForwarded

oof

OutOfProfileOctetsForwarded

queue

Syntax 
queue queue-id [multipoint] [queue-type] [queue-mode] [create]
no queue queue-id
Context 
config>qos>qgrps>ing>queue-group
Description 

This command creates a queue for use in a queue group template. When created, the defined queue-id acts as a repository for the default parameters for the queue. The template queue is created on each queue-group object that is created with the queue group template name. Each queue is identified within the template by a queue-id number. The template ensures that all queue groups created with the template name will have the same queue-ids providing a uniform structure for the forwarding class redirection commands in the SAP ingress QoS policies. The parameters within the template queue will be used as the default settings for each queue in the actual queue group. The queue parameters may be individually changed for each queue in each queue group using per queue overrides.

When a queue within a template is mapped by a forwarding class on any object, the queue may be edited, but not deleted.

The no form of this command removes a template queue from the queue group template. If the queue is specified as a forwarding class redirection target in any SAP ingress QoS policy, the command will fail.

Parameters 
queue-id—
This required parameter identifies the queue that will either be created or edited within the queue group template.
Values—
1 to 32

 

multipoint—
This optional keyword creates an ingress multipoint queue. Multipoint queues in a queue group may be used by ingress VPLS for forwarding types multicast, broadcast or unknown within a forwarding class. For ingress IES and VPRN access SAPs, only multicast is supported. Multipoint queues are only supported on ingress queue group templates.
Default—
non-multipoint (unicast queue)
queue-type—
The queue types are mutually exclusive.
Values—
expedite — This keyword ensures that the queue is treated in an expedited manner independent of the forwarding classes mapped to the queue.
best-effort — This keyword ensures that the queue is treated in a non-expedited manner independent of the forwarding classes mapped to the queue.

 

Default—
best-effort
queue-mode—
These keywords are optional and mutually exclusive when creating a new template queue. The keywords specify how the queue manages ingress explicitly profiled packets.
Values—
profile-mode — Overrides the default priority mode of the queue and allows the adoption of color aware profiling within the queue. Forwarding classes and subclasses may be explicitly defined as in-profile or out-of-profile. Out-of-profile classified packets bypass the CIR rate associated with the queue, reserving it for the undefined or in-profile classified packets. If the template queue is not defined as profile-mode and the packet redirected to the queue is explicitly out-of-profile based on the classification rules, the queues within-CIR bandwidth may be consumed by the packet.
priority-mode — Defines that the SAP ingress QoS policy priority classification result will be honored by the queue. Priority mode is the default mode of the queue. High-priority packets are allowed into the queue up to the MBS defined for the queue. Low-priority packets are discarded at the low-priority MBS threshold that is derived from applying the low drop-tail percentage to the queue’s MBS.

 

create—
Keyword used to create the queue ID instance.

adaptation-rule

Syntax 
adaptation-rule [pir {max | min | closest}] [cir {max | min | closest}] [fir {max | min | closest}]
no adaptation-rule
Context 
config>qos>queue-group-templates>ingress>queue-group>queue
Description 

This command defines the method used by the system to derive the operational FIR, CIR and PIR settings when the queue is provisioned in hardware. For the FIR, CIR and PIR parameters individually, the system attempts to find the best operational rate depending on the defined constraint.

When a specific adaptation-rule is removed, the default constraints for pir, cir and fir apply.

The no form of this command removes any explicitly defined constraints used to derive the operational FIR, CIR and PIR created by the application of the policy.

Default 

adaptation-rule pir closest cir closest fir closest

Parameters 
pir—
Defines the constraints enforced when adapting the queue's PIR. The pir parameter requires a qualifier that defines the constraint used when deriving the operational PIR for the queue. When the pir parameter is not specified, the default constraint applies.
cir —
Defines the constraints enforced when adapting the queue's CIR. The cir parameter requires a qualifier that defines the constraint used when deriving the operational CIR for the queue. When the cir parameter is not specified, the default constraint applies.
fir—
Defines the constraints enforced when adapting the queue's FIR. The fir parameter requires a qualifier that defines the constraint used when deriving the operational CIR for the queue. When the fir parameter is not specified, the default constraint applies. FIR is only supported on FP4 hardware and is ignored when the related policy is applied to FP2- or FP3-based hardware.
max—
Specifies that the operational rate for the queue will be equal to or less than the requested rate.
min—
Specifies that the operational rate for the queue will be equal to or greater than the requested rate.
closest—
Specifies that the operational rate for the queue will be the rate closest to the requested rate.

burst-limit

Syntax 
burst-limit {size [bytes | kilobytes] | default}
no burst-limit
Context 
config>qos>qgrps>egr>qgrp>queue
config>qos>qgrps>ing>qgrp>queue
Description 

The queue burst-limit command is used to define an explicit shaping burst size for a queue. The configured size defines the shaping leaky bucket threshold level that indicates the maximum burst over the queue’s shaping rate.

The burst-limit command is supported under the sap-ingress and sap-egress QoS policy queues. The command is also supported under the ingress and egress queue-group-templates queues.

The no form of this command is used to restore the default burst limit to the specified queue. This is equivalent to specifying burst-limit default within the QoS policies or queue group templates. When specified within a queue-override queue context, any current burst limit override for the queue will be removed and the queue’s burst limit will be controlled by its defining policy or template.

Parameters 
size—
When a numeric value is specified (size), the system interprets the value as an explicit burst limit size. The value is expressed as an integer and by default is interpreted as the burst limit in kilobytes. If the value is intended to be interpreted in bytes, the byte qualifier must be added following size.
Values—
1 to 14,000 (14,000 or 14,000,000 depending on bytes or kilobytes)

 

bytes—
Specifies that the value given for size must be interpreted as the burst limit in bytes.
kilobytes—
Specifies that the value given for size must be interpreted as the burst limit in kilobytes.

cbs

Syntax 
cbs {size-in-kbytes | default}
no cbs
Context 
config>qos>qgrps>egr>qgrp>queue
config>qos>qgrps>ing>qgrp>queue
Description 

The cbs command is used to define the default committed buffer size for the template queue or the CBS for the template policer. Overall, the cbs command follows the same behavior and provisioning characteristics as the cbs command in the SAP ingress and egress QoS policy.

The no form of this command restores the default CBS size to the template policer.

Default 

default

Parameters 
size-in-kbytes—
For the queues, the size parameter is an integer expression of the number of kilobytes reserved for the queue. If a value of 10 kbytes is desired, enter the value 10. A value of 0 specifies that no reserved buffers are required by the queue (a minimal reserved size can still be applied for scheduling purposes). For policers, the size parameter is an integer expression of the number of kilobytes for the policer CBS.
Values—
0 to 1048576 or default
Minimum configurable non-zero value: 6 kbytes on an FP2, 7680 bytes on an FP3, and 16 kbytes on an FP4
Minimum non-zero default value: maximum of 10 ms of CIR or 6 kbytes on an FP2, 7680 bytes on an FP3, and 16 kbytes on an FP4

 

cir-non-profiling

Syntax 
[no] cir-non-profiling
Context 
config>qos>queue-group-templates>ingress>queue-group>queue
Description 

This command prevents the modification of the profile of a packet-dependent queue rate compared to its configured CIR. The CIR continues to be used to affect the scheduling priority of a queue. The cir-non-profiling and the queue police commands are mutually exclusive.

cir-non-profiling is only supported on FP4 hardware and is ignored when the related policy is applied to FP2- or FP3-based hardware.

cir-non-profiling should not be configured under an ingress queue group template queue associated with a LAG which spans FP4-based and FP2/FP3-based hardware as the resulting operation could be different depending on which hardware type the traffic ingresses.

drop-tail

Syntax 
drop-tail
Context 
config>qos>qgrps>ing>qgrp>queue
config>qos>qgrps>egr>qgrp>queue
Description 

This command enters the context to configure queue drop-tail parameters.

low

Syntax 
low
Context 
config>qos>qgrps>ing>qgrp>queue>drop-tail
config>qos>qgrps>egr>qgrp>queue>drop-tail
Description 

This command enters the context to configure the queue low drop-tail parameters. The low drop tail defines the queue depth beyond which out-of-profile packets will not be accepted into the queue and will be discarded.

percent-reduction-from-mbs

Syntax 
percent-reduction-from-mbs percent
no percent-reduction-from-mbs
Context 
config>qos>qgrps>ing>qgrp>queue>drop-tail>low
Description 

This command configures the ingress queue group queue low drop tail as a percentage reduction from the MBS of the queue. For example, if a queue has an MBS of 600 kbytes and the percentage reduction is configured to be 30% for the low drop tail, the low drop tail will be at 420 kbytes. Out-of-profile packets will not be accepted into the queue and will be discarded if the queue depth is greater than this value.

Default 

10%

Parameters 
percent—
Specifies the percentage reduction from the MBS for a queue drop tail.
Values—
0 to 100, default

 

mbs

Syntax 
mbs {size [bytes | kilobytes] | default}
no mbs
Context 
config>qos>qgrps>egr>qgrp>queue
config>qos>qgrps>ing>qgrp>queue
Description 

This command specifies the default maximum buffer size for the template queue in bytes or kilobytes.

The MBS value is used by a queue to determine whether it has exhausted all of its buffers while enqueuing packets. When the queue has exceeded the amount of buffers allowed by MBS, all packets are discarded until packets have been drained from the queue.

The port>ethernet>access>ingress>queue-group and port>ethernet>access>egress>queue-group contexts for mbs provides a mechanism for overriding the default maximum size for the queue.

The sum of the MBS for all queues on an ingress access port can oversubscribe the total amount of buffering available. When congestion occurs and buffers become scarce, access to buffers is controlled by the RED slope that a packet is associated with. A queue that has not exceeded its MBS size is not guaranteed that a buffer will be available when needed or that the packet’s RED slope will not force the discard of the packet. Setting proper CBS parameters and controlling CBS oversubscription is one major safeguard against queue starvation (when a queue does not receive its fair share of buffers). Another is properly setting the RED slope parameters for the needs of services on this port or channel.

When configured on an egress queue group queue, this command and the queue-delay command are mutually exclusive. In order to change between the mbs and queue-delay parameters, the current parameter must be removed before adding the new parameter; that is, changing from mbs to queue-delay requires a no mbs before the queue-delay is configured and changing from queue-delay to mbs requires a no queue-delay before the mbs is configured. If queue-delay is configured for an egress queue group queue, it is not possible to override the MBS for that queue.

For policers, this command is used to configure the policer’s PIR leaky bucket’s high-priority violate threshold. The high-prio-only command is applied to the MBS value to derive the bucket’s low-priority violate threshold.

At ingress, trusted in-profile packets and untrusted high-priority packets use the policer’s high-priority violate threshold while trusted out-of-profile and untrusted low-priority packets use the policer's low-priority violate threshold.

At egress, inplus-profile and in-profile packets use the policer’s high-priority violate threshold and out-of-profile packets use the policer's low-priority violate threshold. Exceed-profile packets are discarded unless enable-exceed-pir is configured, in which case they are forwarded.

The PIR bucket’s violate threshold represents the maximum burst tolerance allowed by the policer. If the policer's offered rate is equal to or less than the policer's defined rate, the PIR bucket depth hovers around the 0 depth with spikes up to the maximum packet size in the offered load. If the offered rate increases beyond the metering rate, the amount of data allowed above the rate is capped by the threshold. The low-priority violate threshold provides a smaller burst size for the lower priority traffic associated with the policer. Since all lower priority traffic is discarded at the lower burst tolerance size, the remaining burst tolerance defined by high-prio-only is available for the higher priority traffic.

The policer’s mbs size defined in the QoS policy may be overridden on an SLA profile or SAP where the policy is applied.

The no form of this command returns the MBS size assigned to the queue to the value.

Default 

default

Parameters 
size —
For queues, the size parameter is an integer expression of the maximum number of bytes or kilobytes of buffering allowed for the queue. For a value of 100 kbytes, enter the value 100. A value of 0 causes the queue to discard all packets. For policers, the size parameter is an integer expression of the maximum number of bytes for the policer's MBS. The queue MBS maximum value used is constrained by the pool size in which the queue exists and by the shared pool space in the corresponding megapool.
Values—
0 to 1048576 or default
Minimum configurable non-zero value: 6 kbytes on an FP2, 7680 bytes on an FP3, and 16 kbytes on an FP4
Minimum non-zero default value: maximum of 10 ms of CIR, or 6 kbytes on an FP2, 7680 bytes on an FP3, and 16 kbytes on an FP4

 

[bytes | kilobytes]—
Select bytes or kilobytes.
Default—
kilobytes
default—
Sets the MBS to its default value.

packet-byte-offset

Syntax 
packet-byte-offset {add add-bytes | subtract sub-bytes}
no packet-byte-offset
Context 
config>qos>qgrps>ing>qgrp>queue
Description 

This command is used to modify the size of each packet handled by the queue by adding or subtracting a number of bytes. The actual packet size is not modified; only the size used to determine the ingress scheduling and profiling is changed. The packet-byte-offset command is meant to be an arbitrary mechanism that can be used to either add downstream frame encapsulation or remove portions of packet headers. Both the scheduling and profiling throughput is affected by the offset as well as the stats (accounting) associated with the queue. The packet-byte-offset does not apply to drop statistics, received valid statistics, or the offered managed and unmanaged statistics used by Ingress Multicast Path Management.

The no form of this command is used to remove per packet size modifications from the queue.

Parameters 
add-bytes—
The add keyword is mutually exclusive to the subtract keyword. Either add or subtract must be specified. When add is defined, the corresponding bytes parameter specifies the number of bytes that is added to the size each packet associated with the queue for scheduling, profiling and accounting purposes. From the queue’s perspective, the packet size is increased by the amount being added to the size of each packet.
Values—
0 to 30, in steps of 2

 

sub-bytes—
The subtract keyword is mutually exclusive to the add keyword. Either add or subtract must be specified. When subtract is defined, the corresponding bytes parameter specifies the number of bytes that is subtracted from the size of each packet associated with the queue for scheduling, profiling and accounting purposes. From the queue’s perspective, the packet size is reduced by the amount being subtracted from the size of each packet. The minimum resulting packet size used by the system is 1 byte.
Values—
0 to 64, in steps of 2

 

parent

Syntax 
parent scheduler-name [weight weight] [level level] [cir-weight cir-weight] [cir-level cir-level]
no parent
Context 
config>qos>qgrps>egr>qgrp>queue
config>qos>qgrps>ing>qgrp>queue
Description 

This command defines an optional parent scheduler that further governs the available bandwidth given the queue aside from the queue’s PIR setting. When multiple schedulers, policers (at egress only), and/or queues share a child status with the parent scheduler, the weight or level parameters define how this queue contends with the other children for the parent’s bandwidth.

Checks are not performed to see if a scheduler-name exists when the parent command is defined on the queue. Scheduler names are configured in the config>qos>scheduler-policy>tier level context. Multiple schedulers can exist with the scheduler-name and the association pertains to a scheduler that should exist on the egress SAP as the policy is applied and the queue created. When the queue is created on the egress SAP, the existence of the scheduler-name is dependent on a scheduler policy containing the scheduler-name being directly or indirectly applied (through a multiservice customer site) to the egress SAP. If the scheduler-name does not exist, the queue is placed in the orphaned operational state. The queue will accept packets but will not be bandwidth limited by a virtual scheduler or the scheduler hierarchy applied to the SAP. The SAP that the queue belongs to must also depict an orphan queue status. The orphaned state of the queue is automatically cleared when the scheduler-name becomes available on the egress SAP.

The parent scheduler can be made unavailable due to the removal of a scheduler policy or scheduler. When an existing parent scheduler is removed or inoperative, the queue enters the orphaned state and automatically returns to normal operation when the parent scheduler is available again.

When a parent scheduler is defined without specifying weight or strict parameters, the default bandwidth access method is weight with a value of 1.

The no form of this command removes a child association with a parent scheduler. If a parent association does not currently exist, the command has no effect and returns without an error. When a parent association has been removed, the former child queue attempts to operate based on its configured rate parameter. Removing the parent association on the queue within the policy takes effect immediately on all queues using the SAP egress QoS policy.

Parameters 
scheduler-name—
The defined scheduler-name conforms to the same input criteria as the schedulers defined within a scheduler policy. Scheduler names are configured in the config>qos>scheduler-policy>tier level context. There are no checks performed at the time of definition to ensure that the scheduler-name exists within an existing scheduler policy. For the queue to use the defined scheduler-name, the scheduler exists on each egress SAP the queue is eventually created on. For the duration where scheduler-name does not exist on the egress SAP, the queue operates in an orphaned state.
Values—
Any string up to 32 characters, composed of printable, 7-bit ASCII characters. If the string contains special characters (#, $, spaces, etc.), the entire string must be enclosed within double quotes.

 

weight weight
weight defines the relative weight of this queue in comparison to other child schedulers and queues while vying for bandwidth on the parent scheduler-name. Any queues or schedulers defined as weighted receive no parental bandwidth until all policers, queues, and schedulers with a higher (numerically larger) priority on the parent have reached their maximum bandwidth or are idle.

All weight values from all weighted active queues, policers, and schedulers with a common parent scheduler are added together. Then, each individual active weight is divided by the total, deriving the percentage of remaining bandwidth provided to the queue, policer, or scheduler. A weight is considered to be active when the pertaining queue or scheduler has not reached its maximum rate and still has packets to transmit. All child policers, queues, and schedulers with a weight of 0 are considered to have the lowest priority level and are not serviced until all non-zero weighted queues, policers, and schedulers at that level are operating at the maximum bandwidth or are idle.

Values—
0 to 100

 

Default—
1
level level
The optional level parameter defines the level of hierarchy when compared to other schedulers and queues when vying for bandwidth on the parent scheduler-name. Queues or schedulers will not receive parental bandwidth until all queues and schedulers with a higher (numerically larger) priority on the parent have reached their maximum bandwidth or are idle.

Children of the parent scheduler with a lower strict priority will not receive bandwidth until all children with a higher strict priority have either reached their maximum bandwidth or are idle. Children with the same strict level are serviced relative to their weights.

Values—
1 to 8

 

Default—
1
cir-weight cir-weight
Defines the weight the queue or scheduler will use at the within-CIR port priority level (defined by the cir-level parameter). The weight is specified as an integer value from 0 to 100 with 100 being the highest weight. When the cir-weight parameter is set to a value of 0 (the default value), the queue or scheduler does not receive bandwidth during the port schedulers within-CIR pass and the cir-level parameter is ignored. If the cir-weight parameter is 1 or greater, the cir-level parameter comes into play.
Values—
0 to 100

 

Default—
1
cir-level cir-level
Defines the port priority the queue or scheduler will use to receive bandwidth for its within-CIR offered-load. If the cir-weight parameter is set to a value of 0 (the default value), the queue or scheduler does not receive bandwidth during the port schedulers within-CIR pass and the cir-level parameter is ignored. If the cir-weight parameter is 1 or greater, the cir-level parameter comes into play.
Values—
0 to 8 (8 is the highest priority)

 

Default—
0

rate

Syntax 
rate pir-rate [cir cir-rate] [fir fir-rate]
rate pir-rate police
no rate
Context 
config>qos>queue-group-templates>ingress>queue-group>queue
Description 

This command defines the administrative Peak Information Rate (PIR), the administrative Committed Information Rate (CIR), and the administrative Fair Information Rate (FIR) parameters for the queue. The PIR defines the maximum rate that the queue can transmit packets through the switch fabric (for SAP ingress queues). Defining a PIR does not necessarily guarantee that the queue can transmit at the intended rate. The actual rate sustained by the queue can be limited by oversubscription factors or available egress bandwidth.

The CIR defines the rate at which the system prioritizes the queue over other queues competing for the same bandwidth. For SAP ingress, the CIR also defines the rate that packets are considered in-profile by the system, unless cir-non-profiling is configured. In-profile, then out-of-profile, packets are preferentially queued by the system at egress and at subsequent next hop nodes where the packet can traverse. To be properly handled throughout the network, the packets must be marked accordingly for profiling at each hop.

The CIR can be used by the queue’s parent commands cir-level and cir-weight parameters to define the amount of bandwidth considered to be committed for the child queue during bandwidth allocation by the parent scheduler.

The FIR defines an additional rate at which the system prioritizes the queue over other queues competing for the same bandwidth above that used by the CIR.

The rate command can be executed at any time, altering the PIR, CIR, and FIR for all queues created through the association of the ingress queue group template with the queue-id.

The no form of this command returns all queues created with the queue-id by association with the QoS policy to the default PIR, CIR, and FIR parameters (max, 0, 0).

Default 

rate max cir 0 fir 0

Parameters 
pir-rate—
Defines the administrative PIR, in kilobits, for the queue. When the rate command is executed, a valid PIR setting must be explicitly defined. When the rate command has not been executed, the default PIR of max is assumed. Fractional values are not allowed and the value must be given as a positive integer.

The actual PIR is dependent on the queue’s adaptation-rule parameters and the actual hardware where the queue is provisioned.

Values—
1 to 2000000000 kb/s, max

 

Default—
max
cir-rate—
The cir parameter overrides the default administrative CIR used by the queue. When the rate command is executed, a CIR setting is optional. When the rate command has not been executed or the cir parameter is not explicitly specified, the default CIR (0) is assumed. Fractional values are not allowed and the value must be given as a positive integer. The actual CIR used is dependent on the queue’s adaptation-rule parameters and the actual hardware where the queue is provisioned.
Values—
1 to 2000000000 kb/s, max

 

Default—
0
fir-rate—
The fir parameter overrides the default administrative FIR used by the queue. When the rate command is executed, an FIR setting is optional. When the rate command has not been executed or the fir parameter is not explicitly specified, the default FIR (0) is assumed.

Fractional values are not allowed and the value must be given as a positive integer. The actual FIR used is dependent on the queue’s adaptation-rule parameters and the actual hardware where the queue is provisioned.

FIR is only supported on FP4 hardware and is ignored when the related policy is applied to FP2- or FP3-based hardware.

Values—
1 to 2000000000 kb/s, max

 

Default—
0
police—
Specifies that traffic feeding into the queue instance above the specified rate is dropped.

egress

Syntax 
egress
Context 
config>qos>queue-group-templates
Description 

This command enters the context to configure QoS egress queue groups. Egress queue group templates can be applied to egress Ethernet ports to create an egress queue group.

fc

Syntax 
fc fc-name [create]
no fc fc-name
Context 
config qos>queue-group-templates>egress>queue-group-template
Description 

The fc command is used to enter the forwarding class mapping context for the given fc-name. Each forwarding class has a default mapping depending on the egress queue group template. The system-created policer-output-queue template contains queues 1 and 2 by default with queue 1 being best-effort and queue 2 expedited. Forwarding classes be, l1, af and l2 all map to queue 1 by default. Forwarding classes h1, ef, h2 and nc all map to queue 2 by default. More queues may be created within the policer-output-queues template and the default forwarding classes may be changed to any defined queue within the template.

When all other user-defined egress queue group templates are created, only queue 1 (best-effort) exists and all forwarding classes are mapped to that queue. Other queues may be created and the forwarding classes may be changed to any defined queue within the template.

Besides the default mappings within the templates, the egress queue group template forwarding class queue mappings operate the same as the forwarding class mappings in a sap-egress QoS policy.

The template forwarding class mappings are the default mechanism for mapping egress policed traffic to a queue within an egress port queue group associated with the template. If a queue-id is explicitly specified in the QoS policy forwarding class policer mapping, and that queue exists within the queue group, the template forwarding class mapping is ignored.

On the 7450 ESS and 7750 SR, egress policed subscriber traffic works in a slightly different way. The subscriber and subscriber host support destination and organization strings are used to identify the egress port queue group. In this instance, the forwarding class mappings are always used and any queue overrides in the QoS policy are ignored. If neither string exists for the subscriber host, the egress queue group queue-id can be derived from either the QoS policy policer mapping or the template forwarding class queue mappings.

The no form of this command is used to return the specified forwarding class to its default template queue mapping.

Parameters 
fc-name—
A valid forwarding class must be specified as fc-name when the fc command is executed. When the fc fc-name command is successfully executed, the system will enter the specified forwarding class context where the queue queue-id command may be executed.
Values—
be, l1, af, l2, h1, ef, h2, nc

 

queue

Syntax 
queue queue-id
no queue
Context 
config>qos>qgrps>egr>queue-group-template>fc
Description 

This command is used to map the forwarding class to the specified queue-id. The specified queue-id must exist within the egress queue group template. When a queue is defined in a forwarding class mapping, that queue cannot be deleted unless the forwarding class mapping is moved to another queue within the template. Other criteria may also exist preventing the queue from being deleted from the template such as an applied SAP egress QoS policy mapping to the queue.

Parameters 
queue-id—
The specified queue-id must exist within the egress queue group template.
Values—
1 to 8

 

hsmda-queues

Syntax 
hsmda-queues
Context 
config>qos>qgrps>egr>qgrp
Description 

This command enables the context to configure HSMDA queues.

low-burst-max-class

Syntax 
low-burst-max-class class
no low-burst-max-class
Context 
config>qos>qgrps>egr>qgrp>hsmda-queues
Description 

This command specifies which class should use the low priority burst threshold. Use the low priority burst threshold for all classes starting from 1, up to and including that specified by this value. Use the high priority burst threshold for all classes greater than this value, up to and including class 8.

The no form of this command is used to remove the class threshold.

Parameters 
class—
Specifies the low burst max class.
Values—
1 to 8

 

packet-byte-offset

Syntax 
packet-byte-offset {add add-bytes | subtract sub-bytes}
no packet-byte-offset
Context 
config>qos>qgrps>egr>qgrp>hsmda-queues
config>qos>qgrps>egr>qgrp>policer
config>qos>qgrps>egr>qgrp>queue
Description 

This command is used to modify the size of each packet handled by the queue by adding or subtracting a number of bytes. The actual packet size is not modified; only the size used to determine the bucket depth impact is changed.

The packet-byte-offset command is meant to be an arbitrary mechanism that can be used to either add downstream frame encapsulation or remove portions of packet headers.

When a packet-byte-offset value is applied to a queue or policer instance, it adjusts the immediate packet size. This means that the queue rates (i.e., operational PIR and CIR) and policer or queue bucket updates use the adjusted packet size. In addition, the statistics will also reflect the adjusted packet size. Scheduler policy rates, which are data rates, will use the adjusted packet size.

The port scheduler max-rate and the priority level rates and weights, if a Weighted Scheduler Group is used, are always on-the-wire rates and thus use the actual frame size. The same applies for the agg-rate-limit on a SAP, a subscriber, or a Multiservice Site (MSS) when the queue is port-parented.

When the user enables frame-based-accounting in a scheduler policy or queue-frame-based-accounting with agg-rate-limit in a port scheduler policy, the policer or queue rate will be capped to a user-configured on-the-wire rate and the packet-byte-offset is not included; however, the offsets are applied to the statistics.

The no form of this command is used to remove per packet size modifications from the queue.

Parameters 
add-bytes—
Specifies that the corresponding bytes parameter specifies the number of bytes that is added to the size of each packet associated with the queue for scheduling and accounting purposes.
Values—
0 to 32

 

sub-bytes—
Specifies that the corresponding bytes parameter specifies the number of bytes that is subtracted from the size of each packet associated with the queue for scheduling and accounting purposes. The minimum resulting packet size used by the system is 1 byte.
Values—
0 to 64

 

queue

Syntax 
[no] queue queue-id
Context 
config>qos>qgrps>egr>qgrp>hsmda-queues
Description 

This command is used to map the HSMDA queue to the specified queue-id. The specified queue-id must exist within the egress queue group template.

Parameters 
queue-id—
The specified queue-id must exist within the egress queue group template.
Values—
1 to 8

 

adaptation-rule

Syntax 
adaptation-rule [pir adaptation-rule]
no adaptation-rule
Context 
config>qos>qgrps>egr>qgrp>hsmda-queues
Description 

This command specifies how the system should resolve differences between the specified scheduling limit derived from the WRR group’s rate command and the actual operational rate obtainable in hardware. The min, max, and closest mutually exclusive keywords specify whether the next highest rate or next lowest rate should be selected by the system.

The no form of the command reverts to the default value.

Default 

adaptation-rule pir closest

Parameters 
pir adaptation-rule
Defines the constraints enforced when adapting the policer’s PIR. The pir parameter requires a qualifier that defines the constraint used when deriving the operational PIR for the policer. When the pir parameter is not specified, the default constraint applies.
Values—
max — The max option is mutually exclusive to the min and closest options. When max is specified, the operational PIR for the policer will be equal to or less than the requested rate.
min — The min option is mutually exclusive to the max and closest options. When min is specified, the operational PIR for the policer will be equal to or greater than the requested rate.
closest — The closest parameter is mutually exclusive to the min and max parameter. When closest is specified, the operational PIR for the policer will be the rate closest to the requested rate.

 

burst-limit

Syntax 
burst-limit size [bytes | kilobytes]
no burst-limit
Context 
config>qos>qgrps>egr>qgrp>hsmda-queues>queue
Description 

The queue burst-limit command is used to define an explicit shaping burst size for a queue. The configured size defines the shaping leaky bucket threshold level that indicates the maximum burst over the queue’s shaping rate.

The no form of this command is used to restore the default burst limit to the specified queue. This is equivalent to specifying burst-limit default within the QoS policies or queue group templates. When specified within a queue-override queue context, any current burst limit override for the queue will be removed and the queue’s burst limit will be controlled by its defining policy or template.

Parameters 
size—
When a numeric value is specified (size), the system interprets the value as an explicit burst limit size. The value is expressed as an integer and by default is interpreted as the burst limit in kilobytes. If the value is intended to be interpreted in bytes, the byte qualifier must be added following size.
Values—
1 to 14,000 (14,000 or 14,000,000 depending on bytes or kilobytes)

 

bytes—
Specifies that the value given for size must be interpreted as the burst limit in bytes.
kilobytes—
Specifies that the value given for size must be interpreted as the burst limit in kilobytes.

mbs

Syntax 
mbs {size [bytes | kilobytes] | default}
no mbs
Context 
config>qos>qgrps>egr>qgrp>hsmda-queues>queue
Description 

This command specifies the default maximum buffer size for the template queue in bytes or kilobytes.

The MBS value is used by a queue to determine whether it has exhausted all of its buffers while enqueuing packets. When the queue has exceeded the amount of buffers allowed by MBS, all packets are discarded until packets have been drained from the queue.

The port>ethernet>access>ingress>queue-group and port>ethernet>access>egress>queue-group contexts for mbs provides a mechanism for overriding the default maximum size for the queue.

The sum of the MBS for all queues on an ingress access port can oversubscribe the total amount of buffering available. When congestion occurs and buffers become scarce, access to buffers is controlled by the RED slope that a packet is associated with. A queue that has not exceeded its MBS size is not guaranteed that a buffer will be available when needed or that the packet’s RED slope will not force the discard of the packet. Setting proper CBS parameters and controlling CBS oversubscription is one major safeguard against queue starvation (when a queue does not receive its fair share of buffers). Another is properly setting the RED slope parameters for the needs of services on this port or channel.

When configured on an egress queue group queue, this command and the queue-delay command are mutually exclusive. In order to change between the mbs and queue-delay parameters, the current parameter must be removed before adding the new parameter; that is, changing from mbs to queue-delay requires a no mbs before the queue-delay is configured and changing from queue-delay to mbs requires a no queue-delay before the mbs is configured. If queue-delay is configured for an egress queue group queue, it is not possible to override the MBS for that queue.

For policers, this command is used to configure the policer’s PIR leaky bucket’s high-priority violate threshold. The high-prio-only command is applied to the MBS value to derive the bucket’s low-priority violate threshold.

At ingress, trusted in-profile packets and untrusted high-priority packets use the policer’s high-priority violate threshold while trusted out-of-profile and untrusted low-priority packets use the policer's low-priority violate threshold.

At egress, inplus-profile and in-profile packets use the policer’s high-priority violate threshold and out-of-profile packets use the policer's low-priority violate threshold. Exceed-profile packets are discarded unless enable-exceed-pir is configured, in which case they are forwarded.

The PIR bucket’s violate threshold represents the maximum burst tolerance allowed by the policer. If the policer's offered rate is equal to or less than the policer's defined rate, the PIR bucket depth hovers around the 0 depth with spikes up to the maximum packet size in the offered load. If the offered rate increases beyond the metering rate, the amount of data allowed above the rate is capped by the threshold. The low-priority violate threshold provides a smaller burst size for the lower priority traffic associated with the policer. Since all lower priority traffic is discarded at the lower burst tolerance size, the remaining burst tolerance defined by high-prio-only is available for the higher priority traffic.

The policer’s mbs size defined in the QoS policy may be overridden on an SLA profile or SAP where the policy is applied.

The no form of this command returns the MBS size assigned to the queue to the value.

Default 

default

Parameters 
size —
For queues, the size parameter is an integer expression of the maximum number of bytes or kilobytes of buffering allowed for the queue. For a value of 100 kbytes, enter the value 100. A value of 0 causes the queue to discard all packets. For policers, the size parameter is an integer expression of the maximum number of bytes for the policer's MBS. The queue MBS maximum value used is constrained by the pool size in which the queue exists and by the shared pool space in the corresponding megapool.
Values—
0 to 2625 kilobytes, 0 to 2688000 bytes, or default

 

[bytes | kilobytes]—
Select bytes or kilobytes.
Default—
kilobytes
default—
Sets the MBS to its default value.

rate

Syntax 
rate pir-rate
no rate
Context 
config>qos>qgrps>egr>qgrp>hsmda-group>queue
Description 

This command specifies the PIR rates.

The no form of the command reverts to the default value.

Default 

rate max

Parameters 
pir-rate—
Specifies the PIR rates in kb/s.
Values—
1 to 1000000000, max

 

slope-policy

Syntax 
slope-policy hsmda-slope-policy-name
no slope-policy
Context 
config>qos>qgrps>egr>qgrp>hsmda-group>queue
Description 

This command specifies the name of the slope policy which overrides the default policy.

Parameters 
hsmda-slope-policy-name—
Specifies the name of the slope policy.

wrr-weight

Syntax 
wrr-weight weight
no wrr-weight
Context 
config>qos>qgrps>egr>qgrp>hsmda-queues>queue
Description 

This command specifies the WRR weight which this queue should parent into the scheduler. The weight of each queue determines how much bandwidth that queue gets out of the total rate for the scheduling class.

The no form of the command reverts to the default.

Default 

wrr-weight 1

Parameters 
weight—
Specifies WRR weight.
Values—
1 to 32

 

wrr-policy

Syntax 
wrr-policy wrr-policy-name
no wrr-policy
Context 
config>qos>qgrps>egr>qgrp>hsmda-queues
Description 

This command configures a WRR policy to assign to this HSMDA egress queue.

The no form of the command removes the policy from the configuration.

Parameters 
wrr-policy-name—
Specifies the WRR policy name, up to 32 characters.

policer

Syntax 
policer policer-id [create]
no policer policer-id
Context 
cfg>qos>qgrps>egr>queue-group
Description 

This command configures a QoS egress queue-group policer.

Parameters 
policer-id—
This required parameter identifies the queue-group policer that will either be created or edited within the queue group template.
Values—
1 to 8

 

create—
This optional keyword creates an ingress queue-group policer.

enable-exceed-pir

Syntax 
[no] enable-exceed-pir
Context 
cfg>qos>qgrps>egr>qgrp
Description 

This command enables the forwarding of traffic exceeding the PIR for a SAP egress or a network egress queue group (configured in the egress queue group template) policer. This traffic is forwarded as exceed-profile instead of being dropped.

Default 

no enable-exceed-pir

adaptation-rule

Syntax 
adaptation-rule [pir {max | min | closest}] [cir {max | min | closest}]
no adaptation-rule
Context 
config>qos>queue-group-templates>egress>queue-group>queue
Description 

This command defines the method used by the system to derive the operational CIR and PIR settings when the queue is provisioned in hardware. For the CIR and PIR parameters individually, the system attempts to find the best operational rate depending on the defined constraint.

When configured on an egress HSQ queue group queue, the cir keywords are ignored. This command is ignored for egress HSQ queue group queues which are attached to an HS WRR group within an associated HS attachment policy. In this case, the configuration of the adaptation rule is performed under the hs-wrr-group within the egress queue group template.

When a specific adaptation-rule is removed, the default constraints for pir and cir apply.

The no form of this command removes any explicitly defined constraints used to derive the operational CIR and PIR created by the application of the policy.

Default 

adaptation-rule pir closest cir closest

Parameters 
pir—
Defines the constraints enforced when adapting the queue's PIR. The pir parameter requires a qualifier that defines the constraint used when deriving the operational PIR for the queue. When the pir parameter is not specified, the default applies.
cir—
Defines the constraints enforced when adapting the queue's CIR defined. The cir parameter requires a qualifier that defines the constraint used when deriving the operational CIR for the queue. When the cir parameter is not specified, the default constraint applies.
max—
Specifies that the operational rate for the queue will be equal to or less than the requested rate.
min—
Specifies that the operational rate for the queue will be equal to or greater than the requested rate.
closest—
Specifies that the operational rate for the queue will be the rate closest to the requested rate.

exceed

Syntax 
exceed
Context 
cfg>qos>qgrps>egr>qgrp>queue>drop-tail
Description 

This command enters the context to configure the queue exceed drop-tail parameters. The exceed drop tail defines the queue depth beyond which exceed-profile packets will not be accepted into the queue and will be discarded.

percent-reduction-from-mbs

Syntax 
percent-reduction-from-mbs percent
no percent-reduction-from-mbs
Context 
config>config>qos>qgrps>egr>qgrp>queue>drop-tail>exceed
config>qos>qgrps>egr>qgrp>queue>drop-tail>high
config>qos>qgrps>egr>qgrp>queue>drop-tail>highplus
config>qos>qgrps>>qgrps>egr>egr>qgrp>queue>drop-tail>low
Description 

This command configures the egress queue group queue drop tails as a percentage reduction from the MBS of the queue. For example, if a queue has an MBS of 600 kbytes and the percentage reduction is configured to be 30% for the low drop tail, the low drop tail will be at 420 kbytes. Out-of-profile packets will not be accepted into the queue and will be discarded if the queue depth is greater than this value.

The drop tails apply to packets with the following profile states:

  1. exceed drop tail: exceed-profile
  2. high drop tail: in-profile
  3. highplus drop tail: inplus-profile
  4. low drop tail: out-of-profile
Default 

exceed drop tail: 20%

low drop tail: 10%

high drop tail: 0%

highplus drop tail: 0%

Parameters 
percent—
Specifies the percentage reduction from the MBS for a queue drop tail.
Values—
0 to 100, default

 

high

Syntax 
high
Context 
cfg>qos>qgrps>egr>qgrp>queue>drop-tail
Description 

This command enters the context to configure the queue high drop-tail parameters. The high drop tail defines the queue depth beyond which in-profile packets will not be accepted into the queue and will be discarded.

highplus

Syntax 
highplus
Context 
cfg>qos>qgrps>egr>qgrp>queue>drop-tail
Description 

This command enters the context to configure the queue highplus drop-tail parameters. The highplus drop tail defines the queue depth beyond which inplus-profile packets will not be accepted into the queue and will be discarded.

dynamic-mbs

Syntax 
[no] dynamic-mbs
Context 
config>qos>qgrps>egr>qgrp>queue
Description 

This command enables support for dynamically modifying the MBS size of a queue using HQoS in order to maintain the maximum latency for traffic in the queue based on the queue’s configured MBS and the ratio of its operational PIR to its administrative PIR. As the HQoS algorithm updates the operational PIR, by reducing or increasing it, the MBS of the queue is adjusted accordingly.

The configuration of dynamic MBS and the configuration of queue depth monitoring (monitor-depth command) are mutually exclusive. Queue depth monitoring is an override on the queue where the queue group is applied.

The no form of this command disables dynamic MBS resizing.

Default 

no dynamic-mbs

percent-rate

Syntax 
percent-rate pir-percent [cir cir-percent]
no percent-rate
Context 
config>qos>qgrps>egr>queue-group-template>queue
Description 

The percent-rate command within the egress queue group template enables support for a queue’s PIR and CIR rate to be configured as a percentage of the egress port’s line rate. When the rates are expressed as a percentage within the template, the actual rate used per instance of the queue group queue-id will vary based on the port speed. For example, when the same template is used to create a queue group on a 1-Gb and a 10-Gb Ethernet port, the queue’s rates will be 10 times greater on the 10 Gb port due to the difference in port speeds. This enables the same template to be used on multiple ports without needing to use port-based queue overrides to modify a queue’s rate to get the same relative performance from the queue.

If the port’s speed changes after the queue is created, the queue’s shaping and CIR rates will be recalculated based on the defined percentage value.

When configured on an egress HSQ queue group queue, the cir keyword is ignored.

This command is ignored for egress HSQ queue group queues which are attached to an HS WRR group within an associated HS attachment policy. In this case the configuration of the rate is performed under the hs-wrr-group within the egress queue group template.

The rate and percent-rate commands override one another. If the current rate for a queue is defined using the percent-rate command and the rate command is executed, the percent-rate values are deleted. Similarly, the percent-rate command causes any rate command values to be deleted. A queue’s rate may dynamically be changed back and forth from a percentage to an explicit rate at any time.

The no form of this command returns the queue to its default shaping rate and CIR rate.

Parameters 
pir-percent—
Expresses the queue’s shaping rate as a percentage of line rate. The line rate associated with the queue’s port may dynamically change due to configuration or auto-negotiation and the egress rate setting.
Values—
0.01 to 100.00 percent

 

Default—
100.0
cir-percent—
The cir keyword is optional and when defined, the required pir-percent parameter expresses the queue’s committed scheduling rate as a percentage of line rate. The line rate associated with the queue’s port may change dynamically due to configuration or auto-negotiation and the egress rate setting.
Values—
0.01 to 100.00 percent

 

Default—
100.0

port-parent

Syntax 
port-parent [weight weight] [level level] [cir-weight cir-weight] [cir-level cir-level]
no port-parent
Context 
config>qos>qgrps>egr>queue-group-template>queue
Description 

This command defines the port scheduling parameters used to control the queue’s behavior when a virtual egress port scheduling is enabled where the egress queue group template is applied. The port-parent command follows the same behavior and provisioning characteristics as the parent command in the SAP egress QoS policy. The port-parent command and the parent command are mutually exclusive.

The no form of this command removes the values from the configuration.

Default 

none

Parameters 
weight weight
Defines the weight the queue or scheduler will use at the above-CIR port priority level (defined by the level parameter).
Values—
0 to 100

 

Default—
1
level level
Defines the port priority the queue or scheduler will use to receive bandwidth for its above-CIR offered-load.
Values—
1 to 8 (8 is the highest priority)

 

Default—
1
cir-weight cir-weight
Defines the weight the queue or scheduler will use at the within-CIR port priority level (defined by the cir-level parameter). The weight is specified as an integer value from 0 to 100 with 100 being the highest weight. When the cir-weight parameter is set to a value of 0 (the default value), the queue or scheduler does not receive bandwidth during the port schedulers within-CIR pass and the cir-level parameter is ignored. If the cir-weight parameter is 1 or greater, the cir-level parameter is used.
Values—
0 to 100

 

Default—
0
cir-level cir-level
Defines the port priority the queue or scheduler will use to receive bandwidth for its within-CIR offered-load. If the cir-weight parameter is set to a value of 0 (the default value), the queue or scheduler does not receive bandwidth during the port schedulers within-CIR pass and the cir-level parameter is ignored. If the cir-weight parameter is 1 or greater, the cir-level parameter is used.
Values—
0 to 8 (8 is the highest priority)

 

Default—
0

queue-delay

Syntax 
queue-delay delay
no queue-delay
Context 
config>qos>qgrps>egr>qgrp>queue
Description 

This command configures the target queue delay for packets forwarded through the queue. It is used to determine the related queue parameters based on the administrative PIR of the queue. This command and the mbs command are mutually exclusive.

In order to change between the mbs and queue-delay parameters, the current parameter must be removed before adding the new parameter; that is, changing from mbs to queue-delay requires a no mbs before the queue-delay is configured and changing from queue-delay to mbs requires a no queue-delay before the mbs is configured.

If queue-delay is configured for an egress queue group queue, it is not possible to override the MBS for that queue.

The no form of this command disables the determination of the queue parameters based on the queue delay.

Default 

no queue-delay

Parameters 
delay—
Specifies the target queue delay in ms.
Values—
0 to 5000 (decimal)

 

rate

Syntax 
rate pir-rate [cir cir-rate]
no rate
Context 
config>qos>queue-group-templates>egress>queue-group>queue
Description 

This command defines the administrative PIR and the administrative CIR parameters for the queue. The PIR defines the maximum rate that the queue can transmit packets out an egress port. Defining a PIR does not necessarily guarantee that the queue can transmit at the intended rate. The actual rate sustained by the queue can be limited by oversubscription factors or available egress bandwidth.

The CIR defines the rate at which the system prioritizes the queue over other queues competing for the same bandwidth. In-profile packets are preferentially queued by the system at egress and at subsequent next hop nodes where the packet can traverse. To be properly handled as in- or out-of-profile throughout the network, the packets must be marked accordingly for profiling at each hop.

The CIR can be used by the queue’s parent commands cir-level and cir-weight parameters to define the amount of bandwidth considered to be committed for the child queue during bandwidth allocation by the parent scheduler.

The rate command can be executed at any time, altering the PIR and CIR for all queues created through the association of the egress queue group template with the queue-id.

When configured on an egress HSQ queue group queue, the cir keyword is ignored.

This command is ignored for egress HSQ queue group queues which are attached to an HS WRR group within an associated HS attachment policy. In this case, the configuration of the rate is performed under the hs-wrr-group within the SAP egress QoS policy.

The no form of this command returns all queues created with the queue-id by association with the QoS policy to the default PIR and CIR parameters (max, 0).

Default 

rate max cir 0

Parameters 
pir-rate—
Defines the administrative PIR rate, in kilobits, for the queue. When the rate command is executed, a valid PIR setting must be explicitly defined. When the rate command has not been executed, the default PIR of max is assumed.

Fractional values are not allowed and must be given as a positive integer.

The actual PIR rate is dependent on the queue’s adaptation-rule parameters and the actual hardware where the queue is provisioned.

Values—
1 to 200000000 kb/s, max

 

Default—
max
cir-rate—
The cir parameter overrides the default administrative CIR used by the queue. When the rate command is executed, a CIR setting is optional. When the rate command has not been executed or the cir parameter is not explicitly specified, the default CIR (0) is assumed.

Fractional values are not allowed and must be given as a positive integer.

Values—
0 to 200000000 kb/s, max

 

Default—
0

wred-queue

Syntax 
wred-queue [policy slope-policy-name] [mode {native | pool-per-queue}] [slope-usage {default | exceed-low}]
no wred-queue
Context 
config>qos>qgrps>egr>qgrp>queue
Description 

This command allows the configuration of WRED per queue with the following options:

  1. Native hardware WRED
    This uses the hardware per queue WRED capabilities of FP3- and higher-based hardware and is configured with the native keyword.
  2. Pool per queue WRED
    This implements each queue in its own pool and uses the WRED capabilities of the pool to provide WRED per queue. This is configured with the pool-per-queue keyword.

Native Hardware WRED

When the wred-queue mode native command is configured, the queue uses the WRED capabilities of FP3- and higher-based hardware. In this case, the out and exceed-profile traffic map to the low and exceed WRED slopes specified within the slope policy, and the inplus and in-profile traffic uses the MBS drop tail; this requires the slope-usage to be configured as exceed-low. The instantaneous queue depth is compared against the low and exceed slopes so the time average factor in the slope policy is ignored.

When a policy is not explicitly defined, the default slope policy is used.

When native mode is enabled for a queue, the drop-tail commands are ignored; traffic mapped to a slope that is shut down will use the MBS drop tail.

Native hardware WRED is supported on FP3- and higher-based hardware and is ignored on FP2 hardware.

The no form of this command restores the queue default congestion control behavior to the queue.

Pool-per-queue WRED

When the wred-queue mode pool-per-queue command is defined and the queue ID is created, a buffer pool is created specifically for the queue and the queue obtains all buffers from that pool. The size of the pool is the same as the size of the queue. In this manner, the WRED slopes that operate based on the pool’s buffer utilization are also reacting to the congestion depth of the queue.

The size of the buffer pool is dictated by the queue’s mbs parameter. The size of the reserved CBS portion of the buffer pool is dictated by the queue’s cbs parameter. The provisioning characteristics of the mbs and cbs commands are not changed.

In the case where this is applied with WRED queue support shut down (config>card>fp>egress>wred-queue-control>shutdown), the queue will continue to map to its default pool. If the no shutdown command is executed in the wred-queue-control context, the queue will be automatically moved to its own WRED pool.

Each pool created for a queue using the wred-queue command shares buffers with all other wred-queue enabled queues on the same forwarding plane. The WRED pool buffer management behavior is defined within the config>card>fp>egress>wred-queue-control CLI context.

The WRED slopes within the pool are defined by the slope policy associated with the queue. When a policy is not explicitly defined, the default slope policy is used. The slope policy enables, disables, and defines the relative geometry of the highplus, high, low, and exceed WRED slopes in the pool. The policy also specifies the time average factor used by the pool when calculating the weighted average pool depth.

As packets attempt to enter the egress queue, they are associated with the highplus, high, low, or exceed WRED slope based on the packet’s profile. If the packet is inplus-profile, the highplus slope is used. If the packet is in-profile, the high slope is used. If the packet is out-of-profile, the low slope is used, and if the packet is exceed-profile, the exceed slope is used. This mapping of packet profile to slope is enabled using the slope-usage default parameter. Each WRED slope performs a probability discard based on the current weighted average pool depth.

When wred-queue is enabled for an egress queue group queue, the queue pool and drop-tail commands are ignored; traffic mapped to a slope that is shut down will use the MBS drop tail.

The resource usage for the wred-queue pool-per-queue per forwarding plane can be seen in the tools dump resource-usage card [slot-num] fp [fp-number] output under Dynamic Q2 Wred Pools.

The no form of this command restores the generic buffer pool behavior to the queue. The WRED pool is removed from the system. The queue will be moved to the default buffer pool. The queue then uses the default congestion control behavior.

Default 

no wred-queue

Parameters 
slope-policy-name
Specifies an existing slope policy that is used to override the default WRED slope policy.
mode {native | pool-per-queue} —
Specifies whether the WRED per queue is using the native FP3- and higher-based hardware WRED capabilities or pool per queue.
Values—
native - Each queue uses the hardware per queue WRED capabilities of the FP3- and higher-based hardware and requires slope-usage exceed-low.
pool-per-queue - Each queue uses its own pool and the WRED capabilities of the pool to provide WRED per queue. This requires slope-usage default.

 

Default—
native
slope-usage {default | exceed-low}—
Specifies the type of congestion control to be used.
Values—
default - Maps the inplus-profile, in-profile, out-of-profile, and exceed-profile traffic to the highplus, high, low, and exceed WRED slopes, respectively; this is only supported for pool-per-queue mode.
exceed-low - Maps the out-of-profile and exceed-profile traffic to the low and exceed WRED slopes, with the inplus-profile and in-profile traffic using the MBS drop tail. This option is only supported for native mode.

 

Default—
exceed-low

queues-hqos-manageable

Syntax 
[no] queues-hqos-manageable
Context 
config>qos>qgrps>egr>qgrp
Description 

This command specifies that the queues within this egress queue group template are to be managed by the Hierarchical QoS (HQoS) process when the template is applied to an Ethernet access egress or network egress context. It is applicable to all egress queue group templates, including the default policer-output-queues template.

The no queues-hqos-manageable command must be configured for access egress queue groups that are used for post-policer traffic in order to prevent HQoS from measuring the traffic through a policer managed by HQoS then again through a post-policer access egress queue group queue.

Avoid scenarios that result in traffic being either not being measured or being measured twice by HQoS as they will cause the HQoS result to be inaccurate.

A template configured for no queues-hqos-manageable cannot be applied to an Ethernet network egress context. Any egress queue group templates applied to an Ethernet network egress context cannot be configured as no queues-hqos-manageable. The configuration of no queues-hqos-manageable and the configuration of policers and queue packet-byte-offset within the egress queue group template are mutually exclusive.

When a queue group template with no queues-hqos-manageable is configured under a port's Ethernet access egress context, the configuration of an aggregate rate or scheduler policy is not permitted under that context, nor are parent overrides for any of the queues in the queue group. If a port scheduler is configured on the port, the queue group queues are not parented to the port scheduler.

The no form of this command specifies that queues within this egress queue group are not managed by HQoS.

Default 

queues-hqos-manageable

queue-group-redirect-list

Syntax 
queue-group-redirect-list redirect-list-name [create]
no queue-group-redirect-list redirect-list-name
Context 
config>qos
Description 

This command configures a queue group redirect list that is used to redirect traffic to different instances of a queue group.

The no form of this command deletes the queue group redirect list. A list can only be deleted when there no references to it.

Parameters 
redirect-list-name —
Specifies the name of the queue group redirect list, up to 32 characters.

match

Syntax 
match field-value instance instance-id
no match field-value
Context 
config>qos>queue-group-redirect-list
Description 

This command configures the value of the field in the ingress or egress packet which, when matched, will cause the packet to be redirected to the specified queue group instance. The field-value is dependent on the setting of the type and therefore must be a valid VXLAN VNI.

A maximum of 16 match statements are supported in a queue group redirect list.

The no form of this command removes the match statement from the redirect list.

Parameters 
field-value —
Specifies the value of the field in the ingress or egress packet which, when matched, will cause the packet to be redirected to the specified queue group instance. Because the only permitted type is vxlan-vni, the field must be a valid VXLAN VNI. The VNI can be specified in any of the available formats but is always shown in decimal.
Values—
1 to 16777215 (Decimal)
0x1 to 0xFFFFFF (Hexadecimal)
0b1 to 0b111111111111111111111111 (Binary)

 

instance-id —
Specifies the instance of the queue group template to which the VXLAN traffic is redirected. The traffic can be redirected to the default instance, which is the instance specified with the QoS policy under the SAP ingress or egress.
Values—
1 to 65535

 

type

Syntax 
type redirect-list-type
no type
Context 
config>qos>queue-group-redirect-list
Description 

This command configures the type of a queue group redirect list. The default value is vxlan-vni, which is the only possible value.

Parameters 
redirect-list-type —
Specifies the type of the queue group redirect list. The queue group redirect list is used to match VXLAN VNIs in IPv4 and IPv6 VXLAN or VXLAN GPE packets.
Values—
vxlan-vni

 

stat-mode

Syntax 
stat-mode {no-stats | minimal | offered-profile-no-cir | offered-profile-cir | offered-total-cir | offered-limited-capped-cir | offered-profile-capped-cir | offered-total-cir-exceed | offered-four-profile-no-cir | offered-total-cir-four-profile}
no stat mode
Context 
cfg>qos>qgrps>egr>qgrp>policer
Description 

The sap-egress QoS policy's policer stat-mode command is used to configure the forwarding plane counters that allow offered, forwarded, and dropped accounting to occur for the policer. An egress policer has multiple types of offered packets (soft in-profile and out-of-profile from ingress and hard in-profile, out-of-profile, and exceed-profile due to egress profile overrides) and each of these offered types is interacting with the policer’s metering and profiling functions resulting in colored output packets (green, yellow, and red). Due to the potential large number of egress policers, it is not economical to allocate counters in the forwarding plane for all possible offered packet types and output conditions. Many policers, for example, will not be configured with a CIR profiling rate and not all policers will receive explicitly reprofiled offered packets. The stat-mode command allows provisioning of the number of counters each policer requires and how the offered packet types and output conditions should be mapped to the counters.

While a no-stats mode is supported that prevents any packet accounting, the use of the policer's parent command requires that the policer’s stat-mode to be set at least to the minimal setting so that offered stats are available for the policer’s Fair Information Rate (FIR) to be calculated. When a policer has been made a child to a parent policer, the stat-mode cannot be changed to no-stats unless the policer parenting is first removed.

Each time the policer's stat-mode is changed, any previous counter values are lost and any new counters are set to zero.

Each mode uses a certain number of counters per policer instance that are allocated from the forwarding plane's policer counter resources. The total/allocated/free stats can be viewed by using the tools dump resource-usage card fp command. If insufficient counters exist to implement a mode on any policer instance, the stat-mode change will fail and the previous mode will continue unaffected for all instances of the policer.

The ingress policer stat-modes are described in Table 70.

Table 70:   Egress Policer Stat Mode Summary 

Stat Mode

Stat Resources

Traffic Counters (Packet/Octets)

Comments

Offered

Dropped/Forwarded

no-stats

0

None

None

Minimal

1

Single counter entering policer

Single counter for dropped/forwarded exiting policer

offered-profile-no-cir

2

In/out entering policer

In/out entering policer

Intended for when the policer does not change the profile of packets. Includes only in- and out-of-profile.

offered-profile-cir

4

In/out/uncolored (that corresponds to in- or out-of-profile from the ingress processing) entering policer

In/out exiting policer

Intended for when the policer can change the profile of packets to in- and out-of-profile.

offered-total-cir

2

Single counter entering policer

In/out exiting policer

offered-limited-capped-cir

4

In/out entering policer

In/out exiting policer

Intended for when the policer has profile-capped configured. The information is limited compared to offered-profile-capped-cir with the benefit of using one less stat resource.

offered-profile-capped-cir

5

In/out/uncolored (that corresponds to in- or out-of-profile from the ingress processing) entering policer

In/out exiting policer

Intended for when the policer has profile-capped configured.

offered-total-cir-exceed

3

Single counter entering policer

In/out/exceed exiting policer

Intended for when the policer is configured with enable-exceed-pir to forward packets that exceed its configured PIR or when traffic is egress reclassified to profile exceed.

offered-four-profile-no-cir

4

Inplus/in/out/exceed entering policer

Inplus/in/out/exceed entering policer

Intended to be used when the policer does not change the profile of the packets and traffic is egress reclassified to profile inplus and/or exceed.

offered-total-cir-four-profile

4

Single counter entering policer

Inplus/in/out/exceed exiting

policer

Intended to be used when the policer can change the profile of the packet and traffic is egress reclassified to profile inplus.

The default stat-mode when a policer is created within the policy is minimal.

The stat-mode setting defined for the policer in the QoS policy may be overridden on an sla-profile or SAP where the policy is applied. If insufficient policer counter resources exist to implement the override, the stat-mode override command will fail. The previous stat-mode setting active for the policer will continue to be used by the policer.

The no form of this command attempts to return the policer’s stat-mode setting to minimal. The command will fail if insufficient policer counter resources exist to implement minimal where the QoS policer is currently applied and has a forwarding class mapping.

Parameters 
no-stats—
Counter resource allocation: 0

The policer does not have any forwarding plane counters allocated and cannot provide offered, discard, and forward statistics. A policer using no-stats cannot be a child to a parent policer and the policer’s parent command will fail.

When collect-stats is enabled, no statistics are generated.

minimal—
Counter resource allocation: 1

This stat-mode provides the minimal accounting resource usage and counter information, and includes only the total offered, dropped and forwarded packet and octet counters for traffic entering (offered) and exiting (dropped/forwarded) the policer.

The default stat-mode for a policer is minimal. The minimal mode allocates one forwarding plane offered counter and one traffic manager discard counter. The forwarding counter is derived by subtracting the discard counter from the offered counter. The counters do not differentiate possible offered types and do not count different profile output. This does not prevent the policer from supporting different offered packet types and does not prevent the policer from supporting a CIR rate or using exceed PIR.

The counters displayed in the show output and those collected when collect-stats is enabled are described in Table 71 (the actual fields collected depends on the record configured in the applied accounting policy).

Table 71:  Egress Accounting Statistics Collected in minimal stat-mode  

Show Output

Accounting Stats Collected

Field

Field Description

Off. All

apo

AllPacketsOffered

aoo

AllOctetsOffered

Dro. All

apd

AllPacketsDropped

aod

AllOctetsDropped

For. All

apf

AllPacketsForwarded

aof

AllOctetsForwarded

offered-profile-no-cir —
Counter resource allocation: 2

This stat-mode provides offered, dropped and forwarded packet and octet counters corresponding to the profile of traffic entering the policer. inplus-profile traffic is counted with the in-profile counters and exceed-profile traffic is counted with the out-of-of profile counters.

The offered-profile-no-cir mode allocates two forwarding plane offered counters and two traffic manager discard counters.

The offered-profile-no-cir mode is most useful when profile-based offered, dropped and forwarded statistics are required from the egress policer, but a CIR or enable-exceed-pir is not being used to recolor the soft in-profile and out-of-profile packets. This mode does not prevent the policer from being configured with a CIR rate or using enable-exceed-pir.

This mode is intended to be used without profile-capped configured within the policer as it could cause the traffic profile to be modified by the policer.

The counters displayed in the show output and those collected when collect-stats is enabled are described in Table 72 (the actual fields collected depends on the record configured in the applied accounting policy).

Table 72:  Egress Accounting Statistics Collected in offered-profile-no-cir stat-mode  

Show Output

Accounting Stats Collected

Field

Field Description

Off. InProf

ipo

InProfilePacketsOffered

ioo

InProfileOctetsOffered

Off. OutProf

opo

OutOfProfilePacketsOffered

ooo

OutOfProfileOctetsOffered

Dro. InProf

ipd

InProfilePacketsDropped

iod

InProfileOctetsDropped

Dro. OutProf

opd

OutOfProfilePacketsDropped

ood

OutOfProfileOctetsDropped

For. InProf

ipf

InProfilePacketsForwarded

iof

InProfileOctetsForwarded

For. OutProf

opf

OutOfProfilePacketsForwarded

oof

OutOfProfileOctetsForwarded

offered-profile-cir —
Counter resource allocation: 4

This stat-mode provides offered, dropped and forwarded packet and octet counters corresponding to the profile of traffic entering (offered) and exiting (dropped/forwarded) the policer when egress reclassification is performed so that the traffic entering the policer comprises of hard inplus/in/out/exceed and soft in/out. The offered counters cover traffic reclassified to in-profile (that includes traffic reclassified to inplus-profile), traffic reclassified to out-of-profile (that includes traffic reclassified to exceed-profile), and traffic that has not been reclassified at egress (Uncolor). In the dropped and forwarded counters, inplus-profile traffic is counted with the in-profile counter and exceed-profile traffic is counted with the out-of-profile counter.

The offered-profile-cir mode allocates four forwarding plane offered counters and four traffic manager discard counters.

The offered-profile-cir mode is most useful when profile-based offered, dropped and forwarded stats are required from the egress policer and a CIR rate is being used to recolor the soft in-profile and out-of-profile packets.

This mode is intended to be used without profile-capped or enable-exceed-pir configured within the policer as these could cause the traffic profile to be modified by the policer in a way that is not accounted for in the statistics.

The counters displayed in the show output and those collected when collect-stats is enabled are described in Table 73 (the actual fields collected depends on the record configured in the applied accounting policy).

Table 73:  Egress Accounting Statistics Collected in offered-profile-cir stat-mode  

Show Output

Accounting Stats Collected

Field

Field Description

Off. InProf

ipo

InProfilePacketsOffered

ioo

InProfileOctetsOffered

Off. OutProf

opo

OutOfProfilePacketsOffered

ooo

OutOfProfileOctetsOffered

Off. Uncolor

ucp

UncoloredPacketsOffered

uco

UncoloredOctetsOffered

Dro. InProf

ipd

InProfilePacketsDropped

iod

InProfileOctetsDropped

Dro. OutProf

opd

OutOfProfilePacketsDropped

ood

OutOfProfileOctetsDropped

For. InProf

ipf

InProfilePacketsForwarded

iof

InProfileOctetsForwarded

For. OutProf

opf

OutOfProfilePacketsForwarded

oof

OutOfProfileOctetsForwarded

offered-total-cir—
Counter resource allocation: 2

This stat-mode provides offered, dropped, and forwarded packet and octet counters corresponding to the profile of traffic entering (offered) and exiting (dropped/forwarded) the policer. All offered traffic is provided in a single counter. In the dropped and forwarded counters, inplus-profile traffic is counted with the in-profile counter and exceed-profile traffic is counted with the out-of-profile counter.

The offered-total-cir mode allocates two forwarding plane offered counters and two traffic manager discard counters.

The offered-total-cir mode is most useful when the policer is not receiving trusted in-profile or out-of-profile traffic and both high- and low-priority classifications are not being used on the untrusted packets and the offered packets are being applied to a defined CIR profiling rate. This mode does not prevent the policer from receiving trusted in-profile or out-of-profile packets and does not prevent the use of priority high or low classifications on the untrusted packets.

This mode is intended to be used without profile-capped or enable-exceed-pir configured within the policer as these could cause the traffic profile to be modified by the policer in a way that is not accounted for in the statistics.

The counters displayed in the show output and those collected when collect-stats is enabled are described in Table 74 (the actual fields collected depends on the record configured in the applied accounting policy).

Table 74:  Egress Accounting Statistics Collected in offered-total-cir stat-mode  

Show Output

Accounting Stats Collected

Field

Field Description

Off. All

apo

AllPacketsOffered

aoo

AllOctetsOffered

Dro. InProf

ipd

InProfilePacketsDropped

iod

InProfileOctetsDropped

Dro. OutProf

opd

OutOfProfilePacketsDropped

ood

OutOfProfileOctetsDropped

For. InProf

ipf

InProfilePacketsForwarded

iof

InProfileOctetsForwarded

For. OutProf

opf

OutOfProfilePacketsForwarded

oof

OutOfProfileOctetsForwarded

offered-limited-capped-cir —
Counter resource allocation: 4

This stat-mode provides offered, dropped and forwarded packet and octet counters corresponding to the profile of traffic entering (offered) and exiting (dropped/forwarded) the policer when egress reclassification is performed so that the traffic entering the policer comprises of hard inplus/in/out/exceed and soft in/out. The offered counters cover in-profile traffic (that includes traffic reclassified to inplus-profile) and out-of-profile traffic (that includes traffic reclassified to exceed-profile). In the dropped and forwarded counters, inplus-profile traffic is counted with the in-profile counter and exceed-profile traffic is counted with the out-of-profile counter.

When offered-limited-capped-cir is defined, the system creates four forwarding plane offered-output counters in the network processor and three discard counters in the traffic manager.

The offered-limited-capped-cir mode is similar to the offered-profile-capped-cir mode except that it combines soft-in-profile with profile in and soft-out-of-profile with profile out and eliminates the offered-undefined statistic.

The impact of using offered-limited-capped-cir stat-mode while profile-capped mode is disabled is that one of the counting resources in the forwarding plane and traffic manager will not be used and soft-in-profile will be treated as offered-in instead of offered-undefined.

This mode is intended to be used with profile-capped configured within the policer but without enable-exceed-pir configured as this could cause the traffic profile to be modified by the policer in a way that is not accounted for in the statistics.

The counters displayed in the show output and those collected when collect-stats is enabled are described in Table 75 (the actual fields collected depends on the record configured in the applied accounting policy).

Table 75:  Egress Accounting Statistics Collected in offered-limited-capped-cir stat-mode  

Show Output

Accounting Stats Collected

Field

Field Description

Off. InProf

ipo

InProfilePacketsOffered

ioo

InProfileOctetsOffered

Off. OutProf

opo

OutOfProfilePacketsOffered

ooo

OutOfProfileOctetsOffered

Dro. InProf

ipd

InProfilePacketsDropped

iod

InProfileOctetsDropped

Dro. OutProf

opd

OutOfProfilePacketsDropped

ood

OutOfProfileOctetsDropped

For. InProf

ipf

InProfilePacketsForwarded

iof

InProfileOctetsForwarded

For. OutProf

opf

OutOfProfilePacketsForwarded

oof

OutOfProfileOctetsForwarded

offered-profile-capped-cir —
Counter resource allocation: 5

This stat-mode provides offered, dropped, and forwarded packet and octet counters corresponding to the profile of traffic entering (offered) and exiting (dropped/forwarded) the policer when egress reclassification is performed so that the traffic entering the policer is comprised of hard inplus, hard in, hard out, and hard exceed, as well as soft in and soft out. The offered counters cover traffic reclassified to in-profile (that includes traffic reclassified to inplus-profile), traffic reclassified to out-of-profile (that includes traffic reclassified to exceed-profile), and traffic that has not been reclassified at egress (uncolor). In the dropped and forwarded counters, inplus-profile traffic is counted with the in-profile counter and exceed-profile traffic is counted with the out-of-profile counter.

When offered-profile-capped-cir is defined, the system creates five offered-output counters in the forwarding plane and five discard counters in the traffic manager.

The offered-profile-capped-cir mode is similar to the offered-profile-cir mode except that it includes support for profile inplus, profile in, and soft-in-profile that may be output as out-of-profile due to enabling profile-capped mode on the ingress policer.

The impact of using offered-profile-capped-cir stat-mode while profile-capped mode is disabled is that one of the counting resources in the forwarding plane and traffic manager will not be used and soft-in-profile will be treated as offered-in (hard in-profile) instead of offered-undefined (uncolored).

This mode is intended to be used with profile-capped configured within the policer but without enable-exceed-pir configured as this could cause the traffic profile to be modified by the policer in a way that is not accounted for in the statistics.

The counters displayed in the show output and those collected when collect-stats is enabled are described in Table 76 (the actual fields collected depends on the record configured in the applied accounting policy).

Table 76:  Egress Accounting Statistics Collected in offered-profile-capped-cir stat-mode  

Show Output

Accounting Stats Collected

Field

Field Description

Off. InProf

ipo

InProfilePacketsOffered

ioo

InProfileOctetsOffered

Off. OutProf

opo

OutOfProfilePacketsOffered

ooo

OutOfProfileOctetsOffered

Off. Uncolor

ucp

UncoloredPacketsOffered

uco

UncoloredOctetsOffered

Dro. InProf

ipd

InProfilePacketsDropped

iod

InProfileOctetsDropped

Dro. OutProf

opd

OutOfProfilePacketsDropped

ood

OutOfProfileOctetsDropped

For. InProf

ipf

InProfilePacketsForwarded

iof

InProfileOctetsForwarded

For. OutProf

opf

OutOfProfilePacketsForwarded

oof

OutOfProfileOctetsForwarded

offered-total-cir-exceed —
Counter resource allocation: 3

This stat-mode provides offered, dropped, and forwarded packet and octet counters corresponding to the profile of traffic entering (offered) and exiting (dropped/forwarded) the policer. All offered traffic is provided in a single counter. In the dropped and forwarded counters, inplus-profile traffic is counted with the in-profile counter. The offered-total-cir-exceed mode allocates three forwarding plane offered counters and three traffic manager discard counters.

The offered-total-cir-exceed mode is similar to the offered-total-cir mode except that it includes support for forwarded and dropped counters for profile exceed.

This mode is intended to be used when the policer is configured with enable-exceed-pir to forward packets that exceed its configured PIR or when traffic is egress reclassified to profile exceed. The mode gives the forwarded and dropped counters per profile (in, out, exceed). It is also intended to be used without profile-capped configured within the policer as it could cause the traffic profile to be modified by the policer. This stat-mode is not supported for dynamic policers.

The counters displayed in the show output and those collected when collect-stats is enabled are described in Table 77 (the actual fields collected depends on the record configured in the applied accounting policy).

Table 77:  Egress Accounting Statistics Collected in offered-total-cir-exceed stat-mode  

Show Output

Accounting Stats Collected

Field

Field Description

Off. All

apo

AllPacketsOffered

aoo

AllOctetsOffered

Dro. InProf

ipd

InProfilePacketsDropped

iod

InProfileOctetsDropped

Dro. OutProf

opd

OutOfProfilePacketsDropped

ood

OutOfProfileOctetsDropped

Dro. ExcProf

xpd

ExceedProfilePktsDropped

xod

ExceedProfileOctetsDropped

For. InProf

ipf

InProfilePacketsForwarded

iof

InProfileOctetsForwarded

For. OutProf

opf

OutOfProfilePacketsForwarded

oof

OutOfProfileOctetsForwarded

For. ExcProf

xpf

ExceedProfilePktsForwarded

xof

ExceedProfileOctetsForwarded

offered-four-profile-no-cir —
Counter resource allocation: 4

This stat-mode provides offered, dropped, and forwarded packet and octet counters corresponding to the profile of traffic entering the policer. Offered, dropped, and forwarded counters are provided for inplus-profile, in-profile, out-of-profile, and exceed-profile traffic.

The offered-four-profile-no-cir mode allocates four forwarding plane offered counters and four traffic manager discard counters.

The offered-four-profile-no-cir mode is similar to the offered-profile-no-cir mode except that it includes support for offered, dropped and forwarded counters for both profile inplus and profile exceed.

This mode is intended to be used when traffic is egress reclassified to profile inplus and/or exceed. It is also intended to be used without profile-capped configured within the policer as it could cause the traffic profile to be modified by the policer. This stat-mode is not supported for dynamic policers.

The counters displayed in the show output and those collected when collect-stats is enabled are described in Table 78 (the actual fields collected depends on the record configured in the applied accounting policy).

Table 78:  Egress Accounting Statistics Collected in offered-four-profile-no-cir stat-mode  

Show Output

Accounting Stats Collected

Field

Field Description

Off. InProf

ipo

InProfilePacketsOffered

ioo

InProfileOctetsOffered

Off. OutProf

opo

OutOfProfilePacketsOffered

ooo

OutOfProfileOctetsOffered

Off. ExcProf

xpo

ExceedProfilePacketsOffered

xoo

ExceedProfileOctetsOffered

Off. InplusProf

ppo

InplusProfilePacketsOffered

poo

InplusProfileOctetsOffered

Dro. InProf

ipd

InProfilePacketsDropped

iod

InProfileOctetsDropped

Dro. OutProf

opd

OutOfProfilePacketsDropped

ood

OutOfProfileOctetsDropped

Dro. ExcProf

xpd

ExceedProfilePktsDropped

xod

ExceedProfileOctetsDropped

Dro. InplusProf

ppd

InplusProfilePktsDropped

pod

InplusProfileOctetsDropped

For. InProf

ipf

InProfilePacketsForwarded

iof

InProfileOctetsForwarded

For. OutProf

opf

OutOfProfilePacketsForwarded

oof

OutOfProfileOctetsForwarded

For. ExcProf

xpf

ExceedProfilePktsForwarded

xof

ExceedProfileOctetsForwarded

For. InplusProf

ppf

InplusProfilePktsForwarded

pof

InplusProfileOctetsForwarded

offered-total-cir-four-profile —
Counter resource allocation: 4

This stat-mode provides offered, dropped, and forwarded packet and octet counters corresponding to the profile of traffic entering (offered) and exiting (dropped/forwarded) the policer. All offered traffic is provided in a single counter. There is a separate dropped and forwarded counter for inplus, in, out, and exceed-profile traffic.

The offered-total-cir-four-profile mode allocates four forwarding plane offered counters and four traffic manager discard counters.

The offered-total-cir-four-profile mode is similar to the offered-total-cir except that it includes support for forwarded and dropped counters for both inplus-profile and exceed-profile.

This mode is intended to be used when traffic is egress reclassified to inplus-profile. It is also intended to be used without profile-capped configured within the policer as it could cause the traffic profile to be modified by the policer. This stat-mode is not supported for dynamic policers.

The counters displayed in the show output and those collected when collect-stats is enabled are described in Table 79 (the actual fields collected depends on the record configured in the applied accounting policy).

Table 79:  Egress Accounting Statistics Collected in offered-total-cir-four-profile stat-mode  

Show Output

Accounting Stats Collected

Field

Field Description

Off. All

apo

AllPacketsOffered

aoo

AllOctetsOffered

Dro. InProf

ipd

InProfilePacketsDropped

iod

InProfileOctetsDropped

Dro. OutProf

opd

OutOfProfilePacketsDropped

ood

OutOfProfileOctetsDropped

Dro. ExcProf

xpd

ExceedProfilePktsDropped

xod

ExceedProfileOctetsDropped

Dro. InprofProf

ppd

InplusProfilePktsDropped

pod

InplusProfileOctetsDropped

For. InProf

ipf

InProfilePacketsForwarded

iof

InProfileOctetsForwarded

For. OutProf

opf

OutOfProfilePacketsForwarded

oof

OutOfProfileOctetsForwarded

For. ExcProf

xpf

ExceedProfilePktsForwarded

xof

ExceedProfileOctetsForwarded

For. InplusProf

ppf

InplusProfilePktsForwarded

pof

InplusProfileOctetsForwarded

queue

Syntax 
queue queue-id [queue-type] [create]
no queue queue-id
Context 
cfg>qos>qgrps>egr>queue-group
Description 

This command creates a queue for use in a queue group template. When created, the defined queue-id acts as a repository for the default parameters for the queue. The template queue is created on each queue group object that is created with the queue group template name. Each queue is identified within the template by a queue ID. The template ensures that all queue groups created with the template name will have the same queue-ids providing a uniform structure for the forwarding class redirection commands in the SAP egress QoS policies. The parameters within the template queue will be used as the default settings for each queue in the actual queue group. The queue parameters may be individually changed for each queue in each queue group using per queue overrides.

Parameters 
queue-id—
Specifies the queue ID. The specified queue-id must exist within the egress queue group template.
Values—
1 to 8

 

queue-type—
Specifies the method that the system uses to service the queue from a hardware perspective.
Values—
expedite, best-effort
expedite — This keyword ensures that the queue is treated in an expedited manner independent of the forwarding classes mapped to the queue.
best-effort — This keyword ensures that the queue is treated in a non-expedited manner independent of the forwarding classes mapped to the queue.

 

Default—
best-effort

8.12.2.2. Show Commands

The command outputs in the following section are examples only; actual displays may differ depending on supported functionality and user configuration.

queue-group

Syntax 
queue-group [queue-group-name] {ingress | egress} [{association | detail}]
queue-group summary
Context 
show>qos
Description 

This command displays queue-group information.

Parameters 
queue-group-name—
Specifies the name of an existing queue group template up to 32 characters.
ingress—
Specifies whether the queue group name is an ingress policy.
egress—
Specifies whether the queue group name is an egress policy.
association—
Displays the entities associated with the specified queue group name.
detail—
Displays detailed queue group information for the specified queue group name.
summary—
Displays the total number of queue-group instances per card (IOM or XCM).
Output 

The following outputs are examples of queue group information.

Sample Output
*A:PE# show qos queue-group egress
 
===============================================================================
Queue Group Egress
===============================================================================
Group-Name                        Description
-------------------------------------------------------------------------------
qg1
_tmnx_nat_egr_q_grp               NAT/LNS Egress Queue Group Template
policer-output-queues             Default egress policer output queues.
_tmnx_nat_egr_q_grp_v2            NAT/LNS Egress Queue Group Template for ISAv2
_tmnx_lns_esm_egr_q_grp           LNS ESM Egress Queue Group Template
-------------------------------------------------------------------------------
Egress Queue Groups     : 5
-------------------------------------------------------------------------------
===============================================================================
*A:PE#
*A:PE# show qos queue-group egress "qg1" detail
 
===============================================================================
QoS Queue-Group Egress
===============================================================================
 
-------------------------------------------------------------------------------
QoS Queue Group
-------------------------------------------------------------------------------
Group-Name              : qg1
Description             : (Not Specified)
Queues HQoS Managed     : True
HS Attachment Policy    : default
 
-------------------------------------------------------------------------------
Queue Information
-------------------------------------------------------------------------------
Queue-Id             : 1                Queue-Type           : best-effort
Admin PIR            : 50000            Admin CIR            : 0
PIR Rule             : closest          CIR Rule             : closest
CBS                  : def              MBS                  : 1000 KB
Packet Byte Offset   : add 0
Adv Config Policy    : (Not Specified)
Parent               : s1
PIR Level/Weight     : 1/1              CIR Level/Weight     : 0/1
Burst Limit          : default
Wred Queue Mode      : none             Wred Queue SlopeUsage: not-applicable
Slope Policy         : default
Dynamic MBS          : enabled          Queue Delay          : not-applicable
High-Plus Drop Tail  : def              High Drop Tail       : def
Low Drop Tail        : def              Exceed Drop Tail     : def
 
-------------------------------------------------------------------------------
 
-------------------------------------------------------------------------------
HS Queue Information
-------------------------------------------------------------------------------
Queue-Id             : 1
Admin PIR            : 50000
PIR Rule             : closest
MBS                  : 1000 KB
Packet Byte Offset   : add 0
Burst Limit          : default
HS Class Weight      : 1                HS Wrr Weight        : 1
HS Wred-Q Slope Plcy : _tmnx_hs_default
HS Alt Class Pool    : False
 
-------------------------------------------------------------------------------
 
-------------------------------------------------------------------------------
HS Wrr Group Information
-------------------------------------------------------------------------------
HS Wrr Group Id    : 1                  Class Weight       : 1
Rate               : max                Percent Rate       : 100.00
PIR Adaptation Rule: closest
 
HS Wrr Group Id    : 2                  Class Weight       : 1
Rate               : max                Percent Rate       : 100.00
PIR Adaptation Rule: closest
 
-------------------------------------------------------------------------------
 
===============================================================================
Queue Group FC Mapping
===============================================================================
FC Name                                 Queue-Id
-------------------------------------------------------------------------------
No Matching Entries
===============================================================================
 
===============================================================================
Queue Group Ports (access)
===============================================================================
Port      Sched Pol          Acctg Pol Stats Description          QGrp-Instance
-------------------------------------------------------------------------------
5/1/1                        0         No                         1
-------------------------------------------------------------------------------
 
===============================================================================
Queue Group Ports (network)
===============================================================================
Port     Sched Pol   Policer-Ctrl-Pol Acctg Pol Stats Description QGrp-Instance
-------------------------------------------------------------------------------
No Matching Entries
 
===============================================================================
Qos Sap-Egress FC Group-Queue References
===============================================================================
Sap Policy     FC Name             Queue Id
-------------------------------------------------------------------------------
No Matching Entries
 
===============================================================================
Qos Sap-Egress FC Port-Redirect-Group-Queue References
===============================================================================
Sap Policy     FC Name             Queue Id
-------------------------------------------------------------------------------
No Matching Entries
===============================================================================
Queue Group Policer
===============================================================================
No Matching Entries
 
-------------------------------------------------------------------------------
HSMDA PIR Admin  Packet  WRR     MBS       Slope Plcy        WRR Plcy
Queue PIR Rule   Offset  Weight            Max Class         Burst Lmt
-------------------------------------------------------------------------------
1     max        add 0   1       default   default           n/a
      closest                              8                 default
2     max        add 0   1       default   default           n/a
      closest                              8                 default
3     max        add 0   1       default   default           n/a
      closest                              8                 default
4     max        add 0   1       default   default           n/a
      closest                              8                 default
5     max        add 0   1       default   default           n/a
      closest                              8                 default
6     max        add 0   1       default   default           n/a
      closest                              8                 default
7     max        add 0   1       default   default           n/a
      closest                              8                 default
8     max        add 0   1       default   default           n/a
      closest                              8                 default
-------------------------------------------------------------------------------
===============================================================================
*A:PE#
*A:PE# show qos queue-group ingress
 
===============================================================================
Queue Group Ingress
===============================================================================
Group-Name                        Description
-------------------------------------------------------------------------------
qg1
_tmnx_nat_ing_q_grp               NAT/LNS Ingress Queue Group Template
_tmnx_nat_ing_q_grp_v2            NAT/LNS Ingress Queue Group Template for ISA*
_tmnx_lns_esm_ing_q_grp           LNS ESM Ingress Queue Group Template
-------------------------------------------------------------------------------
Ingress Queue Groups    : 4
-------------------------------------------------------------------------------
===============================================================================
* indicates that the corresponding row element may have been truncated.
*A:PE#
*A:PE# show qos queue-group ingress "qg1" detail
 
===============================================================================
QoS Queue-Group Ingress
===============================================================================
-------------------------------------------------------------------------------
QoS Queue Group
-------------------------------------------------------------------------------
Group-Name     : qg1
Description    : (Not Specified)
-------------------------------------------------------------------------------
Q  Mode    CIR Admin  PIR Admin  CBS                  PIR Lvl/Wt Parent
           CIR Rule   PIR Rule   MBS                  CIR Lvl/Wt BurstLimit(B)
                                 Pkt Bt Ofst          Adv Config Policy Name
           Low Drop Tail
           FIR Admin  FIR Rule   Cir-non-profiling
-------------------------------------------------------------------------------
No Matching Entries
 
 
===============================================================================
Queue Group Ports
===============================================================================
Port                Sched Pol           Acctg Pol Stats     Description
-------------------------------------------------------------------------------
No Matching Entries
 
===============================================================================
Queue Group Sap FC Maps
===============================================================================
Sap Policy     FC Name             Queue (id type)
-------------------------------------------------------------------------------
No Matching Entries
 
===============================================================================
Queue Group FP Maps
===============================================================================
Card Num       Fp Num              Instance            Type
-------------------------------------------------------------------------------
1              1                   1                   Access
-------------------------------------------------------------------------------
Entries found: 1
-------------------------------------------------------------------------------
 
===============================================================================
Queue Group Service Maps
===============================================================================
Service Id                              Service Type        Instance
-------------------------------------------------------------------------------
No Matching Entries
===============================================================================
===============================================================================
Queue Group Policer
===============================================================================
Policer Id     : 1
Description    : (Not Specified)
PIR Adptn      : closest                      CIR Adptn    : closest
Parent         : none                         Level        : 1
Weight         : 1                            Adv. Cfg Plcy: none
Admin PIR      : max                          Admin CIR    : 0
CBS            : def                          MBS          : def
Hi Prio Only   : def                          Pkt Offset   : 0
Profile Capped : Disabled
StatMode       : minimal
 
===============================================================================
*A:PE#
*A:PE# show qos queue-group summary
 
===============================================================================
Queue-group instances per card
===============================================================================
card      port-acc-ing  port-acc-egr  port-nw-egr   fp-acc-ing    fp-nw-ing
-------------------------------------------------------------------------------
1         0             0             0             1             0
2         0             1             0             0             0
3         0             0             0             0             0
4         0             0             0             0             0
5         0             3             0             0             0
-------------------------------------------------------------------------------
Total ingress QG templates per system :  4
Total egress  QG templates per system :  5
=============================================================================== 
*A:PE#
 CIR Rule   PIR Rule   MBS                  CIR Lvl/Wt BurstLimit(B)
           CIR Prcnt  PIR Prcnt  Low Drop Tail

queue-group-redirect-list

Syntax 
queue-group-redirect-list [policy-name] [association | detail]
Context 
show>qos
Description 

This command displays queue group redirect list information.

Parameters 
policy-name—
Specifies the name of a queue group redirect list, up to 32 characters.
association—
Displays the entities associated with the specified queue group redirect list.
detail—
Displays detailed information, including queue group redirect list associations.
Output 

The following output is an example of queue group redirect list information.

Sample Output
A:PE# show qos queue-group-redirect-list detail
===============================================================================
Queue Group Redirect List Information
===============================================================================
Policy Name        : list1
Match Type         : vxlan-vni
-------------------------------------------------------------------------------
Match               Instance
-------------------------------------------------------------------------------
1                   1
2                   2
3                   3
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
Service Associations
-------------------------------------------------------------------------------
Service ID     Service Type             SAP
-------------------------------------------------------------------------------
1              IES                      1/1/1               (Ingress/Egress)
-------------------------------------------------------------------------------
===============================================================================
A:PE#

port

Syntax 
port queue-group [{ingress | egress}] [queue-group-name] [{access | network}] [instance instance-id] [{statistics | associations | queue-depth [queue queue-id]}]
port queue-group summary
Context 
show>port
Description 

This command displays physical port information for the port’s queue group.

Parameters 
ingress—
Specifies whether the queue group name is an ingress policy.
egress—
Specifies whether the queue group name is an egress policy.
queue-group-name—
Specifies the name of an existing queue group template up to 32 characters.
access—
Specifies that the queue group name is on an access port.
network—
Specifies that the queue group name is on a network port.
instance-id—
Specifies the identification of a specific instance of the queue group.
statistics—
Displays statistical information for the queue group.
associations—
Displays the entities associated with the specified queue group name.
queue-depth—
Displays the queue depth information for the specified queue group queue.
queue-id—
Specifies the identification of a queue.
Output 

The following output is an example of port information for the port’s queue group.

Sample Output
*A:PE# show port 5/1/1 queue-group ingress
 
===============================================================================
Ethernet Port 5/1/1 Access Ingress Queue-Group
===============================================================================
Group Name     : qg1
Description    : (Not Specified)
Sched Policy   : None               Acct Pol     : None
Collect Stats  : disabled
 
Queues
-------------------------------------------------------------------------------
Ing. QGroup    : qg1                Queue-Id     : 1 (Unicast) (Priority)
Description    : (Not Specified)
Admin PIR      : max*               Admin CIR    : 0*
PIR Rule       : closest*           CIR Rule     : closest*
Admin FIR      : 0*                 FIR Rule     : closest*
CBS            : def*               MBS          : def*
Monitor Depth  : not-applicable
Low Drop Tail  : def*
 
* means the value is inherited
===============================================================================
===============================================================================
*A:PE#
*A:PE# show port 5/1/1 queue-group egress
 
===============================================================================
Ethernet port 5/1/1 Access Egress queue-group
===============================================================================
Group Name       : qg1                Instance-Id  : 1
Description      : (Not Specified)
Sched Policy     : None               Acct Pol     : None
Collect Stats    : disabled           Agg. Limit   : max
Limit Unused BW  : Disabled
Frame Based Acc  : Disabled
HS Turbo Queues  : Disabled
 
Queues
-------------------------------------------------------------------------------
Queue-Group      : qg1                Instance-Id  : 1      Queue-Id   : 1
Description      : (Not Specified)
Admin PIR        : 50000*             Admin CIR    : 0*
PIR Rule         : closest*           CIR Rule     : closest*
CBS              : def*               MBS          : 1000 KB*
Weight           : not-applicable     CIR Weight   : not-applicable
Monitor Depth    : not-applicable
HiPlus Drop Tail : def*               Hi Drop Tail : def*
Low Drop Tail    : def*               Exceed Drop *: def*
 
* means the value is inherited
===============================================================================
 
Host-Matches
-------------------------------------------------------------------------------
No Host-Matches found
-------------------------------------------------------------------------------
Group Name       : policer-output-qu* Instance-Id  : 1
Description      : (Not Specified)
Sched Policy     : None               Acct Pol     : None
Collect Stats    : disabled           Agg. Limit   : max
Limit Unused BW  : Disabled
Frame Based Acc  : Disabled
HS Turbo Queues  : Disabled
 
Queues
-------------------------------------------------------------------------------
Queue-Group      : policer-output-qu* Instance-Id  : 1      Queue-Id   : 1
Description      : Default egress policer output queues.
Admin PIR        : max*               Admin CIR    : 0*
PIR Rule         : closest*           CIR Rule     : closest*
CBS              : def*               MBS          : def*
Weight           : not-applicable     CIR Weight   : not-applicable
Monitor Depth    : not-applicable
HiPlus Drop Tail : def*               Hi Drop Tail : def*
Low Drop Tail    : def*               Exceed Drop *: def*
 
Queue-Group      : policer-output-qu* Instance-Id  : 1      Queue-Id   : 2
Description      : Default egress policer output queues.
Admin PIR        : max*               Admin CIR    : 0*
PIR Rule         : closest*           CIR Rule     : closest*
CBS              : def*               MBS          : def*
Weight           : not-applicable     CIR Weight   : not-applicable
Monitor Depth    : not-applicable
HiPlus Drop Tail : def*               Hi Drop Tail : def*
Low Drop Tail    : def*               Exceed Drop *: def*
 
* means the value is inherited
===============================================================================
 
Host-Matches
-------------------------------------------------------------------------------
No Host-Matches found
-------------------------------------------------------------------------------
===============================================================================
* indicates that the corresponding row element may have been truncated.
*A:PE#
*A:PE# show port 5/1/1 queue-group summary
 
===============================================================================
Port queue-group summary
===============================================================================
Access-egress queue groups:
----------------------------
qg1
policer-output-queues
Total number of access-egress queue groups  : 2
 
Network-egress queue groups:
----------------------------
Total number of network-egress queue groups : 0
 
Access-ingress queue groups:
----------------------------
qg1
Total number of access-ingress queue groups : 1
===============================================================================
*A:PE#

8.12.2.3. Monitor Commands

card

Syntax 
card slot-number fp fp-number ingress {access | network} queue-group queue-group-name instance instance-id [interval seconds] [repeat repeat] policer policer-id [absolute | percent-rate [reference-rate]]
Context 
monitor
Description 

This command monitors policer statistics in an ingress FP queue group.

Parameters 
slot-number
Specifies the slot number associated with the queue group, expressed as an integer.
Values—
1 to 20

 

fp-number
Specifies the FP number associated with the queue group, expressed as an integer.
Values—
1 to 8

 

ingress—
Displays policer statistics applied on the ingress FP.
access —
Displays policer statistics on the FP access.
network —
Displays policer statistics on the FP network.
queue-group-name
Specifies the name of the queue group up to 32 characters.
instance-id
Specifies the identification of a specific instance of the queue-group.
Values—
1 to 65535

 

seconds
Configures the interval for each display in seconds.
Default—
11 seconds
Values—
11 to 60

 

repeat
Configures how many times the command is repeated.
Default—
10
Values—
1 to 999

 

policer-id
The specified policer-id must exist within the queue-group template applied to the ingress context of the forwarding plane.
Values—
1 to 32

 

absolute —
When the absolute keyword is specified, the raw statistics are displayed, without processing. No calculations are performed on the delta or rate statistics.
percent-rate—
When the percent-rate keyword is specified, the rate-per-second for each statistic is displayed based on the reference rate of 10G.
reference-rate —
When a reference-rate value is specified, the rate-per-second for each statistic is displayed as a percentage based on the reference rate specified.
Values—
100M, 1G, 10G, 40G, 100G, 400G

 

card

Syntax 
card slot-number fp fp-number queue-group queue-group-name instance instance-id [ingress] [access | networks] [interval seconds] [repeat repeat] [absolute | percent-rate [reference-rate]] [arbiter root | name]
Context 
monitor>qos>arbiter-stats
Description 

This command monitors arbiter statistics in an ingress FP queue group.

Parameters 
slot-number
Specifies the slot number associated with the queue group, expressed as an integer.
Values—
1 to 20

 

fp-number
Specifies the FP number associated with the queue group, expressed as an integer.
Values—
1 to 8

 

ingress—
Displays policer statistics applied on the ingress FP.
access —
Displays policer statistics on the FP access.
network —
Displays policer statistics on the FP network.
queue-group-name
Specifies the name of the queue group up to 32 characters.
instance-id
Specifies the identification of a specific instance of the queue-group.
Values—
1 to 65535

 

seconds
Configures the interval for each display in seconds.
Default—
11 seconds
Values—
11 to 60

 

repeat
Configures how many times the command is repeated.
Default—
10
Values—
1 to 999

 

absolute —
When the absolute keyword is specified, the raw statistics are displayed, without processing. No calculations are performed on the delta or rate statistics.
percent-rate—
When the percent-rate keyword is specified, the rate-per-second for each statistic is displayed based on the reference rate of 10G.
reference-rate —
When a reference-rate value is specified, the rate-per-second for each statistic is displayed as a percentage based on the reference rate specified.
Values—
100M, 1G, 10G, 40G, 100G, 400G

 

name
Specify the name of the policer control policy arbiter.
Values—
An existing arbiter-name in the form of a string up to 32 characters, composed of printable, 7-bit ASCII characters. If the string contains special characters (#, $, spaces, etc.), the entire string must be enclosed within double quotes.

 

root—
Specifies the root arbiter.

port

Syntax 
port port-id egress network queue-group queue-group-name instance instance-id [interval seconds] [repeat repeat] [absolute | rate] [arbiter [root | name]]
Context 
monitor>qos>arbiter-stats
Description 

This command monitors arbiter statistics in an egress port queue group.

Parameters 
port port-id

port-id

slot/mda/port [.channel]

eth-sat-id

esat-id/slot/port

esat

keyword

id

1 to 20

pxc-id

pxc-id.sub-port

pxc

keyword

id

1 to 64

sub-port

a, b

Values—
slot/mda/port

 

egress network
Specifies statistics are for an egress network queue group.
queue-group queue-group-name
Specifies the name of the queue group up to 32 characters.
instance instance-id
Specifies the identification of a specific instance of the queue-group.
Values—
1 to 65535

 

interval seconds
Configures the interval for each display in seconds.
Default—
11 seconds
Values—
11 to 60

 

repeat repeat
Configures how many times the command is repeated.
Default—
10
Values—
1 to 999

 

absolute—
When the absolute keyword is specified, the raw statistics are displayed, without processing. No calculations are performed on the delta or rate statistics.
rate —
When the rate keyword is specified, the rate-per-second for each statistic is displayed.
arbiter name
Specify the name of the policer control policy arbiter.
Values—
An existing arbiter-name in the form of a string up to 32 characters, composed of printable, 7-bit ASCII characters. If the string contains special characters (#, $, spaces, etc.), the entire string must be enclosed within double quotes.

 

root—
Specify the root arbiter.

port

Syntax 
port port-id queue-group queue-group-name [ingress | egress] [interval seconds] [repeat repeat] [absolute | rate] [access | network] [instance instance-id]
port port-id vport name [interval seconds] [repeat repeat] [absolute | rate]
Context 
monitor>qos>scheduler-stats
Description 

This command enables port traffic monitoring.

Parameters 
port port-id
Specifies the port ID.
Values—

port-id

slot/mda/port [.channel]

eth-sat-id

esat-id/slot/port

esat

keyword

id

1 to 20

pxc-id

pxc-id.sub-port

pxc

keyword

id

1 to 64

sub-port

a, b

 

queue-group queue-group-name
Specifies the name of the queue group up to 32 characters.
instance instance-id
Specifies the identification of a specific instance of the queue-group.
Values—
1 to 65535

 

ingress—
Specifies statistics are for an ingress queue group.
egress —
Specifies statistics are for an egress queue group.
interval seconds
Configures the interval for each display in seconds.
Default—
11 seconds
Values—
11 to 60

 

repeat repeat
Configures how many times the command is repeated.
Default—
10
Values—
1 to 999

 

absolute—
When the absolute keyword is specified, the raw statistics are displayed, without processing. No calculations are performed on the delta or rate statistics.
rate —
When the rate keyword is specified, the rate-per-second for each statistic is displayed.
access —
Displays scheduler statistics applied on an access port.
network —
Displays scheduler statistics applied on a network port.