DSCP / CoS Converter
Look up any DSCP value, PHB name (EF, AF41, CS3…), ToS byte, or 802.1p CoS marking and instantly see all equivalent QoS field values with typical use cases and Cisco recommended markings.
How to use
Select a search mode, enter a value, and click Look Up (or press Enter). When searching by CoS, multiple DSCP values may be returned since several PHBs share the same Layer 2 marking.
Cisco QoS Recommended Markings
| Traffic Type | DSCP | Name | CoS |
|---|---|---|---|
| VoIP RTP (voice bearer) | 46 | EF | 5 |
| VoIP Signaling | 24 | CS3 | 3 |
| Video Conferencing | 34 | AF41 | 4 |
| Streaming Video | 32 | CS4 | 4 |
| Call Signaling | 24 | CS3 | 3 |
| Network Management | 16 | CS2 | 2 |
| Transactional Data | 18 | AF21 | 2 |
| Bulk Data | 10 | AF11 | 1 |
| Scavenger | 8 | CS1 | 1 |
| Best Effort | 0 | CS0 | 0 |
Full DSCP Reference Table (64 entries)
| DSCP | Name | ToS (dec) | ToS (hex) | IPP | CoS | Use Case |
|---|---|---|---|---|---|---|
| 0 | CS0/DF | 0 | 0x00 | 0 | 0 | Best effort / default (all unmarked traffic) |
| 8 | CS1 | 32 | 0x20 | 1 | 1 | Scavenger (lower than best-effort, e.g. P2P) |
| 10 | AF11 | 40 | 0x28 | 1 | 1 | Scavenger / bulk data (low-priority background traffic) — Drop Precedence: Low |
| 12 | AF12 | 48 | 0x30 | 1 | 1 | Scavenger / bulk data (low-priority background traffic) — Drop Precedence: Medium |
| 14 | AF13 | 56 | 0x38 | 1 | 1 | Scavenger / bulk data (low-priority background traffic) — Drop Precedence: High |
| 16 | CS2 | 64 | 0x40 | 2 | 2 | OAM — Operations, Administration, Management |
| 18 | AF21 | 72 | 0x48 | 2 | 1 | Transactional data / network management — Drop Precedence: Low |
| 20 | AF22 | 80 | 0x50 | 2 | 1 | Transactional data / network management — Drop Precedence: Medium |
| 22 | AF23 | 88 | 0x58 | 2 | 1 | Transactional data / network management — Drop Precedence: High |
| 24 | CS3 | 96 | 0x60 | 3 | 3 | Call signaling (Cisco recommended for SIP/H.323) |
| 26 | AF31 | 104 | 0x68 | 3 | 3 | Call signaling (SIP, H.323) — Drop Precedence: Low |
| 28 | AF32 | 112 | 0x70 | 3 | 3 | Call signaling (SIP, H.323) — Drop Precedence: Medium |
| 30 | AF33 | 120 | 0x78 | 3 | 3 | Call signaling (SIP, H.323) — Drop Precedence: High |
| 32 | CS4 | 128 | 0x80 | 4 | 4 | Real-time interactive (desktop video, gaming) |
| 34 | AF41 | 136 | 0x88 | 4 | 4 | Video conferencing (real-time interactive video) — Drop Precedence: Low |
| 36 | AF42 | 144 | 0x90 | 4 | 4 | Video conferencing (real-time interactive video) — Drop Precedence: Medium |
| 38 | AF43 | 152 | 0x98 | 4 | 4 | Video conferencing (real-time interactive video) — Drop Precedence: High |
| 40 | CS5 | 160 | 0xA0 | 5 | 5 | Broadcast video (streaming media, IPTV) |
| 44 | VA | 176 | 0xB0 | 5 | 5 | VoIP with call admission control (CAC) |
| 46 | EF | 184 | 0xB8 | 5 | 5 | VoIP RTP (real-time voice bearer) |
| 48 | CS6 | 192 | 0xC0 | 6 | 6 | Network control (OSPF, BGP, EIGRP routing protocols) |
| 56 | CS7 | 224 | 0xE0 | 7 | 7 | Reserved (Cisco internal control-plane traffic) |
Published: April 2026 | Author: TriVolt Editorial Team | Last Updated: April 2026
The DSCP Field in the IP Header
Quality of Service (QoS) in IP networks relies on a single byte inside every IP packet header known as the Differentiated Services (DS) field — historically called the Type of Service (ToS) byte. Of these 8 bits, the 6 most significant bits form the DSCP (Differentiated Services Code Point). The remaining 2 bits are used by ECN (Explicit Congestion Notification) and are not part of the QoS marking.
The ToS byte decimal value you see in packet captures is therefore the DSCP value left-shifted by 2 (i.e. multiplied by 4), with the ECN bits set to zero. For example, EF (DSCP 46) gives a ToS byte of 46 × 4 = 184 (0xB8). When a device reports a ToS value with ECN bits set, you mask off the lower 2 bits with a bitwise AND of 0xFC before mapping to DSCP.
With 6 bits available, DSCP can encode 64 distinct values (0–63). Not all 64 are defined by the IETF — only three Per-Hop Behavior (PHB) groups are standardized: Default/Best Effort (BE), Expedited Forwarding (EF), and Assured Forwarding (AF). Class Selectors (CS0–CS7) provide backward compatibility with the older 3-bit IP Precedence field.
Per-Hop Behavior (PHB): Routers Act Independently
A critical concept in DiffServ is that DSCP markings carry meaning only at each individual router. There is no end-to-end signaling protocol — every router or switch simply reads the DSCP field and applies its locally configured treatment (queuing, scheduling, dropping policy). This is what "Per-Hop Behavior" means: the forwarding decision is made independently at each hop along the path.
This design keeps the network core simple and scalable. The intelligence lives in the policy configurations at each device rather than in a centralized reservation system (like IntServ/RSVP). For QoS to work end-to-end, every device in the path must be consistently configured to honor the same DSCP markings.
Expedited Forwarding (EF) — DSCP 46
Defined in RFC 3246, EF is the highest-priority PHB intended for traffic that is extremely delay-sensitive and low-latency: VoIP RTP bearer streams. EF is implemented via a strict-priority queue that is served before any other queue. The key requirement is that the EF queue must drain faster than it fills — meaning EF traffic must be rate-limited (policed) to prevent it from starving other queues.
EF maps to IP Precedence 5 and 802.1p CoS 5. In Cisco IOS you mark traffic as EF with set dscp ef in a policy-map. Voice RTP should be marked EF; signaling traffic (SIP, H.323) is typically marked CS3 or AF31, not EF.
Assured Forwarding (AF): Four Classes, Three Drop Precedences
Defined in RFC 2597, the AF PHB group provides four independent forwarding classes (AF1x through AF4x), each with three drop precedence levels. This gives 12 distinct DSCP values (AF11 through AF43).
The formula is: DSCP = 8x + 2y, where x is the AF class (1–4) and y is the drop precedence (1 = low, 2 = medium, 3 = high). AF11 = 10, AF12 = 12, AF13 = 14, AF21 = 18, and so on.
Within a single AF class, all three drop precedences share the same forwarding class (same queue), but during congestion, packets with higher drop precedence are discarded first. For example, if the AF4x queue is congested, AF43 packets are dropped before AF42, and AF42 before AF41. This allows traffic engineering to differentiate within a class — e.g., premium video subscribers at AF41 and standard subscribers at AF43.
Traffic in different AF classes (AF1x vs AF4x) has no ordering relationship — AF4x does not inherently have priority over AF1x. Priority between classes is determined by your queuing policy (CBWFQ or LLQ bandwidth allocations).
Class Selectors (CS): IP Precedence Compatibility
Before DSCP, IP networks used a 3-bit IP Precedence (IPP) field in the ToS byte (bits 7–5, the three most significant bits). Values ranged 0–7, with higher numbers indicating more important traffic.
The DiffServ architecture preserves backward compatibility through Class Selectors. CS0 through CS7 are DSCP values 0, 8, 16, 24, 32, 40, 48, and 56 respectively — calculated as DSCP = 8 × IPP. The three most significant bits of a CS DSCP value equal the original IP Precedence, so legacy devices that only read the IPP field will see the correct relative priority.
CS6 (DSCP 48) and CS7 (DSCP 56) are reserved for network control traffic (routing protocols like OSPF, BGP, EIGRP). These must never be used for user data traffic. Cisco IOS marks routing protocol packets CS6 by default.
CoS (802.1p): Layer 2 QoS in Ethernet Frames
While DSCP operates at Layer 3 (the IP header), 802.1p CoS is a Layer 2 QoS marking carried inside the 802.1Q VLAN tag. The 802.1Q tag adds a 4-byte field to the Ethernet frame; 3 of those bits (bits 15–13 of the Tag Control Information) form the Priority Code Point (PCP), commonly called CoS. This gives 8 possible values (0–7), where 7 is highest priority and 0 is best effort.
CoS markings are relevant only on 802.1Q-tagged frames (trunk links and access ports carrying VLANs). They are stripped when a frame leaves the VLAN domain. On routed interfaces, DSCP carries the QoS marking across Layer 3 boundaries. At trust boundaries, QoS policies translate between CoS and DSCP.
The standard CoS-to-DSCP mapping used by Cisco is: CoS 0 → CS0 (DSCP 0), CoS 1 → AF11 (DSCP 10), CoS 2 → AF21 (DSCP 18), CoS 3 → CS3 (DSCP 24), CoS 4 → AF41 (DSCP 34), CoS 5 → EF (DSCP 46), CoS 6 → CS6 (DSCP 48), CoS 7 → CS7 (DSCP 56).
Trust Boundaries: Where DSCP Remarking Happens
A trust boundary is the point in the network where incoming DSCP/CoS markings are either accepted as valid or overwritten. Endpoints (PCs, phones, laptops) are generally not trusted — they can mark their own traffic with any DSCP value, including EF, which would give them unfair priority.
The trust boundary is typically the access layer switch port where an endpoint connects. The switch can be configured to either:
- Trust the marking — for IP phones and managed devices that correctly mark traffic
- Remark/police — overwrite the DSCP to a safe value (e.g., CS0) for unmanaged PCs
Some access switches support "trust DSCP only if the connected device is a Cisco IP phone" (using CDP to detect the phone). This allows the phone's voice traffic (marked EF) to be trusted while the PC behind the phone has its markings reset.
Cisco IOS Configuration Commands
Enabling QoS on Cisco Catalyst switches requires mls qos globally (on older IOS platforms). On IOS-XE/NX-OS, MQC (Modular QoS CLI) is used:
! Identify VoIP RTP traffic class-map match-all VOICE-RTP match ip dscp ef ! Identify SIP signaling class-map match-all VOICE-SIGNALING match ip dscp cs3 ! Policy: strict priority for voice, guaranteed BW for signaling policy-map QOS-POLICY class VOICE-RTP priority percent 20 class VOICE-SIGNALING bandwidth percent 5 set dscp cs3 class class-default fair-queue ! Apply to interface interface GigabitEthernet0/1 service-policy output QOS-POLICY ! Mark traffic at ingress policy-map MARK-INGRESS class VOICE-RTP set dscp ef class class-default set dscp default
Worked Example: Classifying VoIP Traffic End-to-End
Consider a Cisco IP phone (model 8861) connected to an access switch. Here is the end-to-end QoS flow:
- Phone marks traffic: The phone hardware marks voice RTP packets with DSCP EF (46) and SIP signaling with DSCP CS3 (24). It also sets 802.1p CoS 5 on the voice VLAN.
- Access switch trust: The switch port is configured with
mls qos trust dscp(orauto qos voip cisco-phone). The phone's markings are preserved; if a PC plugged into the phone's built-in switch sends EF-marked traffic, the switch re-marks it to CS0. - Distribution / core: Upstream switches and routers read the DSCP field and place EF packets in the strict-priority queue, ensuring sub-150ms one-way latency for voice.
- WAN edge: The WAN QoS policy uses LLQ (Low Latency Queuing) to guarantee bandwidth for EF traffic. Voice is policed to ensure it does not exceed its allocated bandwidth.
- Remote site: The remote access switch honors the DSCP markings and delivers the packets to the remote phone with consistent low-latency treatment.
The result is predictable voice quality: less than 150ms one-way delay, less than 30ms jitter, and less than 1% packet loss — meeting the G.114 recommendation for toll-quality voice.
Frequently Asked Questions
Q: What is the difference between DSCP and ToS?
The ToS byte and the Differentiated Services (DS) byte occupy the same position in the IPv4 header. The original RFC 791 ToS interpretation used 3 bits for IP Precedence plus 4 precedence bits. RFC 2474 redefined the same byte as the DS field, using 6 bits for DSCP and 2 for ECN. Modern networks use the DS/DSCP interpretation. The ToS decimal value you see in captures equals DSCP × 4 (when ECN bits are 0).
Q: Does DSCP marking guarantee QoS?
No. DSCP is just a label — it only means something if every device in the path is configured to honor it with appropriate queuing, scheduling, and policing policies. In a network where no QoS policies are configured, DSCP markings are ignored and all traffic is treated as best-effort.
Q: Why do VoIP phones mark signaling as CS3 and not EF?
EF requires strict-priority queuing and should be reserved for the actual voice RTP media stream, which is extremely delay-sensitive. SIP signaling (INVITE, BYE, etc.) can tolerate slightly more delay and is call-setup traffic, not active media. Using EF for signaling would consume strict-priority queue bandwidth unnecessarily. CS3 gives signaling guaranteed bandwidth without monopolizing the strict-priority queue.
Q: What happens to CoS markings when a packet is routed?
802.1p CoS exists only in the Layer 2 Ethernet 802.1Q tag and is stripped at every Layer 3 hop. The DSCP value in the IP header survives routing and carries QoS information across Layer 3 boundaries. At ingress, the router maps incoming CoS to DSCP; at egress, it maps DSCP back to CoS for the outbound Layer 2 segment. This is why DSCP is the authoritative QoS marking in routed networks.
Q: What is DSCP VA (Voice Admit, DSCP 44)?
VA (Voice Admit) is defined in RFC 5865 as a variant of EF for VoIP that requires Call Admission Control (CAC). Traffic admitted by CAC is marked VA (DSCP 44) rather than EF (DSCP 46). The two values share the same PHB treatment (strict priority), but VA allows network equipment to distinguish CAC-controlled calls from calls that bypassed CAC — useful for capacity planning and policy enforcement. In practice, most deployments still use EF; VA is more common in carrier/service-provider environments.
Related Network Calculators
- Subnet Calculator — Calculate subnets, host ranges, and wildcard masks from CIDR notation
- OSPF Cost Calculator — Compute OSPF interface cost from bandwidth for optimal path selection
- ACL Wildcard Mask Tester — Verify Cisco ACL wildcard masks and match ranges
Also in Technical
- → ACL Wildcard Tester — Test whether IPs match a Cisco ACL wildcard mask. Step-by-step binary breakdown and multi-IP match table.
- → Bandwidth Calculator — Calculate data transfer time, throughput, and bandwidth requirements
- → Base64 Encoder/Decoder — Encode and decode Base64 strings
- → Color Code Converter — Convert between HEX, RGB, and HSL color formats