cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
37017
Views
61
Helpful
9
Replies

map QOS to COS-DSCP ?

jonesm111
Level 1
Level 1

On our Access switches we have 2 different qos to cos-dscp settings;


mls qos map cos-dscp 0 8 16 24 32 46 48 56
mls qos map cos-dscp 0 8 16 24 32 40 46 48

Can someone help me break it down and figure out exactly what this means?

Thanks!

1 Accepted Solution

Accepted Solutions

Jon Marshall
Hall of Fame
Hall of Fame

jonesm111 wrote:

On our Access switches we have 2 different qos to cos-dscp settings;


mls qos map cos-dscp 0 8 16 24 32 46 48 56
mls qos map cos-dscp 0 8 16 24 32 40 46 48

Can someone help me break it down and figure out exactly what this means?

Thanks!

CoS is a L2 marking contained within an 802.1q tag,. The values for CoS are 0 - 7

DSCP is a  L3 marking and has values 0 - 63

Switches use an internal DSCP value when moving traffic through the switch. However if the marking received is a CoS marking the switch then needs to derive a DSCP value from this value which is what the QOS map cos-dscp is used for.

Obviously the 8 values of CoS cannot exactly map to 64 DCSP values so that's what the above map shows ie.

CoS value 0 = DCSP 0

CoS value 1 = DCSP 8

CoS value 2 = DSCP 16

etc..

One more thing to note CoS value 5 is commonly used for VOIP and CoS value 5 should be mapped to DSCP 46. DSCP 46 is the EF value (Expedited forwarding) which gets priority over the DSCP AF classes.

Jon

View solution in original post

9 Replies 9

Jon Marshall
Hall of Fame
Hall of Fame

jonesm111 wrote:

On our Access switches we have 2 different qos to cos-dscp settings;


mls qos map cos-dscp 0 8 16 24 32 46 48 56
mls qos map cos-dscp 0 8 16 24 32 40 46 48

Can someone help me break it down and figure out exactly what this means?

Thanks!

CoS is a L2 marking contained within an 802.1q tag,. The values for CoS are 0 - 7

DSCP is a  L3 marking and has values 0 - 63

Switches use an internal DSCP value when moving traffic through the switch. However if the marking received is a CoS marking the switch then needs to derive a DSCP value from this value which is what the QOS map cos-dscp is used for.

Obviously the 8 values of CoS cannot exactly map to 64 DCSP values so that's what the above map shows ie.

CoS value 0 = DCSP 0

CoS value 1 = DCSP 8

CoS value 2 = DSCP 16

etc..

One more thing to note CoS value 5 is commonly used for VOIP and CoS value 5 should be mapped to DSCP 46. DSCP 46 is the EF value (Expedited forwarding) which gets priority over the DSCP AF classes.

Jon

Thanks Jon,

So would mls qos map cos-dscp 0 8 16 24 32 46 48 56 map COS3 to 24 and COS5 to 46?

We use COS3 for setup, COS5 for payload

jonesm111 wrote:

Thanks Jon,

So would mls qos map cos-dscp 0 8 16 24 32 46 48 56 map COS3 to 24 and COS5 to 46?

We use COS3 for setup, COS5 for payload

Yes, CoS 3 = 24 and CoS 5 = 46 from the above map.

Jon

Great feed. One more question, why are there 2 different rows? The second row mapping is slightly different but is named the same? Thanks!

mls qos map cos-dscp 0 8 16 24 32 46 48 56

mls qos map cos-dscp 0 8 16 24 32 40 46 48

This thread is 5 years old but to answer your question anyway the 1st line would be created automatically if you enable mls qos globally , the 2nd line was most likely added manually , we had to do the same for some of our switches that connect to our 3rd party wireless controllers that have slightly different dscp settings , instead of cs6 there using cs5  , see the chart link below will help

http://www.netcontractor.pl/blog/wp-content/uploads/2010/06/QoS-Values-Calculator-v21.jpg

 

 

Glad I was able to help out by starting this thread, interesting when I'm still getting notified on this 5 years later, lol

Very clear explainaton and helpful!

Disclaimer

The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.

Liability Disclaimer

In no event shall Author be liable for any damages wha2tsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.

Posting

". . . EF value (Expedited forwarding) which gets priority over the DSCP AF classes."

Since Janezh's post "freshen" this thread, I just wanted to note tagging a packet with DSCP EF, or any other DSCP value, alone, does not actually guarantee priority relative to any other DSCP tag.  However, if packets are being QoS treated, based on their DSCP markings, normally DSCP EF would be treated better than BE or other AF classes (as Jon notes).  Preference packet treatment depends on actual QoS policies.  (NB: QoS policies might treat packets differently without even using L3 ToS.)

clear and helpful!
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card