QoS Fundamentals
Congestion and competing traffic
Quality of Service (QoS) is a set of mechanisms for giving traffic different forwarding treatment. Congestion occurs when demand exceeds available service capacity. Queues hold waiting packets; a full queue may drop packets. Voice is sensitive to delay, loss and delay variation (jitter); a backup transfer may tolerate more waiting. QoS changes allocation and behavior under contention; it cannot increase physical link capacity.
Classification, marking and scheduling
Classification groups packets by trusted policy criteria such as application identity or validated markings. Marking sets a label; in IP the six-bit DSCP field can indicate a desired per-hop behavior within a differentiated-services domain. The other two bits of the DS octet are used for ECN. A scheduler decides which queue transmits next; strict priority can starve other queues if unbounded, so use admission or rate controls. Weighted scheduling can share capacity. DSCP alone does not reserve bandwidth or guarantee treatment across other networks; a boundary can remark packets.
Shaping versus policing
Shaping delays excess traffic in a buffer to conform to a configured rate, subject to buffer capacity. Policing measures traffic and applies an action to nonconforming packets, often dropping or remarking them rather than waiting. Both can use burst allowances; neither is exactly a constant per-second cap in every implementation. Shaping can increase delay; policing can increase loss. Choose based on service needs and where the bottleneck lies.
Worked example: one congested link
Assume a 10 Mb/s link and a simplified sustained-rate model with no packet overhead. Voice offers 2 Mb/s and backup offers 12 Mb/s. A bounded priority class admits all 2 Mb/s voice; the remaining 8 Mb/s serves backup. Excess backup demand is 4 Mb/s; if sustained, finite buffering eventually fills unless upstream demand reduces. Total service is 10 Mb/s, not 14. For a separate delay trace of 20, 35, 25 ms, the absolute successive differences are 15 and 10 ms; their mean is 12.5 ms. This is a simple chosen delay-variation metric, not RTP’s standardized jitter estimator.
Link capacity: 10 Mb/sVoice offered / served: 2 / 2 Mb/sBackup offered / served: 12 / 8 Mb/sUnserved demand: 4 Mb/sDelay samples: 20, 35, 25 msPractice and common mistakes
On a 20 Mb/s link with admitted voice demand of 3 Mb/s and bulk demand of 25 Mb/s, the bulk class receives at most 17 Mb/s in this model and has 8 Mb/s excess demand. Measure loss, delay, queue occupancy and throughput by class before and after a policy change in an approved lab. Do not trust client markings blindly or prioritize every application. Real packet scheduling, burst behavior and queue sizes require device-specific evidence.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
QoS Fundamentals Quiz
Apply the lesson to offline network scenarios.
On a 10 Mb/s link, 2 Mb/s of admitted voice is served first. How much capacity remains?
Which mechanism typically delays excess traffic to conform to a configured rate?
What does a DSCP marking guarantee on an arbitrary remote network?
What is a risk of unbounded strict priority scheduling?
For delay samples 20, 35, 25 ms, what is the mean absolute successive difference?