Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

QoS Configuration

Note:

QoS configuration is part of the switch configuration workflow described in Configure Switches. This topic provides more detailed information focused solely on QoS concept and configuration steps.

Quality of Service (QoS) is a traffic-control mechanism that helps you prioritize latency-sensitive traffic (such as voice) over other traffic in a congested network. Juniper Mist enables QoS on a per interface basis. The QoS implementation generally involves the following aspects:

  • Classifying traffic.

  • Defining traffic-to-queue mappings (forwarding classes).

  • Defining scheduler and re-write rules for each queue. These rules govern the prioritization, bandwidth control, and congestion management of the traffic on each interface.

  • Applying QoS components to the interfaces.

In Juniper Mist, QoS utilizes the Behavior Aggregate (BA) classification, where the DiffServ code point (DSCP) or class of service (CoS) values in the incoming traffic govern the classification. The BA classifier maps a CoS value in the packet header to a forwarding class and loss priority.

Enabling QoS on an interface adds DSCP markings to that port based on the class and rewrite rules. The QoS mechanism maps the incoming packets with a DSCP marking to one of the seven forwarding classes listed in the following table:

Code Point/Loss Priority Forwarding Class Transmit Queue Buffer Size(%) Transmit Rate(%) Priority
be default-app 0 Remainder Remainder Low
af41/Low af42/High af43/High cs4/Low video 1 8 8 Low
af31/Low af32/High af33/High cs3/Low bizapp-af3 2 10 10 Low
af21/Low af22/High af23/High bizapp-af2 3 10 10 Low
af11/Low af12/High af13/High net-tools 4 3 3 Low
cs5/Low ef/Low voice 7 10 10 Strict-high
nc1/Low nc2/Low net-control 5 3 3 Low

As shown in the above table, the packet classification assigns an incoming packet to an output queue based on the packet’s forwarding class. In case of traffic congestion on the link, Juniper Mist prioritizes the latency-sensitive traffic (for example, voice traffic) over other traffic (provided that the incoming traffic is marked appropriately). Juniper Mist also configures re-write rules automatically to retain markings as the packets exit the switch.

Enable QoS on a Switch Port

Enabling QoS helps you prioritize latency-sensitive traffic (such as voice) over other traffic in a congested network. You can configure QoS on a switch port from the Port Profile tile on the switch details page or switch template.

Note:

Ensure that you enable QoS on both downstream and upstream port profiles, to obtain optimum results.

To enable QoS on a switch port:

  1. To configure QoS at the organization level, click Organization > Switch Templates > template name. Or, if you want to configure QoS at the switch level, click Switches > switch name.

  2. From the Port Profile tile, select the port profile you want to update. Or if you want to create a new port profile, click Add Profile.

  3. In the configuration, remember to select the QoS check box.

  4. Save the configuration by clicking the tick mark on the upper right of the port profile configuration window.

  5. After configuring QoS in the port profile, assign the profile to the switch port on which you want to configure QoS. You can do that from the Port Config tab in the Select Switches section of a switch configuration template (See Create a Switch Configuration Template) or from the Port Configuration section on the Switch Details page (Switch Details).

Override QoS

You also have the option to override the QoS configuration on the WLAN settings page (Site > WLANs > WLAN name). To override the QoS configuration, select the Override QoS check box and choose a wireless access class (see WLAN Options). The downstream traffic (AP > client) gets marked with the override access class value specified. The override configuration doesn't support upstream traffic (client > AP).

For further details on QoS on Juniper EX Switches, please see Example: Configuring CoS on EX Series Switches. If required, any additional QoS configuration updates can be done via CLIs in the Additional CLI Commands section in the switch details page.

Verify QoS Settings (API)

The following example has “enable_qos”: true set for the port profiles qos-test and uplink. This indicates that the port profile has QoS enabled.

Verify QoS Configuration Through the CLI

The following is a sample QoS configuration on a switch:

To verify the traffic-matching QoS policies and their corresponding queue counters:

  1. Review the current interface statistics and CoS information by running the following command:

  2. Generate some video and voice traffic. The device marks the traffic with DSCP values (queue 1 for video traffic and queue 5 for voice traffic).

  3. Run the show interfaces ge-0/0/0 extensive command again. You can view the packet counts displayed under Queued Packets and Transmitted Packets.

See also: Example: Configuring CoS on EX Series Switches