Network queue QoS policies

Overview

Network queue policies define the ingress network queuing at the FP 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 the card FP ingress network and port Ethernet network. 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, see the Entering CLI Commands chapter in the 7450 ESS, 7750 SR, 7950 XRS, and VSR Classic CLI Command Reference Guide.

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, H-QoS 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 are based on frame-offered-load calculations. Bandwidth distribution on network port with port-based scheduling shows port-based virtual scheduling bandwidth distribution.

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

Figure 1. Bandwidth distribution on network port with port-based scheduling

Basic configurations

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

  • Each network queue QoS policy must have a unique policy name.

  • Queue parameters can be modified but cannot be deleted.

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 the card FP ingress network and port Ethernet network.

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.

Applying network queue QoS policies

Apply network queue policies to the following entities:

  • FPs

  • Ethernet Ports

  • SONET/SDH Ports

FPs

Use the following CLI syntax to apply a network queue policy to an FP ingress network:

config>card
fp fp-number
  ingress
    network
      queue-policy name

The following output displays FP ingress network queue policy using the default policy.

*A:PE>config>card>fp# info detail
----------------------------------------------
            ingress
                network
                    queue-policy "default"
                exit
            exit
----------------------------------------------
*A:PE>config>card>fp#

Ethernet ports

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

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#

SONET/SDH ports

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

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#

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
                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
                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
                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
                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
                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
                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
                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
                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
                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
                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
                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
                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
                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
                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
                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
                drop-tail
                    low
                        percent-reduction-from-mbs default
                    exit
                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
                exit
            exit
            fc be create
                multicast-queue 9
                queue 1
                exit
            exit
            fc ef create
                multicast-queue 14
                queue 6
                exit
            exit
            fc h1 create
                multicast-queue 15
                queue 7
                exit
            exit
            fc h2 create
                multicast-queue 13
                queue 5
                exit
            exit
            fc l1 create
                multicast-queue 12
                queue 4
                exit
            exit
            fc l2 create
                multicast-queue 10
                queue 2
                exit
            exit
            fc nc create
                multicast-queue 16
                queue 8
                exit
            exit
----------------------------------------------
*A:PE>config>qos>network-queue#

Service management tasks

This section discusses network queue QoS policy service management tasks.

Deleting QoS policies

A network queue policy is associated by default with the card FP ingress network and port Ethernet network. 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 command:

config>qos# no network-queue policy-name

Example:

config>qos# no network-queue nq1

Removing a policy from the QoS configuration

To delete a network policy, enter the following command:

config>qos# no network-queue policy-name

Example:

config>qos# no network-queue test

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

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.