Graduate · 2026 · network performance

QoS for UDP Control and Telemetry Traffic

An M.Eng network-performance project at SFU (ENSC 833). In ns-3 I built a bidirectional control system, with an orchestrator commanding followers over UDP while telemetry flows back, pushed a shared bottleneck into overload, and compared five queueing disciplines with and without DSCP marking to find out which ones keep control traffic alive.

Course
ENSC 833 · M.Eng
Term
Spring 2026
Tools
ns-3 (C++), Python
Runs
90 simulations
Simulation topology: an orchestrator on a 100 Mbps access link to router A, a 10 Mbps, 5 ms bottleneck to router B with the queue under test on both directions, N followers on router B, background traffic sources and sinks at both routers, control flowing to the followers and status, telemetry and bulk flowing back
Topology of the ns-3 study, redrawn for this page. The queueing discipline under test sits on both directions of the 10 Mbps bottleneck; background traffic in both directions pushes it into overload.

The problem

Networked control systems often use UDP: no connection setup, no retransmission delays, nothing that fights a tight update cycle. But UDP does not classify traffic or protect it. In an orchestrator-and-device architecture the same path carries small, frequent control messages one way and status, telemetry and bulk data the other way, plus whatever unrelated traffic shares the link. If the bottleneck queue treats every packet the same, short control packets get stuck behind large ones, and under overload they are simply dropped.

The question for the project: can packet scheduling at the bottleneck enforce useful QoS separation for bidirectional UDP control and telemetry traffic, without changing the application's transport?

Setup

One orchestrator, two routers joined by a bidirectional bottleneck, a set of followers, and background traffic endpoints at both routers (diagram above). Access links run at 100 Mbps with 1 ms delay; the bottleneck is 10 Mbps with 5 ms delay and a 40-packet queue, and each run simulates 20 s. Every setting is a command-line argument, so the same ns-3 program drives all the sweeps from shell scripts.

Four application classes, each with its own packet size, rate and DSCP marking:

class direction size rate DSCP intent control orchestrator → each 64 B 200 pps AF42 (36) highest status follower → orch. 96 B 100 pps AF43 (38) medium telemetry follower → orch. 512 B 50 pps AF41 (34) lower bulk follower → orch. 1400 B 20 pps CS1 (8) filler background both ways 1400 B swept default competing load

Five queueing disciplines, chosen to cover three design philosophies:

  • Best effort: FIFO, the no-priority baseline.
  • Explicit class priority: a PFIFO_FAST-style three-band priority queue, and a four-band strict-priority PRIO queue. Both use a packet filter I wrote that maps DSCP values to bands, so they can only separate classes when packets are marked.
  • Fair queueing with active queue management: FQ-PIE and FQ-CoDel, which isolate flows and keep standing queues short.

Three scenario families, each run with DSCP off and on: a scheduler comparison at one overloaded point (4 followers, 12 Mbps of background per direction), a load sweep (background 8 to 16 Mbps per direction) and a follower sweep (4, 8 and 16 followers). That is 90 simulations in total. FlowMonitor exports per-flow statistics to CSV; a Python stage groups them by class and computes delay, loss, jitter, throughput and Jain fairness indices, and generates every plot on this page.

Results

At the overloaded comparison point the schedulers split cleanly into two groups. FIFO, and the priority queues without DSCP, let control delay climb to 40.8 ms and drop 61.4% of control packets. FQ-PIE and FQ-CoDel hold control traffic at 8.9 ms with no loss, with or without marking. Turn DSCP on and the two priority queues join them.

The per-class view shows the trade-off between the two families. Strict priority protects the classes it ranks highest by pushing queueing onto the lower ones; fair queueing keeps every application class's delay low and spreads the cost across flows.

Grouped bar chart of mean delay per traffic class (control, status, telemetry, bulk, background) for the five schedulers with DSCP enabled
Per-class mean delay with DSCP enabled. Fair-queue schedulers (red, purple) keep application classes low; strict priority shifts delay onto lower-priority and background traffic.

The number of bands matters too. With DSCP on, four-band PRIO cuts telemetry delay from 34.1 ms to 10.3 ms and telemetry loss from 89.3% to zero. The three-band PFIFO_FAST-style mapping leaves telemetry in the same band as bulk and default traffic, so telemetry gets no better there.

Heatmap of mean delay per traffic class and scheduler with DSCP enabled
Per-class delay heatmap with DSCP enabled: one view of who pays for the protection.

The ranking holds as the load grows. In the load sweep FIFO degrades as soon as the background reaches the bottleneck rate, and so do the priority queues without DSCP; FQ-PIE and FQ-CoDel stay flat near 8.9 ms and zero loss across the whole sweep. In the follower sweep FIFO control loss rises from 61.4% to 78.6% and then 85.9% at 16 followers, while the fair-queue schedulers stay at zero. FIFO's control delay even falls slightly as followers increase, but only because so many packets are dropped that fewer survive to raise the average.

Two line plots of mean control delay against background load from 8 to 16 Mbps, DSCP off and DSCP on, with FIFO rising to about 47 ms and the fair-queue schedulers flat near 9 ms
Mean control delay across the load sweep, DSCP off (left) and on (right).

Key numbers

  • 40.8 → 8.9 msmean control delay, FIFO against FQ-PIE / FQ-CoDel under overload
  • 61.4% → 0%control packet loss over the same comparison
  • −31.9 mscontrol delay saved by DSCP marking on both priority schedulers
  • 89.3% → 0%telemetry loss with four-band PRIO once DSCP is on

What worked and what didn't

Two families of solutions work for this workload. FQ-PIE and FQ-CoDel protect control traffic with no marking or tuning at all. Priority queueing works just as well for control, but only when packets are DSCP-marked and the classifier has enough bands to separate the classes that matter, which is why four-band PRIO beat the three-band PFIFO_FAST-style mapping for telemetry. In a UDP control system the bottleneck queue is a design decision, not a default to leave alone.

The limits: each configuration ran with a single seed, so this is a controlled deterministic study rather than a replicated one. Many of the differences are large enough that the trends are clear, but there are no confidence intervals. The next steps would be multiple seeds, sweeps of queue size and burstiness, mixed TCP/UDP cross traffic or wireless links, and a weighted fair-queueing scheduler for comparison.

Skills shown

  • ns-3
  • C++
  • Network simulation
  • QoS
  • DSCP / DiffServ
  • Queueing disciplines
  • FQ-CoDel / FQ-PIE
  • Packet classification
  • Experiment automation
  • Python data analysis
  • Jain fairness