cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
365
Views
0
Helpful
1
Replies

does match ip precedence act on 3 bits of dscp field?

rjackson
Level 5
Level 5

I'm looking at a router that has a class map doing match ip precedence that is being used in a policy map to convert ip prec to DSCP. Problem is the packets already have DSCP set and the policy map is actually lowering the DSCP value because the match is apparently only looking at the IP prec bits. Is this the way the match ip prec is supposed to work? Do we have to know whether a packet has IP prec or DSCP set before we compare it?

1 Reply 1

allan.thomas
Level 8
Level 8

The QOS label is based on the DSCP or the COS value in the packet and decides the queueing and scheduling actions to perform on the packet.

The qos label is mapped according to the trust setting and the packet type. Essentially you specify which fields you want to classify for incoming traffic.

For non-ip traffic you obviously want to trust COS, trusing DSCP of IP PREC is meaningless unless the fields are IP. By trusting DSCP or IP PREC for non ip traffic will result in generating a DSCP value from the COS label in the packet. If there was no COS, the default port COS value will be applied, and the DSCP label will be derived from that.

For IP traffic you have three classifications, two of which you are already aware of, trust DSCP which defines the six most-significant bits of the TOS field. Secondly trust IP PREC, which will generate a DSCP value for the IP packet using the IP-PREC-to-DSCP map.

The third classification for both IP and non IP traffic is to configure QoS ACLs on the interface, as in your case. This will assign the DSCP as specified by the ACL to generate the QoS label.

If the DSCP label on the incoming frame is trusted on the router, then there is no apparent reason to rewrite the DSCP in these frames. I would obviously understand if there was uncertainty, and if so, then I would ensure that DSCP is set identical to the DSCP in the packet.

If the incoming frames can be trusted, then the class map should be configured to match packets based on the DSCP label for example 46 or EF for RTP for correct policing.

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: