This chapter provides information to configure network queue QoS policies using the command line interface.
Topics in this chapter include:
Network queue policies define the network queuing characteristics on the network adapter cards.
There is one default network queue policy. Each policy can have up to 16 ingress queues (8 unicast and 8 multipoint). The default policies cannot be deleted but can be copied and the copy can be modified. The default policies are identified as network-queue “default”.
Default network queue policies are applied to adapter card network ingress ports at the adapter card level, and to network egress ports at the port level. You must explicitly create and then associate other network queue QoS policies.
For information about the tasks and commands necessary to access the command line interface and to configure and maintain the 7705 SAR, refer to the 7705 SAR Basic System Configuration Guide, “CLI Usage”.
This section contains the following topics related to creating and applying network queue QoS policies:
A basic network queue QoS policy must conform to the following rules.
Configuring and applying QoS policies other than the default policy is optional. A default network queue policy is applied to network ingress and network egress ports, as well as the ports on a ring adapter card, which includes the ring ports, the add/drop port, and the v-port. See Default Network Queue QoS Policy Values for default values.
Perform the following when creating a network queue policy.
By default, all network queue policies are created with queue 1 and (multipoint) queue 9 applied to the policy. Similarly, when an FC is created within a network queue policy, the default unicast queue 1 and multicast queue 9 are assigned to the FC. The multipoint keyword applies to queues 9 to 16.
Use the following CLI syntax to create a network queue QoS policy.
The following example creates a unicast and a multipoint network queue policy.
The following output displays the configuration for NQ1.
Apply network queue policies to the following entities:
Use the following CLI syntax to apply a network queue policy to any adapter card network ingress port or v-port on a ring adapter card. Use the ring command to apply a network queue policy to a ring add/drop port. You cannot assign a network queue policy to an add/drop port while the policy is referenced by a non-ring port, and vice-versa.
The first example applies a network queue policy to any network ingress port or v-port on a ring adapter card. The second example applies to network queue policy to an add/drop port.
The following output displays network ingress queue policy NQ1 applied to the adapter cards.
Use the following CLI syntax to apply a network queue policy to the add/drop port. A network queue policy for an add/drop port applies to traffic flowing from the bridging domain to the IP domain (that is, from the add/drop port to the v-port).
The following output displays the configuration for a network queue policy applied to the add/drop port.
Use the following CLI syntax to apply network queue policy NQ1 to a network port.
The following output displays a network port configuration.
Use the following CLI syntax to apply a network queue policy to v-port egress traffic.
A network queue policy for v-port egress traffic applies DSCP and LSP EXP classification to traffic flowing from the switching fabric in the IP domain towards the add/drop port in the bridging domain.
The following output displays the configuration for an egress queue policy applied to the v-port.
A network queue policy for a ring port must be configured as a ring type using the network-policy-type keyword. The policy operates on ring port egress traffic.
Use the following CLI syntax to apply a network queue policy to a ring port:
The following output displays the configuration for a network queue policy applied to a ring port.
Per-VLAN network egress shapers can be configured for network interfaces. Refer to the 7705 SAR 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. 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 Interface Configuration Guide for command descriptions.
Use the following CLI syntax to configure a CIR for the bulk of network egress unshaped VLANs:
The default network queue policies are identified as policy-id default. The default policies cannot be modified or deleted. Table 38 displays default policy parameters.
Forwarding Class | Queue | Definition | Queue | Definition |
Network-Control (nc) | 8 | Rate = 100% CIR = 10% MBS = 2.5% CBS = 0.25% High-Prio-Only = 10% | 16 | Rate = 100% CIR = 10% MBS = 2.5% CBS = 0.1% High-Prio-Only = 10% |
High-1 (h1) | 7 | Rate = 100% CIR = 10% MBS = 2.5% CBS = 0.25% High-Prio-Only = 10% | 15 | Rate = 100% CIR = 10% MBS = 2.5% CBS = 0.1% High-Prio-Only = 10% |
Expedited (ef) | 6 | Rate = 100% CIR = 100% MBS = 5% CBS = 0.75% High-Prio-Only = 10% | 14 | Rate = 100% CIR = 100% MBS = 5% CBS = 0.1% High-Prio-Only = 10% |
High-2 (h2) | 5 | Rate = 100% CIR = 100% MBS = 5% CBS = 0.75% High-Prio-Only = 10% | 13 | Rate = 100% CIR = 100% MBS = 5% CBS = 0.1% High-Prio-Only = 10% |
Low-1 (l1) | 4 | Rate = 100% CIR = 25% MBS = 2.5% CBS = 0.25% High-Prio-Only = 10% | 12 | Rate = 100% CIR = 5% MBS = 2.5% CBS = 0.25% High-Prio-Only = 10% |
Assured (af) | 3 | Rate = 100% CIR = 25% MBS = 5% CBS = 0.75% High-Prio-Only = 10% | 11 | Rate = 100% CIR = 5% MBS = 5% CBS = 0.1% High-Prio-Only = 10% |
Low-2 (l2) | 2 | Rate = 100% CIR = 25% MBS = 5% CBS = 0.25% High-Prio-Only = 10% | 10 | Rate = 100% CIR = 5% MBS = 5% CBS = 0.1% High-Prio-Only = 10% |
Best Effort (be) | 1 | Rate = 100% CIR = 0% MBS = 5% CBS = 0.1% High-Prio-Only = 10% | 9 | Rate = 100% CIR = 0% MBS = 5% CBS = 0.1% High-Prio-Only = 10% |
The following output displays the network queue policy default configuration.
This section describes the following service management tasks:
A network queue policy is associated by default with adapter card network ingress ports. You can replace the default policy with a customer-configured policy, but you cannot entirely remove a QoS policy. When you remove a QoS policy, the policy association reverts to the default network-queue policy default.
Use the following CLI syntax to delete a network queue policy.
You can copy an existing network queue policy, rename it with a new policy ID name, or overwrite an existing network queue policy. The overwrite option must be specified or an error occurs if the destination policy ID exists.
Use the following CLI syntax to overwrite an existing network queue policy.
The following output displays the copied policies:
You can change existing policies, except the default policies, and entries in the CLI. The changes are applied immediately to all interfaces where the policy is applied. To prevent configuration errors, use the copy command to make a duplicate of the original policy to a work area, make the edits, and then overwrite the original policy.