How to configure Queuing on Cisco 3560 and 3750 switch

Hi,

Just one note: Egress queueing is defaulted to Q1 being the priority queue and has 1/25 * 100Mb (4Mb) so your first calculation didn’t cover this already assigned usage. Your teaching method works well though but it’s nice to know.

Thanks.

Thanks Alan, that’s something to keep in mind indeed.

Hi Rene,

Thank you for the information. It was very helpful. However do you have any postings on QoS for the new 3850’s? I will be replacing our 3750x stack switches soon with a couple of 3850’s and noticed the QoS model is different. It now uses MQC instead of MLS, 8 queues instead of 4, etc. and so I was wondering if you can help answer some questions.

First, do I have to use/configure all 8 queues or can I just configure queues similar to the four that we originally have on our 3750’s?

We have a few layer two switches that will be connecting to the stack. I’m assuming it shouldn’t matter if they are using the old method of queueing, as long as they are marked and classified correctly, the stack switches will handle the queueing once it receives it?

Also if I have a port that could be used for a cisco phone or a just a pc, should I still use the" trust device cisco-phone" on the port or leave it default (trust all)?

Thanks,

Mary

Hi Mary,

I haven’t played with QoS on the 3850 yet, once I get my hands on one I’ll write a blog post on it. Configuration-wise it should be much easier since it’s all MQC now.

You probably don’t have to use all 8 queues so if you just want 4 you should be fine but make sure to check the buffer allocations for all the different queues. It doesn’t matter that you still have your old switches as long as the marking is the same. Your 3850s will queue just fine if the markings are OK.

You can leave the trust level at the default (trust all) as long as you trust the markings from all your end devices. Make sure you don’t have any computers or other devices that mark their traffic when they shouldn’t…otherwise it’s better to rewrite everything to 0 and just trust the (Cisco) phones.

I’ll see if I can get my hands on a 3850 so I can write some blog posts about it :slight_smile:

Rene

Rene,

Is there any course material that explains QOS WRR? I’m trying to figure why I dont see any global configuration lines on my 6509, however, when I run Show queueing interface gi 9/1 (for example), I see WRR wred settings, also, I see Output Discards on Queue 0 discarding cos 0 & 1 data. MLS Qos is enabled.

Any thoughts?

Thanks!

Joey

Hi Joey,

Configuration-wise, WRR (Weighted Round Robin) and SRR (Shaped Round Robin) are very similar. You can use the examples in this lesson:

Something to keep in mind is that a lot of commands will only show up in your configuration if you use non-default values. Here’s an example:

Switch#show running-config | incl mls
mls qos

QoS has been enabled on this switch, that’s the only command we have in our config. Let’s check the default cos-dscp map:

Switch#show mls qos maps cos-dscp 
   Cos-dscp map:
        cos:   0  1  2  3  4  5  6  7 
     --------------------------------
       dscp:   0  8 16 24 32 40 48 56

If you try to add this to your config, it won’t show up. Here’s an experiment:

Switch(config)#mls qos map cos-dscp 0 8 16 24 32 40 48 56

Switch(config)#do sh run | incl qos
mls qos

It doesn’t show up since these are the default values. Only if we change something it will show up:

Switch(config)#mls qos map cos-dscp 0 8 16 24 32 40 48 60

Switch(config)#do sh run | incl qos                      
mls qos map cos-dscp 0 8 16 24 32 40 48 60
mls qos

Now you can see it in the config. There is another way though…if you use show running-config all then you will see everything, including the defaults:

Switch#show running-config all | incl mls
mls qos rewrite ip dscp
mls qos
 mls qos cos 0
 mls qos dscp-mutation Default DSCP Mutation Map

The mls qos cos 0 and mls qos dscp-mutation Default DSCP Mutation Map are found on the interfaces.

Rene

Hi rene.

Do you have an lesson or document where you explain better, I have many doubts?

Thanks.

Hi Edgar,

About queuing? What doubts do you still have, maybe I can clarify them? :slight_smile:

Rene

Hello Rene

yes, all my douts are about queuing. I don’t understand it.

sorry :frowning:

Hi Edgar,

Queuing on switches can be complicated to understand. Did you see this video yet?

It’s a great video, explains the basics of queuing on the catalyst switches.

Rene

Hi Rene,
Great post as usual with all your postings. Im wondering if you can put together a comprehensive example as how to use all these commands in a real world scenario. This way we understand the reason or the need behind each one of them. Also I would like to see an end to end QoS implementation in an easy way to understand as you did in all your postings.

Ahmad

Hi Ahmad,

Glad to hear you like it. I might add some of these examples when I’m working on design material.

When it comes to QoS, here’s what you should do:

  • On the edge of your network, you want your traffic to be marked. If you use VoIP, your IP phones are probably already doing this for you. You can also use classification on the switch and mark the traffic there.
  • If you want to queue traffic then you should configure queuing on any device in between the source and destination. Make sure you do this in both directions.
  • Rene

Solid info. Great!

What’s the difference between priority queue and priority queuing. In this article, you stated that we have two(2) ingress queues. I was reading an online document where I found that there are 4 queues of traffic in Priority Queuing. Can you help me understand this? I’m sending you the link and please read the section where it said Priority Queuing
http://netcerts.net/congestion-management-and-queuing-methods/

Hi Mahamane,
This can be confusing because the terms are so similar, but they are quite different. One is describing a method of ordering packets, while the other describes a queue itself–in other words a logical construction where packets are held.

Priority Queuing
This is describing a method of ordering packets. Note: This is an older generation method that is considered legacy now. The way this works is there are four queues (in order of importance): High, Medium, Normal, Low. Priority Queuing works with a simple rule: A queue will only be serviced so long as there are no packets waiting in a higher importance queue. In other words, any packets in the “Normal” queue must continue to wait to be sent until all the packets in High, then Medium are already sent.

Priority Queue
This describes a queue itself, rather than a method of queuing. The concept for a priority queue is pretty simple. Any packet that enters the Priority Queue is immediately placed at the front of the line so it will be sent next. This is commonly used for VOIP traffic where low delay is critical for functionality.

Hi Rene,

Any idea how the QoS works for 3850 Switch model?. as far as i know. MLS QoS only works with 3750 and 3850 dont have this command.

Thanks,
Francis

Francis,
You are right, the 3850 doesn’t support the MLS mode of QoS, and that’s a good thing! MLS is now considered legacy and has been superseded by MQC (modular QoS CLI). The MQC is more universal in nature–meaning its configuration is the same across a variety of platforms. It also has a lot more capabilities than MLS (for example, multiple nested QoS policies).

Here’s a link to Cisco that highlights the differences:

http://www.cisco.com/c/en/us/support/docs/switches/catalyst-3850-series-switches/118629-technote-qos-00.html#anc4

Hi Rene,

is it OK to say that on a conceptual level ‘End to End QoS’ works in below order ?

Classification------>Marking----->Queuing------>Policing-------->Shaping

thanks
Abhishek

Hi Abhishek,

On a LAN environment, you normally only want to use classification, marking and queuing. This allows you to give preference to certain traffic types. Policing and shaping are both used to limit your traffic, either by buffering (shaping) or dropping (policing) it. You could do this on your own network for certain traffic types but it’s not common.

Rene

Hello Rene,
I am hoping you can clarify something for me in regards to the priority queue and the two ingress queues. I watched Kevin’s video and it explained a lot however it is still unclear to me even after reading several Cisco docs and other training material how the ingress queues are serviced. The way I understand it is that there are two ingress queues (1 and 2). By default, queue 2 is the priority queue and is guaranteed 10% of the internal ring bandwidth. This leaves 90% of the internal ring bandwidth to be divided by the two ingress queues 45% each by default. So does that mean that queue 2 really gets 55% (10% priority and 45% normal) or does queue 2 get serviced two times (once for priority traffic and once for normal traffic) for every time queue 1 gets serviced? If queue 2 is truly just a single file line handling both normal and priority traffic how do the priority packets get moved to the front of the line to be expedited by SRR? It seems like there would have to be two sub queues within queue 2, one for normal traffic and one for priority traffic.

Also, if the priority queue of each port is given 10% of the internal ring bandwidth and I have a 24 port GigE switch with a 32Gig backplane this would give each port 1.3 Gbps reserved bandwidth on the internal ring. However, each port is only a 1G port so it seems like in this scenario that the priority traffic could starve out normal traffic even though it is limited to 10% of internal ring bandwidth due to the fact that the faction of internal ring bandwidth allocated to the priority queue of each port exceeds the physical port bandwidth capacities. Do I have my logic and math correct here?

Thanks,
Tom