Classification and queuing
Classify before scheduling
Quality of service (QoS) is the treatment of traffic when resources are limited. A call needs timely packets, whereas a backup can usually wait. At a managed office edge, classify approved voice traffic separately from bulk transfers; then choose how each queue is served. QoS redistributes available capacity and delay; it cannot increase physical link speed.
DSCP and trust boundaries
Differentiated Services (DiffServ) groups packets into traffic classes. In IPv4 and IPv6 the DSCP occupies six bits of the eight-bit DS field; the other two bits carry ECN. DSCP 46 is the usual Expedited Forwarding (EF) codepoint, 0 is default forwarding, and AF classes provide differentiated drop preferences. A mark selects a configured per-hop behavior, not an end-to-end promise. At an untrusted ingress, validate classification and rewrite unauthorized marks according to policy. Ports alone do not prove application identity.
Compare FIFO and priority
A FIFO queue serves packets in arrival order. Strict priority serves the highest eligible nonempty queue first at each scheduling decision; an ordinary nonpreemptive link cannot interrupt a frame already transmitting. Consider a fictional 10 Mbit/s link with three 1,000-byte frames waiting simultaneously in the order B1, B2, V. V is approved voice. Each takes 0.8 ms to serialize, ignoring all extra overhead. Under FIFO V completes at 2.4 ms; under strict priority it completes at 0.8 ms.
Link: 10 Mbit/s; all frames ready at t=0FIFO: B1 | B2 | VPriority: V | B1 | B2Each slot = 0.8 msShare service without starvation
Unlimited priority traffic can prevent lower classes from making progress. Bound the admitted priority load and allocate other classes service using weighted scheduling. In an idealized weighted byte-rate scheduler with weights 1 and 3 and both queues continuously backlogged on a 20 Mbit/s link, shares are 5 and 15 Mbit/s. Packet-based round robin is not necessarily byte-fair when packet sizes differ; real implementations have granularity and borrowing rules.
Verify the policy
Inspect classification counters, queue occupancy and class-specific drops under a bounded workload. A DSCP capture alone cannot prove the scheduler honored the marking. Compare baseline and changed policies using identical inputs and verify that ordinary traffic still progresses. Practice by adding one bulk frame before V and recomputing FIFO completion. Next, learn how to limit admitted traffic.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Classification and queuing Quiz
Apply QoS concepts to synthetic offline scenarios.
Which field contains the six-bit traffic marking?
An untrusted host marks a backup EF. What should the edge do?
Four 1,000-byte frames are queued on a 10 Mbit/s link. What is the last completion time in FIFO, ignoring overhead?
A nonpreemptive link is already sending a bulk frame when voice arrives. What happens?
Why bound a strict-priority class?