This chapter provides information to configure shaper QoS policies using the command line interface.
Topics in this chapter include:
Shaper policies are used to configure dual-rate shapers that control access or network traffic flows through the 7705 SAR. The dual-rate shapers provide a third tier of aggregate shaping to shaped and unshaped SAP traffic for access egress flows and to shaped and unshaped VLAN traffic for network egress flows. See QoS for Hybrid Ports for more information.
Configuring a dual-rate aggregate shaper means setting PIR and CIR values, which is done through an entity called a shaper group.
On a hybrid port, both access and network traffic share the same physical port. The shaper policy is applied independently to the access egress or network egress traffic.
![]() | Note:
In Release 6.2, the only shaper group supported is the default shaper group. |
This section contains the following topics related to creating and applying shaper QoS policies:
A basic shaper QoS policy must conform to the following rules.
Configuring and applying shaper QoS policies is optional. If no shaper QoS policy is explicitly defined, the default shaper QoS policy (“default”) is applied.
To create a new shaper policy, define the following:
Use the following CLI syntax to configure a shaper policy:
The following sample output shows the configuration for “shaper_policy_2”:
A shaper policy can be applied to Ethernet access egress and network egress traffic for a hybrid port. Refer to the 7705 SAR OS Interface Configuration Guide for command descriptions for these commands.
There can be one shaper policy for access egress and one for network egress. All the unshaped SAP and unshaped network traffic is bound to an access and a network shaper group, respectively. That is, shaped SAPs and the bulk (aggregate) of unshaped SAPs are shaped together as per the shaper policy assigned to access egress. Similarly, for network traffic, the shaped interfaces (VLANs) and the bulk (aggregate) of unshaped interfaces are shaped together as per the shaper policy assigned to network egress.
The shaper rate defined for the shaper policy that is assigned to the access egress traffic of a hybrid port applies to all shaped SAPs and the bulk of unshaped SAPs. The shaper rate for the port’s network egress traffic applies similarly to VLANs (that is, all shaped VLANs and the bulk of unshaped VLANs). Once the configured egress shaper rate is reached, both the access and network traffic scheduling is paused.
![]() | Note:
|
Use the following CLI syntax to apply a shaper policy to a hybrid port (access and network egress).
The following sample output shows different shaper policies applied to access egress and network egress traffic on a hybrid port:
The default shaper policies are identified by the policy name “default”. The default policies cannot be deleted. Table 61 displays the default shaper policy parameters.
Field | Default |
description | “Default Shaper QoS policy.” |
shaper-group | “default” |
description | “Default Shaper Group.” |
pir-rate | max |
cir-rate | 0 |
The following sample output displays the default configuration:
Per-SAP aggregate shapers can be configured for the following services: Epipe, Ipipe, IES, VPLS, and VPRN. Refer to the 7705 SAR OS Services Guide for command descriptions.
Use the following CLI syntax to configure an Epipe per-SAP aggregate shaper (Ipipe and VPLS syntax is similar):
Use the following CLI syntax to configure an IES per-SAP aggregate shaper (VPRN syntax is similar):
To provide arbitration between the bulk (aggregate) of unshaped SAPs and the shaped SAPs, assign a rate to the unshaped SAPs. Refer to the 7705 SAR OS Interface Configuration Guide for command descriptions.
Use the following CLI syntax to configure a CIR for the bulk of access egress unshaped SAPs:
Per-VLAN network egress shapers can be configured for network interfaces. Refer to the 7705 SAR OS Router Configuration Guide for command descriptions.
The queue-policy command is used to enable and disable the network egress per-VLAN shapers on a per-interface basis. If the no queue-policy command is used, the VLAN (that is, the interface) defaults to unshaped mode. Note that the agg-rate-limit command cannot be accessed unless a network queue policy is assigned to the interface.
Use the following CLI syntax to configure a per-VLAN network egress shaper on a network interface:
To provide arbitration between the bulk (aggregate) of unshaped VLANs and the shaped VLANs, assign a rate to the unshaped VLANs. Refer to the 7705 SAR OS Interface Configuration Guide for command descriptions.
Use the following CLI syntax to configure a CIR for the bulk of network egress unshaped VLANs:
This section describes the following service management tasks:
A QoS policy cannot be deleted until its associations with all the ports are removed.
Since one shaper policy can be assigned to multiple ports, you must remove all the associations to the ports before deleting the shaper policy.
Use the following CLI syntax to remove a shaper policy from a port and then delete the shaper policy from the QoS configuration:
You can copy an existing shaper policy to a new shaper policy or overwrite an existing shaper policy. If the destination policy ID exists, the overwrite option must be specified or an error occurs.
Use the following syntax to overwrite an existing shaper QoS policy.
The following sample output displays the copied policies:
You can change existing policies and entries in the CLI. The changes are applied immediately to all queues where this policy is applied. To prevent configuration errors, copy the policy to a work area, make the edits, and then write over the original policy.