Use it when classifying or prioritising IP traffic end to end, or when checking that voice and video keep their marking along the path.
DSCP
Differentiated 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.
1. DSCP is a 6-bit IP marking (64 values).
2. EF 46 voice, AF classes, CS values.
3. Survives routing.
4. Providers may re-mark.
5. Keep a documented marking plan.
classify → DSCP set → each hop applies PHB
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show policy-map interface Gi1/0/1 inputVerification & 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 Checking DSCP Verify boundary
show policy-map interface Gi1/0/1 input
show platform qos dscp-cos counters interface Gi1/0/1
tcpdump -v -ni eth0 'ip[1] & 0xfc == 0xb8' # DSCP EF (46)
Documented example, not captured output. Check markings end to end; ISPs and some firewalls reset DSCP to 0.
Step 2 Common mistakes Narrow the fault
- Re-marking traffic at every hop.
- Trusting DSCP from user ports.
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.
- DSCP is the 6-bit QoS field in the IP header (0–63).
- Common values: EF (46) for voice, AF41 (34) for video, CS6 (48) for network control.
- It is preserved end to end unless rewritten.
show policy-map interface <interface>— set dscp counters- Wireshark filter ip.dsfield.dscp == 46 — verify EF
ReferenceWhat it is1 section · depth on demand
Common DSCP values
| Class | DSCP | Decimal | Use |
|---|---|---|---|
| EF | 101110 | 46 | Voice |
| AF41 | 100010 | 34 | Interactive video |
| CS3 | 011000 | 24 | Call signalling |
| AF21 | 010010 | 18 | Transactional data |
| CS6 | 110000 | 48 | Routing protocols |
| Default (BE) | 000000 | 0 | Everything else |
AF classes are AFxy: x is the class (queue), y is drop precedence (1 low, 3 high). Mark as close to the source as possible and re-mark at the trust boundary; show policy-map interface shows matches per class.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
DSCP: the Differentiated Services Code Point
The DSCP is the 6-bit value in the IP header that tells each router which per-hop behaviour to apply. RFC 2474 defines it as the top six bits of the DS field (the remaining two bits, CU, are ignored for PHB selection), requires nodes to match on all six bits, makes 000000 the mandatory default (best effort) and defines eight class selector codepoints (xxx000) for compatibility with IP Precedence.
Codepoint pools (RFC 2474)
| Pool | Pattern | Use |
|---|---|---|
| 1 | xxxxx0 | 32 standard codepoints |
| 2 | xxxx11 | Experimental or local use |
| 3 | xxxx01 | Experimental or local; standards use if pool 1 runs out |
Common values
| Name | Binary | Decimal | Typical use |
|---|---|---|---|
| Default (CS0) | 000000 | 0 | Best effort |
| CS1 | 001000 | 8 | Scavenger / lower effort |
| AF21 | 010010 | 18 | Transactional data |
| AF31 | 011010 | 26 | Signalling / multimedia streaming |
| AF41 | 100010 | 34 | Interactive video |
| CS6 | 110000 | 48 | Network control |
| EF | 101110 | 46 | Voice |
Assured Forwarding (AF) and Expedited Forwarding (EF) are defined in later RFCs; the class selectors and the default come from RFC 2474.
Class selectors and IP Precedence (RFC 2474)
| IP Precedence | Class selector | DSCP |
|---|---|---|
| 0 | CS0 | 0 |
| 3 | CS3 | 24 |
| 5 | CS5 | 40 |
| 6 | CS6 | 48 |
Higher class selectors must get forwarding treatment no worse than lower ones.
host$ sudo tcpdump -ni eth0 -v udp portrange 16384-32767 | grep -o "tos 0x[0-9a-f]*"
tos 0xb8
R1# show policy-map interface GigabitEthernet0/0/0 output class VOICE
Match: dscp ef (46)
Packets matched 48211
ToS byte 0xb8 is DSCP 46 (EF) shifted left by two bits.
Converting
DSCP = ToS byte ÷ 4. Packet captures often show the ToS byte (for example 0xb8), while device configuration uses DSCP names or decimal values.
Documented example, not captured output.
Quick reference
DSCP is the six-bit field in the IP header that carries a packet's QoS class from device to device. Values have standard meanings — EF for voice, AF classes for prioritised data, CS values for control traffic — so that independently configured networks can treat traffic consistently. Marking only works if it is trusted at the right place: mark as close to the source as possible, and reset markings from untrusted devices so that users cannot give their own traffic priority.
DSCP (6 bits in the IP ToS/Traffic Class byte) marks per-hop behaviour:
| Traffic | DSCP | Value |
|---|---|---|
| Voice | EF | 46 |
| Interactive video | AF41 | 34 |
| Call signalling | CS3 | 24 |
| Transactional data | AF21 | 18 |
| Bulk data | AF11 | 10 |
| Scavenger | CS1 | 8 |
| Best effort | DF/CS0 | 0 |
| Network control | CS6 | 48 |
AF classes have drop precedence (AFx1 low, AFx3 high). Mark as close to the source as possible and re-mark untrusted traffic at the access edge (no mls qos trust / trust only phones via trust device cisco-phone).
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 → DSCP. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc2475.html · confidence 94%