Modular QoS Configuration Guide for Cisco 8000 Series Routers, Cisco IOS XR Release

PDF

Modular QoS Configuration Guide for Cisco 8000 Series Routers, Cisco IOS XR Release

Queuing modes

Want to summarize with AI?

Log in

Selecting the appropriate queuing mode lets you balance traffic-class isolation against logical-interface scale and is a mandatory first step before you apply any interface-level QoS policy.


Your router line cards support two fixed queuing modes—8 xVOQ and 4xVOQ—that determine how many VOQs and related memory resources the system allocates to every interface. Selecting the appropriate mode lets you balance traffic-class isolation against logical-interface scale and is a mandatory first step before you apply any interface-level QoS policy.

From Release 7.2.12 onward, all Layer 3 queuing capabilities also apply to Layer 2 physical and bundle interfaces, but not to their sub-interfaces.

Table 1. Comparison of 8xVOQ and 4xVOQ queuing modes

Attribute

8xVOQ

4xVOQ

VOQs per interface

8

4

Supported internal traffic classes

8 (TC0–TC7), each mapped to a separate VOQ

8 mapped to 4; traffic classes must be remapped in the QoS policy

Logical-interface scale

Standard

Approximately double (since fewer VOQs per interface, the system supports twice the interfaces)

Default queue hierarchy

P1 + P2 + 6 PN hierarchy (main interface default)

Same hierarchy, but applies to only four VOQs

Typical use case

Maximum traffic-class isolation

High interface fan-out (number of active interfaces per line card or NPU) where fewer dedicated VOQs are acceptable

Note

P1 + P2 + 6 PN refers to the default queuing and scheduling hierarchy where:

  • P1—one hardware queue reserved for the single most critical class (TC 7).

  • P2—one queue for the next-most-critical class (TC 6).

  • 6 PN—six normal-priority queues, one each for TC 5, 4, 3, 2, 1, 0

That adds up to the eight VOQs  that the  8xVOQ mode allocates per interface. If you move the router to 4xVOQ mode, TC7 still maps to P1 and TC 6 to P2, but the eight internal traffic classes must be remapped so that the four VOQs can carry multiple classes.

In both modes, queues are allocated per interface regardless of policy applied.


Switch the queuing mode on the router

Use this task to change the system-wide Virtual Output Queue (VOQ) mode—8xVOQ for maximum traffic-class isolation or 4xVOQ for greater interface scale.

The VOQ mode change applies to the entire chassis. The change takes effect only after every line card reloads, which interrupts traffic.

Before you begin

Make a list of interfaces (main, sub-interfaces, and bundles) with egress queuing service policies attached.

Follow these steps to switch the queuing mode on the router.

Procedure

1.

Verify the current VOQ mode.

Example:

Router#show hw-module profile qos voq-mode
Current system VOQ mode: 8

This command confirms the chassis is running in 8xVOQ mode before you begin.

2.

Detach every egress queuing service policy from all interfaces.

Example:

Router#configure
Router(config)#interface TenGigE0/0/0/0
Router(config-if)#no service-policy output Q-OUT
Router(config-if)#exit
Router(config)#interface Bundle-Ether10
Router(config-if)#no service-policy output Q-OUT
Router(config-if)#exit
! …repeat “no service-policy output …” for every main interface, sub-interface, and bundle
Router(config)#commit
Router(config)#exit

Remove only the egress queuing (service-policy output … ) bindings. Retain ingress classification or marking policies.

3.

Configure the new VOQ mode and commit.

Example:

Router#configure
Router(config)#hw-module profile qos voq-mode 4
Router(config)#commit
Router(config)#exit

The voq-mode 4  setting applies to the entire chassis and persists across future reboots.

4.

Reload all nodes to program the new mode into the ASICs.

Example:

Router#admin
Router(admin)#reload location all
Proceed with reload the following node(s): 0/0/CPU0 0/RP0/CPU0 [confirm] y

All line cards reload. Traffic is interrupted until the router returns to the IOS XR prompt.

5.

Verify that the router is now running in 4xVOQ mode.

Example:

Router#show hw-module profile qos voq-mode
Current system VOQ mode: 4

Successful output confirms the chassis is operating in the new VOQ mode.

What to do next

After the change, review your QoS policies to be sure each hardware queue now aggregates the intended traffic classes, especially when you reduce the queue count from 8 to 4.