QoS Profiles
A QoS profile specifies queue profiles, drop profiles, statistics profiles, and scheduler profiles in combination with interface types. A QoS profile specifies the queue, drop statistics gathering, and scheduler configuration for a subtree of the interface hierarchy. The QoS profile controls the way scheduler nodes and queues are bound to the interfaces above its attachment point in the interface hierarchy.
A QoS profile is attached to the interface at the base of the subtree hierarchy. For example, a QoS profile attached to an ATM port specifies queuing attributes for interfaces of all types that are stacked over the port.
Configuring QoS Profiles
To configure a QoS profile, you name the profile and also name the traffic class and/or the queue profile, drop profile, statistics profile, scheduler profile, or traffic-class group that belongs to the QoS profile. Each command begins with a keyword that designates an interface type. Table 21 lists the interface types and the commands that you can use with them.
To configure a QoS profile, perform the following steps:
- Create a QoS profile and enter QoS Profile Configuration mode.
host1(config)#qos-profile qosp-vc-queuinghost1(config-qos-profile)#- (Optional) Add a traffic-class group, a scheduler profile, and a statistics profile to the QoS profile.
host1(config-qos-profile)#atm group groupA scheduler-profile scheduler1 statistics-profile statpro-1- (Optional) Configure a queue for interfaces in the specified traffic class.
host1(config-qos-profile)#atm queue traffic-class strict-priority scheduler-profile scheduler1- (Optional) Display the components of the QoS profile.
host1#show qos-profileqos-profile qosp-vc-queuing:interface rule scheduler queue t-class drop statisticstype type traffic class profile profile group profile profile--------- ----- --------------- ---------- ------- ------- ------- ----------atm queue strict-priority scheduler1 default default statpro-1atm group scheduler1 groupACreating QoS Profiles
Use the following command in Configuration mode to create QoS profiles.
qos-profile
host1(config)#qos-profile qosp-vc-queuinghost1(config-qos-profile)#Use the no version to remove the QoS profile. Adding Groups, Nodes, and Queues to QoS Profiles
Use the commands in this section in QoS Profile Configuration mode to add groups, nodes, and queues to QoS profiles.
group
- Use to configure a group node for each interface of the specified type.
- The group defaults to default group.
- The router supports only one named traffic-class group above a given port.
- Each traffic class can belong to only one traffic-class group (either the default group or a named group).
- Examples
To create a group node in the default group:
host1(config-qos-profile)#atm group defaultTo create a group node in a named group:
host1(config-qos-profile)#atm group groupATo associate a scheduler profile with a named group:
host1(config-qos-profile)#atm group groupA scheduler-profile scheduler1node
- Use to configure a scheduler node for each interface of the specified type.
- The optional scheduler profile supplies a relative weight and potentially a shaping rate to be applied at the scheduler node.
NOTE: For ASIC modules, you cannot associate a scheduler profile with a port-type interface unless you also specify the strict-priority group.
- Example
host1(config-qos-profile)#ip node scheduler-profile scheduler1 group strict-priorityUse the no version to remove this rule from the QoS profile. queue
- Use to configure a queue for each interface in the specified traffic class.
- 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.
host1(config-qos-profile)#atm queue traffic-class strictPriorityUse the no version to remove this rule from the QoS profile. Attaching QoS Profiles
Use the commands in this section in Configuration mode to attach QoS profiles to interfaces.
atm-vp qos-profile
- Use to attach a QoS profile to the specified VP on the ATM interface.
- The profile applies to all VCs in the VP; for example, the profile specifies the hierarchy of scheduler nodes and queues for all VCs, IP interfaces, and L2TP session stacked above the VP.
- Example
host1(config)#interface atm 3/0host1(config-if)#host1(config-if)#atm-vp 50 qos-profile qosp-vp-strictbwUse the no version to detach the QoS profile from a given VP. qos-profile
host1(config)#interface atm 2/0host1(config-if)#qos-profile low-latency-q-pUse the no version to remove the QoS profile.