cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
12908
Views
0
Helpful
3
Replies

dscp to cos mapping

loyoung
Level 1
Level 1

Hello QOS Guru,

I am trying to set up qos and would like some clarification on the "cos-to-dscp" and "dscp-to-cos" mapping to ensure my understanding is correct.

Here is my scenario:

cisco phone --- f0/1-(3560sw)-gig0/1-----trunk 802.1q----- gig0/2-(3750sw)-gig0/1------gig01-(Service provider Router).

I understand cisco phone will send both cos5 and dscp 46 markings by default, so on the 3560 sw port f0/1 i have elected to use the " mls qos trust cost " command to trust cos instead of dscp. The "mls qos trust cos" command will now tricker the 3560sw to use the internally mapping cos-to-dscp and this will  ( Show mls qos map gives me cos-dscp 0 8 16 24 32 46 48 56)  convert the cos value to dscp 46 when egress out the 3560 gig0/1 to the uplink 3750sw gig0/2.  The below part  is where i am at a lost ........

On the 3750 gig0/2 ingress port, do i use the mls qos trust dscp at this point? My concern is if i use the "trust dscp" the 3750 sw will convert the marking from dscp to cos due to the internally mapping on the 3750sw and  on egress gig0/1 the service provider will get a cos value instead of a dscp value? or maybe not, since it isn't a trunk link between the 3750sw and the SP router?

I understand the Service Provider would want dscp and not cos value.

Thanks,

Lou

3 Replies 3

Eugene Lau
Cisco Employee
Cisco Employee

Hi Lou,

I think what is confusing you is the CoS -> DSCP mapping.

Let's start from the IP phone where it will generate a voice packet which has CoS5/DSCP46. We need to keep in mind that CoS is Layer2 and DSCP is Layer3.

On the 3560- as you trust cos of 5 -> the DSCP will be mapped according to the CoS-DSCP map, which in your case is 5 - 46 - so no changes.The switch does not "convert" CoS to DSCP. The switch may modifiy the fields but CoS value will exist in 802.1q tag (12bit VLAN identifier | 3 bit Prioritization) and a DSCP value will exist in IP header

When the traffic arrives on g0/2 3750 -> it will have CoS5/DSCP46 -> Trust cos -> access port g0/1 DSCP46 queue to SP router (queue according to DSCP)

So the g0/1 where you have an SP router should be trusting DSCP for return traffic

HTH

Eugene

Hi Eugene,

Really appreciate your quick response to my post.

So, can i say the cos-to-dscp and dscp-to-cos mapping internal to the switch is really for the switch to know where to place the appropriate marking to the respective queue?.

If cos 5/dscp 46 will be seen from the point of entry on the 3560sw to the engress port g0/1 (where the router is connected), it would be best to just trust dscp all the way through, no? .

Thanks,

Lou

Hi Lou,

That is correct. The internal DSCP or CoS is used to evaluate the packet for scheduling and assigns the packet to one of the queues.

Trusting DSCP throughout the network will work however as with everything in engineering a network, it's about practice. I always thought logically, in an L2  network or connected to a L2 802.1q link it's easier to think to trust CoS. Where it's Layer3 or connected to a L3 link - trust DSCP. It can be up to you, as long as it is consistent in the network.

Perhaps some bed time reading for you? Enterprise QoS Design - SRND - Solution Reference Network Design guides

http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/QoS_SRND/QoS-SRND-Book.html

HTH

Eugene

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:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco