Configuring QoS
Procedure
Examples
This example creates the following configuration:
- Configures CoS to be used to assign local priority to ingress packets.
Modifies the default CoS map to assign CoS 1 to local priority 1.
- Creates a queue profile named
Q1
and assigns local priorities as follows:Queue Local Priority 0 0 1 1 1 2 3 3 4 4 5 5 5 6 5 7 - Creates a schedule profile named
S1
and assigns WFQ to all queues in the schedule profile with the following weights:Queue Weight 0 5 1 10 3 15 4 25 5 50 - Creates a threshold profile named
T1
with the following limits:Queue Threshold 4 40 KB 5 50 KB Applies Q1 and S1 to all interfaces that do not have a QoS override applied.
switch(config)# qos trust cos switch(config)# qos cos-map 1 local-priority 1 switch(config)# qos queue-profile Q1 switch(config)# map queue 0 local-priority 0 switch(config)# map queue 1 local-priority 1 switch(config)# map queue 1 local-priority 2 switch(config)# map queue 3 local-priority 3 switch(config)# map queue 4 local-priority 4 switch(config)# map queue 5 local-priority 5 switch(config)# map queue 5 local-priority 6 switch(config)# map queue 5 local-priority 7 switch(config)# qos schedule-profile S1 switch(config)# wfq queue 0 weight 5 switch(config)# wfq queue 1 weight 10 switch(config)# wfq queue 3 weight 15 switch(config)# wfq queue 4 weight 25 switch(config)# wfq queue 5 weight 50 switch(config)# qos threshold-profile T1 switch(config-threshold)# queue 4 action ecn threshold 40 kbytes switch(config-threshold)# queue 5 action ecn threshold 50 kbytes switch(config-threshold)# exit switch(config)# apply qos threshold-profile T! switch(config)# wfq queue 5 weight 50 switch(config)# apply qos queue-profile Q1 schedule-profile S1