15.4. High Scale QoS IOM Command Reference

15.4.1. Command Hierarchies

15.4.1.1. HS Attachment Policy Commands

config
— qos
hs-attachment-policy policy-name [create]
— no hs-attachment-policy policy-name
description description-string
queue queue-id sched-class class-id
queue queue-id unattached
queue queue-id wrr-group wrr-group-id
— no queue queue-id
wrr-group group-id sched-class class-id
wrr-group group-id unattached
— no wrr-group group-id

15.4.1.2. HS Pool Policy Commands

config
— qos
hs-pool-policy policy-name [create]
— no hs-pool-policy policy-name
description description-string
[no] mid-pool mid-pool-id
allocation-percent percent-of-parent-pool
parent-root-pool root-pool-id
port-bw-oversub-factor oversubscription-factor
slope-policy policy-name
[no] root-pool root-pool-id
allocation-weight pool-weight
slope-policy policy-name
system-reserve percent-of-buffers

15.4.1.3. HS Port Pool Policy Commands

config
— qos
hs-port-pool-policy policy-name [create]
— no hs-port-pool-policy policy-name
[no] class-pool alt-class-pool-id
allocation explicit-percent percent-of-parent-pool
allocation port-bw-weight pool-weight
— no allocation
parent-mid-pool mid-pool-id
slope-policy policy-name
description description-string
[no] class-pool std-class-pool-id
allocation explicit-percent percent-of-parent-pool
allocation port-bw-weight pool-weight
— no allocation
parent-mid-pool mid-pool-id
slope-policy policy-name

15.4.1.4. HS Scheduler Policy Commands

config
— qos
hs-scheduler-policy policy-name [create]
— no hs-scheduler-policy policy-name
description description-string
group group-id rate rate
— no group group-id
max-rate rate
— no max-rate
scheduling-class class-id group group-id [weight weight-in-group]
scheduling-class class-id rate rate
— no scheduling-class class-id

15.4.1.5. Network Queue QoS Policy HS Commands

config
— qos
— network-queue policy-name [create]
— no network-queue policy-name
hs-attachment-policy policy-name
[no] hs-wrr-group group-id
adaptation-rule [pir adaptation-rule]
hs-class-weight weight
rate percent
— no rate
— queue queue-id [multipoint] [queue-type] [create]
— no queue queue-id
hs-class-weight weight
hs-mbs percent-of-queue-rate
— no hs-mbs
hs-wred-queue [policy slope-policy-name]
hs-wrr-weight weight

15.4.1.6. SAP Egress Policy QoS HS Commands

config
— qos
— sap-egress {policy-id | policy-name} [create] [name name] [create]
— no sap-egress {policy-id | policy-name}
hs-attachment-policy policy-name
hs-wrr-group group-id
adaptation-rule [pir adaptation-rule]
hs-class-weight weight
percent-rate percent
rate rate
— no rate
— queue queue-id [queue-type] [create]
— no queue queue-id
hs-class-weight weight
hs-wred-queue [policy slope-policy-name]
hs-wrr-weight weight

15.4.1.7. Queue Group Template HS Commands

config
— qos
— queue-group-templates
— egress
— queue-group queue-group-name [create]
— queue-group queue-group-name
hs-attachment-policy policy-name
[no] hs-wrr-group group-id
adaptation-rule [pir adaptation-rule]
hs-class-weight weight
percent-rate percent
rate rate
— no rate
— queue queue-id [expedite | best-effort] [create]
— no queue queue-id
hs-class-weight weight
hs-wred-queue [policy slope-policy-name]
hs-wrr-weight weight

15.4.1.8. Services Configuration HS Commands

The following services configuration commands are specific to HSQ IOMs. Refer to the 7450 ESS, 7750 SR, 7950 XRS, and VSR Layer 2 Services and EVPN Guide: VLL, VPLS, PBB, and EVPN, 7450 ESS, 7750 SR, 7950 XRS, and VSR Layer 3 Services Guide: IES and VPRN for more details.

15.4.1.8.1. Epipe Commands

config>service
— epipe service-id service-id [customer customer-id] [create] [vpn vpn-id] [vc-switching] [test] [name name]
— no epipe service-id
— sap sap-id [create] [no-endpoint]
— sap sap-id [create] endpoint endpoint-name]
— no sap sap-id
— egress
[no] queue-override
— hs-secondary-shaper policy-name
— no hs-secondary-shaper
— hs-wrr-group group-id [create]
— no hs-wrr-group
— class-weight weight
— no class-weight
— percent-rate percent
— no percent-rate
— rate rate
— no rate
— queue queue-id [create]no queue queue-id
— hs-class-weight weight
— no hs-class-weight
— hs-wred-queue policy slope-policy-name
— no hs-wred-queue
— hs-wrr-weight weight
— no hs-wrr-weight

15.4.1.8.2. IES Commands

config>service
— ies service-id [customer customer-id] [create] [vpn vpn-id] [name name]
— no ies service-id
[no] interface ip-int-name
[no] sap sap-id
— egress
[no] queue-override
— hs-secondary-shaper policy-name
— no hs-secondary-shaper
— hs-wrr-group group-id [create]
— no hs-wrr-group group-id
— class-weight weight
— no class-weight
— percent-rate percent
— no percent-rate
— rate rate
— no rate
— queue queue-id [create]
— no queue queue-id
— hs-class-weight weight
— no hs-class-weight
— hs-wred-queue policy slope-policy-name
— no hs-wred-queue
— hs-wrr-weight weight
— no hs-wrr-weight

15.4.1.8.3. Ipipe Commands

config>service
— ipipe service-id [customer customer-id] [create] [vpn vpn-id] [vc-switching] [name name]
— no ipipe service-id
— sap sap-id [create] [no-endpoint]
— sap sap-id [create] endpoint endpoint-name]
— no sap sap-id
— egress
[no] queue-override
— hs-secondary-shaper policy-name
— no hs-secondary-shaper
— hs-wrr-group group-id [create]
— no hs-wrr-group group-id
— class-weight weight
— no class-weight
— percent-rate percent
— no percent-rate
— rate rate
— no rate
— queue queue-id [create]no queue queue-id
— hs-class-weight weight
— no hs-class-weight
— hs-wred-queue policy slope-policy-name
— no hs-wred-queue
— hs-wrr-weight weight
— no hs-wrr-weight

15.4.1.8.4. VPLS Commands

config>service
— vpls service-id [customer customer-id] [vpn vpn-id] [m-vpls] [b-vpls | i-vpls] [etree] [name name] [create]
— no vpls service-id
— sap sap-id [create] [no-endpoint]
— sap sap-id [create] endpoint endpoint-name]
— no sap sap-id
— egress
[no] queue-override
— hs-secondary-shaper policy-name
— no hs-secondary-shaper
— hs-wrr-group group-id [create]
— no hs-wrr-group group-id
— class-weight weight
— no class-weight
— percent-rate percent
— no percent-rate
— rate rate
— no rate
— queue queue-id [create]no queue queue-id
— hs-class-weight weight
— no hs-class-weight
— hs-wred-queue policy slope-policy-name
— no hs-wred-queue
— hs-wrr-weight weight
— no hs-wrr-weight

15.4.1.8.5. VPRN Commands

config>service
— vprn service-id [name name] [customer customer-id] [create]
— no vprn service-id
[no] interface ip-int-name
[no] sap sap-id
— egress
[no] queue-override
— hs-secondary-shaper policy-name
— no hs-secondary-shaper
— hs-wrr-group group-id [create]
— no hs-wrr-group group-id
— class-weight weight
— no class-weight
— percent-rate percent
— no percent-rate
— rate rate
— no rate
— queue queue-id [create]
— no queue queue-id
— hs-class-weight weight
— no hs-class-weight
— hs-wred-queue policy slope-policy-name
— no hs-wred-queue
— hs-wrr-weight weight
— no hs-wrr-weight

15.4.1.9. Forwarding Plane HS Commands

The following forwarding plane configuration commands are specific to HSQ IOMs. For more information, refer to the 7450 ESS, 7750 SR, 7950 XRS, and VSR Interface Configuration Guide.

config>card>fp>egress
— hs-fixed-high-thresh-delta size-in-bytes
— no hs-fixed-high-thresh-delta
— hs-pool-policy name
— no hs-pool-policy

15.4.1.10. Port Configuration HS Commands

The following port configuration commands are specific to HSQ IOMs. Refer to the 7450 ESS, 7750 SR, 7950 XRS, and VSR Interface Configuration Guide for more details.

config>port>ethernet
— access
— egress
[no] queue-group queue-group-name [create] [instance instance-id]
[no] hs-turbo
— egress
— hs-port-pool-policy policy-name
— no hs-port-pool-policy
— hs-scheduler-overrides [create]
— no hs-scheduler-overrides
— group group-id rate rate
— no group group-id
— max-rate rate
— no max-rate
— scheduling-class class rate rate
— scheduling-class class weight weight-in-group
— no scheduling-class class
— hs-scheduler-policy policy-name
— no hs-scheduler-policy
— hs-secondary-shaper secondary-shaper-name [create]
— no hs-secondary-shaper secondary-shaper-name
[no] aggregate
— low-burst-max-class class
— no low-burst-max-class
— rate rate
— no rate
[no] class class-number
— rate rate
— no rate
— description description-string
— no description
— network
— egress
[no] queue-group queue-group-name [create] [instance instance-id]
[no] hs-turbo

15.4.1.11. LAG HS Commands

The following LAG configuration command has a parameter that is specific to HSQ IOMs. For further information, refer to the 7450 ESS, 7750 SR, 7950 XRS, and VSR Interface Configuration Guide.

config
— lag
— port-type lag-port-type
— no port-type

15.4.1.12. Operational Commands

config
— qos
copy hs-attachment-policy src-name dst-name [overwrite]
copy hs-pool-policy src-name dst-name [overwrite]
copy hs-port-pool-policy src-name dst-name [overwrite]
copy hs-scheduler-policy src-name dst-name [overwrite]

15.4.1.13. Show Commands

show
hs-pools card-slot-number fp forwarding-plane egress
hs-pools port port-id egress
hs-pools port port-id egress network-queues
hs-pools port port-id egress queue-group queue-group-name [instance instance-id]
hs-pools port port-id egress sap sap-id
hs-pools port port-id egress subscriber sub-ident-string
port port-id hs-secondary-shaper
port port-id hs-secondary-shaper secondary-shaper-name [statistics | associations]
— qos
hs-attachment-policy [policy-name] [association | detail]
hs-pool-policy [policy-name] [association | detail]
hs-port-pool-policy [policy-name] [association | detail]
hs-scheduler-hierarchy port port-id [hs-secondary-shaper shaper-name] [interval time-in-seconds]
hs-scheduler-hierarchy port port-id [interval time-in-seconds] hs-secondary-shapers
hs-scheduler-hierarchy port port-id [interval time-in-seconds] queue-group queue-group-name instance instance-id {access | network}
hs-scheduler-hierarchy sap sap-id egress [interval time-in-seconds]
hs-scheduler-hierarchy subscriber sub-ident egress [interval time-in-seconds]
hs-scheduler-policy [policy-name] [association | detail]

15.4.1.14. Clear Commands

clear
card slot-number fp fp-number hs-pool high-water-mark
card slot-number fp fp-number hs-pool high-water-mark mid-pool [value]
card slot-number fp fp-number hs-pool high-water-mark root-pool [value]
card slot-number fp fp-number hs-pool high-water-mark system
port port-id hs-secondary-shaper shaper-name statistics
port port-id hs-pool high-water-mark {[standard value | alternate value]}

15.4.2. Command Descriptions

15.4.2.1. Configuration Commands

15.4.2.1.1. Generic Commands

description

Syntax 
description description-string
no description
Context 
config>qos>hs-attachment-policy
config>qos>hs-pool-policy
config>qos>hs-port-pool-policy
config>qos>hs-scheduler-policy
Description 

This command creates a text description stored in the configuration file for a configuration context.

The no form of this command removes any description string from the context.

Default 

No description is associated with the configuration context.

Parameters 
description-string—
A text string describing the entity. Allowed values are any string up to 80 printable, 7-bit ASCII characters. If the string contains special characters (#, $, spaces, and so on), the entire string must be enclosed within double quotes.

15.4.2.2. HS Attachment Policy Commands

hs-attachment-policy

Syntax 
hs-attachment-policy policy-name [create]
no hs-attachment-policy policy-name
Context 
config>qos
Description 

This command specifies how the queues within an HSQ queue group associated with the SAP egress policy instance, egress queue group instance, or egress network queue policy instance attaches to the HSQ scheduling classes managed by the port scheduler. On the HSQ IOM, eight queues are allocated per egress SAP or subscriber SLA profile instance (SPI), or per egress (access or network) queue group instance, or per egress network port, numbered 1 through 8. The port scheduler maintains six scheduling classes numbered from 1 through 6 (6 being the highest relative priority and 1 being the lowest). The set of eight queues may also be placed into one of two local Weighted Round Robin (WRR) groups which collapse the member queues into a single scheduling class while providing a weighted fair distribution of scheduling opportunities per member. The attachment policy contains the attachment commands that map the queue IDs and WRR groups to the scheduling classes. The attachment policy also defines the mapping of the scheduling classes to the queue’s aggregate shapers low and high burst limit thresholds.

The no form of the command deletes the HS attachment policy from the system, which is only possible if the policy is not being referenced.

Parameters 
policy-name—
Specifies an existing attachment policy, up to 32 characters. Each HS attachment policy must be uniquely named within the system.
create—
This keyword is required when first creating the configuration context. After the context is created, it is possible to navigate into the context without the create keyword.

low-burst-max-class

Syntax 
low-burst-max-class class
no low-burst-max-class
Context 
config>qos>hs-attachment-policy
Description 

This command specifies which scheduling classes map to the low burst-limit threshold of the queue-level aggregate shaper. Each egress SAP or subscriber SLA profile instance (SPI), per port set of network interface queues and egress queue group template instance has an aggregate shaper that manages the maximum burst limit over a specified shaping rate. Each aggregate shaper supports two thresholds. As the scheduling rate for the set of queues increases, eventually the aggregate rate exceeds the rate limit and the aggregate burst limit starts to be consumed. If this continues, the low burst limit threshold is exceeded and the queues mapped to the scheduling classes associated with low threshold are removed from the scheduler. If the remaining aggregate rate (from the higher scheduling classes) continues to exceed the shaping rate, then the burst limit continues to be consumed and eventually the high burst limit threshold is exceeded. This causes the queues for all scheduling classes to be removed from the scheduler.

The second (high) threshold exists to allow the higher priority classes to continue to forward, thereby mitigating the effects of low priority bursts beyond the aggregate shaping rate. Typically, the higher scheduling class queues are either individually rate-limited so their aggregate allowed throughput is less than the aggregate rate or the expected aggregate unshaped traffic from the individual higher scheduling classes does not exceed the aggregate shaping rate. Determining the value of low-burst-max-class class involves anticipating the proper dividing line between the low and high scheduling classes by evaluating the forwarding behavior and SLA enforcement of each class.

By default, all scheduling classes are mapped to the low burst limit threshold. When mapping scheduling classes to the high burst limit threshold, an adequate value for the card>fp>egress>hs-fixed-high-thresh-delta must be specified. This is due to the fact that the queues associated with the lower classes may burst over the lower threshold in normal operation due to the scheduler forwarding whole packets. Set the hs-fixed-highthresh- delta value to at least two times the maximum frame size to prevent lower threshold class forwarding from also affecting the higher threshold classes when forwarding larger packet sizes. An insufficient high threshold delta defeats the intended purpose of mapping classes to the higher threshold.

The system utilizes the lowest value attainable for each low threshold aggregate burst limit without causing shaper underrun conditions. The high burst limit threshold is determined by adding the hs-fixed-high-thresh-delta value configured in the config>card>fp>egress CLI context to the aggregate’s low burst limit threshold value.

The low-burst-max-class value can be changed at any time in the HS attachment policy. Modifying the setting causes all queue aggregate shapers to reconfigure the scheduling class mappings to the low and high burst limit thresholds to reflect the new value for scheduling class ID.

Scheduling Classes — As described in the queue and wrr-group attachment commands, each queue is either directly or indirectly (through a WRR group) mapped to a scheduling class. Each scheduling class has an inherent priority at the port scheduler. The inherent descending priority is as follows:

  1. Scheduling Class 6 (Highest)
  2. Scheduling Class 5
  3. Scheduling Class 4
  4. Scheduling Class 3
  5. Scheduling Class 2
  6. Scheduling Class 1 (lowest)

Placing scheduling classes into the port level WRR group causes those classes to compete for scheduling opportunities based on their associated weights instead of inherent priority. If higher weights are given to higher scheduling class IDs, then the relative proportional scheduling priority may continue to exhibit the priority level indicated by the class ID.

Setting Low and High Burst Limit Threshold Association — Table 121 demonstrates the effect of the low-burst-max-class command parameters on scheduling class mappings to the low and high burst limit thresholds.

Table 121:  Low and High Burst Limit Threshold Association  

low-burst-max-class sched-class

Scheduling Classes on Low Threshold

Scheduling Classes on High Threshold

1

1

2, 3, 4, 5, and 6

2

1 and 2

3, 4, 5, and 6

3

1, 2, and 3

4, 5, and 6

4

1, 2, 3, and 4

5 and 6

5

1, 2, 3, 4, and 5

6

6

1, 2, 3, 4, 5, and 6

The no form of the command restores the queue aggregate low burst limit threshold maximum scheduling class mapping to the default value. This causes all sets of queues associated with the specified hs-attachment-policy policy-name to have all scheduling classes mapped to the low burst limit threshold.

Default 

low-burst-max-class 6

Parameters 
class—
Specifies the low burst maximum class. This parameter is required when executing the low-burst max-class command. The parameter reflects the highest scheduling class that is associated with the low burst limit threshold associated with the queue aggregate shaper. Scheduling classes higher than the scheduling class ID are associated with the high burst limit threshold.
Values—
1 to 6

 

queue

Syntax 
queue queue-id sched-class class-id
queue queue-id unattached
queue queue-id wrr-group wrr-group-id
no queue queue-id
Context 
config>qos>hs-attachment-policy
Description 

This command defines how the specified queue-id is attached to the scheduler. A queue may have one of four attachment states:

  1. directly attached to a scheduler class
  2. attached to a WRR group which is attached to a scheduler class
  3. attached to a WRR group which is unattached
  4. unattached

The following items are rules for attachment:

  1. Only one queue or WRR group can be attached to a given scheduling class. If another queue or a WRR group is currently attached to the specified scheduling class, the queue’s attachment command fails and the current attachment for the queue-id is unchanged.
  2. Queues must be attached to scheduler classes (directly or indirectly through a WRR group) in an ascending order.
    For example, if queue 3 is attached to scheduler class 2, queues 1 and 2 cannot be attached to scheduling classes 3 through 6 (or attached to a WRR group that is attached to scheduling classes 3 through 6).
  3. Up to six queues can be placed in any WRR group. These queues can all be in one WRR group or be spread between both WRR groups. Attempting to execute the wrr-group keyword on a seventh queue within the attachment policy fails.
  4. Queues must attach to WRR groups in contiguous order.
  5. WRR group 1 must have lower queue ID members than WRR group 2. Attempting to attach a queue ID to group 1 that is higher than any queue ID currently attached to group 2 fails with no change to the current attachment state for that queue ID. Attempting to attach a queue ID to group 2 that is lower than any queue ID currently attached to group 1 fails with no change to the current attachment state for that queue ID.
  6. WRR group 1 must have at least one attached member queue before queues can be attached to WRR group 2.
  7. Queues and WRR groups can be unattached at any time.
    1. Unattached queues, or queues attached to an unattached WRR group, discard all received packets. Normal discard accounting is maintained.
    1. The unattached state for an in-service queue or WRR group is intended for hs-attachment-policy editing purposes and is expected to be an intermediate state in this case.

When an hs-attachment-policy is initially created, all queues and both WRR groups default to the unattached state. Each queue and WRR group attachment state must be explicitly configured.

The no form of the command reverts to the default unattached attachment state for queue ID. The command fails if the specified queue-id is currently in a WRR group and removing the queue from that group causes the queue IDs for that group to become discontinuous.

Default 

queue queue-id unattached

Parameters 
queue-id—
Specifies the queue identifier for the HS attachment policy queue. This parameter is required when executing the command.
Values—
1 to 8

 

sched-class
Specifies a direct attachment between the queue-id and one of the six scheduling classes. A value of 1 through 6 must accompany the sched-class keyword representing the queue’s attached scheduling class. The sched-class, group, and unattached keywords are mutually exclusive. One of the keywords must be specified when the queue attachment command is executed.
class-id—
Specifies the scheduling class that is associated with this queue-id.
Values—
1 to 6

 

wrr-group—
Specifies the inclusion of the queue-id in either WRR group 1 or WRR group 2. A value of 1 or 2 must accompany the wrr-group keyword representing the queue’s attached WRR group number. Queues placed in a WRR group must have contiguous queue IDs. The sched-class, group, and unattached keywords are mutually exclusive. One of the keywords must be specified when the queue attachment command is executed.
wrr-group-id—
Specifies the WRR group to which the queue-id is to be attached.
Values—
1, 2

 

unattached—
Indicates that the queue-id is not attached to any scheduling class or WRR group. An unattached queue does not forward any packets. The sched-class, group, and unattached keywords are mutually exclusive. One of the keywords must be specified when the queue attachment command is executed.

wrr-group

Syntax 
wrr-group group-id sched-class class-id
wrr-group group-id unattached
no wrr-group group-id
Context 
config>qos>hs-attachment-policy
Description 

This command defines how the specified group ID is attached to the scheduler. A WRR group may have one of two attachment states:

  1. directly attached to a scheduler class
  2. unattached

A WRR group provides a weighted scheduling context for its member queues, collapsing the queues into a single scheduling class.

The following WRR membership restrictions apply:

  1. Two groups are supported: WRR-group 1 and WRR-group 2.
  2. Up to six of the eight queues can become members of WRR groups (the sum of the membership of both groups cannot exceed six queues). All six queues can be placed in a single WRR group or they can be spread between the two groups.
  3. All queues within a group must have contiguous queue IDs.
  4. When both groups are configured to have queue members, the queue IDs in group 1 must be lower than the queue IDs in group 2.

The queue queue-id attachment command is used to define WRR group membership.

The no form of the command reverts to the default unattached attachment state for the group ID.

Default 

wrr-group group-id unattached

Parameters 
group-id—
Specifies the WRR group identifier. The group-id parameter is required when executing the wrr-group attachment command.
Values—
1, 2

 

sched-class
Specifies a direct attachment between the WRR group and one of the six scheduling classes. The sched-class and unattached keywords are mutually exclusive. One of the keywords must be specified when the wrr-group attachment command is executed.
class-id—
Specifies the scheduling class associated with this WRR group. The sched-class keyword specifies the attachment between the group ID and one of the six scheduling classes. A value of 1 through 6 must accompany the sched-class keyword representing the WRR group’s attached scheduling class. Only one queue or WRR group can be attached to a given scheduling class. If another queue or a WRR group is currently attached to the specified scheduling class, the wrr-group attachment command fails and the current attachment for the group-id is unchanged.
Values—
1 to 6

 

unattached—
Indicates that the group ID is not attached to any scheduling class or WRR group. Queues that are members of the unattached WRR group do not forward any packets. The sched-class and unattached keywords are mutually exclusive. One of the keywords must be specified when the wrr-group attachment command is executed.

15.4.2.3. HS Pool Policy Commands

hs-pool-policy

Syntax 
hs-pool-policy policy-name [create]
no hs-pool-policy policy-name
Context 
config>qos
Description 

This command enables the context to create HS pool policy parameters. The policy can be assigned to an egress forwarding plane of an HSQ IOM. The policy contains the required parameters to create and size root and mid-tier buffer pools on an HSQ IOM, and apply a slope policy to each. The HS pool policy can be applied using the hs-pool-policy command within the config>card>fp fp-number egress context.

The system supports 63 HS pool policies including the default HS pool policy.

  1. HSQ IOM System Reserved Buffers — The HSQ IOM maintains two types of queues; provisioned queues and system reserved queues. The HSQ IOM ensures that provisioned queues cannot consume buffers that must be available for internal system queues required for correct operating behavior. To prevent buffer starvation between the two types of queues, the system divides the available buffers into two portions. The first portion is given to system root pools and is allocated to HSQ queues reserved for internal functions. The second portion is given to the provisioned or user-defined root pools and is available for egress service queues, network queues, queue-group queues or subscriber queues. By default, 5% of the total buffers available are given to the system root pools leaving 95% for the provisioned root pools.
    The default separation between the system and the provisioned root pools can be overridden using the system-reserve command.
  1. Root Pools — Root pools are the buffer pools at the bottom of the buffer allocation hierarchy. Two sets of root pools exist: the system root pools and the provisioned root pools. The system root pools cannot be managed by the HS pool policy; only the total number of buffers given to the system root pools can be adjusted by using the system-reserve command.
    The HS pool policy manages sixteen provisioned root pools defined under the root-tier context and specified as root-pool 1 through 16. Each root pool accepts a weight command that defines the relative quantity of buffers that are allocated to each root pool. Root pools are deactivated by defining a weight equal to 0. Root pools with a non-zero weight are sized based on the pool’s weight divided by the sum of all root pool weights, multiplied by the available buffer space. In this manner, all buffers not reserved for system use are distributed between the provisioned root pools without oversubscription. The lack of oversubscription prevents buffer starvation between the root pools allowing root pools, to act as protected buffer space between different types of traffic (best-effort, expedited, or real-time). Root pools allocate buffers to the FP-level mid-tier pools.
  1. Mid-Tier Pools — Mid-tier pools are the buffer pools that act as aggregators for port-class pools. Multiple mid-tier pools can be mapped to a single root pool and each mid-tier pool is assigned a percentage of that root pool’s buffer space. The sum of the percentages may exceed 100%, allowing for oversubscription of the root pool’s buffer space. Due to statistical multiplexing principles, oversubscribing the root pool’s buffer allocation may allow more efficient use of the available buffers as not all mid-tier pools are expected to use their fair share simultaneously. Examples of a multiple mid-tier pool application are multiple assured forwarding (AF) or best-effort classes being grouped together in the same root pool. The HS pool policy manages the sixteen mid-tier pools on an HSQ IOM, defined under the mid-tier context and specified as mid-pool 1 through 16.
  1. Port Class Pools — The HSQ IOM maintains two sets of scheduler class pools per port: a standard (or default) set and an alternate set. Each set contains six pools, one for each scheduler class serviced by the HSQ IOM port scheduler. Each queue or WRR group is mapped to a scheduling class based on the HS attachment policy defined within the policy or template used to create the queue. Within the SAP egress policy, network queue policy and egress queue group template, an alt-port-class-pool command specifies whether the queues created through the policy use the standard or alternate set of port class pools on the physical port. Further, the scheduling class servicing the queue defines which port-class pool (1 through 6) within the set allocate buffers to the queue.
    Port-class pools are defined within the hs-port-pool-policy, which is applied to each physical port. Further information on HSQ IOM port-class pools is contained in the HS port pool policy section.
  1. HSQ Stable Pool Sizing Equivalency — Stable pool sizing is a feature supported on ingress and on non-HSQ egress forwarding planes. By default, the system tries to make all buffers available to active ports (provisioned and equipped). This leads to a condition where an IOM may have only a single MDA populated and the users on that MDA receive all available buffers. At a later date, the second MDA can be populated, causing the buffer space to be fragmented between the users on each MDA. The users on the earlier populated MDA may perceive a degradation in service based on the change in available buffers. The stable pool sizing feature mitigates this potential issue by segregating the buffer space per MDA.
    The HSQ IOM can be made to operate in this stable buffer allocation mechanism by utilizing per-MDA buffer pools. This is accomplished by performing the following steps:
    1. Create two sets of root-pools and two sets of mid-pools in the hs-pool-policy applied to the IOM’s FP egress CLI context. The first set of mid-pools should be parented to the first set of root-pools. The second set of mid-pools should be parented to the second set of root-pools.
    2. Create two distinct HS port pool policies. One is applied to the ports on the first MDA and has the port-class pools parented to the first set of mid-tier pools from the FP level policy. The second HS port pool policy is applied to the ports on the second MDA (when it is provisioned) and has the port-class pools parented to the second set of mid-tier pools from the FP level policy. This provides deterministic pool sizing independent of MDA equipping events.
    3. Configure further control at the port-class level by utilizing explicit-percent based port-class pool sizing, which eliminates the effect of changing port states, including bandwidth changes.
  1. HSQ Queue Buffer Allocation — As each packet arrives at an HSQ queue, the queue must obtain buffers to admit the packet on the queue. The queue first checks the depth of the queue relative to the packet’s congestion priority (based on the in, out, or exceed profile) to determine if the packet should be discarded based on early congestion detection or based on the MBS threshold. If the packet is allowed into the queue, the HSQ IOM continues to determine buffer availability using checks to the queue’s port-class pool, the port-class pool’s mid-tier pool, and the mid-tier pool’s root pool. The same RED slope type used at the queue (high, low, or exceed) is used within each buffer pool. If a buffer is available, the buffer can be allocated, and given to the queue.
  1. Default HSQ Pool Policy — An HSQ pool policy with the name default always exists on the system and does not need to be created. The default pool policy cannot be changed and is used by all HSQ IOMs within the system unless an explicitly created hs-pool-policy is associated with a forwarding plane.
    The default policy contains the following parameters:
    system-reserve: 5%
    root-pool 1
    allocation-weight: 75
    slope-policy: _tmnx_hs_default
    root-pool 2
    allocation-weight: 25
    slope-policy: _tmnx_hs_default
    root-pool 3 to 16
    allocation-weight: 0
    slope-policy: _tmnx_hs_default
    mid-pool 1
    parent-root-pool: 1
    allocation-percent: 40%
    slope-policy: _tmnx_hs_default
    mid-pool 2
    parent-root-pool: 1
    allocation-percent: 35%
    slope-policy: _tmnx_hs_default
    mid-pool 3
    parent-root-pool: 1
    allocation-percent: 30%
    slope-policy: _tmnx_hs_default
    mid-pool 4
    parent-root-pool: 1
    allocation-percent: 25%
    slope-policy: _tmnx_hs_default
    mid-pool 5
    parent-root-pool: 2
    allocation-percent: 80%
    slope-policy: _tmnx_hs_default
    mid-pool 6
    parent-root-pool: 2
    allocation-percent: 20%
    slope-policy: _tmnx_hs_default
    mid-pool 7 to 16
    parent-root-pool: None
    allocation-percent: 1%
    slope-policy: _tmnx_hs_default

The no form of the command removes the HS pool policy from the system. If the HS pool policy is currently associated with a forwarding plane, the command fails.

Parameters 
policy-name—
Specifies pool policy name, up to 32 characters. Each HS pool policy must be uniquely named within the system.
create—
This keyword is required when first creating the configuration context. After the context is created, it is possible to navigate into the context without the create keyword.

mid-tier

Syntax 
mid-tier
Context 
config>qos>hs-pool-policy
Description 

This command enables the context to configure HS pool policy parameters. Within the mid-tier context, mid-pools can be associated with a root pool, sized as a percentage of the root pool, have an HS slope policy applied, or be configured with a port bandwidth oversubscription factor parameter used to influence the port-class pool sizes associated with the mid-tier pool.

mid-pool

Syntax 
[no] mid-pool mid-pool-id
Context 
config>qos>hs-pool-policy>mid-tier
Description 

This command enables the context to configure mid-pool tier parameters for an HS pool policy. Parameters allow for allocating the percentage of the root pool size, defining a mid-tier pool’s root-pool parent, specifying the port bandwidth oversubscription factor, or specifying a slope policy for the specific mid-tier pool.

The no form of the command reverts the parent root pool association to root-pool 1, reverts to the default allocation-percentage value, the default port-bw-oversub-factor, and default slope-policy to the specified mid-pool.

Parameters 
mid-pool-id—
Specifies the mid pool ID. This is a required parameter when this command is executed and specifies which mid-pool context is being entered.
Values—
1 to 16

 

allocation-percent

Syntax 
allocation-percent percent-of-parent-pool
no allocation-percent
Context 
config>qos>hs-pool-policy>mid-tier>mid-pool
Description 

This command sizes the associated mid-pool based on the specified percent of the parent pool. The size is obtained by applying the specified percentage value to the current root-pool size acting as the mid-pool’s parent. Whenever the parent root-pool is changed to a new root-pool or the size of the current parent root-pool is modified, the mid-pool’s size is updated.

The no form of the command reverts to the default.

Default 

allocation-percent 1.00

Parameters 
percent-of-parent-pool—
Specifies the percent of the parent pool. This parameter is required when the allocation-percent command is executed. This parameter defines the percentage of the root pool's size to derive the size of the mid-pool. The value is specified as a percentage with two decimal places (100th of a percent).
Values—
0.01 to 100.00

 

parent-root-pool

Syntax 
parent-root-pool root-pool-id
no parent-root-pool
Context 
config>qos>hs-pool-policy>mid-tier>mid-pool
Description 

This command creates a buffer allocation mapping between the associated mid-pool mid-pool-id and the specified parent-root-pool root-pool-id. The specified root pool ID must have a non-zero allocation-weight or the command fails. After a mid-pool is successfully associated with a root-pool, the parent root-pool’s allocation-weight value cannot be set to zero.

When the root-pool-id is set to none, no buffers are assigned to the mid-tier pool.

The no form of the command reverts to the default.

Default 

parent-root-pool 1

Parameters 
root-pool-id—
Defines the parent root pool to which the mid-pool is associated. This parameter is required when executing the parent-root-pool command.
Values—
1 to 16, none

 

port-bw-oversub-factor

Syntax 
port-bw-oversub-factor oversubscription-factor
no port-bw-oversub-factor
Context 
config>qos>hs-pool-policy>mid-tier>mid-pool
Description 

This command modifies the size of the mid-pool when calculating the port-class pool sizes based on port bandwidth ratios. The command does not actually change the size of the mid-pool, only the size reported to the port-class pool sizing function.

Port-class pools can be sized in one of two ways: dynamically (proportionate to the bandwidth of each port) or explicitly (based on a percentage of the parent mid-pool). Explicit percentages require careful determination of the amount to give each pool. The dynamic sizing function attempts to automatically size each pool based on the relative amount of bandwidth each port-class pool is supporting compared to other port’s port-class pools. This is accomplished by determining a dynamic weight for each port with port-class pools mapped to a given mid-pool. As true with any weighted behavior, the mid-pool buffer allocation resource is distributed in a non-oversubscribed manner to its child port-class pools. The port-bw-oversub-factor oversubscription-factor allows this distribution mechanism to become proportionally oversubscribed based on the defined factor. An oversubscription-factor of 1.5 causes the port-class pool dynamic sizes to be 1.5 times bigger, allowing for a potentially more efficient utilization of the buffers represented by mid-pool.

The port-bw-oversub-factor oversubscription-factor for a mid-pool can be modified at any time, causing the corresponding port-class pool dynamic sizes to be recalculated.

A similar behavior can be obtained by increasing the mid-pool’s allocation-percent of its parent root-pool. However, the major difference in using port-bw-oversub-factor is that it provides larger port-class pools without allowing the mid-pool to use a higher number of buffers in the root pool.

The no form of the command reverts to the default.

Default 

port-bw-oversub-factor 1

Parameters 
oversubscription-factor—
Specifies the factor by which the dynamically-sized port-class pools associated with the mid-pool may oversubscribe the mid-pool. This parameter is required when the port-bw-oversub-factor command is executed.
Values—
1 to 10

 

slope-policy

Syntax 
slope-policy policy-name
no slope-policy
Context 
config>qos>hs-pool-policy>mid-tier>mid-pool
config>qos>hs-pool-policy>root-tier>root-pool
Description 

This command specifies the slope policy to be used to define the high, low, and exceed slopes within the pool. The slope (high, low, or exceed) used on the egress queue for the packet that generated the buffer request is also used in the mid-pool from the applied slope policy. The pool’s current allocation amount is applied to the appropriate slope to derive the buffer rejection probability. The probability value is compared to a randomly-generated number. If the probability decision generates a rejection decision or the buffer pool has no remaining free buffers, the buffer request fails and the arriving packet is discarded. Otherwise, a buffer is allocated as long as the port-class and root-tier buffer pools also honor the buffer request.

The no form of the command restores the default slope policy to the associated pool.

Default 

slope-policy _tmnx_hs_default

Parameters 
policy-name—
Specifies the slope policy associated with this pool, up to 32 characters.

root-tier

Syntax 
root-tier
Context 
config>qos>hs-pool-policy
Description 

This command enables the context to configure root pool parameters. Within the root-tier context, root pools can be sized using the allocation-weight command or a slope policy can be associated with a root pool.

root-pool

Syntax 
[no] root-pool root-pool-id
Context 
config>qos>hs-pool-policy>root-tier
Description 

This command enables the context to configure root tier parameters. Within the root-tier context, root pools can be sized using the allocation-weight command or a slope policy can be associated with a root pool.

The no form of the command restores the default allocation-weight value and default slope policy to the specified root pool. Root pool 1 has a different default weight than root pools 2 through 16. The no root-pool command fails for root pools 2 through 16 if the root pool is currently the parent of a mid-tier pool.

Parameters 
root-pool-id—
Specifies the root pool ID. This is a required parameter when executing the root-pool command and specifies which root pool context is being entered.
Values—
1 to 16

 

allocation-weight

Syntax 
allocation-weight pool-weight
no allocation-weight
Context 
config>qos>hs-pool-policy>root-tier>root-pool
Description 

This command specifies the weight that is applied to the root pool and is divided by the sum of all root pool weights to derive the pool’s buffer allocation factor. The amount of buffers remaining after the system-reserve percentage is applied is multiplied by the buffer allocation factor to derive the pool size.

Root pools function as an oversubscription control mechanism. A root pool acts as the root of a hierarchy of buffer pools and queues with respect to buffer allocation. Because the sum of the root pool sizes does not exceed the total number of buffers available, the number of buffers indicated by the root pools size is always be available to the queues within the root pools hierarchy, queues from one hierarchy can never steal buffers from another.

A root pool hierarchy is based on the dynamic parenting of one or more mid-tier pools to a root pool. A mid-tier pool represents the buffering allowed for all port-class pools mapped to the mid-tier pool. Each mid-tier pool is sized as a percentage of the root pool to which it is parented. The sum of the mid-tier pools percentages for a root pool may be greater than 100 percent, which allows the root pool to be oversubscribed. This can be beneficial when large fluctuations in mid-tier buffer utilization are expected and a given mid-tier pool should be allowed to exceed its fair share of buffering.

Through the mapping hierarchy presented above, each queue is mapped to a port-class pool, mid-tier pool, and root pool.

A root pool with an allocation-weight set to “0” is considered inactive and is not allocated buffers. Mid-tier pools cannot be parented to a root pool with a weight set to “0”. After a mid-tier pool is associated with a root pool, the root pool’s weight cannot be set to “0”.

As port classes are mapped to mid-tier pools in a different policy than mid-tier pools are mapped to root pools, a port-class pool can be mapped to a mid-tier pool that is not parented to a root pool. A queue mapped indirectly to a non-parented mid-tier pool has its operational MBS value set to zero and drops all incoming packets.

When a root pool’s allocation weight is modified, all root pools, mid-tier pools, and port class pool sizes are reevaluated and modified when necessary.

The no form of the command restores the default allocation-weight value to the associated root pool. Root pool 1 has a different default weight than root pools 2 through 8. The no allocation-weight command fails for root pools 2 through 8 if the root pool is currently parented to a class pool.

Default 

root-pool 1: allocation-weight 100

root-pool 2 to 16: allocation-weight 0

Parameters 
pool-weight—
Defines the weight of the associated root-pool root-pool-id and is used by the system to calculate the size of the root buffer pool. This parameter is required when executing the allocation-weight command. Setting the pool-weight to 0 disables the pool and prevents the root pool from being a parent to any class pools. Root pool 1 cannot be set with an allocation weight of 0.
Values—
root-pool 1: 1 to 100
root-pool 2 to 16: 0 to 100

 

system-reserve

Syntax 
system-reserve percent-of-buffers
no system-reserve
Context 
config>qos>hs-pool-policy
Description 

This command defines the amount of HSQ IOM buffers that is set aside for internal system use. By default, 5% of the total buffer space is reserved for system internal queues. The command is provided for the case where the reserved buffer space is either insufficient or excessive. Exercise care when modifying this value.

When the system reserve value is changed, all the provisioned port-class, mid-tier, and root pool sizes are reevaluated and possibly changed.

Use the show hs-pools card-slot-number fp forwarding-plane egress command to display the current buffer allocation and buffer usage conditions on an HSQ IOM.

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

Default 

system-reserve 5.0

Parameters 
percent-of-buffers—
Specifies the percentage of HS buffers that are reserved for internal system use. This parameter is required when executing the system-reserve command. The parameter accepts a percent value with two decimal places (100th of a percent).
Values—
1.00 to 30.00

 

15.4.2.4. HS Port Pool Policy Commands

hs-port-pool-policy

Syntax 
hs-port-pool-policy policy-name [create]
no hs-port-pool-policy policy-name
Context 
config>qos
Description 

This command creates an HS port buffer pool policy. The policy can be assigned to an egress port on an HSQ IOM. The policy contains the required commands to define and size port-class buffer pools on an HSQ IOM. The policy can be applied using the hs-port-pool-policy command within the config>port>ethernet>egress context.

SR OS supports 2047 HS port pool policies including the default HS port pool policy.

HSQ IOM port buffer pools provide buffer control for queues based on the queue’s scheduling class. Two sets of scheduling class pools exist per port: a standard (or default) set and an alternative set. The SAP egress policy, network queue policy, and egress queue group template have a parameter (alt-port-class-pool) that specifies that the queues created by the policy or template uses the alternate port-class pools, as opposed to the default standard port-class pools. Each set has six pools, one for each scheduling class. Based on the alt-port-class-pool setting and the queue’s scheduling class (based on the HS attachment policy configuration), each queue is mapped to a specific port-class pool.

The HS port pool policy defines how each of these pools are parented (mapped) to an FP level mid-pool and how each pool is sized.

The system allows two separate mechanisms to size each port-class pool:

  1. dynamic sizing based on port bandwidth, relative to bandwidth of other ports
  2. explicit sizing based on a percentage of the port-class pool’s parent mid-pool

Dynamic Port-Class Pool Sizing — Dynamic port-class pool sizing is a mechanism that provides a fair share of a mid-pool’s size to each of the port-class pools based on the potential bandwidth represented by each port. To understand port-class pool sizing, consider the following:

  1. Each port’s bandwidth is the minimum of the port’s line rate, the port’s configured egress-rate, and the port’s hs-scheduler-policy max-rate.
  2. The port’s bandwidth can be further modified by the port’s egr-percentage-of-rate command, which increases or decreases the port’s bandwidth derived by the specified percent. This parameter allows the port to have a higher or lower bandwidth-derived weight based on how the port is actually being used instead of bandwidth alone.
  3. Because the port-class pools are user mapped to the mid-pools, not every port has a port-class pool associated with a mid-pool, requiring that the system perform the relative bandwidth calculations separately per mid-pool.
  4. Each port’s portion of a specified mid-pool’s size is calculated based on:
    Port_Portion = (Port_Adj_Bw / Sigma_Mid_Pool_Ports_Adj_Bw) * Mid_Pool_Size
    where Sigma_Mid_Pool_Ports_Adj_Bw is the sum of the adjusted bandwidths for all ports with port-class pools mapped to the mid-pool that are not sized using explicit-percent.
  5. A port without any port-class pools associated with a given mid-pool has a port portion of zero for that mid-pool.
  6. Multiple port-class pools on the same port can be mapped to the same mid-pool, requiring a mechanism to distribute the portion of the mid-pool given to the port between multiple port-class pools. Each mid-pool’s port-bw-weight parameter is used to determine how much of the port’s mid-pool portion is given to each port-class pool associated with mid-pool. Port-class pools sized using an explicit-percent value instead of port bandwidth are assumed to have a port-bw-weight equal to 0, causing those port-class pools to not participate in the port portion distribution. It is expected (but not required) that one of port bandwidth-based sizing or explicit percent-based sizing is used and any concurrent use of both mechanisms is transitory in nature.
  7. The port bandwidth weighting mechanism allocates 100% of the mid-pool size to the associated port-class pools. To allow the port-class pools to oversubscribe the parent mid-pool, a mid-pool port-bw-oversub-factor parameter is supported that allows the port-class pools sized by dynamic port bandwidth to increase in size by the specified oversubscription factor. This oversubscription factor can provide a more efficient use of the mid-pool’s available buffers because it is not expected that all port-class pools are utilizing their allotted size simultaneously.

Explicit Port-Class Pool Sizing — The port-class pool’s allocation explicit-percent percent-of-parent-pool command is used to override the dynamic pool sizing mechanism for a given mid-pool. The specified percentage value is applied to the port-class’s parent mid-pool’s size to derive the port-class pool size.

Explicit and Dynamic Sizing from the Same Mid-Pool Parent — If explicit and dynamic pool sizing are used simultaneously for port-class pools parented to the same mid-pool, unexpected contention or underutilization of the mid-pool’s available buffers may result. While this is not a proscribed condition, it is expected most instances of dual-sizing mechanisms are transitory, based on moving between the two mechanisms.

Port-Class Pool Slope Policy Association — The HS port pool policy also provides the ability to specify a slope policy on each port-class pool. The slope policy is used to define the high, low, and exceed slope parameters used to manage contention within the port-class pool.

Default HS Port Pool Policy — An HS port pool policy with the name default always exists on the system and does not need to be created. The default port pool policy cannot be changed and is used by all HSQ IOMs within the system unless an explicitly created hs-port-pool-policy is associated with an HSQ egress port.

The default policy contains the following parameters:

Standard Port-Class Pools

Port-Class-Pool 1

Parent: Mid-Pool 1

Port-Class-Pool 2

Parent: Mid-Pool 2

Port-Class-Pool 3

Parent: Mid-Pool 3

Port-Class-Pool 4

Parent: Mid-Pool 4

Port-Class-Pool 5

Parent: Mid-Pool 5

Port-Class-Pool 6

Parent: Mid-Pool 6

Port-Class-Pool 1 to 6

Port-Bw-Weight: 1

Slope-Policy: _tmnx_hs_default

Alternate Port-Class Pools

Port-Class-Pool 1 to 6

Parent: None

Port-Bw-Weight: 1

Slope-Policy: _tmnx_hs_default

Parameters 
policy-name—
Specifies an HS port pool policy name up to 32 characters.
create—
This keyword is required when first creating the configuration context. After the context is created, it is possible to navigate into the context without the create keyword.

alt-port-class-pools

Syntax 
alt-port-class-pools
Context 
config>qos>hs-port-pool-policy
Description 

This command enables the context to configure alternate port class pools parameters. Within this context, the corresponding port-class pools can be associated with a mid-pool, explicitly sized as a percentage of the mid-pool size, dynamically sized based on relative port bandwidth, or have a slope policy applied.

class-pool

Syntax 
[no] class-pool alt-class-pool-id
Context 
config>qos>hs-port-pool-policy>alt-port-class-pools
Description 

This command enables the context to configure a class pool's parent mid-pool, dynamic port bandwidth weight, explicit percentage of mid-pool size, or a slope policy. Six alternate port-class pools always exist (one for each of the six scheduling classes) and do not need to be created.

The no form of the command restores the default parent-mid-pool association to mid-pool none, restores the default allocation port-bw-weight 1 setting (explicit-percent disabled), and restores the default slope policy to the specified class-pool.

Parameters 
alt-class-pool-id—
Specifies the class pool ID.
Values—
1 to 6

 

allocation

Syntax 
allocation explicit-percent percent-of-parent-pool
allocation port-bw-weight pool-weight
no allocation
Context 
config>qos>hs-port-pool-policy>alt-port-class-pools>class-pool
config>qos>hs-port-pool-policy>std-port-class-pools>class-pool
Description 

This command sizes the associated class-pool based on either the specified explicit-percent percent-of-parent-pool or based on the dynamic port bandwidth portioning mechanism. Setting an explicit percentage prevents the port-class pool from participating in the dynamic port level bandwidth-based distribution of the mid-pool’s size as the port bandwidth weight of the port-class pool becomes zero (0). Setting a port bandwidth weight causes the explicit percent value to become zero (0) disabling explicit sizing of the port-class pool.

The no form of the command sets the percent-of-parent-pool value to zero (0) and the pool-weight parameter to 1 for the port-class pool, restoring the default settings.

Default 

allocation 1

Parameters 
percent-of-parent-pool—
Specifies the percentage of parent pool being allocated. This parameter must be configured when specifying the explicit-percent. The percent-of-parent-pool value is expressed as a percentage with two decimal places (100th of a percent) that indicates that the port-class pool should be sized by applying the value to the parent mid-pool size. Specifying explicit-percent forces the port-bw-weight to a zero (0) value (disabled).
Values—
0.01 to 100.00

 

pool-weight—
Specifies port bandwidth weight being allocated. The port-bw-weight and explicit-percent commands are mutually exclusive. The pool-weight parameter is required when specifying the port bandwidth weight and defines both that the port-class pool should be sized in the port bandwidth distribution of the mid-pool’s size and what the distribution weight should be for the port-class pool compared to other port-class pools associated with the same mid-pool when competing for the port’s distribution portion.
Values—
1 to 100

 

parent-mid-pool

Syntax 
parent-mid-pool mid-pool-id
no parent-mid-pool
Context 
config>qos>hs-port-pool-policy>alt-port-class-pools>class-pool
config>qos>hs-port-pool-policy>std-port-class-pools>class-pool
Description 

This command creates the buffer allocation mapping between the associated class pool and the specified mid-pool. Use care when selecting a mid-pool in an active state (properly mapped to a root-pool with a non-zero allocation percentage). If a port-class pool is parented by an inactive mid-pool, the queues using the port-class pool are forced into an operational MBS setting of 0, causing all packet to be discarded. A port-class pool can be made inactive (no available buffers) by executing parent-mid-pool none in the port-class pool context.

The no form of the command reverts to the class-pool parenting value. For the standard port-class pools, this default is 1. For alternate port-class pools the default is none.

Default 

alt-port-class-pools: none

std-port-class-pools: 1

Parameters 
mid-pool-id—
Specifies the mid-pool identifier in the HS pool policy. Either a valid mid-pool ID or none must be specified when executing the parent-mid-pool command. The mid-pool-id parameter defines the parent mid-pool to which the port-class is associated. The none keyword deactivates the port-class pool, causing the pool to have a zero size. A queue can still map to an inactive port-class pool although all packets are discarded by the queue.
Values—
1 to 16, none

 

slope-policy

Syntax 
slope-policy policy-name
no slope-policy
Context 
config>qos>hs-port-pool-policy>alt-port-class-pools>class-pool
config>qos>hs-port-pool-policy>std-port-class-pools>class-pool
Description 

This command specifies the slope policy that is used to define the high, low, and exceed slopes within the port-class pool. The slope used on the egress queue for the packet that generated the buffer request is also used in the class-pool. The pool’s current allocation amount is applied to the appropriate slope to derive the buffer rejection probability. The probability value is compared to a randomly generated number. If the probability decision generates a rejection or the buffer pool has no remaining free buffers, the buffer request fails and the arriving packet is discarded. Otherwise, a buffer is allocated as long as the mid-tier and root-tier buffer pools also honor the buffer request.

The no form of the command restores the default slope policy to the associated class-pool.

Default 

slope-policy _tmnx_hs_default

Parameters 
policy-name—
Specifies the policy name, up to 32 characters. This parameter is required when executing the slope-policy command and must refer to an existing slope policy within the system. If a slope policy with the specified name does not exist, the slope-policy command fails without modifying the slope behavior on the pool. A non-existent slope-policy error is generated. After a slope policy is associated with any HSQ queue or buffer pool, the policy cannot be deleted.

std-port-class-pools

Syntax 
std-port-class-pools
Context 
config>qos>hs-port-pool-policy
Description 

This command enables the context to configure standard port-class pools parameters. Within this context, the corresponding port-class pools can be associated with a mid-pool, explicitly sized as a percentage of the mid-pool size, dynamically-sized based on relative port bandwidth, or have a slope policy applied.

class-pool

Syntax 
[no] class-pool std-class-pool-id
Context 
config>qos>hs-port-pool-policy>std-port-class-pools
Description 

This command enables the context to configure class pool's parent mid-pool, dynamic port bandwidth weight, explicit percentage of mid-pool size, or a slope policy. Six alternate port-class pools always exist (one for each of the six scheduling classes) and do not need to be created.

The no form of the command restores the default parent-mid-pool association to mid-pool 1, restores the default allocation port-bw-weight 1 setting (explicit-percent disabled), and restore the default slope policy to the specified class-pool.

Parameters 
std-class-pool-id—
Specifies the class pool ID.
Values—
1 to 6

 

15.4.2.5. HS Scheduler Policy Commands

hs-scheduler-policy

Syntax 
hs-scheduler-policy policy-name [create]
no hs-scheduler-policy policy-name
Context 
config>qos
Description 

This command configures an HS scheduler policy. The HS scheduler policies are applied to egress HSQ ports in the config>port>ethernet>egress context. The policy contains the required commands to provision the scheduling behavior of the HSQ scheduler classes. When assigned to an HSQ egress port, the policy is used to define the scheduling behavior for all queues associated with the egress port. The values defined in the policy can be overridden on each scheduler instance using the config>port>ethernet>egress>hs-scheduler-overrides command.

HSQ Queue Groups — A fundamental concept on an HSQ IOM is the queue group. Queue groups are not directly managed by the provisioning. Instead, they are indirectly assigned when creating SAPs or subscribers on an HSQ port. A queue group has eight queue members, numbered from 1 through 8. When creating a SAP or subscriber associated on an HSQ egress port, a queue group is allocated to the object. Within the SAP egress policy, network queue policy and egress queue group template, provisioned queue IDs 1 through 8 correspond directly to queue group queue IDs 1 through 8. Each group also allows each queue to be dynamically placed in a scheduling class or on one of two WRR groups local to the queue group.

Each queue within the group has three RED slopes (managed by associating a slope policy to the queue), an MBS defined in bytes, a packet byte offset parameter used to add or subtract bytes to or from each packet handled by the queue for accounting purposes, and a PIR shaper used to rate limit the queue. An HSQ attachment policy associated with the queue group defines how each queue maps either directly to a scheduling class or one of the WRR groups within the queue group. The attachment policy also defines the scheduling class attachments for the WRR groups.

The queue group supports an aggregate shaper used to manage an aggregate rate limit for all queues within the group. Scheduling for queues within the queue group is stopped and started based on the rate set on the shaper.

Scheduling Classes and Scheduling Priorities — HSQ supports six scheduler classes (1 through 6). The scheduler class should not be confused with a QoS policy forwarding class. Forwarding classes within the system are used between the ingress and egress forwarding complexes and help the system to map a packet to per-hop and per-domain behavior. Scheduling classes are slices of scheduling opportunity within a port-scheduling context. Each port scheduler maintains six strict priority levels, where 6 is the highest priority and 1 is the lowest. As a rule, the scheduler services all active queues associated with priority level 6 before moving to queues on priority level 5. This strict behavior continues through priority level 1. Scheduling classes are mapped either to their corresponding scheduling priority level (scheduling class 1 mapped to priority level 1 through scheduling class 6 mapped to priority level 6) or to a single port level WRR group. The WRR group allows collapsing up to 6 of the scheduling classes into a single scheduling priority. The WRR group provides a weighted fair scheduling behavior for its member scheduling classes at that strict priority level.

Strict Priority Level PIR — The scheduler supports a strict scheduling level PIR that limits the amount of bandwidth allowed for the level. The rate is defined in increments of megabits per second and can be set to max (the default setting) which disables the shaping function. The scheduler includes the full Ethernet frame encapsulation overhead when updating the priority level PIR, including the 12-byte inter-frame gap and the 8-byte preamble.

Scheduler Maximum Rate — A maximum scheduling rate can be defined for the scheduler. The rate is specified in megabits per second and the default rate is max which allows the scheduler to operate without a set limit. When the HS scheduling policy is applied to an egress port, the maximum scheduling rate can be used to define a rate less than the available line rate of the port. The scheduler includes the full Ethernet frame encapsulation overhead when updating the scheduler level PIR, including the 12-byte inter-frame gap and the 8-byte preamble.

HS Scheduler Policy Overrides — After an HS scheduler is applied to an egress port, the various parameters can be overridden, allowing an HS scheduler policy to be adapted to changing needs on a port without requiring a new policy to be created.

Default HS Scheduling Policy — An HS scheduling policy with the name default always exists on the system and does not need to be created. The default policy cannot be modified or deleted.

The default policy contains the following parameters:

Table 122:  HS Scheduler Policy Parameter Defaults  

Parameter

Sub-Parameter

Default

max-rate

max

scheduling-class 1 through 6

rate

max

group

weight

group 1

rate

max

Default 

The no form of the command removes an HS scheduler policy from the system. If the HS scheduler policy is currently associated with an egress port, the command fails.

Parameters 
policy-name—
Specifies the HS scheduler policy up to 32 characters. Each HS scheduler policy must be uniquely named within the system.
create—
This keyword is required when first creating the configuration context. After the context is created, it is possible to navigate into the context without the create keyword.

group

Syntax 
group group-id rate rate
no group group-id
Context 
config>qos>hs-scheduler-policy
Description 

This command defines the maximum rate allowed for the scheduling classes mapped to the specified group-id. A group is a scheduling component used to combine up to six consecutive scheduling classes into a single strict priority level. Each scheduling class within the group has an associated weight. When the scheduler is servicing the strict level associated with the group, the ratio of bandwidth allocated to each scheduling class within the group during congestion is relative to the ratio of the weight of each active member.

The no form of the command reverts to the default.

Default 

group 1 rate max

Parameters 
group-id—
Specifies the group ID. The group always exists and does not need to be created prior to defining group membership.
Values—
1

 

rate—
Specifies the maximum rate in megabits per second. When the max keyword follows the rate keyword, the bandwidth limitation is removed from the group. The max keyword and the rate parameter are mutually exclusive. Either max or a rate value must follow the rate keyword.
Values—
1 to 100000, max

 

max-rate

Syntax 
max-rate rate
no max-rate
Context 
config>qos>hs-scheduler-policy
Description 

This command defines an explicit maximum frame-based bandwidth limit for the HS scheduler policy scheduler context. If a maximum rate is defined that is smaller than the port rate, the port is rate-limited to the configured megabits per second value. This command can be executed at any time for any non-default existing HS scheduler policy.

The no form of the command removes an explicit rate value from the HS scheduler policy. After the explicit rate value is removed, all instances of the scheduler policy on HSQ egress ports are allowed to run at the available line rate unless the instance has a max rate override in place.

Parameters 
rate—
Specifies the explicit maximum frame-based bandwidth limit, in megabits per second. This parameter is required when executing this command.
Values—
1 to 100000, max

 

scheduling-class

Syntax 
scheduling-class class-id group group-id [weight weight-in-group]
scheduling-class class-id rate rate
no scheduling-class class-id
Context 
config>qos>hs-scheduler-policy
Description 

This command configures the behavior of a specific scheduling class on all HSQ schedulers associated with the policy. The scheduler-class command performs one of two operations: it configures a maximum rate for the scheduling class or places the scheduling class into the weighted scheduling group. The two operations are mutually exclusive.

By default, none of the scheduling classes are members of the weighted scheduling group and each class is set to a rate limit of max (no rate limit applied).

Specifying Scheduling Class Rate (or Removing the Scheduling Class from Group) — If the scheduling-class command is executed with the rate keyword specified, either max or a specified rate value must follow. If a class-id was previously mapped into the weighted scheduling group, the class is removed from the group. However, if removing the class from the group causes the group to no longer have contiguous class members, the command fails with no effect on the specified class. A “non-contiguous grouping error” is returned. The lowest or highest members within a weighted group must be removed prior to removing the middle members. For example, if scheduling classes 3, 4, and 5 were members of weighted group 1, class 4 cannot be removed first.

This command using the rate keyword also fails when an override for the group weight is in place on the scheduling class within a scheduler associated with the policy. The override expects the class to be associated with a weighted scheduling group and the policy rate definition is attempting to remove the class from the group. An “override mismatch” error is generated, specifying the scheduling object where the override exists.

After a rate has been successfully defined for a scheduling class, the specified rate is automatically updated on all HSQ scheduler instances associated with the scheduling policy. The exception is where the scheduler instance has a local override for the rate on the scheduling class.

Specifying Scheduling Class Weighted Group Membership — If the scheduling-class command is executed with the group keyword specified, the group ID value of 1 must follow. The corresponding optional weight keyword is used to specify the weight of the scheduling class within the group. If weight is not specified, the default weight of 1 is used. If the specified scheduling class is not contiguous with the other scheduling classes in the group, the command fails with no change to the current state of the scheduling class and a “non-contiguous grouping” error is returned, specifying the weighted scheduling group and the current group members.

The scheduling-class command fails using the group keyword when a rate override for the scheduling class exists on an HSQ scheduler instance associated with the policy. The rate override for the scheduling class indicates the class is directly attached to a strict priority level, conflicting with the policy group keyword trying to place the class in the specified group. The command fails without affecting the scheduling class definition on the policy and returns an error specifying the scheduling object where the override exists.

Other Override Constraints — The scheduling overrides cannot change or remove a scheduling class from a policy-defined weighted group membership.

The no form of the command returns the scheduling class represented by class-id to the default behavior. The default behavior for a scheduling class is to not be a member of the weighted scheduling class group and have a rate set to max. The no scheduling-class command fails if the scheduling class is currently a member of the weighted scheduling class group and a weight override is in effect on a scheduling object for the class, in which case an error is returned.

Parameters 
class-id—
Specifies the scheduling class for HS scheduler policy. The class-id value is a required parameter that specifies which scheduling class the scheduling-class command is acting upon.
Values—
1 to 6

 

group-id—
Specifies the group this HS scheduler policy scheduling class belongs to. The group and the rate keywords are mutually exclusive when executing this command. A group ID value of 1 must follow the group keyword. The group keyword removes the class ID from its inherent strict scheduling level and places it into the specified group ID. The associated weight parameter is optional and is used to specify the weight of a class ID within the weighted scheduling class group. Specifying the group parameter while an override for the scheduling class exists for rate causes the scheduling-class command to fail.
Values—
1

 

weight-in-group—
Specifies the weight the HS scheduler policy should apply to this scheduling class within the group in which it belongs. This keyword is optional and must follow the group parameter when specified. The weight-in-group parameter must follow the weight keyword and is used to specify the relative weight of the class-id to the other scheduling classes within the group. If the group is specified without the weight parameter, a default weight of 1 is used.
Values—
1 to 127

 

rate—
Specifies the explicit maximum frame-based bandwidth limit, in megabits per second, for this HS scheduler policy scheduling class. The rate and group keywords are mutually exclusive. Either the rate or group keyword must be specified when executing this command. When specified, the rate keyword must be followed by either the keyword max or a rate specified in megabits per second. The specified rate can be overridden at the port Ethernet egress using the scheduler override functions. A newly-created HS scheduler policy defaults each scheduling class to have its rate set to max and the weighted scheduling class group has no members.
Values—
1 to 100000, max
The max keyword specifies that a limit is not enforced for the specified class ID and that the class ID is not a member of a weighted scheduling class group. The max keyword and the rate value are mutually exclusive; when max is specified, it must directly follow the rate keyword. Setting the rate of the class fails when the class currently has a group weight override defined on a scheduling object.

 

15.4.2.6. Network Queue HS Attachment Policy Commands

hs-attachment-policy

Syntax 
hs-attachment-policy policy-name
no hs-attachment-policy
Context 
config>qos>network-queue
Description 

This command associates an existing HS attachment policy with the network queue QoS policy. The HS attachment policy controls how the network queues are attached to scheduler classes or WRR groups, and how WRR groups are attached to the scheduler classes. It also defines the mapping of the scheduling classes to the queues' aggregate shaper's low and high burst limit thresholds.

Only one HS attachment policy can be associated with a network queue policy.

The no form of the command removes the policy name from the configuration and reapplies the default HS attachment policy.

Parameters 
policy-name—
Specifies an existing attachment policy up, to 32 characters. Each HSQ attachment policy must be uniquely named within the system.

hs-wrr-group

Syntax 
[no] hs-wrr-group group-id
Context 
config>qos>network-queue
Description 

This command enables the context to configure HS WRR group information in the network queue policy. This command provisions the rate and class weight of each of the two WRR scheduling groups that can be utilized by the egress queue-group instance HSQ queues.

The no form of the command reverts the HS WRR group parameters to their default values.

Parameters 
group-id—
Specifies the HS WRR group identifier. WRR group ID 1 or 2 must be specified when executing the hs-wrr-group command. The specified group ID identifies which WRR group context is entered for editing.
Values—
1, 2

 

adaptation-rule

Syntax 
adaptation-rule [pir adaptation-rule]
no adaptation-rule
Context 
config>qos>network-queue>hs-wrr-group
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, next lowest rate, or closest rate should be selected by the system.

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

Default 

adaptation-rule pir closest

Parameters 
adaptation-rule—
Specifies the adaptation rule (min, max, or closest) to be used while computing the operational PIR value. The adaptation rule specifies the rules to compute the operational values while maintaining minimum offset. The min, max, and closest keywords are mutually exclusive.
Values—
min — When min is specified, the queue’s rate parameter is treated as the minimum rate to shape the queue. The hardware chooses the appropriate timers and PIR leaky bucket behavior to ensure that the queues shaping rate is the closest possible value without going under the specified rate.
max — When max is specified, the queue’s rate parameter is treated as the maximum rate to shape the queue. The hardware chooses the appropriate timers and PIR leaky bucket behavior to ensure that the queue’s shaping rate is the closest possible value without going over the specified rate.
closest — When closest is specified, the queue’s rate parameter is treated as the target rate to shape the queue. The hardware chooses the appropriate timers and PIR leaky bucket behavior to ensure that the queues shaping rate is the closest possible value and can be higher or lower than the specified rate.

 

hs-class-weight

Syntax 
hs-class-weight weight
no hs-class-weight
Context 
config>qos>network-queue>hs-wrr-group
Description 

This command specifies the class weight of this WRR group at its parent primary shaper, relative to the other queues and WRR groups in different HSQ queue groups in the same scheduling class. This allows the capacity available at the primary shaper scheduling class to be shared in a WRR manner between the HSQ queue group queues and WRR groups attached to that scheduling class. The hs-class-weight weight can be used to give unequal shares of the available capacity to different types of service offerings.

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

Default 

hs-class-weight 1

Parameters 
weight—
Specifies the class weight of the HS WRR group.
Values—
1, 2, 4, 8

 

rate

Syntax 
rate percent
no rate
Context 
config>qos>network-queue>hs-wrr-group
Description 

This command specifies the scheduling rate applied to the HS WRR group as a percentage of the port rate, which includes both the egress-rate and HS scheduler policy max-rate, if configured.

The no form of the command reverts to the default.

Default 

rate 100

Parameters 
percent—
Specifies the scheduling rate of the HS WRR group as a percentage.
Values—
1 to 100

 

hs-alt-port-class-pool

Syntax 
[no] hs-alt-port-class-pool
Context 
config>qos>network-queue>queue
Description 

This command specifies that the HSQ queue group queues use buffers from the HS alternate port class buffer pool.

The no form of the command reverts to the HSQ queue group queues using buffers from HS standard port class pools.

hs-class-weight

Syntax 
hs-class-weight weight
no hs-class-weight
Context 
config>qos>network-queue>queue
Description 

This command specifies the class weight of this queue at its parent primary shaper, relative to the other queues and WRR groups in different HSQ queue groups in the same scheduling class. This allows the capacity available at the primary shaper scheduling class to be shared in a WRR manner between the HSQ queue group queues and WRR groups attached to that scheduling class. The hs-class-weight weight parameter can be used to give unequal shares of the available capacity to different types of service offerings. This command is ignored for egress HSQ queue group queues that are attached to an HS WRR group within an associated HS attachment policy. In this case, the configuration of the hs-class-weight is performed under the hs-wrr-group within the network queue policy.

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

Default 

hs-class-weight 1

Parameters 
weight—
Specifies class weight of the queue.
Values—
1, 2, 4, 8

 

hs-mbs

Syntax 
hs-mbs percent-of-queue-rate
no hs-mbs
Context 
config>qos>network-queue>queue
Description 

This command configures the queue size of an HSQ queue group network queue. Its value is calculated based on the specified percentage of one second of the queue PIR converted to bytes (the regular mbs parameter is ignored in the network queue policy).

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

Default 

hs-mbs 100

Parameters 
percent-of-queue-rate—
Specifies the buffer space for the queue as a percentage of its PIR (in bytes).
Values—
0.00 to 100.0

 

hs-wred-queue

Syntax 
hs-wred-queue [policy slope-policy-name]
no hs-wred-queue
Context 
config>qos>network-queue>queue
Description 

This command reverts the slope policy applied to the HSQ queue group queue to the default policy. Specifying an existing slope policy applies the named slope policy to the queue.

The no form of the command reverts to the default slope policy.

Default 

hs-wred-queue policy "_tmnx_hs_default"

Parameters 
slope-policy-name—
Specifies an existing slope policy to apply to this HSQ queue group queue.

hs-wrr-weight

Syntax 
hs-wrr-weight weight
no hs-wrr-weight
Context 
config>qos>network-queue>queue
Description 

This command specifies the WRR relative weight, with which this queue should parent into an HSQ WRR group defined within the associated HS attachment policy. The weight of each queue determines how much bandwidth that queue gets out of the total rate for the HSQ WRR group.

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

Default 

hs-wrr-weight 1

Parameters 
weight—
Specifies the HS WRR group queue weight.
Values—
1 to 127

 

15.4.2.7. SAP Egress HS Attachment Policy Commands

hs-attachment-policy

Syntax 
hs-attachment-policy policy-name
no hs-attachment-policy
Context 
config>qos>sap-egress
Description 

This command associates an existing HS attachment policy with the SAP egress QoS policy. The HS attachment policy controls how the SAP egress queues are attached to scheduler classes or WRR groups, and how WRR groups are attached to the scheduler classes. It also defines the mapping of the scheduling classes to the queues' aggregate shaper's low and high burst limit thresholds.

Only one HS attachment policy can be associated with a SAP egress policy.

The no form of the command removes the policy name from the configuration and reapplies the default HS attachment policy.

Parameters 
policy-name—
Specifies an existing attachment policy up, to 32 characters. Each HSQ attachment policy must be uniquely named within the system.

hs-wrr-group

Syntax 
hs-wrr-group group-id
no hs-wrr-group
Context 
config>qos>sap-egress
Description 

This command enables the context to configure HS WRR group information in the SAP egress QoS policy. The hs-wrr-group command is used to provision the rate and class weight of each of the two WRR scheduling groups that can be utilized by the SAP egress HSQ queues.

The no form of the command resets the HS WRR group parameters to their default values.

Parameters 
group-id—
Specifies the HS WRR group identifier. WRR group ID 1 or 2 must be specified when executing the hs-wrr-group command. The specified group ID identifies which WRR group context is entered for editing.
Values—
1, 2

 

adaptation-rule

Syntax 
adaptation-rule [pir adaptation-rule]
no adaptation-rule
Context 
config>qos>sap-egress>hs-wrr-group
Description 

This command specifies how the system resolves differences between the specified scheduling limit derived from the WRR group’s rate command and the actual operational rate obtainable in hardware. The mutually exclusive min, max, and closest keywords specify whether the next highest rate, next lowest, or closest 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—
Defines the constraints enforced when adapting the PIR rate defined within the queue queue-id rate command. The pir parameter requires a qualifier that defines the constraint used when deriving the operational PIR for the queue. When the rate command is not specified, the default applies.
adaptation-rule—
Specifies the adaptation rule (min, max, or closest) to be used while computing the operational PIR value. The adaptation rule specifies the rules to compute the operational values while maintaining minimum offset. The min, max, and closest keywords are mutually exclusive.
Values—
min — When min is specified, the queue’s rate parameter is treated as the minimum rate to shape the queue. The hardware chooses the appropriate timers and PIR leaky bucket behavior to ensure that the queues shaping rate is the closest possible value without going under the specified rate.
max — When max is specified, the queue’s rate parameter is treated as the maximum rate to shape the queue. The hardware chooses the appropriate timers and PIR leaky bucket behavior to ensure that the queue’s shaping rate is the closest possible value without going over the specified rate.
closest — When closest is specified, the queue’s rate parameter is treated as the target rate to shape the queue. The hardware chooses the appropriate timers and PIR leaky bucket behavior to ensure that the queues shaping rate is the closest possible value and can be higher or lower than the specified rate.

 

hs-class-weight

Syntax 
hs-class-weight weight
no hs-class-weight
Context 
config>qos>sap-egress>hs-wrr-group
Description 

This command specifies the class weight of this WRR group at its parent primary shaper, relative to the other queues and WRR groups in different HSQ queue groups in the same scheduling class. This allows the capacity available at the primary shaper scheduling class to be shared in a WRR manner between the HSQ queue group queues and WRR groups attached to that scheduling class. The hs-class-weight parameter can be used to give unequal shares of the available capacity to different types of service offerings.

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

Default 

hs-class-weight 1

Parameters 
weight—
Specifies the class weight of the HS WRR group.
Values—
1, 2, 4, 8

 

percent-rate

Syntax 
percent-rate percent
no percent-rate
Context 
config>qos>sap-egress>hs-wrr-group
Description 

This command specifies the scheduling rate applied to the HS WRR group as a percentage of the port rate, including both the port's egress rate and port's HS scheduler policy max-rate, if configured. The percent-rate and rate commands are mutually exclusive.

The no form of the command reverts to the rate max.

Parameters 
percent—
Specifies the percent rate of the HS WRR group.
Values—
0.01 to 100.00

 

rate

Syntax 
rate rate
no rate
Context 
config>qos>sap-egress>hs-wrr-group
Description 

This command specifies the scheduling rate applied to the HS WRR group in kb/s. Alternatively, the keyword max can be specified, which removes the bandwidth limitation on the HS WRR group. The rate and percent-rate commands are mutually exclusive.

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

Default 

rate max

Parameters 
rate—
Specifies the scheduling rate of the HS WRR group in kb/s.
Values—
1 to 2000000000, max

 

hs-alt-port-class-pool

Syntax 
[no] hs-alt-port-class-pool
Context 
config>qos>sap-egress>queue
Description 

This command specifies that the HSQ queue group queues use buffers from the HS alternate port class buffer pool.

The no form of the command reverts to the HSQ queue group queues using buffers from HS standard port class pools.

hs-class-weight

Syntax 
hs-class-weight weight
no hs-class-weight
Context 
config>qos>sap-egress>queue
Description 

This command specifies the class weight of this queue at its parent primary shaper, relative to the other queues and WRR groups in different HSQ queue groups in the same scheduling class. This allows the capacity available at the primary shaper scheduling class to be shared in a WRR manner between the HSQ queue group queues and WRR groups attached to that scheduling class. The hs-class-weight weight parameter can be used to give unequal shares of the available capacity to different types of service offerings. 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 hs-class-weight is performed under the hs-wrr-group within the network queue policy.

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

Default 

hs-class-weight 1

Parameters 
weight—
Specifies class weight of the queue.
Values—
1, 2, 4, 8

 

hs-wred-queue

Syntax 
hs-wred-queue [policy slope-policy-name]
no hs-wred-queue
Context 
config>qos>sap-egress>queue
Description 

This command reverts the slope policy applied to the HSQ queue group queue to the default policy. Specifying an existing slope policy applies the named slope policy to the queue.

The no form of the command reverts to the default slope policy.

Default 

hs-wred-queue policy "_tmnx_hs_default"

Parameters 
slope-policy-name—
Specifies an existing slope policy to apply to this HSQ queue group queue.

hs-wrr-weight

Syntax 
hs-wrr-weight weight
no hs-wrr-weight
Context 
config>qos>sap-egress>queue
Description 

This command specifies the WRR relative weight, with which this queue should parent into an HSQ WRR group defined within the associated HS attachment policy. The weight of each queue determines how much bandwidth that queue gets out of the total rate for the HSQ WRR group.

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

Default 

hs-wrr-weight 1

Parameters 
weight—
Specifies the HS WRR group queue weight.
Values—
1 to 127

 

15.4.2.8. Queue Group Template Policy HS Commands

hs-attachment-policy

Syntax 
hs-attachment-policy policy-name
no hs-attachment-policy
Context 
config>qos>qgrps>egr>qgrp
Description 

This command associates an existing HS attachment policy with the egress queue group template. The HS attachment policy controls how the egress queue group instance queues are attached to scheduler classes or WRR groups, and how WRR groups are attached to the scheduler classes. It also defines the mapping of the scheduling classes to the queues' aggregate shaper's low and high burst limit thresholds.

Only one HS attachment policy can be associated with an egress queue group template.

The no form of the command removes the policy name from the configuration and reapplies the default HS attachment policy.

Parameters 
policy-name—
Specifies an existing attachment policy, up to 32 characters. Each HS attachment policy must be uniquely named within the system.

hs-wrr-group

Syntax 
[no] hs-wrr-group group-id
Context 
config>qos>qgrps>egr>qgrp
Description 

This command enables the context to configure HS WRR group information in the egress queue group template. The hs-wrr-group command is used to provision the rate and class weight of each of the two WRR scheduling groups that can be utilized by the egress queue group instance HSQ queues.

The no form of the command resets the HS WRR group parameters to their default values.

Parameters 
group-id—
Specifies the HS WRR group identifier. WRR group ID 1 or 2 must be specified when executing the hs-wrr-group command. The specified group ID identifies which WRR group context is entered for editing.
Values—
1, 2

 

adaptation-rule

Syntax 
adaptation-rule [pir adaptation-rule]
no adaptation-rule
Context 
config>qos>qgrps>egr>qgrp>hs-wrr-group
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 mutually exclusive min, max, and closest keywords specify whether the next highest rate, next lowest rate, or closest rate should be selected by the system.

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

Default 

adaptation-rule pir closest

Parameters 
adaptation-rule—
Specifies the adaptation rule (min, max, or closest) to be used while computing the operational PIR value. The adaptation rule specifies the rules to compute the operational values while maintaining minimum offset. The min, max, and closest keywords are mutually exclusive.
Values—
min — When min is specified, the queue’s rate parameter is treated as the minimum rate to shape the queue. The hardware chooses the appropriate timers and PIR leaky bucket behavior to ensure that the queues shaping rate is the closest possible value without going under the specified rate.
max — When max is specified, the queue’s rate parameter is treated as the maximum rate to shape the queue. The hardware chooses the appropriate timers and PIR leaky bucket behavior to ensure that the queue’s shaping rate is the closest possible value without going over the specified rate.
closest — When closest is specified, the queue’s rate parameter is treated as the target rate to shape the queue. The hardware chooses the appropriate timers and PIR leaky bucket behavior to ensure that the queues shaping rate is the closest possible value and can be higher or lower than the specified rate.

 

hs-class-weight

Syntax 
hs-class-weight weight
no hs-class-weight
Context 
config>qos>qgrps>egr>qgrp>hs-wrr-group
Description 

This command specifies the class weight of this WRR group at its parent primary shaper, relative to the other queues and WRR groups in different HSQ queue groups in the same scheduling class. This allows the capacity available at the primary shaper scheduling class to be shared in a WRR manner between the HSQ queue group queues and WRR groups attached to that scheduling class. The hs-class-weight parameter can be used to give unequal shares of the available capacity to different types of service offerings.

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

Default 

hs-class-weight 1

Parameters 
weight—
Specifies the class weight of the HS WRR group.
Values—
1, 2, 4, 8

 

percent-rate

Syntax 
percent-rate percent
no percent-rate
Context 
config>qos>qgrps>egr>qgrp>hs-wrr-group
Description 

This command specifies the scheduling rate applied to the HS WRR group as a percentage of the port rate, including both the port's egress-rate and port's HS scheduler policy max-rate, if configured. The percent-rate and rate commands are mutually exclusive.

The no form of the command reverts to the rate max.

Parameters 
percent—
Specifies the percent rate of the HS WRR group.
Values—
0.01 to 100.00

 

rate

Syntax 
rate rate
no rate
Context 
config>qos>qgrps>egr>qgrp>hs-wrr-group
Description 

This command specifies the scheduling rate applied to the HS WRR group in kb/s. Alternatively, the keyword max can be specified, which removes the bandwidth limitation on the HS WRR group. The rate and percent-rate commands are mutually exclusive.

The no form of the command reverts to the rate max.

Default 

rate max

Parameters 
rate—
Specifies the scheduling rates of the HS WRR group in kb/s.
Values—
1 to 2000000000, max

 

hs-alt-port-class-pool

Syntax 
[no] hs-alt-port-class-pool
Context 
config>qos>qgrps>egr>qgrp>queue
Description 

This command specifies that the HSQ queue group queues use the class buffers from the HS alternate port class buffer pools.

The no form of the command reverts to the HSQ queue group queues using buffers from HS standard port class pools.

hs-class-weight

Syntax 
hs-class-weight weight
no hs-class-weight
Context 
config>qos>qgrps>egr>qgrp>queue
Description 

This command specifies the class weight of this queue at its parent primary shaper, relative to the other queues and WRR groups in different HSQ queue groups in the same scheduling class. This allows the capacity available at the primary shaper scheduling class to be shared in a WRR manner between the HSQ queue group queues and WRR groups attached to that scheduling class. The hs-class-weight parameter can be used to give unequal shares of the available capacity to different types of service offerings.

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 hs-class-weight is performed under the hs-wrr-group within the egress queue group template.

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

Default 

hs-class-weight 1

Parameters 
weight—
Specifies the class weight of the queue.
Values—
1, 2, 4, 8

 

hs-wred-queue

Syntax 
hs-wred-queue [policy slope-policy-name]
no hs-wred-queue
Context 
config>qos>qgrps>egr>qgrp>queue
Description 

This command reverts the slope policy applied to the HSQ queue group queue to the default policy. Specifying an existing slope policy applies the named slope policy to the queue.

The no form of the command reverts to the default slope policy.

Default 

hs-wred-queue policy "_tmnx_hs_default"

Parameters 
slope-policy-name—
Specifies an existing slope policy name to apply to this HSQ queue group queue.

hs-wrr-weight

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

This command specifies the WRR relative weight, with which this queue should parent into an HSQ WRR group defined within the associated HS attachment policy. The weight of each queue determines how much bandwidth that queue gets out of the total rate for the HSQ WRR group.

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

Default 

hs-wrr-weight 1

Parameters 
weight—
Specifies HS WRR group queue weight.
Values—
1 to 127

 

15.4.2.9. Operational Commands

copy

Syntax 
copy hs-attachment-policy src-name dst-name [overwrite]
copy hs-pool-policy src-name dst-name [overwrite]
copy hs-port-pool-policy src-name dst-name [overwrite]
copy hs-scheduler-policy src-name dst-name [overwrite]
Context 
config>qos
Description 

This command copies existing QoS policy entries for a QoS policy ID to another QoS policy ID.

The copy command is a configuration-level maintenance tool used to create new policies using existing policies. It also allows bulk modifications to an existing policy with the use of the overwrite keyword.

Parameters 
src-name dst-name
Indicates that the source policy ID and the destination policy ID are HS policy IDs. Specify the source policy ID that the copy command attempts to copy from and specify the destination policy ID to which the command copies a duplicate of the policy.
overwrite—
Specifies to replace the existing destination policy. Everything in the existing destination policy is overwritten with the contents of the source policy. If overwrite is not specified, an error occurs if the destination policy ID exists.
Example:
SR>config>qos# copy hs-pool-policy policy1 policy2
MINOR: CLI Destination "policy2" exists use {overwrite}.
SR>config>qos# copy hs-pool-policy policy1 policy2 overwrite

15.4.2.10. Show Commands

hs-pools

Syntax 
hs-pools card-slot-number fp forwarding-plane egress
hs-pools port port-id egress
hs-pools port port-id egress network-queues
hs-pools port port-id egress queue-group queue-group-name [instance instance-id]
hs-pools port port-id egress sap sap-id
hs-pools port port-id egress subscriber sub-ident-string
Context 
show
Description 

This command shows the egress pool information relating to an HSQ IOM.

The card and fp output shows the total buffer allocation, the number of allocated buffers, the available buffer allocation, and the buffer high-water marks for the system pools and the hierarchy of user-provisioned root and mid pools on the specified card and FP. The output includes the applied slope policy and the related instantaneous slope drop probabilities (as a percentage) for the user-provisioned pools.

The port output adds the port class pool information to the above hierarchy of user-provisioned pools for the specified port. The queue information for network queues, queue group instances, SAPs, or subscribers on the specified port is included when the associated parameter is added.

Parameters 
card-slot-number—
Displays information for the specified card slot.
Values—
Depending on the chassis model, IOM slots are numbered from 1 to 10.

 

forwarding-plane—
Displays information for the specified forwarding plane.
Values—
1

 

port-id
Displays information about the specified physical port ID in the slot/mda/port format.
network-queues—
Displays information about the egress network queues on the specified port.
queue-group-name
Displays information about the specified queue group name, up to 32 characters.
instance-id
Displays information about the specified queue group instance.
Values—
1 to 65535

 

sap-id
Displays information about the specified SAP, up to 64 characters, on the specified port.
sub-ident-string—
Displays information about the specified subscriber, up to 64 characters, on the specified port.
Output 

The following output is an example of HS pool information.

Sample Output
*A:PE4# show hs-pools port 1/1/2 egress sap 1/1/2:1
 
===============================================================================
HS Pools Port Information
===============================================================================
Port               : 1/1/2
 
-------------------------------------------------------------------------------
System Pool Information
-------------------------------------------------------------------------------
Total Buffers      : 209412 KB          Allocated          : 0 KB
Available          : 209412 KB          High Water Mark    : 0 KB
-------------------------------------------------------------------------------
Buffer Pool Hierarchy Information
-------------------------------------------------------------------------------
 
Root Pool : 1
|  Total               : 2984148 KB  Allocated         : 0 KB
|  Available           : 2984148 KB  High Water Mark   : 0 KB
|  Hi-Slope Drop Prob  : 0           Lo-Slope Drop Prob: 0
|  Excd-Slope Drop Prob: 0
|  Hs Slope Policy     : _tmnx_hs_default
|
|--- Mid Pool : 1
|     | Total               : 1193658 KB  Allocated         : 0 KB
|     | Available           : 1193658 KB  High Water Mark   : 0 KB
|     | Hi-Slope Drop Prob  : 0           Lo-Slope Drop Prob: 0
|     | Excd-Slope Drop Prob: 0
|     | Hs Slope Policy     : _tmnx_hs_default
|     |
|     |--- Std Port Class Pool : 6
|     |      Total               : 596828 KB   Allocated         : 0 KB
|     |      Available           : 596828 KB   High Water Mark   : 0 KB
|     |      Hi-Slope Drop Prob  : 0           Lo-Slope Drop Prob: 0
|     |      Excd-Slope Drop Prob: 0
|     |      Hs Slope Policy     : _tmnx_hs_default
|     |
|--- Mid Pool : 2
|     | Total               : 1044450 KB  Allocated         : 0 KB
|     | Available           : 1044450 KB  High Water Mark   : 0 KB
|     | Hi-Slope Drop Prob  : 0           Lo-Slope Drop Prob: 0
|     | Excd-Slope Drop Prob: 0
|     | Hs Slope Policy     : _tmnx_hs_default
|     |
|     |--- Std Port Class Pool : 5
|     |      Total               : 522224 KB   Allocated         : 0 KB
|     |      Available           : 522224 KB   High Water Mark   : 0 KB
|     |      Hi-Slope Drop Prob  : 0           Lo-Slope Drop Prob: 0
|     |      Excd-Slope Drop Prob: 0
|     |      Hs Slope Policy     : _tmnx_hs_default
|     |
|--- Mid Pool : 3
|     | Total               : 895244 KB   Allocated         : 0 KB
|     | Available           : 895244 KB   High Water Mark   : 0 KB
|     | Hi-Slope Drop Prob  : 0           Lo-Slope Drop Prob: 0
|     | Excd-Slope Drop Prob: 0
|     | Hs Slope Policy     : _tmnx_hs_default
|     |
|     |--- Std Port Class Pool : 4
|     |      Total               : 447622 KB   Allocated         : 0 KB
|     |      Available           : 447622 KB   High Water Mark   : 0 KB
|     |      Hi-Slope Drop Prob  : 0           Lo-Slope Drop Prob: 0
|     |      Excd-Slope Drop Prob: 0
|     |      Hs Slope Policy     : _tmnx_hs_default
|     |
|--- Mid Pool : 4
|     | Total               : 746036 KB   Allocated         : 0 KB
|     | Available           : 746036 KB   High Water Mark   : 0 KB
|     | Hi-Slope Drop Prob  : 0           Lo-Slope Drop Prob: 0
|     | Excd-Slope Drop Prob: 0
|     | Hs Slope Policy     : _tmnx_hs_default
|     |
|     |--- Std Port Class Pool : 1
|     |      Total               : 373018 KB   Allocated         : 0 KB
|     |      Available           : 373018 KB   High Water Mark   : 0 KB
|     |      Hi-Slope Drop Prob  : 0           Lo-Slope Drop Prob: 0
|     |      Excd-Slope Drop Prob: 0
|     |      Hs Slope Policy     : hs-slope-1
|     |
Root Pool : 2
|  Total               : 994716 KB   Allocated         : 0 KB
|  Available           : 994716 KB   High Water Mark   : 0 KB
|  Hi-Slope Drop Prob  : 0           Lo-Slope Drop Prob: 0
|  Excd-Slope Drop Prob: 0
|  Hs Slope Policy     : _tmnx_hs_default
|
|--- Mid Pool : 5
|     | Total               : 795772 KB   Allocated         : 0 KB
|     | Available           : 795772 KB   High Water Mark   : 0 KB
|     | Hi-Slope Drop Prob  : 0           Lo-Slope Drop Prob: 0
|     | Excd-Slope Drop Prob: 0
|     | Hs Slope Policy     : _tmnx_hs_default
|     |
|--- Mid Pool : 6
|     | Total               : 198942 KB   Allocated         : 0 KB
|     | Available           : 198942 KB   High Water Mark   : 0 KB
|     | Hi-Slope Drop Prob  : 0           Lo-Slope Drop Prob: 0
|     | Excd-Slope Drop Prob: 0
|     | Hs Slope Policy     : _tmnx_hs_default
|     |
 
-------------------------------------------------------------------------------
Queue Information
-------------------------------------------------------------------------------
Queue Name         : 1->1/1/2:1->1
FC Map             : be l2 l1 h2 nc
Admin PIR          : 40000              Oper PIR               : 0
Admin MBS          : 64 KB              Oper MBS               : 64 KB
HS Wrr Group       : 1
HS Wrr Class Weight: 1                  HS Wrr Weight          : 2
Depth              : 0
HS Class           : 1                  HS Alt Port Class Pool : No
HS Slope Policy    : _tmnx_hs_default
Queue Name         : 1->1/1/2:1->2
FC Map             : af
Admin PIR          : 40000              Oper PIR               : 0
Admin MBS          : 64 KB              Oper MBS               : 64 KB
HS Wrr Group       : 1
HS Wrr Class Weight: 1                  HS Wrr Weight          : 1
Depth              : 0
HS Class           : 1                  HS Alt Port Class Pool : No
HS Slope Policy    : _tmnx_hs_default
Queue Name         : 1->1/1/2:1->6
FC Map             : ef
Admin PIR          : 20000              Oper PIR               : 20000
Admin MBS          : 64 KB              Oper MBS               : 64 KB
HS Wrr Group       : (not-applicable)
HS Wrr Class Weight: 1                  HS Wrr Weight          : 0
Depth              : 0
HS Class           : 4                  HS Alt Port Class Pool : No
HS Slope Policy    : _tmnx_hs_default
Queue Name         : 1->1/1/2:1->7
FC Map             : h1
Admin PIR          : 10000              Oper PIR               : 10000
Admin MBS          : 64 KB              Oper MBS               : 64 KB
HS Wrr Group       : (not-applicable)
HS Wrr Class Weight: 1                  HS Wrr Weight          : 0
Depth              : 0
HS Class           : 5                  HS Alt Port Class Pool : No
HS Slope Policy    : _tmnx_hs_default
 
-------------------------------------------------------------------------------
===============================================================================

port

Syntax 
port port-id hs-secondary-shaper
port port-id hs-secondary-shaper secondary-shaper-name [statistics | associations]
Context 
show
Description 

This command displays the details of the HS secondary shapers configured on the specified port.

Parameters 
port-id—
Displays information about the specified physical port ID in the slot/mda/port format.
secondary-shaper-name—
Displays information about the HS secondary name, up to 32 characters.
statistics—
Displays statistics for the HS secondary shaper. The secondary-shaper-name must be specified.
associations—
Displays the entities associated with the HS secondary shaper. The secondary-shaper-name must be specified.
Output 

The following output is an example of port HS secondary shaper information.

Sample Output
*A:PE# show port 1/1/2 hs-secondary-shaper "default"
 
===============================================================================
Ethernet Port 1/1/2 Egress HS Secondary Shaper Information
===============================================================================
Policy Name        : default
Description        : (Not Specified)
Rate               : max
Low Burst Max Class: 6
 
-------------------------------------------------------------------------------
Class                                   Rate
-------------------------------------------------------------------------------
1                                       max
2                                       max
3                                       max
4                                       max
5                                       max
6                                       max
-------------------------------------------------------------------------------
===============================================================================
 
*A:PE# show port 1/1/2 hs-secondary-shaper "default" statistics
 
===============================================================================
Ethernet Port 1/1/2 Egress HS Secondary Shaper Information
===============================================================================
Policy Name        : default
 
------------------------------------------------------------------------
Statistics Information
------------------------------------------------------------------------
 
------------------------------------------------------------------------
                        Packets                 Octets
Class 1
    Forwarded         : 0                       0
Class 2
    Forwarded         : 0                       0
Class 3
    Forwarded         : 0                       0
Class 4
    Forwarded         : 0                       0
Class 5
    Forwarded         : 0                       0
Class 6
    Forwarded         : 0                       0
Aggregate
    Forwarded         : 0                       0
------------------------------------------------------------------------
===============================================================================
 
*A:PE# show port 1/1/2 hs-secondary-shaper "default" associations
 
===============================================================================
Ethernet Port 1/1/2 Egress HS Secondary Shaper Information
===============================================================================
Policy Name        : default
Description        : (Not Specified)
Rate               : max
Low Burst Max Class: 6
 
-------------------------------------------------------------------------------
Class                                   Rate
-------------------------------------------------------------------------------
1                                       max
2                                       max
3                                       max
4                                       max
5                                       max
6                                       max
-------------------------------------------------------------------------------
 
-------------------------------------------------------------------------------
Service Associations
-------------------------------------------------------------------------------
Service ID                Service Type               SAP
-------------------------------------------------------------------------------
2                         IES                        1/1/2:2
-------------------------------------------------------------------------------
 
-------------------------------------------------------------------------------
Subscriber Associations
-------------------------------------------------------------------------------
Subscriber ID
-------------------------------------------------------------------------------
No Subscriber Associations Found.
-------------------------------------------------------------------------------
===============================================================================
*A:PE#

hs-attachment-policy

Syntax 
hs-attachment-policy [policy-name] [association | detail]
Context 
show>qos
Description 

This command displays information about HS attachment policies in the system.

Parameters 
policy-name—
Displays information about the specified policy name, up to 32 characters.
association—
Displays the entities associated with all HS attachment policies or the specified HS attachment policy.
detail—
Displays detailed policy information, including policy associations, of all HS attachment policies, or the specified HS attachment policy.
Output 

The following output is an example of HS attachment policy information.

Sample Output
*A:PE# show qos hs-attachment-policy "default"
 
===============================================================================
HS Attachment Policy Information
===============================================================================
Policy Name             : default
Description             : Default hs attachment QoS policy
Low Burst Max Class     : 6
 
-------------------------------------------------------------------------------
Queue               Scheduling Class              WRR Group
-------------------------------------------------------------------------------
1                   (Not-Applicable)              1
2                   (Not-Applicable)              1
3                   (Not-Applicable)              1
4                   2                             (Not-Applicable)
5                   3                             (Not-Applicable)
6                   4                             (Not-Applicable)
7                   5                             (Not-Applicable)
8                   6                             (Not-Applicable)
 
-------------------------------------------------------------------------------
WRR Group           Scheduling Class
-------------------------------------------------------------------------------
1                   1
2                   unattached
===============================================================================
 
*A:PE# show qos hs-attachment-policy "hs-att-pol-1" detail
 
===============================================================================
HS Attachment Policy Information
===============================================================================
Policy Name             : hs-att-pol-1
Description             : (Not Specified)
Low Burst Max Class     : 1
 
-------------------------------------------------------------------------------
Queue               Scheduling Class              WRR Group
-------------------------------------------------------------------------------
1                   (Not-Applicable)              1
2                   (Not-Applicable)              1
3                   unattached                    unattached
4                   unattached                    unattached
5                   unattached                    unattached
6                   4                             (Not-Applicable)
7                   5                             (Not-Applicable)
8                   6                             (Not-Applicable)
 
-------------------------------------------------------------------------------
WRR Group           Scheduling Class
-------------------------------------------------------------------------------
1                   1
2                   unattached
 
-------------------------------------------------------------------------------
Associations
-------------------------------------------------------------------------------
Network-Queue Policy
-------------------------------------------------------------------------------
10
 
Sap-Egress Policy
-------------------------------------------------------------------------------
10
20
 
Egress Queue-Group Templates
-------------------------------------------------------------------------------
queue-group-1
 
-------------------------------------------------------------------------------
===============================================================================
*A:PE#

hs-pool-policy

Syntax 
hs-pool-policy [policy-name] [association | detail]
Context 
show>qos
Description 

This command displays information about HS pool policies in the system.

Parameters 
policy-name—
Displays information about the specified HS pool policy name, up to 32 characters.
association—
Displays the entities associated with all HS pool policies or the specified HS pool policy.
detail—
Displays detailed policy information, including policy associations, of all HS pool policies or the specified HS pool policy.
Output 

The following output is an example of HS pool policy information.

Sample Output
*A:PE# show qos hs-pool-policy
 
===============================================================================
HS Pool Policy Summary
===============================================================================
Policy Name              Description
-------------------------------------------------------------------------------
default                  Default hs pool QoS policy
hs-pool-pol-1            (Not Specified)
-------------------------------------------------------------------------------
No. of Policies: 2
===============================================================================
 
*A:PE# show qos hs-pool-policy default detail
 
===============================================================================
HS Pool Policy Information
===============================================================================
Policy Name             : default
Description             : Default hs pool QoS policy
System Reserve          : 5.00
 
-------------------------------------------------------------------------------
Root Pool Information
-------------------------------------------------------------------------------
Pool Id                 : 1             Allocation Weight   : 75
Slope Policy            : _tmnx_hs_default
Pool Id                 : 2             Allocation Weight   : 25
Slope Policy            : _tmnx_hs_default
Pool Id                 : 3             Allocation Weight   : 0
Slope Policy            : _tmnx_hs_default
Pool Id                 : 4             Allocation Weight   : 0
Slope Policy            : _tmnx_hs_default
Pool Id                 : 5             Allocation Weight   : 0
Slope Policy            : _tmnx_hs_default
Pool Id                 : 6             Allocation Weight   : 0
Slope Policy            : _tmnx_hs_default
Pool Id                 : 7             Allocation Weight   : 0
Slope Policy            : _tmnx_hs_default
Pool Id                 : 8             Allocation Weight   : 0
Slope Policy            : _tmnx_hs_default
Pool Id                 : 9             Allocation Weight   : 0
Slope Policy            : _tmnx_hs_default
Pool Id                 : 10            Allocation Weight   : 0
Slope Policy            : _tmnx_hs_default
Pool Id                 : 11            Allocation Weight   : 0
Slope Policy            : _tmnx_hs_default
Pool Id                 : 12            Allocation Weight   : 0
Slope Policy            : _tmnx_hs_default
Pool Id                 : 13            Allocation Weight   : 0
Slope Policy            : _tmnx_hs_default
Pool Id                 : 14            Allocation Weight   : 0
Slope Policy            : _tmnx_hs_default
Pool Id                 : 15            Allocation Weight   : 0
Slope Policy            : _tmnx_hs_default
Pool Id                 : 16            Allocation Weight   : 0
Slope Policy            : _tmnx_hs_default
 
-------------------------------------------------------------------------------
 
-------------------------------------------------------------------------------
Mid Pool Information
-------------------------------------------------------------------------------
Pool Id                 : 1             Allocation Percent  : 40.00
Port BW Oversub Factor  : 1             Parent Root Pool    : 1
Slope Policy            : _tmnx_hs_default
Pool Id                 : 2             Allocation Percent  : 35.00
Port BW Oversub Factor  : 1             Parent Root Pool    : 1
Slope Policy            : _tmnx_hs_default
Pool Id                 : 3             Allocation Percent  : 30.00
Port BW Oversub Factor  : 1             Parent Root Pool    : 1
Slope Policy            : _tmnx_hs_default
Pool Id                 : 4             Allocation Percent  : 25.00
Port BW Oversub Factor  : 1             Parent Root Pool    : 1
Slope Policy            : _tmnx_hs_default
Pool Id                 : 5             Allocation Percent  : 80.00
Port BW Oversub Factor  : 1             Parent Root Pool    : 2
Slope Policy            : _tmnx_hs_default
Pool Id                 : 6             Allocation Percent  : 20.00
Port BW Oversub Factor  : 1             Parent Root Pool    : 2
Slope Policy            : _tmnx_hs_default
Pool Id                 : 7             Allocation Percent  : 1.00
Port BW Oversub Factor  : 1             Parent Root Pool    : 0
Slope Policy            : _tmnx_hs_default
Pool Id                 : 8             Allocation Percent  : 1.00
Port BW Oversub Factor  : 1             Parent Root Pool    : 0
Slope Policy            : _tmnx_hs_default
Pool Id                 : 9             Allocation Percent  : 1.00
Port BW Oversub Factor  : 1             Parent Root Pool    : 0
Slope Policy            : _tmnx_hs_default
Pool Id                 : 10            Allocation Percent  : 1.00
Port BW Oversub Factor  : 1             Parent Root Pool    : 0
Slope Policy            : _tmnx_hs_default
Pool Id                 : 11            Allocation Percent  : 1.00
Port BW Oversub Factor  : 1             Parent Root Pool    : 0
Slope Policy            : _tmnx_hs_default
Pool Id                 : 12            Allocation Percent  : 1.00
Port BW Oversub Factor  : 1             Parent Root Pool    : 0
Slope Policy            : _tmnx_hs_default
Pool Id                 : 13            Allocation Percent  : 1.00
Port BW Oversub Factor  : 1             Parent Root Pool    : 0
Slope Policy            : _tmnx_hs_default
Pool Id                 : 14            Allocation Percent  : 1.00
Port BW Oversub Factor  : 1             Parent Root Pool    : 0
Slope Policy            : _tmnx_hs_default
Pool Id                 : 15            Allocation Percent  : 1.00
Port BW Oversub Factor  : 1             Parent Root Pool    : 0
Slope Policy            : _tmnx_hs_default
Pool Id                 : 16            Allocation Percent  : 1.00
Port BW Oversub Factor  : 1             Parent Root Pool    : 0
Slope Policy            : _tmnx_hs_default
 
-------------------------------------------------------------------------------
 
-------------------------------------------------------------------------------
Card Forwarding Plane (FP) Associations
-------------------------------------------------------------------------------
Card                FP
-------------------------------------------------------------------------------
1                   1
 
-------------------------------------------------------------------------------
===============================================================================
*A:PE#

hs-port-pool-policy

Syntax 
hs-port-pool-policy [policy-name] [association | detail]
Context 
show>qos
Description 

This command displays information about HS port pool policies in the system.

Parameters 
policy-name—
Displays information about the specified HS port pool policy name, up to 32 characters.
association—
Displays the entities associated with all HS port pool policies or the specified HS port pool policy.
detail—
Displays detailed policy information, including policy associations, of all HS port pool policies, or the specified HS port pool policy.
Output 

The following output is an example of HS port pool policy information.

Sample Output
*A:PE# show qos hs-port-pool-policy
 
===============================================================================
HS Port Pool Policy Summary
===============================================================================
Policy Name              Description
-------------------------------------------------------------------------------
default                  Default hs port pool QoS policy
no-class-pools           (Not Specified)
hs-port-pool-pol-1       (Not Specified)
-------------------------------------------------------------------------------
No. of Policies: 3
===============================================================================
*A:PE# show qos hs-port-pool-policy default detail
 
===============================================================================
HS Port Pool Policy Information
===============================================================================
Policy Name             : default
Description             : Default hs port pool QoS policy
 
-------------------------------------------------------------------------------
Standard Port Class Pool Information
-------------------------------------------------------------------------------
Class Id                : 1             Parent Mid Pool     : 1
Alloc Port BW Weight    : 1             Alloc Explicit Prcnt: 0.00
Slope Policy            : _tmnx_hs_default
Class Id                : 2             Parent Mid Pool     : 2
Alloc Port BW Weight    : 1             Alloc Explicit Prcnt: 0.00
Slope Policy            : _tmnx_hs_default
Class Id                : 3             Parent Mid Pool     : 3
Alloc Port BW Weight    : 1             Alloc Explicit Prcnt: 0.00
Slope Policy            : _tmnx_hs_default
Class Id                : 4             Parent Mid Pool     : 4
Alloc Port BW Weight    : 1             Alloc Explicit Prcnt: 0.00
Slope Policy            : _tmnx_hs_default
Class Id                : 5             Parent Mid Pool     : 5
Alloc Port BW Weight    : 1             Alloc Explicit Prcnt: 0.00
Slope Policy            : _tmnx_hs_default
Class Id                : 6             Parent Mid Pool     : 6
Alloc Port BW Weight    : 1             Alloc Explicit Prcnt: 0.00
Slope Policy            : _tmnx_hs_default
 
-------------------------------------------------------------------------------
 
-------------------------------------------------------------------------------
Alternate Port Class Pool Information
-------------------------------------------------------------------------------
Class Id                : 1             Parent Mid Pool     : 0
Alloc Port BW Weight    : 1             Alloc Explicit Prcnt: 0.00
Slope Policy            : _tmnx_hs_default
Class Id                : 2             Parent Mid Pool     : 0
Alloc Port BW Weight    : 1             Alloc Explicit Prcnt: 0.00
Slope Policy            : _tmnx_hs_default
Class Id                : 3             Parent Mid Pool     : 0
Alloc Port BW Weight    : 1             Alloc Explicit Prcnt: 0.00
Slope Policy            : _tmnx_hs_default
Class Id                : 4             Parent Mid Pool     : 0
Alloc Port BW Weight    : 1             Alloc Explicit Prcnt: 0.00
Slope Policy            : _tmnx_hs_default
Class Id                : 5             Parent Mid Pool     : 0
Alloc Port BW Weight    : 1             Alloc Explicit Prcnt: 0.00
Slope Policy            : _tmnx_hs_default
Class Id                : 6             Parent Mid Pool     : 0
Alloc Port BW Weight    : 1             Alloc Explicit Prcnt: 0.00
Slope Policy            : _tmnx_hs_default
 
-------------------------------------------------------------------------------
 
-------------------------------------------------------------------------------
Port Ethernet Egress Associations
-------------------------------------------------------------------------------
1/2/1
-------------------------------------------------------------------------------
===============================================================================
*A:PE#

hs-scheduler-hierarchy

Syntax 
hs-scheduler-hierarchy port port-id [hs-secondary-shaper shaper-name] [interval time-in-seconds]
hs-scheduler-hierarchy port port-id [interval time-in-seconds] hs-secondary-shapers
hs-scheduler-hierarchy port port-id [interval time-in-seconds] queue-group queue-group-name instance instance-id {access | network}
hs-scheduler-hierarchy sap sap-id egress [interval time-in-seconds]
hs-scheduler-hierarchy subscriber sub-ident egress [interval time-in-seconds]
Context 
show>qos
Description 

This command displays the egress HS scheduler hierarchy for the HS scheduler policy applied to the related port. The output includes the current maximum rate and each scheduling class rate on the port. The parameters allow for the current rates for the scheduling classes for all HS secondary shapers or a specific HS secondary shaper, or for the queue rates in a specified access or network queue group instance, SAP or subscriber to be included in the output.

Parameters 
port-id—
Specifies the physical port ID in the slot/mda/port format.
shaper-name—
Displays information about the specified HS secondary name, up to 32 characters, and includes the scheduling class rates for the HS secondary shaper on the port.
time-in-seconds—
Displays the time interval used to calculate the rates, in seconds.
Values—
1 to 5

 

hs-secondary-shapers—
Displays information about scheduling class rates for all HS secondary shapers on the port.
queue-group-name—
Displays information about the specified queue group name on the port, up to 32 characters.
instance-id—
Displays information about the specified queue group instance.
Values—
1 to 65535

 

sap-id—
Displays information about the queue rates for the specified SAP, up to 64 characters, on the specified port.
sub-ident—
Displays information about the specified subscriber, up to 64 characters, on the specified port.
Output 

The following output is an example of HS scheduler hierarchy information.

Sample Output
*A:PE# show qos hs-scheduler-hierarchy port 1/1/1 hs-secondary-shaper "default"
 
===============================================================================
Hs Scheduler Hierarchy Information
===============================================================================
Hs Sched Policy Name         : hs-sched-pol-1
 
Port Max-Rate : 0 Mbps
Hs-Sec-Shaper:default Agg-Rate : 0 Kbps
 
Scheduler Priority 6
  Scheduler Class 6  Rate : 0 Mbps
    Hs-Sec-Shaper:default Class 6 Rate : 0 Kbps
 
Scheduler Priority 5
  Scheduler Class 5  Rate : 0 Mbps
    Hs-Sec-Shaper:default Class 5 Rate : 0 Kbps
 
Scheduler Priority 4
  Scheduler Class 4  Rate : 0 Mbps
    Hs-Sec-Shaper:default Class 4 Rate : 0 Kbps
 
Scheduler Priority 3
  Scheduler Class 3  Rate : 0 Mbps
    Hs-Sec-Shaper:default Class 3 Rate : 0 Kbps
 
Scheduler Priority 2
  Scheduler Class 2  Rate : 0 Mbps
    Hs-Sec-Shaper:default Class 2 Rate : 0 Kbps
 
Scheduler Priority 1
  Scheduler Class 1  Rate : 0 Mbps
    Hs-Sec-Shaper:default Class 1 Rate : 0 Kbps
===============================================================================
*A:PE# show qos hs-scheduler-hierarchy port 1/1/1 hs-secondary-shapers
 
===============================================================================
Hs Scheduler Hierarchy Information
===============================================================================
Hs Sched Policy Name         : hs-sched-pol-1
 
Port Max-Rate : 0 Mbps
 
Scheduler Priority 6
  Scheduler Class 6  Rate : 0 Mbps
 
Scheduler Priority 5
  Scheduler Class 5  Rate : 0 Mbps
 
Scheduler Priority 4
  Scheduler Class 4  Rate : 0 Mbps
 
Scheduler Priority 3
  Scheduler Class 3  Rate : 0 Mbps
 
Scheduler Priority 2
  Scheduler Class 2  Rate : 0 Mbps
 
Scheduler Priority 1
  Scheduler Class 1  Rate : 0 Mbps
 
-------------------------------------------------------------------------------
HS Secondary Shaper Rates
-------------------------------------------------------------------------------
Hs-Sec-Shaper:default Agg-Rate : 0 Kbps
        Class 6     Rate : 0 Kbps
        Class 5     Rate : 0 Kbps
        Class 4     Rate : 0 Kbps
        Class 3     Rate : 0 Kbps
        Class 2     Rate : 0 Kbps
        Class 1     Rate : 0 Kbps
 
-------------------------------------------------------------------------------
===============================================================================
*A:PE#

hs-scheduler-policy

Syntax 
hs-scheduler-policy [policy-name] [association | detail]
Context 
show>qos
Description 

This command displays information about HS scheduler policies in the system.

Parameters 
policy-name—
Displays information about the specified HS scheduler policy name, up to 32 characters.
association—
Displays the entities associated with all HS scheduler policies or the specified HS pool policy.
detail—
Displays the policy information, including policy associations, of all HS scheduler policies or the specified HS scheduler policy.
Output 

The following output is an example of HS scheduler policy information.

Sample Output
*A:PE# show qos hs-scheduler-policy
 
===============================================================================
HS Scheduler Policy Summary
===============================================================================
Policy Name              Description
-------------------------------------------------------------------------------
default                  Default hs scheduler QoS policy
hs-sched-pol-1           (Not Specified)
-------------------------------------------------------------------------------
No. of Policies: 2
===============================================================================
 
*A:PE# show qos hs-scheduler-policy "default" detail
 
===============================================================================
HS Scheduler Policy Information
===============================================================================
Policy Name             : default
Description             : Default hs scheduler QoS policy
Max Rate                : max
 
-------------------------------------------------------------------------------
Scheduling Class    Rate                Group               Weight in Group
-------------------------------------------------------------------------------
1                   max                 0                   1
2                   max                 0                   1
3                   max                 0                   1
4                   max                 0                   1
5                   max                 0                   1
6                   max                 0                   1
 
-------------------------------------------------------------------------------
Group               Rate
-------------------------------------------------------------------------------
1                   max
 
-------------------------------------------------------------------------------
Port Ethernet Egress Associations
 
-------------------------------------------------------------------------------
1/1/2
1/1/3
1/1/4
1/1/5
1/1/6
1/1/7
1/1/8
1/1/9
1/1/10
1/2/1
-------------------------------------------------------------------------------
===============================================================================
*A:PE#

15.4.2.11. Clear Commands

card

Syntax 
card slot-number fp fp-number hs-pool high-water-mark
card slot-number fp fp-number hs-pool high-water-mark mid-pool [value]
card slot-number fp fp-number hs-pool high-water-mark root-pool [value]
card slot-number fp fp-number hs-pool high-water-mark system
Context 
clear
Description 

This command re-initializes the card in the specified slot. A clear card command (without the soft) is referred to as a Hard Reset. A clear card x soft command (with the soft) is referred to as a Soft Reset.

Parameters 
slot-number—
Clears information for the specified card slot.
Values—
1 to 20, A, B, C, D

 

fp-number—
Displays information for the specified forwarding plane.
Values—
1 to 6

 

high-water-mark—
Clears the high-water marks within the HS pool on the specified card and FP.
mid-pool value
Clears the high-water marks within the mid pools in the HS pool and on the specified card and FP.
Values—
1 to 16

 

root-pool value
Clears the high-water marks within the root pools in the HS pool and on the specified card and FP.
Values—
1 to 16

 

system—
Clears the high-water marks within the in the HS system pool and on the specified card and FP.

port

Syntax 
port port-id hs-secondary-shaper shaper-name statistics
port port-id hs-pool high-water-mark {[standard value | alternate value]}
Context 
clear
Description 

This command clears port statistics for the specified ports.

Parameters 
port-id—
Specifies the physical port identifier.
Values—
slot [/mda[/port]] or slot/mda/port [.channel]]

 

shaper-name—
Clears information about the specified shaper name, up to 32 characters.
standard value
Clears high-water marks within specific standard port class pools using the standard parameters.
Values—
1 to 6

 

alternate value
Clears high-water marks within specific alternative port class pools using the alternative parameters.
Values—
1 to 6