Concepts / Quality of service

Quality of service

DSCP

Also called DiffServ code point, EF, AF41, CS1, type of service, ToS

Six bits in the IP header that mark a packet's traffic class, such as EF (46) for voice.

Six bits of one IP header byte carry the class
Six bits of one IP header byte carry the class

The DSCP is the first six bits of the old type-of-service byte; the last two are ECN. EF is 46, which makes the whole byte 0xb8. The mark is only a request: a router acts on it only if configured to.

DSCP is a 6-bit mark in the IP header naming a packet's traffic class; it shares the old type-of-service byte with 2 ECN bits. EF (46, byte 0xb8) is for voice, AF41 (34) video, CS1 (8) bulk that may wait, 0 the rest. A mark is a request: routers act on it only if configured to, and networks re-mark untrusted traffic. Most of the internet ignores or clears it.

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab