5. Network Queue QoS Policies

5.1. Overview

Network queue policies define the ingress network queuing at the XMA/MDA network node level. Network queue policies are also used at the Ethernet port and SONET/SDH path level to define network egress queuing.

There is one default network queue policy. Each policy can have up to 16 queues (unicast and multicast). The default policies can be copied but they cannot be deleted or modified. The default policy is identified as network-queue default. Default network queue policies are applied to XMA/MDA network ingress ports. Other network queue QoS policies must be explicitly created and associated.

For information about the tasks and commands necessary to access the CLI and to configure and maintain devices, refer to the CLI Usage chapter in the 7450 ESS, 7750 SR, 7950 XRS, and VSR Basic System Configuration Guide.

5.2. Network Queue Parent Scheduler

Network queues support port-scheduler parent priority-level associations. Using a port scheduler policy definition and mapping network queues to a port parent priority level, HQoS functionality is supported providing eight levels of strict priority and weights within the same priority. A network queue’s bandwidth is allocated using the within-CIR and above-CIR scheme normal for port schedulers.

Queue CIR and PIR percentages when port-based schedulers are in effect will be based on frame-offered-load calculations.

A network queue with a port parent association that exists on a port without a scheduler policy defined will be considered to be orphaned.

Refer to Scheduler QoS Policies for more information about queue parental association scope.

5.3. Basic Configurations

A basic network queue QoS policy must conform to the following:

  1. Each network queue QoS policy must have a unique policy name.
  2. Queue parameters can be modified, but cannot be deleted.

5.3.1. Creating a Network Queue QoS Policy

Configuring and applying QoS policies other than the default policy is optional. A default network queue policy is applied to XMA and MDA network ingress ports.

To create a network queue policy, enter the configure qos network-queue command with an unused policy name followed by the create keyword. Once created, the parameters in the policy, such as a description, the mapping of forwarding classes to queues, and the queue properties can be configured.

5.3.2. Applying Network Queue QoS Policies

Apply network queue policies to the following entities:

  1. XMAs and MDAs
  2. Ethernet Ports
  3. SONET/SDH Ports

5.3.2.1. XMAs and MDAs

Use the following CLI syntax to apply a network queue policy to an XMA or MDA network ingress port:

CLI Syntax:
config>card
mda mda-slot
network
ingress
queue-policy name

The following output displays XMA or MDA network ingress queue policy reverted to the default policy.

A:ALA-7>config>card>mda# info
----------------------------------------------
            mda-type m60-10/100eth-tx
            network
                ingress
                    pool default
                        resv-cbs sum
                        slope-policy "default"
                    exit
                    queue-policy "default"
                exit
                egress
                    pool default
                        resv-cbs sum
                        slope-policy "default"
                    exit
                exit
            exit
            access
                ingress
                    pool default
                        resv-cbs sum
                        slope-policy "default"
                    exit
                exit
                egress
                    pool default
                        resv-cbs sum
                        slope-policy "default"
                    exit
                exit
            exit
            no shutdown
----------------------------------------------
A:ALA-7>config>card>mda#
 

5.3.2.2. Ethernet Ports

Use the following CLI syntax to apply a network queue policy to an Ethernet port.

CLI Syntax:
config>port#
ethernet
network
queue-policy name

The following output displays the port configuration.

A:ALA-49>config>port# info
----------------------------------------------
        ethernet
            network
                queue-policy "nq1"
            exit
        exit
        no shutdown
----------------------------------------------
A:ALA-49>config>port#

5.3.2.3. SONET/SDH Ports

Use the following CLI syntax to apply a network queue policy to a SONET/SDH port:

CLI Syntax:
config>port#
sonet-sdh
path path
network
queue-policy name

The following output displays the port configuration.

A:ALA-48>config>port# info
----------------------------------------------
        description "OC-12 SONET/SDH"
        sonet-sdh
            path sts3
                network
                    queue-policy "nq1"
                exit
                no shutdown
            exit
        exit
        no shutdown
----------------------------------------------
A:ALA-48>config>port#
 

5.3.3. Default Network Queue Policy Values

The default network queue policy is named default and cannot be modified or deleted. The default policy parameters are shown below.

*A:PE>config>qos# network-queue "default"
*A:PE>config>qos>network-queue# info detail
----------------------------------------------
            description "Default network queue QoS policy."
            hs-attachment-policy "default"
            queue 1 auto-expedite create
                no port-parent
                no avg-frame-overhead
                rate 100 cir 0 fir 0
                adaptation-rule pir closest cir closest fir closest
                mbs 50
                cbs 1
                hs-mbs 100
                hs-wrr-weight 1
                hs-class-weight 1
                hs-wred-queue policy "_tmnx_hs_default"
                no hs-alt-port-class-pool
                no pool
                drop-tail
                    low
                        percent-reduction-from-mbs default
                    exit
                exit
            exit
            queue 2 auto-expedite create
                no port-parent
                no avg-frame-overhead
                rate 100 cir 25 fir 0
                adaptation-rule pir closest cir closest fir closest
                mbs 50
                cbs 3
                hs-mbs 100
                hs-wrr-weight 1
                hs-class-weight 1
                hs-wred-queue policy "_tmnx_hs_default"
                no hs-alt-port-class-pool
                no pool
                drop-tail
                    low
                        percent-reduction-from-mbs default
                    exit
                exit
            exit
            queue 3 auto-expedite create
                no port-parent
                no avg-frame-overhead
                rate 100 cir 25 fir 0
                adaptation-rule pir closest cir closest fir closest
                mbs 50
                cbs 10
                hs-mbs 100
                hs-wrr-weight 1
                hs-class-weight 1
                hs-wred-queue policy "_tmnx_hs_default"
                no hs-alt-port-class-pool
                no pool
                drop-tail
                    low
                        percent-reduction-from-mbs default
                    exit
                exit
            exit
            queue 4 auto-expedite create
                no port-parent
                no avg-frame-overhead
                rate 100 cir 25 fir 0
                adaptation-rule pir closest cir closest fir closest
                mbs 25
                cbs 3
                hs-mbs 100
                hs-wrr-weight 1
                hs-class-weight 1
                hs-wred-queue policy "_tmnx_hs_default"
                no hs-alt-port-class-pool
                no pool
                drop-tail
                    low
                        percent-reduction-from-mbs default
                    exit
                exit
            exit
            queue 5 auto-expedite create
                no port-parent
                no avg-frame-overhead
                rate 100 cir 100 fir 0
                adaptation-rule pir closest cir closest fir closest
                mbs 50
                cbs 10
                hs-mbs 100
                hs-wrr-weight 1
                hs-class-weight 1
                hs-wred-queue policy "_tmnx_hs_default"
                no hs-alt-port-class-pool
                no pool
                drop-tail
                    low
                        percent-reduction-from-mbs default
                    exit
                exit
            exit
            queue 6 auto-expedite create
                no port-parent
                no avg-frame-overhead
                rate 100 cir 100 fir 0
                adaptation-rule pir closest cir closest fir closest
                mbs 50
                cbs 10
                hs-mbs 100
                hs-wrr-weight 1
                hs-class-weight 1
                hs-wred-queue policy "_tmnx_hs_default"
                no hs-alt-port-class-pool
                no pool
                drop-tail
                    low
                        percent-reduction-from-mbs default
                    exit
                exit
            exit
            queue 7 auto-expedite create
                no port-parent
                no avg-frame-overhead
                rate 100 cir 10 fir 0
                adaptation-rule pir closest cir closest fir closest
                mbs 25
                cbs 3
                hs-mbs 100
                hs-wrr-weight 1
                hs-class-weight 1
                hs-wred-queue policy "_tmnx_hs_default"
                no hs-alt-port-class-pool
                no pool
                drop-tail
                    low
                        percent-reduction-from-mbs default
                    exit
                exit
            exit
            queue 8 auto-expedite create
                no port-parent
                no avg-frame-overhead
                rate 100 cir 10 fir 0
                adaptation-rule pir closest cir closest fir closest
                mbs 25
                cbs 3
                hs-mbs 100
                hs-wrr-weight 1
                hs-class-weight 1
                hs-wred-queue policy "_tmnx_hs_default"
                no hs-alt-port-class-pool
                no pool
                drop-tail
                    low
                        percent-reduction-from-mbs default
                    exit
                exit
            exit
            queue 9 multipoint auto-expedite create
                no port-parent
                no avg-frame-overhead
                rate 100 cir 0 fir 0
                adaptation-rule pir closest cir closest fir closest
                mbs 50
                cbs 1
                hs-mbs 100
                hs-wrr-weight 1
                hs-class-weight 1
                hs-wred-queue policy "_tmnx_hs_default"
                no hs-alt-port-class-pool
                no pool
                drop-tail
                    low
                        percent-reduction-from-mbs default
                    exit
                exit
            exit
            queue 10 multipoint auto-expedite create
                no port-parent
                no avg-frame-overhead
                rate 100 cir 5 fir 0
                adaptation-rule pir closest cir closest fir closest
                mbs 50
                cbs 1
                hs-mbs 100
                hs-wrr-weight 1
                hs-class-weight 1
                hs-wred-queue policy "_tmnx_hs_default"
                no hs-alt-port-class-pool
                no pool
                drop-tail
                    low
                        percent-reduction-from-mbs default
                    exit
                exit
            exit
            queue 11 multipoint auto-expedite create
                no port-parent
                no avg-frame-overhead
                rate 100 cir 5 fir 0
                adaptation-rule pir closest cir closest fir closest
                mbs 50
                cbs 1
                hs-mbs 100
                hs-wrr-weight 1
                hs-class-weight 1
                hs-wred-queue policy "_tmnx_hs_default"
                no hs-alt-port-class-pool
                no pool
                drop-tail
                    low
                        percent-reduction-from-mbs default
                    exit
                exit
            exit
            queue 12 multipoint auto-expedite create
                no port-parent
                no avg-frame-overhead
                rate 100 cir 5 fir 0
                adaptation-rule pir closest cir closest fir closest
                mbs 25
                cbs 1
                hs-mbs 100
                hs-wrr-weight 1
                hs-class-weight 1
                hs-wred-queue policy "_tmnx_hs_default"
                no hs-alt-port-class-pool
                no pool
                drop-tail
                    low
                        percent-reduction-from-mbs default
                    exit
                exit
            exit
            queue 13 multipoint auto-expedite create
                no port-parent
                no avg-frame-overhead
                rate 100 cir 100 fir 0
                adaptation-rule pir closest cir closest fir closest
                mbs 50
                cbs 1
                hs-mbs 100
                hs-wrr-weight 1
                hs-class-weight 1
                hs-wred-queue policy "_tmnx_hs_default"
                no hs-alt-port-class-pool
                no pool
                drop-tail
                    low
                        percent-reduction-from-mbs default
                    exit
                exit
            exit
            queue 14 multipoint auto-expedite create
                no port-parent
                no avg-frame-overhead
                rate 100 cir 100 fir 0
                adaptation-rule pir closest cir closest fir closest
                mbs 50
                cbs 1
                hs-mbs 100
                hs-wrr-weight 1
                hs-class-weight 1
                hs-wred-queue policy "_tmnx_hs_default"
                no hs-alt-port-class-pool
                no pool
                drop-tail
                    low
                        percent-reduction-from-mbs default
                    exit
                exit
            exit
            queue 15 multipoint auto-expedite create
                no port-parent
                no avg-frame-overhead
                rate 100 cir 10 fir 0
                adaptation-rule pir closest cir closest fir closest
                mbs 25
                cbs 1
                hs-mbs 100
                hs-wrr-weight 1
                hs-class-weight 1
                hs-wred-queue policy "_tmnx_hs_default"
                no hs-alt-port-class-pool
                no pool
                drop-tail
                    low
                        percent-reduction-from-mbs default
                    exit
                exit
            exit
            queue 16 multipoint auto-expedite create
                no port-parent
                no avg-frame-overhead
                rate 100 cir 10 fir 0
                adaptation-rule pir closest cir closest fir closest
                mbs 25
                cbs 1
                hs-mbs 100
                hs-wrr-weight 1
                hs-class-weight 1
                hs-wred-queue policy "_tmnx_hs_default"
                no hs-alt-port-class-pool
                no pool
                drop-tail
                    low
                        percent-reduction-from-mbs default
                    exit
                exit
            exit
            egress-hsmda
                no wrr-policy
                no packet-byte-offset
                queue 1
                    adaptation-rule pir closest
                    percent-rate 100.00
                    wrr-weight 1
                    mbs default
                    no burst-limit
                    slope-policy "default"
                exit
                queue 2
                    adaptation-rule pir closest
                    percent-rate 100.00
                    wrr-weight 1
                    mbs default
                    no burst-limit
                    slope-policy "default"
                exit
                queue 3
                    adaptation-rule pir closest
                    percent-rate 100.00
                    wrr-weight 1
                    mbs default
                    no burst-limit
                    slope-policy "default"
                exit
                queue 4
                    adaptation-rule pir closest
                    percent-rate 100.00
                    no wrr-weight
                    mbs default
                    no burst-limit
                    slope-policy "default"
                exit
                queue 5
                    adaptation-rule pir closest
                    percent-rate 100.00
                    no wrr-weight
                    mbs default
                    no burst-limit
                    slope-policy "default"
                exit
                queue 6
                    adaptation-rule pir closest
                    percent-rate 100.00
                    no wrr-weight
                    mbs default
                    no burst-limit
                    slope-policy "default"
                exit
                queue 7
                    adaptation-rule pir closest
                    percent-rate 100.00
                    no wrr-weight
                    mbs default
                    no burst-limit
                    slope-policy "default"
                exit
                queue 8
                    adaptation-rule pir closest
                    percent-rate 100.00
                    no wrr-weight
                    mbs default
                    no burst-limit
                    slope-policy "default"
                exit
            exit
            hs-wrr-group 1
                rate 100
                adaptation-rule pir closest
                hs-class-weight 1
            exit
            hs-wrr-group 2
                rate 100
                adaptation-rule pir closest
                hs-class-weight 1
            exit
            fc af create
                multicast-queue 11
                queue 3
                egress-hsmda
                    queue 3
                exit
            exit
            fc be create
                multicast-queue 9
                queue 1
                egress-hsmda
                    queue 1
                exit
            exit
            fc ef create
                multicast-queue 14
                queue 6
                egress-hsmda
                    queue 6
                exit
            exit
            fc h1 create
                multicast-queue 15
                queue 7
                egress-hsmda
                    queue 7
                exit
            exit
            fc h2 create
                multicast-queue 13
                queue 5
                egress-hsmda
                    queue 5
                exit
            exit
            fc l1 create
                multicast-queue 12
                queue 4
                egress-hsmda
                    queue 4
                exit
            exit
            fc l2 create
                multicast-queue 10
                queue 2
                egress-hsmda
                    queue 2
                exit
            exit
            fc nc create
                multicast-queue 16
                queue 8
                egress-hsmda
                    queue 8
                exit
            exit
----------------------------------------------
*A:PE>config>qos>network-queue#

5.4. Service Management Tasks

This section discusses network queue QoS policy service management tasks.

5.4.1. Deleting QoS Policies

A network queue policy is associated by default with XMA or MDA network ingress ports. The default policy can be replaced with a customer-configured policy, but cannot entirely be removed. When a QoS policy is removed, the policy association reverts to the default network-queue policy.

To delete a user-created network queue policy, enter the following commands:

CLI Syntax:
config>qos# no network-queue policy-name
Example:
config>qos# no network-queue nq1

5.4.2. Removing a Policy from the QoS Configuration

To delete a network policy, enter the following commands:

CLI Syntax:
config>qos# no network-queue policy-name
Example:
config>qos# no network-queue test

5.4.3. Copying and Overwriting QoS Policies

An existing network queue policy can be copied, renamed with a new policy ID name, or used to overwrite an existing network queue policy. The overwrite option must be specified or an error occurs if the destination policy ID exists.

CLI Syntax:
config>qos# copy network-queue source-policy-id dest-policy-id [overwrite]
Example:
config>qos# copy network-queue nq1 nq2

5.4.4. Editing QoS Policies

Existing policies, except the default policies, and entries in the CLI can be modified. 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, then overwrite the original policy.