The Patch Panel Deep dives for the people who run networks and phones

QoS for voice, end to end: what DSCP marking can and cannot do for you

Marking packets is the easy part. Real voice quality comes from queuing at the bottleneck, shaping below the line rate, and being honest about what happens once traffic leaves your building.

Front of a high-density network switch with rows of ports and light blue patch cables
Photo: Lightsaber Collection / Unsplash

Quality of service is one of the most misunderstood settings in networking. Admins turn it on, set the phones to mark their packets, and expect choppy calls to disappear. Sometimes they do. Often nothing changes, and QoS gets blamed for not working.

QoS works. It just does a narrower job than most people assume, and it only does that job at the exact place where packets queue up.

The latency and jitter budget

Voice is unusually sensitive because it is real time. A file download does not care if a packet arrives 200 milliseconds late; a conversation does. The widely cited ITU-T G.114 guidance puts the comfortable limit for one-way, mouth-to-ear delay at around 150 ms. Beyond that, people start talking over each other.

Three impairments matter:

  • Latency: total time from speaker to listener, including encoding, network transit and the receiving jitter buffer.
  • Jitter: variation in packet arrival times. Phones smooth it with a jitter buffer, which itself adds delay.
  • Loss: packets that never arrive. Even 1 percent loss is noticeable in voice, and loss tends to arrive in bursts.

On a quiet network, all three are low. The trouble starts at congestion points, where more traffic arrives than a link can send, and packets wait in a queue. That queue is the only place QoS can help.

Small five-port PoE desktop switch with yellow and red Ethernet cables and lit port LEDs Even a small PoE switch at a branch office has queues. Whether voice gets the priority queue is a configuration choice. Photo: User_Pascal / Unsplash.

Classification and marking

The first step is to label traffic so devices downstream know what it is. In IP networks that label is the DSCP value in the packet header. The values most voice networks use are well established:

Traffic DSCP name DSCP value Typical treatment
Voice media (RTP) EF 46 Strict priority queue, policed to a cap
Interactive video AF41 34 Guaranteed bandwidth share
Call signaling (SIP) CS3 24 Small guaranteed share
Default data DF (best effort) 0 Whatever is left
Bulk and backups CS1 (scavenger) 8 Lowest priority

Phones and soft clients usually mark their own packets. Switches can be told to trust those markings on phone ports, or to remark traffic they identify by VLAN, port or address. A sensible policy trusts markings only from devices you control, because any PC can mark its own traffic EF and jump the queue.

Queuing: where the work actually happens

Marking does nothing by itself. A router or switch has to put marked traffic into different queues and service them differently. A typical voice-friendly design uses low latency queuing: a strict priority queue for EF traffic, with every other class sharing the rest by weight.

Here is the shape of such a policy in a generic, vendor-neutral style that mirrors how most enterprise routers express it:

class-map VOICE      match dscp ef
class-map SIGNALING  match dscp cs3
class-map VIDEO      match dscp af41

policy-map WAN-EDGE
  class VOICE
    priority percent 30
  class SIGNALING
    bandwidth percent 5
  class VIDEO
    bandwidth percent 20
  class class-default
    fair-queue

The priority percent 30 line matters as much as the priority itself. A strict priority queue that is not capped can starve every other class, so platforms police it. Size the cap from your concurrent call count: twenty G.711 calls need roughly 1.75 Mbps per direction, so the priority class should comfortably exceed that.

The shaping trick nobody explains

Here is the most common reason QoS appears not to work. Your router has a 1 Gbps Ethernet port to the ISP's handoff, but you only bought 200 Mbps of service. The router sees a fat, uncongested gigabit link and never builds a queue. The congestion happens one hop later, inside the provider's equipment, where your markings are ignored.

The fix is shaping: tell the router to send no faster than slightly below the contracted rate, so the queue forms on your device, where your policy lives.

policy-map SHAPE-200M
  class class-default
    shape average 190000000
    service-policy WAN-EDGE

Shape to roughly 90 to 95 percent of the real, measured throughput, in both directions where your equipment allows. Upload is usually the tighter direction on broadband and is where voice suffers first.

If your router never fills a queue, it never applies your QoS policy. Shaping moves the bottleneck to a place you control.

The internet ignores your markings

Inside your LAN and across a private WAN, DSCP markings can be honored end to end. Across the public internet, they generally are not. Carriers may preserve the bits, rewrite them to zero or simply not act on them. There is no contract that says a transit network will prioritize your EF packets.

That leaves three practical tools for internet-delivered voice:

  1. Control your own edge. Shape and queue outbound traffic so voice never waits behind a backup upload.
  2. Control inbound indirectly. You cannot queue packets before they arrive, but you can shape inbound so TCP flows back off before the provider's queue fills. Some SD-WAN appliances do this well.
  3. Buy headroom and diversity. Keep links well below saturation, and use a second circuit or an SD-WAN overlay that steers voice onto the healthier path.

Wi-Fi is its own QoS domain

Wireless has a separate mechanism, WMM, which maps DSCP values into four access categories (voice, video, best effort, background). Make sure the access points map EF into the voice category, and remember that Wi-Fi contention is about airtime, not bandwidth. A crowded channel will hurt calls no matter how they are marked.

A short checklist

  • Mark voice EF and signaling CS3 at the phone or the first switch, and trust only devices you manage.
  • Build a capped priority queue for voice on every congested link.
  • Shape WAN interfaces to just under the real line rate, upload included.
  • Verify with measurements: jitter under about 30 ms, loss well under 1 percent, one-way latency comfortably inside 150 ms.
  • Retest after any circuit upgrade. A new bandwidth figure means a new shaper value.

QoS is not magic. It is a queue manager. Put the queue where you control it, and it does exactly what it promises.