Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Marking

Direct answer

Marking writes a QoS value into the packet or frame (DSCP in the IP header, CoS in the 802.1Q tag) so downstream devices can classify it quickly; see CoS and DSCP.

When to use this

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.

First 30 seconds

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.

Operational verification

classify → set DSCP/CoS → downstream trusts marking

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Protocol standard + deployed implementation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol standard · IOS/IOS XE
Scope / prerequisiteUse Marking when traffic must carry its QoS class to later hops: set DSCP (or CoS on tagged links) once at the trust bo…
What next?3 suggested next steps
Child topics (this level)2
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification & troubleshooting Narrow the fault
SymptomCommandLook forNext check
Marking not appliedshow policy-map interface Gi1/0/10 inputThe class counters and its set dscp actionClass match (show class-map), policy direction
Downstream sees a different DSCPCapture on the next hop (monitor capture or Wireshark ip.dsfield.dscp)DSCP value on the wire after this deviceRe-marking policies on later hops or the provider edge
CoS lost after routingCapture before and after the routed hopCoS present only on tagged segmentsMark DSCP, or map CoS to DSCP at ingress
Evidence references

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.

observation · 1
Command lookup Jump straight to Cisco syntax
Drill down

Subtopics

Go one level deeper into this subject.

Key points
  • 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.
Key checks
  • 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

LayerField
IPDSCP (6 bits of the DS field)
Ethernet (802.1Q)PCP / CoS (3 bits in the VLAN tag)
MPLSTraffic Class (EXP) bits
Wi-FiUser priority / access categories (WMM)

Trust boundaries

LocationTypical policy
IP phone portTrust the phone's marking (with conditional trust)
User PC portDon't trust; classify and mark on the switch
Uplinks between managed switchesTrust
Internet edgeRe-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)

RuleDetail
Match all six bitsNodes must use the full DSCP to select a PHB
Unknown codepointsTreated as default (best effort)
Class selectorsKeep partial compatibility with IP Precedence
IPsecThe 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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:

DeviceTypical policy
IP phoneTrust its DSCP/CoS (conditional trust via CDP/LLDP)
User PCRe-mark to default, or classify specific apps
Server in DCTrust if managed by IT
Internet / partner linkRe-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
Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docProtocol standard + deployed implementation RFC 2475

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%
Confirmation

Confirm action

Continue?