Good afternoon my fellows!
There are many ways to configure quality of service (QoS) on a switch. First we need to classify what we want to be on a higher priority. You can classify an access-list, vendor-mac-addresses or just everything/any. In my case I wanted to prioritize a whole VLAN (ID 17 in my case). Here is my configuration with comments:
# This is my traffic-qualifier (any): traffic classifier EveryTraffic operator and if-match any # Here I'm increasing the priority to 5: traffic behavior EveryTraffic remark dscp cs6 remark dot1p 5 # What should be done? Prioritize the traffic to level 5: qos policy VeryHigh classifier EveryTraffic behavior VoiceTraffic # This will apply the policy to vlan 17 inbound and outbound: qos vlan-policy VeryHigh vlan 17 inbound qos vlan-policy VeryHigh vlan 17 outbound
I dialed an external number and Queue 5 packets are counting up:
display qos queue-statistics int g2/0/23 outbound Interface: GigabitEthernet2/0/23 Direction: outbound Forwarded: 3037 packets, 797734 bytes Queue 0 Forwarded: 0 packets, 0 bytes, 0 pps, 0 bps Current queue length: 0 packets Queue 1 Forwarded: 0 packets, 0 bytes, 0 pps, 0 bps Current queue length: 0 packets Queue 2 Forwarded: 0 packets, 0 bytes, 0 pps, 0 bps Current queue length: 0 packets Queue 3 Forwarded: 0 packets, 0 bytes, 0 pps, 0 bps Current queue length: 0 packets Queue 4 Forwarded: 0 packets, 0 bytes, 0 pps, 0 bps Current queue length: 0 packets Queue 5 Forwarded: 522 packets, 152673 bytes, 33 pps, 80824 bps Current queue length: 0 packets Queue 6 Forwarded: 0 packets, 0 bytes, 0 pps, 0 bps Current queue length: 0 packets Queue 7 Forwarded: 493 packets, 73338 bytes, 0 pps, 960 bps Current queue length: 0 packets
Wikipedia has a good documentation about the priority levels: https://en.wikipedia.org/wiki/IEEE_P802.1p
feel free to discuss about quality of service in the comments :-)