What is Quality of Service (QoS)?

When a network link fills up, something has to wait. QoS is how you decide that voice and video go first, and bulk downloads wait their turn.

Build the network QoS runs on

Free interactive lab. No signup. Runs in your browser.

Quick Summary

The Highway Priority Lane Analogy

Imagine a busy highway during rush hour. When the lanes are wide open and empty, every vehicle — ambulances, buses, and slow cargo trucks alike — moves at full speed. Nobody needs special treatment because there is plenty of room for everyone.

But when the highway gets jammed, the picture changes. Now we want the ambulance and the bus to get waved through a priority lane, because the people inside them cannot afford to wait. The cargo truck hauling a bulk shipment, on the other hand, can sit in traffic for a few extra minutes without any real harm — its delivery is not time-critical.

Quality of Service (QoS) is exactly this idea applied to a network. Voice calls and video conferences are the ambulances and buses: they are time-sensitive and must arrive promptly and steadily. Backups, file downloads, and email are the cargo trucks: they can tolerate delay. QoS is the set of techniques that lets a router wave the time-critical traffic through first when the link is congested.

One crucial point up front: QoS does not create extra bandwidth. It cannot widen the highway. All it can do is decide who goes first when the road is full. With no congestion, QoS does almost nothing — it earns its keep precisely at the moment a link is saturated.

How QoS Treats a Congested Link

Here three kinds of traffic arrive at a router whose outbound link is full. QoS sorts them into separate queues so the most time-sensitive traffic is sent first:

Classify → Queue → Schedule onto a congested link Voice (VoIP) marked EF · high priority Video marked AF · medium Bulk download best-effort · low Router queues Priority (LLQ) — voice Weighted (CBWFQ) — video Best-effort — bulk scheduler Outbound link FULL / congested Sent first: Voice then Video then Bulk When the link is full, the scheduler drains the priority queue first. Voice gets low delay and low jitter; bulk waits and may be dropped (WRED) before queues overflow.

QoS Priority Queue Simulator

Congest one router link with three traffic types. With QoS on, voice goes first and stays smooth; turn it off and everything competes equally. (Illustrative — numbers are simplified.)

QoS ON — priority queuing

Press “Congest the link” to start. Toggle QoS to compare.

The takeaway from the simulator is the heart of QoS: when the link is full, order of service is everything. With QoS on, the router empties the voice queue first, so calls stay clear. With QoS off, voice packets wait in the same line as a giant download and arrive late and unevenly — that is what makes a call sound robotic or cut out.

How QoS Works, Step by Step

1

Classification & Marking

First the network must identify each kind of traffic — is this packet a voice call, a video stream, or a backup? Once identified, the packet is marked so every downstream device knows how to treat it. The most common mark is DSCP, six bits in the IP header (Layer 3); for example, voice is typically marked EF (Expedited Forwarding). At Layer 2, the equivalent is the CoS value inside the 802.1Q VLAN tag. Marking near the source means routers and switches along the whole path can act consistently without re-inspecting the packet each hop.

2

Queuing

A single link cannot send everything at once, so traffic is sorted into separate queues, one per class. A priority queue, often called a low-latency queue (LLQ), holds voice and is always serviced first so it experiences the least delay. Other classes are handled by schemes like CBWFQ (Class-Based Weighted Fair Queuing), which give each class a guaranteed weighted share of the remaining bandwidth. This is why your video call keeps a steady slice even while a big download is running.

3

Congestion Management & Avoidance

A scheduler decides the order in which queued packets are sent — this is congestion management. Congestion avoidance goes a step further and acts before a queue is completely full. A technique called WRED (Weighted Random Early Detection) proactively drops a few lower-priority packets as a queue starts to fill, which signals senders to slow down and prevents the harsh, all-at-once losses ("tail drop") that happen when a queue overflows completely.

4

Policing vs. Shaping

Both enforce a maximum rate, but they react to excess traffic differently. Policing drops or re-marks packets that exceed the rate immediately — it adds no delay but is harsh. Shaping instead buffers excess packets and releases them smoothly over time, avoiding drops at the cost of extra delay and a queue. A useful mental image: policing is a hard speed bump that throws off anything too fast, while shaping is a metered on-ramp that lets cars on at a steady pace. Remember the big picture — QoS allocates the bandwidth you have; it never adds more.

QoS in the Real World

Here are three everyday situations where QoS quietly decides whether your experience is smooth or frustrating:

📞

VoIP Phone System

An office IP-phone system marks all voice as EF and places it in a priority queue. Even when the same internet link is saturated by cloud backups at 5 p.m., calls stay crystal clear because voice packets — tiny and time-critical — are always sent first with minimal delay and jitter.

🎥

Video Conferencing

A video call needs a steady, guaranteed slice of bandwidth. Using CBWFQ, the network reserves a weighted share for video so frames keep flowing smoothly. Bulk downloads are pushed into a best-effort class and simply use whatever is left over, so they never starve the meeting.

🌍

Branch WAN Link

A branch office often connects over a slower or rate-limited WAN circuit. The edge router shapes outbound traffic to the circuit's contracted rate — smoothing bursts to avoid drops — while giving voice and business apps priority over recreational browsing on the same link.

Common QoS Mistakes

QoS is powerful but easy to misconfigure. Watch out for these classic traps:

⚠

Expecting QoS to Add Bandwidth

QoS does not create capacity — it only reorders who goes first. If a link is permanently overloaded for every class, no amount of marking fixes it; you need more bandwidth. QoS shines during temporary congestion, choosing winners and losers, not during a chronic shortage that hurts everyone.

⚠

Inconsistent or Untrusted Markings

If one device marks voice as EF but the next router does not trust that mark and re-classifies everything to best-effort, the priority is lost. Markings must be applied near the source and honored consistently hop by hop — otherwise time-critical traffic silently loses its priority partway across the network.

⚠

Confusing Policing with Shaping

Using policing where you needed shaping causes needless packet drops: policing simply discards anything over the rate, while shaping would have buffered and smoothed the burst. For traffic you send into a slower link, shaping is usually the gentler, more effective choice.

The Four Metrics QoS Manages

Every QoS decision comes back to four measurable things. Bandwidth (throughput) is how much data the link can carry per second. Delay (latency) is how long a packet takes to travel end to end. Jitter is the variation in that delay from packet to packet — steady delay is fine, but uneven delay wrecks real-time media. Packet loss is the fraction of packets that never arrive. Bulk transfers shrug off high delay and occasional loss because protocols like TCP simply retransmit. Voice and video cannot — a retransmitted voice packet would arrive too late to be useful, so the network must get it right the first time, which is exactly what low latency, low jitter, and low loss provide.

Where Marking Lives: DSCP and CoS

Marking happens at two layers. At Layer 3, the 6-bit DSCP field sits in the IP header, so the mark survives across routers and the wider internet path. Common values include EF for voice and the AF (Assured Forwarding) classes for video and important data. At Layer 2, the 3-bit CoS field lives in the 802.1Q VLAN tag and only exists on tagged Ethernet links — it is stripped when a frame leaves the switched segment. Well-designed networks map between the two so priority is preserved as traffic crosses from switches to routers.

The bottom line: QoS is the network's traffic cop. It classifies and marks each packet, sorts traffic into queues, schedules the time-critical classes first, and uses policing and shaping to keep everything within limits. It never widens the road — but when the road is full, it makes sure the ambulance always gets through.

Frequently asked questions about QoS

What is Quality of Service (QoS)?

QoS is a set of techniques for managing network traffic so that important or time-sensitive applications get the treatment they need when links are congested. It works by classifying and marking traffic, placing it into separate queues, and using scheduling, congestion avoidance, policing, and shaping to control which packets go first and which are delayed or dropped. QoS does not add bandwidth — it allocates the bandwidth you already have.

Why is QoS important for VoIP and video?

Real-time voice (VoIP) and video conferencing are sensitive to delay, jitter, and packet loss. Even small amounts of delay variation or lost packets cause choppy audio, frozen frames, and robotic-sounding speech. QoS gives this traffic a high-priority, low-latency queue so it is forwarded first when a link is congested, while bulk transfers like backups and downloads — which tolerate delay — wait their turn.

What is the difference between latency and jitter?

Latency is the total delay a packet experiences travelling from sender to receiver, usually in milliseconds. Jitter is the variation in that delay between packets: if one packet arrives 20 ms late and the next 60 ms late, the 40 ms difference is jitter. Voice and video care about both, but jitter is especially damaging because it disrupts the steady playback that real-time media depends on.

What is DSCP marking?

DSCP (Differentiated Services Code Point) is a 6-bit field in the IP header used to mark a packet's priority class at Layer 3, so routers along the path can give it the right treatment — for example, voice is commonly marked EF (Expedited Forwarding). At Layer 2, the equivalent marking is CoS in the 802.1Q VLAN tag. Classifying and marking traffic is the first step of QoS so every device downstream knows how to handle each packet.

What is the difference between traffic policing and shaping?

Both limit traffic to a configured rate, but they handle excess differently. Policing drops or re-marks packets that exceed the rate immediately — harsh, but it adds no delay. Shaping buffers excess packets and releases them smoothly, which avoids drops but adds delay and needs a queue. Policing is common on the receiving edge; shaping is common when sending into a slower or rate-limited link.

Build the network underneath

You just saw how priority queuing keeps voice and video smooth under congestion. Queuing and congestion are not simulated in the app, but you can build the network those policies run on, trace flows by protocol and port, and practise the match rules that classification depends on.

Open the network lab →