Use Marking when traffic must carry its QoS class to later hops: set DSCP (or CoS on tagged links) once at the trust boundary so every device can classify on the label.
Marking
1. Marking sets DSCP/CoS so later devices can classify quickly.
2. Mark at the trust boundary.
3. Re-mark untrusted traffic.
4. Use standard values (EF 46, AF41 34, CS3 24).
5. Verify end to end.
classify → set DSCP/CoS → downstream trusts marking
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification & troubleshooting Narrow the fault
| Symptom | Command | Look for | Next check |
|---|---|---|---|
| Marking not applied | show policy-map interface Gi1/0/10 input | The class counters and its set dscp action | Class match (show class-map), policy direction |
| Downstream sees a different DSCP | Capture on the next hop (monitor capture or Wireshark ip.dsfield.dscp) | DSCP value on the wire after this device | Re-marking policies on later hops or the provider edge |
| CoS lost after routing | Capture before and after the routed hop | CoS present only on tagged segments | Mark DSCP, or map CoS to DSCP at ingress |
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
Subtopics
Go one level deeper into this subject.
Class of Service (CoS) is the 3-bit 802.1p priority field in the 802.1Q VLAN tag (values 0–7); it exists only on trunks and is lost when the frame is routed.
Subtopic DSCPDifferentiated Services Code Point (DSCP) is a 6-bit value in the IP header (0–63) that marks traffic class end to end, for example EF (46) for voice and AF41 (34) for video.
- Marking writes a value (DSCP or CoS) so later devices can treat traffic consistently.
- Mark at the trust boundary, usually the access switch or IP phone.
- Untrusted markings should be reset.
show policy-map interface <interface>— set actions counters- Capture to check DSCP values — marking proof
ReferenceWhat it is1 section · depth on demand
What it is
Marking writes a QoS value into the packet or frame so later devices can classify it without inspecting the payload:
- DSCP — 6 bits in the IPv4 ToS / IPv6 Traffic Class byte; survives routing.
- IP precedence — the legacy top 3 bits of the same byte (class selectors CS0–CS7).
- CoS / PCP — 3 bits in the 802.1Q tag; lost when the tag is removed at a routed hop.
- MPLS EXP/TC — 3 bits in the MPLS label.
On IOS XE marking is a set action in a policy-map class, normally inbound at the trust boundary. Common DiffServ values (RFC 4594 guidance): EF 46 voice, AF41 34 interactive video, CS3 24 call signalling, AF21 18 transactional data, CS1 8 scavenger, Default 0 best effort.
ReferenceWhy it matters1 section · depth on demand
When to use it
Mark at the trust boundary: re-mark traffic from untrusted endpoints, trust only known sources such as IP phones or servers, and keep the same DSCP plan end to end. Re-mark at a WAN or provider edge only when the provider uses fewer or different classes.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
QoS marking
Marking sets a value in the packet so devices along the path can treat it consistently. RFC 2474 redefines the IPv4 TOS byte and the IPv6 Traffic Class byte as the DS field, whose top six bits form the DSCP that selects the per-hop behaviour (PHB); traffic is marked and re-marked at domain boundaries, which are also the main defence against misuse of markings.
Where markings live
| Layer | Field |
|---|---|
| IP | DSCP (6 bits of the DS field) |
| Ethernet (802.1Q) | PCP / CoS (3 bits in the VLAN tag) |
| MPLS | Traffic Class (EXP) bits |
| Wi-Fi | User priority / access categories (WMM) |
Trust boundaries
| Location | Typical policy |
|---|---|
| IP phone port | Trust the phone's marking (with conditional trust) |
| User PC port | Don't trust; classify and mark on the switch |
| Uplinks between managed switches | Trust |
| Internet edge | Re-mark incoming traffic |
SW1(config)# class-map match-any VOICE
SW1(config-cmap)# match protocol rtp audio
SW1(config)# policy-map ACCESS-IN
SW1(config-pmap)# class VOICE
SW1(config-pmap-c)# set dscp ef
SW1(config-pmap)# class class-default
SW1(config-pmap-c)# set dscp default
SW1(config)# interface GigabitEthernet1/0/5
SW1(config-if)# service-policy input ACCESS-IN
SW1# show policy-map interface GigabitEthernet1/0/5 input
Marking rules (RFC 2474)
| Rule | Detail |
|---|---|
| Match all six bits | Nodes must use the full DSCP to select a PHB |
| Unknown codepoints | Treated as default (best effort) |
| Class selectors | Keep partial compatibility with IP Precedence |
| IPsec | The DS field isn't protected by IPsec integrity checks |
Practice
Mark as close to the source as possible, use a small set of standard classes, document the mapping between DSCP, CoS, MPLS TC and Wi-Fi, and police or re-mark where untrusted traffic enters.
Documented example, not captured output.
Quick reference
Marking writes a packet's QoS class into the packet itself, so every device further along the path can treat it correctly without repeating complex classification. At Layer 3 the mark is the DSCP value in the IP header; at Layer 2 it is the CoS value in the 802.1Q tag, which is lost when a frame leaves the VLAN or crosses a routed hop. Marks should be set once, at the trust boundary, and trusted afterwards.
Trust boundaries:
| Device | Typical policy |
|---|---|
| IP phone | Trust its DSCP/CoS (conditional trust via CDP/LLDP) |
| User PC | Re-mark to default, or classify specific apps |
| Server in DC | Trust if managed by IT |
| Internet / partner link | Re-mark everything on ingress |
Service providers may re-mark or ignore customer DSCP; agree a mapping with the provider for MPLS WAN classes.
show policy-map interface Gi1/0/10 input
show platform hardware fed switch active qos queue stats interface Gi1/0/10 ! Catalyst 9000
ReferenceConfiguration & state1 section · depth on demand
Configuration example (Cisco IOS XE)
policy-map ACCESS-IN
class VOICE
set dscp ef
class SCAVENGER
set dscp cs1
class class-default
set dscp default
!
interface GigabitEthernet1/0/10
service-policy input ACCESS-IN
Catalyst 9000 switches trust received DSCP by default; an input policy like this enforces the marking instead of trusting the endpoint. Documented example, not captured output.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in IP Services → QoS → Marking. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc2475.html · confidence 94%