QoS Codepoint Mapper
Decode a DSCP name or value into its six-bit codepoint, DS field byte, IP precedence, per-hop behavior and the 802.1p priority an enterprise QoS design usually pairs it with.
Reverse lookup: 802.1p priority
| Codepoint | DSCP | DS field | Per-hop behavior | 802.1p |
|---|---|---|---|---|
| CS0 / DF | 0 | 0x00 | Default / best effort | 0 |
| LE | 1 | 0x04 | Lower Effort (LE) | 1 |
| CS1 | 8 | 0x20 | Class Selector 1 | 1 |
| AF11 | 10 | 0x28 | Assured Forwarding AF11 (class 1, drop 1) | 1 |
| AF12 | 12 | 0x30 | Assured Forwarding AF12 (class 1, drop 2) | 1 |
| AF13 | 14 | 0x38 | Assured Forwarding AF13 (class 1, drop 3) | 1 |
| CS2 | 16 | 0x40 | Class Selector 2 | 2 |
| AF21 | 18 | 0x48 | Assured Forwarding AF21 (class 2, drop 1) | 2 |
| AF22 | 20 | 0x50 | Assured Forwarding AF22 (class 2, drop 2) | 2 |
| AF23 | 22 | 0x58 | Assured Forwarding AF23 (class 2, drop 3) | 2 |
| CS3 | 24 | 0x60 | Class Selector 3 | 3 |
| AF31 | 26 | 0x68 | Assured Forwarding AF31 (class 3, drop 1) | 3 |
| AF32 | 28 | 0x70 | Assured Forwarding AF32 (class 3, drop 2) | 3 |
| AF33 | 30 | 0x78 | Assured Forwarding AF33 (class 3, drop 3) | 3 |
| CS4 | 32 | 0x80 | Class Selector 4 | 4 |
| AF41 | 34 | 0x88 | Assured Forwarding AF41 (class 4, drop 1) | 4 |
| AF42 | 36 | 0x90 | Assured Forwarding AF42 (class 4, drop 2) | 4 |
| AF43 | 38 | 0x98 | Assured Forwarding AF43 (class 4, drop 3) | 4 |
| CS5 | 40 | 0xA0 | Class Selector 5 | 5 |
| VA | 44 | 0xB0 | Voice Admit (VA) | 5 |
| EF | 46 | 0xB8 | Expedited Forwarding (EF) | 5 |
| CS6 | 48 | 0xC0 | Class Selector 6 | 6 |
| CS7 | 56 | 0xE0 | Class Selector 7 | 7 |
The DiffServ field is the old IPv4 TOS byte: the top six bits are the DSCP and the low two bits are ECN, so the DS field byte is the codepoint multiplied by four plus the ECN value. Class Selector codepoints are multiples of eight, and the Assured Forwarding codepoints follow AFxy = 8x + 2y with class x from 1 to 4 and drop precedence y from 1 to 3. The three-bit IP precedence is simply the top three bits, so AF41 (34) sits at precedence 4. DSCP names and values here are the standard ones; any other value from 0 to 63 is reported as unassigned rather than guessed. The 802.1p column is a conventional pairing for enterprise designs, not a standard: a switch trusts, rewrites or ignores the priority field according to its own policy, and the DSCP is what actually selects the queue on a routed path, so check the device configuration before relying on either marking. ECN is shown for completeness; this tool maps markings only and does not shape, remark or test traffic. Everything runs locally in your browser.