QoS ensures that delay-sensitive traffic (voice and video) is prioritized correctly under network load.

Facts

Term Explanation
Latency Delay from sender to receiver
Jitter Variation in latency (very critical for voice)
Packet loss Lost packets (very critical for voice/video)
Bandwidth Available capacity
Congestion Traffic exceeds link capacity
Classification Identifying traffic
Marking Marking traffic (DSCP/CoS)
Queuing How packets are placed in queues
Policing Drop/remark when traffic exceeds a rate
Shaping Buffer + send at an even rate

Why is QoS necessary?

Networks are best-effort by default – all packets are treated the same, so voice/video competes with backups and downloads. Without QoS: robot voice, choppy video, dropped calls, bad user experience.

The QoS pipeline

  1. Classification – what type of traffic?
  2. Marking – mark it
  3. Queuing – prioritize in queues
  4. Congestion management – what goes first?
  5. Congestion avoidance – avoid queue overflow
  6. Policing/shaping – control bandwidth

Traffic types

Models

Model Explanation
Best effort Default – no prioritization
IntServ RSVP, per-flow reservation (scales badly)
DiffServ Classify + mark + prioritize (used in practice)

👉 Cisco and CCNA/CCNP focus on DiffServ.

Marking

Traffic DSCP
Voice EF (46)
Video AF41
Data BE (0)

Trust boundary

Where do we trust the marking? Access port to a PC → untrusted; IP phone → trusted; switch/router remark when needed. Wrong trust boundary = QoS doesn’t work.

Queuing – the heart of QoS

Congestion management vs avoidance

Policing vs shaping

Policing Shaping
Drops/remarks Buffers + delays
Ingress Egress
Fast Smooths traffic

Typical enterprise design

Configuration (MQC)

! 1) Class-map (classification)
class-map match-any VOICE
 match dscp ef
class-map VIDEO
 match dscp af41

! 2) Policy-map (handling)
policy-map QOS-POLICY
 class VOICE
  priority percent 10
 class VIDEO
  bandwidth percent 30
 class class-default
  fair-queue

! 3) Apply on interface
interface GigabitEthernet0/0
 service-policy output QOS-POLICY

Special considerations

Extras: scavenger class, hierarchical QoS (HQoS), wireless QoS (WMM), AutoQoS.