Copyright (c) 2026 MindMesh Academy. All rights reserved. This content is proprietary and may not be reproduced or distributed without permission.

5.7.1. QoS Mechanisms

MechanismWhat It DoesAnalogy
ClassificationIdentify traffic types (ACL, NBAR, port numbers)Check passenger's ticket
MarkingTag packets with priority (DSCP, CoS)Stamp "PRIORITY" on boarding pass
QueuingPut packets in different lines based on marksMultiple security lines
Congestion avoidanceProactively drop low-priority before queue fillsClose regular line when busy
PolicingHard rate limit—drop excess immediately"No more passengers"
ShapingSoft rate limit—buffer excess for later"Wait in holding area"

The QoS pipeline: Traffic flows through these stages in order. First, classify it (what kind of traffic is this?). Then mark it (attach a priority label). Then queue it (put it in the right line). Finally, transmit based on queue priorities.

Policing vs Shaping—when do you use each?
  • Policing: Enforces contracts. ISPs police customer traffic at the edge—exceed your limit, excess gets dropped.
  • Shaping: Smooths traffic. You shape outbound traffic to avoid overwhelming a slow WAN link.