Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

map QOS to COS-DSCP ?

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
Hall of Fame Super Blue

Re: map QOS to COS-DSCP ?

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

9 REPLIES
Hall of Fame Super Blue

Re: map QOS to COS-DSCP ?

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

New Member

Re: map QOS to COS-DSCP ?

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

Hall of Fame Super Blue

Re: map QOS to COS-DSCP ?

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

New Member

Great feed. One more question

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

VIP Purple

This thread is 5 years old

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

 

 

New Member

Glad I was able to help out

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

Cisco Employee

Very clear explainaton and

Very clear explainaton and helpful!

Super Bronze

Disclaimer

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.)

New Member

Re: map QOS to COS-DSCP ?

clear and helpful!
14952
Views
16
Helpful
9
Replies