redzilla
Performance

DSCP / QoS Converter

Translate a QoS marking between DSCP (EF, AFxy, CSx), the ToS/DS byte in hex and binary, IP Precedence and 802.1p CoS, with the meaning of each class (PHB). Type a number 0–63, a name or the byte 0–255. Everything in your browser.

Accepts a name (default, CS0–CS7, AF11–AF43, EF), a number or a byte in hex (0x…).

If you type a number, read it as

A name or a hex value is detected automatically. A ToS/DS byte is divided by 4 to get the DSCP.

Examples
redzilla.cl — dscp
 
DSCP
Name
ToS/DS
CoS
DSCP
ToS/DS byte
DSCP × 4 · bits 7–2
IP Precedence · CoS
DSCP ÷ 8 (top 3 bits)

Class meaning (PHB)

DS / ToS byte breakdown

BitsFieldValue

DSCP bits (7–2) ECN bits (1–0, here 0)

Common QoS markings

NameDSCPToS hexPrec.CoS
How it is calculated · DSCP, ToS, IP Precedence and CoS

1. The DSCP is the top 6 bits of the differentiated services (DS) byte, formerly the ToS field. It ranges from 0 to 63.

2. The full byte is ToS = DSCP × 4 (DSCP << 2): the DSCP occupies bits 7–2 and the low 2 bits (1–0) are ECN, here set to 0.

3. The IP Precedence and the suggested 802.1p CoS are the top 3 bits: DSCP ÷ 8 (DSCP >> 3), from 0 to 7.

4. Names: CSx = x·8, AFxy = 8·x + 2·y (class x, drop precedence y) and EF = 46 for low-latency voice.

Runs locally in your browser · no sign-up · nothing leaves your browser.

Was this tool useful?
Disclaimer We take great care to keep every tool accurate and review it thoroughly; even so, we can't guarantee it is free of errors or take responsibility for how the results are used. We recommend double-checking anything critical.
Found an error? Let us know →