QoS - Match-all vs match-any
It seems like most of the QoS configuration examples I see use match-all.... Like I have seen VoIP QoS configs where there will be a match-all, then the match elements will be for multiple DSCP's...
ie:
class-map match-all VOIP
match dscp ef
match dscp af31
Now, wouldn't that be impossible? Since you can't have multiple DSCP's on a single packet?
I just set up a new QoS template with:
class-map match-any VOIP
match dscp ef
match dscp af31
Maybe I've just been reading bad info? Can someone clarify?
ie:
class-map match-all VOIP
match dscp ef
match dscp af31
Now, wouldn't that be impossible? Since you can't have multiple DSCP's on a single packet?
I just set up a new QoS template with:
class-map match-any VOIP
match dscp ef
match dscp af31
Maybe I've just been reading bad info? Can someone clarify?
_______LAB________
2x 2950
2x 3550
2x 2650XM
2x 3640
1x 2801
2x 2950
2x 3550
2x 2650XM
2x 3640
1x 2801
Comments
-
Forsaken_GA Member Posts: 4,024If you see anything blatant like that, it probably means that the author and their editor weren't paying attention. match-all is the default, so it's an easy thing to overlook
-
networker050184 Mod Posts: 11,962 ModYou are correct. A match all needs to match all and a packet will only have one DSCP marking. You will need a match any like your example. What source are you getting the bad info from?An expert is a man who has made all the mistakes which can be made.
-
keenon Member Posts: 1,922 ■■■■□□□□□□It seems like most of the QoS configuration examples I see use match-all.... Like I have seen VoIP QoS configs where there will be a match-all, then the match elements will be for multiple DSCP's...
ie:
class-map match-all VOIP
match dscp ef
match dscp af31
Now, wouldn't that be impossible? Since you can't have multiple DSCP's on a single packet?
I just set up a new QoS template with:
class-map match-any VOIP
match dscp ef
match dscp af31
Maybe I've just been reading bad info? Can someone clarify?
bad info. match-all as a given (dscp example posted excluded) requires that all conditions are met. Basically it acts as a "and" operation. Where match-any does a "or" operation.Become the stainless steel sharp knife in a drawer full of rusty spoons -
mzinz Member Posts: 328Thanks for all the replies guys, totally makes sense.
One last question:
In most configuration examples, RTP and Control traffic is separated for VoIP QOS. What's the benefit to doing this? Why not bundle them into a single class-map?
It just seems like since control takes so little bandwidth but can be equally important to voice traffic it would make sense to combine them into a single queue..._______LAB________
2x 2950
2x 3550
2x 2650XM
2x 3640
1x 2801 -
networker050184 Mod Posts: 11,962 ModThe control traffic is not as delay sensitive so it does not need to be in the expedited queue. I've seen implementations where they are both put in the same queue, but its not necessary. If the message to end the call doesn't get there with little delay its not as big of a deal as if your actual voice traffic was delayed.An expert is a man who has made all the mistakes which can be made.
-
ColbyG Member Posts: 1,264I rarely, if ever, use match-all. Sometimes I forget to type the match-any at the end though.:p
-
mzinz Member Posts: 328Thanks for the replies guys_______LAB________
2x 2950
2x 3550
2x 2650XM
2x 3640
1x 2801