Constituent Selection for Shared Shaping Overview

Shared shaping supports both implicit and explicit constituent selection. Implicit constituent selection is the easier of the two methods and works well for most cases. With implicit selection, you configure a shared-shaping rate on the best-effort node or queue and QoS locates the other constituents automatically.

Use explicit constituent selection when you want to shape a subset of the interface traffic to the shared rate. An example of this is when you want the sum of best-effort and voice traffic to be shaped to the shared rate, but want video traffic to be exempt from the shared-shaping rate.

Active constituents are selected either implicitly by QoS or explicitly by the user. Active constituents of the simple shared shaper can be any node and queues in named traffic-class groups. Active constituents of the compound shared shaper can be nodes or queues. If you choose a node as an active constituent, queues above it are not active constituents.

Inactive constituents are queues that are stacked above an active node or nodes stacked below active queues. For both of these situations, the shared shaper controls the active constituents, and the legacy scheduler indirectly controls the inactive constituents to achieve the shared rate. The other case for inactive constituents is when you use explicit constituent selection and some of the nodes and queues are explicitly not included in the shared shaper.

To use implicit constituent selection, you specify only the shared-shaping rate and the logical interface. The router identifies the constituents associated with the logical interface type and their allocated bandwidth. This method is appropriate for the typical case where the intent is to shape all subscriber queues to the shared rate.

If you want instead to shape a subset of the queues for a subscriber to the shared rate, the explicit selection process is appropriate. Explicit selection is also useful when you want queues as the active constituents instead of the node below them. By choosing queues you can assign appropriate priority or weights.

Types of Shared Shaper Constituents

The shared-shaping-constituent command in a scheduler profile specifies constituents and their attributes. The command has two aspects. For explicit constituent selection, this command specifies the constituents. For the compound shared shaper only, this command specifies scheduling attributes of shared shaping: the shared priority and the shared weight.

A shared shaper can be one of the following four types:

Table 11 compares implicit and explicit shared shaping.

Table 11: Comparison of Implicit and Explicit Shared Shaping

Implicit Shared Shaping

Explicit Shared Shaping

  • To specify the logical interface for shared shaping, associate a scheduler profile that includes the shared-shaping-rate command or the shared-shaping-rate simple command with a best-effort node or queue.
  • To specify the logical interface for shared shaping, associate a scheduler profile that includes the shared-shaping-rate rate explicit-constituents command or the shared-shaping-rate rate simple explicit-constituents command with a best-effort node or queue.
  • Constituents consist of all nodes and queues for the same logical interface type.
  • Constituents consist of all nodes and queues for the same logical interface type.
  • Active constituents are automatically selected from all constituents according to the implicit shared shaping rules.
  • Active constituents are explicitly selected from all constituents by association with a scheduler profile that includes the shared-shaper-constituent command.
  • If the scheduler profile associated with a constituent does not include this command, then the constituent is not active and is not shaped by the shared shaper.

Related Documentation