Workflow Tools Control Yard

Home / Network

DSCP, ToS and CoS converter

Enter a DSCP value such as 46 or AF41, or a ToS byte such as 0xB8 as packet captures show it. The page gives the DSCP in decimal, in binary and by name, the ToS byte, the top three bits, which are the IP precedence and which many devices copy into the CoS, and the Wi-Fi priority RFC 8325 recommends. It works in your browser.

How DSCP, ToS and CoS fit together

The DSCP is the top six bits of the byte that IPv4 called Type of Service (ToS) and IPv6 calls Traffic Class. The last two bits of that byte are for ECN, explicit congestion notification. So the ToS byte is the DSCP times 4 when ECN is not in use: DSCP 46 (EF) is the ToS byte 184, 0xB8, which is how many capture tools show it.

The top three bits of the DSCP are the old IP precedence. A class selector, CS0 to CS7, is a DSCP whose last three bits are 0, so CSn is n times 8. In an assured forwarding name AFxy, x is the class and y the drop precedence, and the DSCP is 8x + 2y. Many devices copy the top three bits into their layer 2 marking: the 802.1p CoS, or the Wi-Fi user priority. RFC 8325 notes that this puts EF in priority 5, video, and recommends priority 6, voice, for it on Wi-Fi.

Named DSCP values

The codepoints of the IANA registry, with the service class RFC 4594 gives them and the Wi-Fi user priority (UP) and access category RFC 8325 recommends. Select a name to read it above.

NameDSCPBitsToSTop 3 bitsService class (RFC 4594)Wi-Fi UPWhat it is forDefined in
CS000000000x000Standard0Default forwarding: best effort, what unmarked traffic gets.RFC 2474
LE10000010x040Low-Priority Data1Lower effort: traffic that may wait behind everything else, best effort included.RFC 8622
CS180010000x201Low-Priority Data (legacy)1Class selector 1. RFC 4594 put low-priority data here; RFC 8622 now uses LE for that.RFC 2474
AF11100010100x281High-Throughput Data0Assured forwarding class 1, low drop precedence: bulk data such as file transfers.RFC 2597
AF12120011000x301High-Throughput Data0Assured forwarding class 1, medium drop precedence.RFC 2597
AF13140011100x381High-Throughput Data0Assured forwarding class 1, high drop precedence.RFC 2597
CS2160100000x402OAM0Class selector 2: operations, administration and management traffic.RFC 2474
AF21180100100x482Low-Latency Data3Assured forwarding class 2, low drop precedence: low-latency data such as transactions. Teams marks screen sharing with it.RFC 2597
AF22200101000x502Low-Latency Data3Assured forwarding class 2, medium drop precedence.RFC 2597
AF23220101100x582Low-Latency Data3Assured forwarding class 2, high drop precedence.RFC 2597
CS3240110000x603Broadcast Video4Class selector 3: broadcast video.RFC 2474
AF31260110100x683Multimedia Streaming4Assured forwarding class 3, low drop precedence: streaming audio and video.RFC 2597
AF32280111000x703Multimedia Streaming4Assured forwarding class 3, medium drop precedence.RFC 2597
AF33300111100x783Multimedia Streaming4Assured forwarding class 3, high drop precedence.RFC 2597
CS4321000000x804Real-Time Interactive4Class selector 4: real-time interactive traffic.RFC 2474
AF41341000100x884Multimedia Conferencing4Assured forwarding class 4, low drop precedence: video conferencing. Teams marks video with it.RFC 2597
AF42361001000x904Multimedia Conferencing4Assured forwarding class 4, medium drop precedence.RFC 2597
AF43381001100x984Multimedia Conferencing4Assured forwarding class 4, high drop precedence.RFC 2597
CS5401010000xA05Signaling5Class selector 5: call signaling. Teams marks calling and meetings signaling with it.RFC 2474
VOICE-ADMIT441011000xB056Capacity-admitted traffic, such as voice calls that a call admission control has accepted.RFC 5865
NQB451011010xB450, 3 or 5Non-queue-building traffic: small, steady flows that should not wait behind large ones. Networks without it treat it as default.RFC 9956
EF461011100xB85Telephony6Expedited forwarding: voice. Teams marks audio with it.RFC 3246
CS6481100000xC06Network Control7 or 0Class selector 6: network control, such as routing protocols.RFC 2474
CS7561110000xE077 or 0Class selector 7: kept for future network control.RFC 2474

Microsoft Teams

The source ports and DSCP values Microsoft recommends for Teams. Microsoft's page says the port ranges can be changed but the DSCP values cannot, and that the signaling ports cannot be changed either.

MediaSource portsProtocolDSCPDSCP name
Audio50000 to 50019TCP/UDP46Expedited Forwarding (EF)
Video50020 to 50039TCP/UDP34Assured Forwarding (AF41)
Application/Screen Sharing50040 to 50059TCP/UDP18Assured Forwarding (AF21)
Calling and Meetings Signaling50070 to 50089UDP40Class Selector 5 (CS5)

Sources

More Network tools