Use it when trunk or access ports must prioritise frames at Layer 2, or when markings are lost between switches and routers.
CoS
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.
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.
802.1Q tag CoS → trust/map → DSCP
Context & applicabilityCommon mistakes · platform/version boundaries
- 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.
Operational reference
Fast context before you go deeper.
show policy-map interface [interface]Show Commands
Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.
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 Commands Verify boundary
show mls qos interface Gi1/0/5 ! older platforms
show policy-map interface Gi1/0/5 ! MQC platforms
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.
- 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.
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
| CoS | Typical traffic |
|---|---|
| 5 | Voice |
| 4 | Video |
| 3 | Call signalling |
| 0 | Best effort |
| 6–7 | Network 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:
| CoS | Default DSCP | Usually wanted |
|---|---|---|
| 5 (voice) | 40 (CS5) | 46 (EF) |
| 3 (signalling) | 24 (CS3) | 24 (CS3) |
| 4 (video) | 32 (CS4) | 34 (AF41) |
| 0 | 0 | 0 |
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
| Point | CoS present? |
|---|---|
| Voice VLAN (tagged by the phone) | yes |
| Data VLAN on an access port (untagged) | no |
| Native VLAN on a trunk | no |
| After a routed hop | no — 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.
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 → CoS. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc2475.html · confidence 94%