The switch automatically enables standard QoS and configures the CoS-to-DSCP map (maps CoS values in incoming packets to a
DSCP value).
|
Switch(config)# mls qos
Switch(config)# mls qos map cos-dscp 0 8 16 26 32
46 48 56
|
The switch automatically sets up the ingress queues, with queue 2 as the priority queue and queue 1 in shared mode. The switch
also configures the bandwidth and buffer size for the ingress queues.
|
Switch(config)# no mls qos srr-queue input cos-map
Switch(config)# mls qos srr-queue input cos-map queue 1
threshold 2 1
Switch(config)# mls qos srr-queue input cos-map queue 1
threshold 3 0
Switch(config)# mls qos srr-queue input cos-map queue 2
threshold 1 2
Switch(config)# mls qos srr-queue input cos-map queue 2
threshold 2 4 6 7
Switch(config)# mls qos srr-queue input cos-map queue 2
threshold 3 3 5
|
The switch automatically maps CoS values to an egress queue and to a threshold ID.
|
Switch(config)# no mls qos srr-queue output cos-map
Switch(config)# mls qos srr-queue output cos-map queue 1
threshold 3 5
Switch(config)# mls qos srr-queue output cos-map queue 2
threshold 3 3 6 7
Switch(config)# mls qos srr-queue output cos-map queue 3
threshold 3 2 4
Switch(config)# mls qos srr-queue output cos-map queue 4
threshold 2 1
Switch(config)# mls qos srr-queue output cos-map queue 4
threshold 3 0
|
The switch automatically maps DSCP values to an ingress queue and to a threshold ID.
|
Switch(config)# no mls qos srr-queue input dscp-map
Switch(config)# mls qos srr-queue input dscp-map queue 1
threshold 2 9 10 11 12 13 14 15
Switch(config)# mls qos srr-queue input dscp-map queue 1
threshold 3 0 1 2 3 4 5 6 7
Switch(config)# mls qos srr-queue input dscp-map queue 1
threshold 3 32
Switch(config)# mls qos srr-queue input dscp-map queue 2
threshold 1 16 17 18 19 20 21 22 23
Switch(config)# mls qos srr-queue input dscp-map queue 2
threshold 2 33 34 35 36 37 38 39 48
Switch(config)# mls qos srr-queue input dscp-map queue 2
threshold 2 49 50 51 52 53 54 55 56
Switch(config)# mls qos srr-queue input dscp-map queue 2
threshold 2 57 58 59 60 61 62 63
Switch(config)# mls qos srr-queue input dscp-map queue 2
threshold 3 24 25 26 27 28 29 30 31
Switch(config)# mls qos srr-queue input dscp-map queue 2
threshold 3 40 41 42 43 44 45 46 47
|
The switch automatically maps DSCP values to an egress queue and to a threshold ID.
|
Switch(config)# no mls qos srr-queue output dscp-map
Switch(config)# mls qos srr-queue output dscp-map queue 1
threshold 3 40 41 42 43 44 45 46 47
Switch(config)# mls qos srr-queue output dscp-map queue 2
threshold 3 24 25 26 27 28 29 30 31
Switch(config)# mls qos srr-queue output dscp-map queue 2
threshold 3 48 49 50 51 52 53 54 55
Switch(config)# mls qos srr-queue output dscp-map queue 2
threshold 3 56 57 58 59 60 61 62 63
Switch(config)# mls qos srr-queue output dscp-map queue 3
threshold 3 16 17 18 19 20 21 22 23
Switch(config)# mls qos srr-queue output dscp-map queue 3
threshold 3 32 33 34 35 36 37 38 39
Switch(config)# mls qos srr-queue output dscp-map queue 4
threshold 1 8
Switch(config)# mls qos srr-queue output dscp-map queue 4
threshold 2 9 10 11 12 13 14 15
Switch(config)# mls qos srr-queue output dscp-map queue 4
threshold 3 0 1 2 3 4 5 6 7
|
The switch automatically sets up the ingress queues, with queue 2 as the priority queue and queue 1 in shared mode. The switch
also configures the bandwidth and buffer size for the ingress queues.
|
Switch(config)# no mls qos srr-queue input priority-queue 1
Switch(config)# no mls qos srr-queue input priority-queue 2
Switch(config)# mls qos srr-queue input bandwidth 90 10
Switch(config)# mls qos srr-queue input threshold 1 8 16
Switch(config)# mls qos srr-queue input threshold 2 34 66
Switch(config)# mls qos srr-queue input buffers 67 33
|
The switch automatically configures the egress queue buffer sizes. It configures the bandwidth and the SRR mode (shaped or
shared) on the egress queues mapped to the port.
|
SwitchSwitchconfig)# mls qos queue-set output 1 threshold 1 138
138 92 138
Switch(config)# mls qos queue-set output 1 threshold 2 138
138 92 400
Switch(config)# mls qos queue-set output 1 threshold 3 36 77
100 318
Switch(config)# mls qos queue-set output 1 threshold 4 20 50
67 400
Switch(config)# mls qos queue-set output 2 threshold 1 149
149 100 149
Switch(config)# mls qos queue-set output 2 threshold 2 118
118 100 235
Switch(config)# mls qos queue-set output 2 threshold 3 41 68
100 272
Switch(config)# mls qos queue-set output 2 threshold 4 42 72
100 242
Switch(config)# mls qos queue-set output 1 buffers 10 10 26
54
Switch(config)# mls qos queue-set output 2 buffers 16 6 17
61
Switch(config-if)# priority-que out
Switch(config-if)# srr-queue bandwidth share 10 10 60 20
|