Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

CoS

Direct answer

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.

When to use this

Use it when trunk or access ports must prioritise frames at Layer 2, or when markings are lost between switches and routers.

First 30 seconds

1. CoS is a 3-bit L2 marking in the 802.1Q tag.

2. Lost when frames leave the trunk.

3. Map CoS to DSCP at L3.

4. Phones mark CoS 5 for voice.

5. Trust only phones on access ports.

Operational verification

802.1Q tag CoS → trust/map → DSCP

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
CoS pitfalls
  • Trusting CoS from untrusted PCs — trust only on phone/AP ports (conditional trust with CDP/LLDP).
  • Losing CoS on routed hops; map to DSCP at ingress.
  • Native VLAN frames have no tag and therefore no CoS.
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
Key commandshow policy-map interface [interface]
Scope / prerequisiteUse it when trunk or access ports must prioritise frames at Layer 2, or when markings are lost between switches and rou…
Show · 1
What next?3 suggested next steps
Catalog command links1
Evidence1
On this pageJump to a specific section
Verification

Show Commands

Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.

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 Commands Verify boundary
show mls qos interface Gi1/0/5        ! older platforms
show policy-map interface Gi1/0/5     ! MQC platforms
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
Key points
  • CoS is the 3-bit 802.1p priority (0–7) in the 802.1Q tag.
  • It only exists on trunk links and is lost when the tag is removed.
  • Voice is typically CoS 5.
Key checks
  • show mls qos interface <interface> — trust state (older platforms)
  • show running-config interface <interface> — trust device cisco-phone / auto qos
ReferenceWhat it is1 section · depth on demand

Values and use

CoSTypical traffic
5Voice
4Video
3Call signalling
0Best effort
6–7Network control (reserved)

CoS exists only in the 802.1Q tag, so it is lost on routed hops and on untagged access ports. Switches usually map CoS to DSCP at the trust boundary (mls qos trust cos on older platforms; trust is the default on Catalyst 9000).

ReferenceWhy it matters1 section · depth on demand

How it works

CoS (Class of Service) is the 3-bit PCP field in the 802.1Q tag, values 0–7. It exists only on tagged frames, so it is lost on access ports and at routed hops. Switches map CoS to DSCP at the trust boundary; voice is typically CoS 5, signalling CoS 3.

ReferenceImportant terms & boundaries1 section · depth on demand

In depth

Conditional trust at the phone port

The usual access design trusts CoS only when a Cisco phone is detected via CDP:

interface GigabitEthernet1/0/1
 switchport access vlan 10
 switchport voice vlan 110
 trust device cisco-phone
 auto qos voip cisco-phone
%SWITCH_QOS_TB-5-TRUST_DEVICE_DETECTED: cisco-phone detected on port Gi1/0/1, port configured trust state is now operational.
%SWITCH_QOS_TB-5-TRUST_DEVICE_LOST: cisco-phone no longer detected on port Gi1/0/1, operational port trust state is now untrusted.

When the phone is unplugged and a PC is connected directly, its markings are no longer trusted.

CoS to DSCP — the default mapping is not EF

IOS maps CoS n to DSCP 8 × n by default:

CoSDefault DSCPUsually wanted
5 (voice)40 (CS5)46 (EF)
3 (signalling)24 (CS3)24 (CS3)
4 (video)32 (CS4)34 (AF41)
000

If CoS is trusted and converted with the default map, voice arrives in the core as CS5 instead of EF and may land in the wrong queue. Either trust DSCP from the phone (which already marks EF) or set the mapping explicitly in the input policy.

Where CoS exists and where it disappears

PointCoS present?
Voice VLAN (tagged by the phone)yes
Data VLAN on an access port (untagged)no
Native VLAN on a trunkno
After a routed hopno — rewritten from DSCP or set to 0

Verify

show policy-map interface Gi1/0/1 shows the AutoQoS input policy and per-class counters; a voice call should increase the voice class counters. show auto qos interface Gi1/0/1 lists what AutoQoS generated — review it before using it as a template elsewhere.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
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 → CoS. 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?