Back to all articles
QoSNetworking TheoryLatencyLayer 3

QoS: Why Netflix Buffers But Your Zoom Call Doesn't

Elena RostovaJuly 10, 2024

Imagine a busy highway during rush hour. There are sedans, massive semi-trucks, motorcycles, and minivans all crammed into three lanes. They are all moving at a crawl.

Suddenly, an ambulance appears with its sirens blaring. The cars pull over, allowing the ambulance to bypass the traffic jam and speed to the hospital.

In this analogy, the highway is your internet connection. The cars are data packets. And the system that allows the ambulance to bypass the traffic is called QoS (Quality of Service).

Without QoS, network routers treat every single packet of data exactly the same. It uses a system called FIFO (First In, First Out). If a massive 50-Gigabyte PlayStation game update enters the router just before a tiny 2-Kilobyte VoIP telephone packet, the router processes the PlayStation packet first. The telephone packet has to wait in line.

Most of the time, routers process packets so fast that this doesn't matter. But what happens when the network gets congested?

The Impact of Congestion

Let's say your home internet connection can handle 100 Megabits per second.

Your roommate decides to torrent a massive file, utilizing 99 Mbps. The network is completely saturated.

You are sitting in the other room trying to have a very important Zoom job interview. Your video and audio packets arrive at your router, but the router's queue is completely full of your roommate's torrent packets.

Two things happen:

1. Latency and Jitter: Your packets get stuck waiting in the buffer. Your video feed to the interviewer starts lagging by 2 full seconds. The delay varies wildly (this variance is called Jitter), making your audio sound robotic and garbled.

2. Packet Drop: The router's buffer eventually fills up completely. When your next Zoom packet arrives, the router physically has nowhere to put it, so it just deletes it. Your video freezes entirely.

For a file download, delayed or dropped packets are fine. TCP just resends them. The download takes 5 minutes instead of 4. No one cares.

For real-time voice and video, dropped packets destroy the application entirely.

Enter Quality of Service (QoS)

Network administrators use QoS to fundamentally change the rules of the router. QoS allows the router to look at the packets, identify what type of data they contain, and prioritize the "ambulances" over the "semi-trucks."

How does it work?

1. Classification and Marking

Before packets leave a device, they are inspected and marked. Deep inside the IP Header (Layer 3), there is a tiny field originally called the ToS (Type of Service) byte, now commonly used for DSCP (Differentiated Services Code Point).

When Zoom creates a voice packet, it stamps a highly prioritized DSCP code on the envelope (usually a code called `EF` or Expedited Forwarding). When Steam downloads a game, it leaves the code blank (Best Effort).

2. Queuing (The VIP Line)

When the packets arrive at a QoS-enabled router, the router doesn't just shove them into one giant FIFO line. It has multiple separate queues.

It looks at the DSCP markings.

  • All the VoIP and Zoom packets get put into the **Strict Priority Queue** (The VIP Line).
  • All the web browsing and Netflix packets get put into the **Normal Queue**.
  • All the torrenting and background download packets get put into the **Scavenger Queue**.
  • The router's processing engine is programmed to *always* empty the Priority Queue before it even looks at the Normal Queue.

    Even if your roommate is downloading a file at maximum speed, filling up the Normal queue, the router will instantly pause the download, process your tiny Zoom voice packets the millisecond they arrive, and then resume the download.

    Your Zoom call is flawless. Your roommate's download takes an extra 0.5 seconds. Everyone wins.

    QoS on the Global Internet (Or Lack Thereof)

    QoS sounds like magic. So why doesn't everything on the internet use it?

    The catch is that QoS only works if you control the routers.

    A corporate network administrator can strictly enforce QoS on the office switches to ensure the CEO's desk phone never drops a call. You can log into your high-end home gaming router and configure QoS to prioritize your Xbox over your smart TV.

    But once your packet leaves your home router and enters the public internet, all bets are off.

    Internet Service Providers (ISPs) and global backbone routers generally ignore QoS markings on public internet traffic. Why? Because if ISPs respected them, every single application developer would selfishly mark their own packets as "Highest Priority." Netflix would mark their movies as priority. BitTorrent clients would mark their downloads as priority. If everyone is a VIP, no one is a VIP.

    On the open internet, Net Neutrality principles largely dictate that all packets must be treated equally (FIFO), regardless of what they contain.

    So QoS remains an incredibly powerful tool, but it is a local one. It protects your critical data on the treacherous journey from your laptop to the edge of your network, ensuring it gets onto the internet highway as fast as possible. Once it's on the highway, it's at the mercy of the traffic.