# Configuring a QoS Profile

Before you configure a QoS profile:

- Configure the traffic classes.

  See Configuring Traffic Classes That Define Service Levels.

- Configure the queuing hierarchy.

  See Configuring Queue Profiles to Manage Buffers and Thresholds.

- Configure the scheduler hierarchy and shaping with scheduler profiles.

  See Configuring a Scheduler Hierarchy.

To configure a QoS profile:

1. Create a QoS profile and enter QoS Profile Configuration mode.
   host1(config)#qos-profile qosp-vc-queuing host1(config-qos-profile)#
2. (Optional) Configure a group node for each interface.
   host1(config-qos-profile)#atm group groupA scheduler-profile scheduler1 statistics-profile statpro-1

   When you configure a group node, you can also reference a default or named traffic-class group, a scheduler profile, or a statistics profile.

   If you do not specify a traffic-class group, the group node defaults to the default group. Each traffic class can belong to only one traffic-class group (either the default group or a named group).

   The router supports up to four traffic-class groups above a given port.

3. (Optional) Configure a scheduler node for interfaces.
   host1(config-qos-profile)#atm node scheduler-profile scheduler1 group strict-priority

   When you configure a scheduler node, you can also reference a default or named traffic-class group and a scheduler profile.

   The scheduler profile supplies a relative weight and potentially a shaping rate to be applied at the scheduler node.

   | Note: You cannot associate a scheduler profile with a port-type interface unless you also specify the strict-priority group.

4. (Optional) Configure a queue for interfaces in the specified traffic class.
   host1(config-qos-profile)#atm queue traffic-class strict-priority scheduler-profile scheduler1 queue-profile queue1 drop-profile drop1

   When you configure a queue, you can include any of the following profiles:

   - The scheduler profile supplies a relative weight and potentially a shaping rate to be applied at the queue.
   - The queue profile supplies threshold information for the queue if the router defaults are not appropriate.
   - The drop profile supplies dropping behavior of a set of egress queues.

     Each queue traffic class can appear in only one traffic-class group.

#### Related Documentation

- Attaching a QoS Profile to an Interface
- Supported Interface Types for QoS Profiles
- Configuring Shadow Nodes
- Monitoring a Scheduler Hierarchy on an Interface with QoS Profiles
- For information about configuring QoS profiles with Service Manager, see JunosE Broadband Access Configuration Guide
- group
- node
- qos-profile
- queue