QoS is an umbrella term which covers the use of features such as policing, shaping, traffic classification, and advanced queuing mechanisms.
CoS is a form of QoS limited to layer-2 Ethernet and it uses 3-bits (8 values) of the 802.1Q tag to differentiate your traffic. Therefore no trunking, no CoS.
DSCP is the most commonly acted upon value at layer-3 and it is found in 6-bits (64 values) of the IP header. Typically only 14 of the values are used and are referred to using the notations of best effort, expedited forwarding (EF), and assured forwarding (AF). AF values are in the form AFxy, where x is 1-4 and refers to the precedence and y is 1-3 and refers to the drop probability.
Telco vendors (such as AT&T specifically) use the term CoS to define the bandwidth allocation classes that they support in their MPLS offerings. Basically they turned CoS into a marketing term. Typically a Telco uses DSCP to know which of their CoS classes your traffic is supposed to be a part of.
Another important point for configuring these features is that in a Cisco switch or router you
need to use a command such as 'mls qos trust dscp' or 'mls qos trust cos' or else the device will reset the QoS marking to zero. There are some exceptions based on model, configuration, and IOS version but this has been true for everything within the last few years in my experience. This configuration is required because the device needs to know which marking you want it to act upon since it cannot use both. I like using DSCP. I haven't found a solid reason to use CoS over it but I'm sure someone has one.
The following policy-map would work. Just apply this to the inbound of the WAN interface.
policy-map MARKDOWN
class class-default
set dscp default
Interface Config:
interface gig 0/1
service-policy input MARKDOWN
Just saw the bit about juniper. The following I believe will work for JunOS.
interfaces {
so-1/2/3 {
unit 0 {
rewrite-rules {
dscp default;
}
}
}
}
Best Answer
If my memory serves, the older Procurve switches used to accept and forward any CoS/DSCP markings they received. You couldn't modify them unless you were on a 5400xl or better switch.
It looks like the 2520 and the 3800 allow you to modify whether or not you're using CoS or DiffServ TOS for classification. The top level command you want is qos type-of-service. The rest of the commands should be contained under that. If they aren't available, you may not be able to modify the QoS settings on that specific platform.