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.

CS0-CS7, AF11-AF43, EF, VA, LE, DF or 0-63
the low two bits of the DS field

Reverse lookup: 802.1p priority

Named DSCP codepoints and their usual 802.1p pairing
CodepointDSCPDS fieldPer-hop behavior802.1p
CS0 / DF00x00Default / best effort0
LE10x04Lower Effort (LE)1
CS180x20Class Selector 11
AF11100x28Assured Forwarding AF11 (class 1, drop 1)1
AF12120x30Assured Forwarding AF12 (class 1, drop 2)1
AF13140x38Assured Forwarding AF13 (class 1, drop 3)1
CS2160x40Class Selector 22
AF21180x48Assured Forwarding AF21 (class 2, drop 1)2
AF22200x50Assured Forwarding AF22 (class 2, drop 2)2
AF23220x58Assured Forwarding AF23 (class 2, drop 3)2
CS3240x60Class Selector 33
AF31260x68Assured Forwarding AF31 (class 3, drop 1)3
AF32280x70Assured Forwarding AF32 (class 3, drop 2)3
AF33300x78Assured Forwarding AF33 (class 3, drop 3)3
CS4320x80Class Selector 44
AF41340x88Assured Forwarding AF41 (class 4, drop 1)4
AF42360x90Assured Forwarding AF42 (class 4, drop 2)4
AF43380x98Assured Forwarding AF43 (class 4, drop 3)4
CS5400xA0Class Selector 55
VA440xB0Voice Admit (VA)5
EF460xB8Expedited Forwarding (EF)5
CS6480xC0Class Selector 66
CS7560xE0Class Selector 77

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.