prefixkit Ask an engineerAsk Support RU

VoIP & telephony

DSCP and QoS for VoIP

Converts DSCP to the ToS byte, IP precedence, 802.1p CoS and Wi-Fi WMM, with the full RFC 4594 class table. Plus ready marking for voice (EF) and SIP (CS3) on MikroTik, Linux, Asterisk, Cisco and Windows.

Marking voice and SIP

DSCP table

Click a row to convert it.

NameDSCPBinaryToSCoSWMMUsed for
CS000000000 / 0x000AC_BEDefault, best effort
LE10000014 / 0x040AC_BKLower effort (RFC 8622)
CS1800100032 / 0x201AC_BKLow-priority data, scavenger
AF111000101040 / 0x281AC_BEHigh-throughput data
AF121200110048 / 0x301AC_BEHigh-throughput data
AF131400111056 / 0x381AC_BEHigh-throughput data
CS21601000064 / 0x402AC_BEOAM (management)
AF211801001072 / 0x482AC_BELow-latency data
AF222001010080 / 0x502AC_BELow-latency data
AF232201011088 / 0x582AC_BELow-latency data
CS32401100096 / 0x603AC_VIBroadcast video; SIP signalling on Cisco and Asterisk
AF3126011010104 / 0x683AC_VIMultimedia streaming
AF3228011100112 / 0x703AC_VIMultimedia streaming
AF3330011110120 / 0x783AC_VIMultimedia streaming
CS432100000128 / 0x804AC_VIReal-time interactive
AF4134100010136 / 0x884AC_VIMultimedia conferencing (video calls)
AF4236100100144 / 0x904AC_VIMultimedia conferencing
AF4338100110152 / 0x984AC_VIMultimedia conferencing
CS540101000160 / 0xa05AC_VISignalling (SIP per RFC 4594)
VA44101100176 / 0xb05AC_VOVoice admit (RFC 5865)
EF46101110184 / 0xb85AC_VOTelephony: voice RTP
CS648110000192 / 0xc06AC_VONetwork control (BGP, OSPF)
CS756111000224 / 0xe07AC_VOReserved

How it works

DSCP is the top 6 bits of the ToS byte in the IP header, so ToS = DSCP × 4: EF (46) is ToS 184 or 0xB8. Older devices only read the top 3 bits (IP precedence), which is also what switches copy to 802.1p CoS and Wi-Fi maps to WMM. Voice gets EF, SIP signalling CS3 (the Cisco and Asterisk default) or CS5 (per RFC 4594), video calls AF41.

Marking only helps where something honours it: your router’s queue to the internet and the corporate network. ISPs on the internet usually reset DSCP. For VoIP at home or in the office, the key is not letting downloads fill the line: use SQM/CAKE or a priority queue for EF. See the MikroTik generator with CAKE. Bandwidth per call: VoIP bandwidth calculator.

Idea?