Configuring QoS

Procedure
  1. Configure how local priority values are assigned to ingress packets with the commandsqoscos-map,qosdscp-map, andqostrust.
  2. Optionally, add a rate limit for ingress traffic on one or more interfaces with the commandrate-limit.
  3. If you do not want to use the default QoS queue profile to map local priority to queue, create one or more custom queue profiles with the commandqosqueue-profile. For each queue in a custom queue profile:
    1. Assign a local priority value with the commandmap queue.
    2. Optionally, define a descriptive name with the command队列名称. All local priorities (0 to 7) must be mapped to a queue, and the queues selected for use must be in contiguous order starting at 0.
  4. If you do not want to use the default QoS schedule profile to determine the order in which queues are selected to transmit a packet, create one or more custom schedule profiles with the commandqosschedule-profile. For each queue in a custom schedule queue profile, define scheduling priority with the commandsstrict queueanddwrr queue.
  5. Optionally,on the 8360 Switch Series,create a threshold profile to limit throughput on one or more queues with the commandqos threshold-profile. Assign threshold values to the queue with the commandqueue. Then, apply the profile with the commandapply qoes threshold-profile
  6. Optionally for strict queues, configure egress queue shaping to limit egress bandwidth on an interface to a value that is less than its line rate. Use themax-bandwidthparameter of thestrict queuecommand.
  7. Activate QoS settings with the commandapply qos. This command lets you apply a queue profile and schedule profile globally to all interfaces, or a schedule profile override to individual interfaces.

    When applying QoS settings to a port configured to support priority-based flow control, specific configuration settings must be respected when defining a CoS map and queue profile. See the commandflow-controlin theArubaOS-CX Command-Line Interface Guidefor details.

  8. View QoS configuration settings with the providedshow命令。

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 priority1.

  • Creates a queue profile named第一季度and assigns local priorities as follows:
    Queue Local Priority
    0 0
    1 1
    1 2
    2 3
    3 4
    4 5
    5 6
    5 7
  • Creates a schedule profile namedS1and assigns DWRR to all queues in the schedule profile with the following weights:
    Queue Weight
    0 5
    1 10
    2 15
    3 20
    4 25
    5 50
  • Applies第一季度andS1to all interfaces that do not have a QoS override applied.

    switch(config)#qostrust cosswitch(config)#qoscos-map 1 local-priority 1switch(config)#qosqueue-profile Q1switch(config)#map queue 0 local-priority 0switch(config)#map queue 1 local-priority 1switch(config)#map queue 1 local-priority 2switch(config)#map queue 2 local-priority 3switch(config)#map queue 3 local-priority 4switch(config)#map queue 4 local-priority 5switch(config)#map queue 5 local-priority 6switch(config)#map queue 5 local-priority 7switch(config)#qosschedule-profile S1switch(config)#dwrr queue 0 weight 5switch(config)#dwrr queue 1 weight 10switch(config)#dwrr queue 2 weight 15switch(config)#dwrr queue 3 weight 20switch(config)#dwrr queue 4 weight 25switch(config)#dwrr queue 5 weight 50switch(config)#apply qos queue-profile Q1 schedule-profile S1