1 Gb/s10 Mb/sBULK LEONE LINESTANDARD DFVOICE EFEFEFEFEFDFDFDFDFLELELELELELEEF666 waitingwhich class?EF 46 · DF 0 · LE 1voice first3 : 1✕ EF over 1 Mb/s2 Mb/s, steady
Envelopes: packets; flags show the DSCP mark (EF voice, DF standard, LE backup)Trays: the queues; front voice, middle standard, back bulk; heads on the rightOrange disc: the scheduler, which picks the next packet for the 10 Mb/s uplinkMeter: the voice packet's worst-case wait and the backup's share of the uplinkYour laptop's voice call and a backup PC's upload share one 10 Mb/s uplink. In one first-in, first-out line the call waits up to 798 ms behind the backup. QoS classifies each packet, marks its DSCP (RFC 2474: EF 46 for voice, RFC 3246; LE 1 for the backup, RFC 8622; DF 0 for the rest), gives each class its own queue, sends voice first (at most 1.2 ms of waiting) and shares the rest by weight; policing drops traffic over a rate, shaping delays it. The weights (3 : 1), the 1 Mb/s voice policer and the 2 Mb/s backup shaper are illustrative settings. The voice packet is G.711 with 20 ms of sound per packet; the 798 ms wait is a full 1 MB buffer on a 10 Mb/s link, from the queues and buffering lesson. 192.168.1.20 and 192.168.1.30 are private home addresses (RFC 1918); 198.51.100.1, 192.0.2.40 and 203.0.113.20 are documentation addresses (RFC 5737).

The problem

  1. Your laptop is on a voice call while a backup PC uploads photos, all through one 10 Mb/s uplink. With no quality of service (QoS) rules, every packet joins one first-in, first-out line. Your voice packet waits behind 665 others: 798 ms.

Sort and mark

Who goes first

Keeping rates in check

The arithmetic

;; step 1/10 · one-line · fifo
;; your laptop → isp
voice   192.168.1.20 → 192.0.2.40   UDP/RTP, 200 bytes
backup  192.168.1.30 → 203.0.113.20:443   TCP, 1,500 bytes
one FIFO line, full (queues-buffers lesson: 1 MB buffer)
ahead   665 × 1,500 B × 8 / 10 Mb/s = 665 × 1.2 ms = 798 ms
budget  ITU-T G.114: about 150 ms one way for the whole trip

Each tray draws at most 7 envelopes; real queues can hold hundreds of packets. QoS only matters where packets queue: at the slowest link, usually your uplink. Many networks, including most of the internet, ignore or reset DSCP marks they do not trust.