TheaterQ: A Qdisc for Dynamic Network Emulation
Listen
Radio episode about this paper
Transcript
Introduction to the show: ident: Computer Science. The day in computer science: software, systems and theory on arXiv.
Tom: We're looking at the paper: "TheaterQ: A Qdisc for Dynamic Network Emulation".
Title and authors: Tom: We’ve covered the setup and the core mechanism, but let’s get back to what this paper actually summarizes regarding its overall approach. Essentially, it summarizes how they built a Linux queuing discipline that moves beyond static parameters to handle dynamic network emulation.
Jane: So if I had to explain the summary simply, it’s about using these Trace Files as a timeline of network characteristics and feeding them into TheaterQ so it acts like a director applying those changes in real time <ref:2510.27057#pg4>.
Lu: That’s right, the paper summarizes the architecture of TheaterQ, which is based on NetEm but extended to handle dynamic scenarios by incorporating this timeline-based input mechanism <ref:two thousand five hundred ten point two seven zero five seven#pg1.
Meng: So what does that summary really tell us about the methodology? Is it just a wrapper around existing stuff, or is it a fundamentally different way of doing things?
Tom: It’s more than a wrapper. The paper summarizes how they developed this system to address the limitations of static parameters in traditional tools like NetEm <ref:2510.27057#pg1>. They designed it specifically for dynamic link emulation where the network conditions are constantly evolving <ref:2510.27057#pg4>.
Jane: So the summary is basically that they took a static tool and added a powerful way to inject dynamic, time-varying data into it via these Trace Files <ref:2510.27057#pg4>. It’s about making emulation adaptive to real-world conditions rather than just testing against fixed scenarios.
Lu: Precisely, the summary focuses on how they achieve high accuracy emulation of dynamic networks by utilizing this Trace File ingestion mechanism to apply scripted changes just in time <ref:2510.27057#pg4>.
Meng: If we think about what the paper actually summarizes, it’s that they solved the problem of applying these characteristics transparently, meaning no userspace involvement interferes with the actual packet flow during enqueue <ref:2510.27057#pg3>. That's a big deal for production systems.
Tom: So the summary is really about achieving this transparency—making sure that when a characteristic changes, it affects packets as they are enqueued, not some later stage of processing <ref:2510.27057#pg3>.
Jane: And what that means for us is that we can test protocols against conditions that mimic real-world volatility much more closely than before <ref:two thousand five hundred ten point two seven zero five seven#pg1.
Lu: The summary also includes how they handle things like synchronization across different qdisc instances and managing the various states of the system, from load to run to arm <ref:2510.27057#pg2>. It maps out the entire operational flow <ref:2510.27057#pg4>.
Meng: It also covers features like how they handle packet loss pseudo-randomly and duplication using a delay offset, which are crucial for realistic stress testing at scale <ref:2510.27057#pg4>.
Tom: So the summary is basically a comprehensive overview of how they built this flexible system that can manage those dynamic elements with high resolution across multiple interfaces <ref:two thousand five hundred ten point two seven zero five seven#pg1.
The paper's summary: Jane: Now that we’ve summarized the approach, let’s look at the specific improvements they suggest and what those mean for us in terms of new capabilities. What are the actual upgrades?
Lu: They highlight improving network emulation capability by allowing high-accuracy emulation of dynamic networks using Trace Files with characteristic updates resolvable up to one microsecond <ref:two thousand five hundred ten point two seven zero five seven#pg1. That’s a key improvement over what was available before.
Tom: So the first big thing is that we can model those very fine changes in link characteristics, down to one microsecond resolution, which is huge for testing things that are highly time-dependent <ref:two thousand five hundred ten point two seven zero five seven#pg1.
Meng: But what about handling the dynamic characteristics themselves? The paper suggests improving dynamic characteristic handling by applying those changes just in time using the Trace Files to emulate dynamic link characteristics <ref:two thousand five hundred ten point two seven zero five seven#pg4.
Jane: That means it’s not just about timing precision; it’s about applying the specific network impairments—delays, bandwidth limits, loss—in direct response to what is happening in the timeline <ref:2510.27057#pg4>.
Lu: They also improve packet ordering control by allowing route identifiers to be specified to control implicit packet reordering based on that route ID <ref:two thousand five hundred ten point two seven zero five seven#pg4. That gives us more granular control over how packets are ordered under dynamic conditions.
Tom: And they improve queue management with jitter by using the Earliest Deadline First Queue or EDFQ, which tracks the earliest time a packet can be sent alongside its transmission duration <ref:two thousand five hundred ten point two seven zero five seven#pg4. That gives us better control over reordering and jitter handling than standard queues.
Meng: From a deployment view, what about the cost? They focused on making it run without involving userspace for the main emulation logic, which limits external interference <ref:two thousand five hundred ten point two seven zero five seven#pg3. That’s good because it keeps things clean in production environments <ref:2510.27057#pg3>.
Jane: It sounds like they’ve made significant improvements across the board, from the timing resolution to handling complex packet behaviors like reordering and loss <ref:two thousand five hundred ten point two seven zero five seven#pg4.
Tom: The crucial part is that these improvements are achieved by applying scripted changes provided in the Trace Files just in time, which means we can emulate those dynamic link characteristics with far greater fidelity than static parameter tools allow <ref:2510.27057#pg4>.
The paper's improvements: Tom: So, wrapping up on this paper "TheaterQ: A Qdisc for Dynamic Network Emulation," the main implication is that we have a Linux queuing discipline that handles dynamic network emulation with high accuracy by using Trace Files as a timeline <ref:two thousand five hundred ten point two seven zero five seven#pg1.
Jane: It’s available under the GPLv2 license as open-source software, which means developers can use it freely to push protocol development forward <ref:2510.27057#pg5>.
Lu: The ability to synchronize replays across multiple qdisc instances using SyncGroup is a really useful feature for complex setups involving many network interfaces <ref:2510.27057#pg4>.
Meng: From a production perspective, the fact that it’s integrated into the kernel and keeps things transparent means we can deploy this kind of emulation with much less overhead than solutions that rely on userspace components <ref:2510.27057#pg3>.
Tom: The evaluations show its accuracy and comparable performance to existing tools like NetEm when you use a comparable set of features <ref:2510.27057#pg4>. It’s a solid piece of research that shows how to handle dynamic network emulation effectively.
Jane: So, TheaterQ gives us a flexible solution for modern communication protocol development by letting us ingest Trace Files in CSV format and enables synchronous starting of replays across multiple interfaces using SyncGroup <ref:2510.27057#pg4>.
Lu: It’s available under the GPLv2 license as open-source software, and it’s a valuable tool for future protocol development and performance evaluation <ref:2510.27057#pg5>.
Tom: This paper, "TheaterQ: A Qdisc for Dynamic Network Emulation," is out there now, and it’s showing how to push the boundaries of dynamic network emulation with fine timing resolution <ref:two thousand five hundred ten point two seven zero five seven#pg1.
Conclusion: Tom: So, to wrap up on "TheaterQ: A Qdisc for Dynamic Network Emulation," we’re talking about this Linux queuing discipline that lets you move past static network parameters and handle dynamic network emulation using a timeline of network characteristics <ref:two thousand five hundred ten point two seven zero five seven#pg1.
Jane: It’s really about taking those Trace Files, which are just CSV files with timelines of link characteristics, and feeding them into the system so it acts like a director applying those changes just in time <ref:two thousand five hundred ten point two seven zero five seven#pg4. That’s the big idea.
Lu: The core methodology is using this input mechanism to achieve high accuracy emulation of dynamic networks, allowing for characteristic updates with a resolution up to one microsecond <ref:two thousand five hundred ten point two seven zero five seven#pg1. It’s about applying those scripted changes in real time.
Meng: From an engineering standpoint, what I see is that it keeps the userspace out of the way, which means we can deploy this kind of emulation with less interference during actual traffic flow <ref:two thousand five hundred ten point two seven zero five seven#pg3. That’s a plus for reliability at scale.
Lalam: I’m pretty sure it's very sure about this direction because the system is designed to be transparent, and the researchers demonstrated that its results match what you expect for both bandwidth limitations and delay characteristics <ref:two thousand five hundred ten point two seven zero five seven#pg4.
Tom: And they did show that even with changes happening every ten milliseconds in a complex satellite simulation, TheaterQ can still reproduce those dynamic values accurately <ref:two thousand five hundred ten point two seven zero five seven#pg4. That's impressive timing precision for something that’s running inside the kernel.
Jane: But it’s not perfect, right? The accuracy is still limited by the kernel scheduler and timer resolutions, which is similar to what you see in other tools like NetEm <ref:two thousand five hundred ten point two seven zero five seven#pg4. So, it hits a ceiling based on the system's internal timing structure.
Lu: And they did flag that limitation clearly—the accuracy is tied to the kernel’s scheduler and timer resolutions <ref:two thousand five hundred ten point two seven zero five seven#pg4. They acknowledge that this is where things stop improving for now.
Meng: I'd ask what it costs to run this at scale? Since it's a Loadable Kernel Module, it adds some overhead to the kernel itself, but the benefit is having a precise emulation tool <ref:two thousand five hundred ten point two seven zero five seven#pg3. That’s the trade-off I see for deployment.
Tom: So we have this flexible tool that lets us model those dynamic network characteristics with high precision using Trace Files, and it’s built into the kernel for smooth operation <ref:two thousand five hundred ten point two seven zero five seven#pg1. It really shows how far emulation can go when you stop relying on static settings.
Jane: The key thing is that it lets us handle delays, bandwidth limits, packet loss pseudo-randomly, duplication with a delay offset, and even reordering through the Earliest Deadline First Queue <ref:two thousand five hundred ten point two seven zero five seven#pg4. That’s a lot of features in one qdisc.
Lu: And they also included the SyncGroup feature to synchronize replay across different instances on the same system, which helps set up those complex multi-interface testbeds <ref:two thousand five hundred ten point two seven zero five seven#pg4. It makes scaling these tests easier.
Meng: For me, it means we could use this to stress test our containerized setups with realistic traffic patterns defined by a Trace File, instead of just using standard static scripts <ref:two thousand five hundred ten point two seven zero five seven#pg3. That would be a big help for testing reliability.
Lalam: I’m pretty sure the authors are very confident in their results because they showed that TheaterQ performs identically to NetEm when you use a comparable set of features <ref:two thousand five hundred ten point two seven zero five seven#pg4. They proved it works as expected under stress.
Tom: So, in short, "TheaterQ: A Qdisc for Dynamic Network Emulation" is a flexible tool for protocol development because it allows us to ingest those Trace Files and enables synchronous starting of replays across multiple interfaces using SyncGroup <ref:two thousand five hundred ten point two seven zero five seven#pg4.
Jane: It’s available under the GPLv2 license as open-source software, so it's available for everyone to use in their testing <ref:two thousand five hundred ten point two seven zero five seven#pg5.
Lu: So, next time you’re testing something dynamic where the network conditions change constantly, you can look into TheaterQ and how they manage those dynamic characteristics with high resolution <ref:two thousand five hundred ten point two seven zero five seven#pg4.
Friedrich-Alexander-Universität Erlangen-Nürnberg
cs.NI
Submitted: 2025-10-30
Updated: 2025-10-30
Comments: Preprint, 5 pages, 5 figures, 2 listings
DOI: 10.1109/NetSoft70012.2026.11603418
Code: https://github.com/cs7org/TheaterQ
License: http://creativecommons.org/licenses/by-sa/4.0/
Importance score: 78/100
The gist: TheaterQ is a Linux queuing discipline (qdisc) designed for dynamic network emulation, addressing the limitations of static parameters in traditional tools like NetEm.<ref:2510.27057#pg1…
Key concepts
- Trace File
- A Trace File is a CSV format timeline containing various network characteristics over time. TheaterQ ingests these files to simulate dynamic network conditions precisely. It allows the system to apply specific changes like bandwidth or delay at exact moments defined in the file, enabling high-fidelity emulation of evolving link behavior.
- qdisc (Linux Queuing Discipline)
- A qdisc is a mechanism within the Linux kernel that controls how packets are managed as they enter or leave a network interface. TheaterQ is implemented as an LKM (Loadable Kernel Module) and acts as this control layer, allowing it to manage complex queuing behaviors like rate limiting, loss, and reordering for dynamic emulation.
- SyncGroup
- The SyncGroup feature allows multiple TheaterQ qdisc instances on the same system to start their Trace File replays synchronously. This ensures that all interfaces begin emulating the network conditions at the exact same moment, which is crucial for consistent testing across complex multi-interface setups.
Terminology
Summary
TheaterQ is a Linux queuing discipline (qdisc) designed for dynamic network emulation, addressing the limitations of static parameters in traditional tools like NetEm. p. 0 german@fau. p. 0 hielscher@fau. de
Reinhard German
Friedrich-Alexander-Universität
Erlangen-Nürnberg, Germany
reinhard. german@fau. de
Abstract
TheaterQ is a Linux queuing discipline (qdisc) designed for dynamic
network emulation, addressing the limitations of static parameters
in traditional tools like NetEm. german@fau. de
Abstract
TheaterQ is a Linux queuing discipline (qdisc) designed for dynamic
network emulation, addressing the limitations of static parameters
in traditional tools like NetEm.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Motivation for Dynamic Emulation
Network emulation is an essential tool in protocol development, testing, and performance evaluation.<ref:2510.27057#pg1, "Network emulation is an essential tool in protocol development, testing, and performance evaluation">. p. 0 TheaterQ
is available as open-source software under the GPLv2 license. 1
Keywords
Emulation, Networks, Queueing Discipline, Linux, Testbed
1 INTRODUCTION
Network emulation is an essential tool in protocol development,
testing, and performance evaluation. 1
Keywords
Emulation, Networks, Queueing Discipline, Linux, Testbed
1 INTRODUCTION
Network emulation is an essential tool in protocol development,
testing, and performance evaluation. Testbeds currently used in
research often only utilize static parameters for network emulation, e. 1
Keywords
Emulation, Networks, Queueing Discipline, Linux, Testbed
1 INTRODUCTION
Network emulation is an essential tool in protocol development,
testing, and performance evaluation. Testbeds currently used in
research often only utilize static parameters for network emulation, e. A widely used tool for this purpose
is NetEm [2], which is included in the Linux kernel of many distributions. However, when faced with emerging communication
technologies, such as satellite mega constellations, networks have
very dynamic characteristics, especially during longer observation
periods. A widely used tool for this purpose
is NetEm [2], which is included in the Linux kernel of many distributions. However, when faced with emerging communication
technologies, such as satellite mega constellations, networks have
very dynamic characteristics, especially during longer observation
periods. are using
eBPF programs to emulate loss and delays on a packet-accurate
level [8]. They demonstrated that their approach can reach high
precision; however, since their traces contain delay and losses for
each individual packet, it cannot be used with arbitrary traffic. are using
eBPF programs to emulate loss and delays on a packet-accurate
level [8]. They demonstrated that their approach can reach high
precision; however, since their traces contain delay and losses for
each individual packet, it cannot be used with arbitrary traffic.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
TheaterQ Architecture and Operation
The TheaterQ qdisc is provided by a Loadable Kernel Module (LKM) and is based on the general implementation of NetEm.<ref:2510.27057#pg2, "The TheaterQ qdisc is provided by a Loadable Kernel Module (LKM) and is based on the general implementation of NetEm">. p. 1 A conclusion is
provided in Section 4. 2 IMPLEMENTATION & FEATURES
The TheaterQ qdisc is provided by an Loadable Kernel Module
(LKM) and is based on the general implementation of NetEm. An
overview of the module’s architecture is presented in Figure 1. The
LKM can provide multiple qdisc instances, each instance is located
in the egress path of a network interface. An
overview of the module’s architecture is presented in Figure 1. The
LKM can provide multiple qdisc instances, each instance is located
in the egress path of a network interface. Ottens et al. state machine TheaterQ
LOAD RUN
ARM
CLEAR
Packet Received
Set ARM [Cont Mode==LOOP]
Replay Finished
/Restart Replay
[Cont Mode==HOLD|CLEAR]
Set RUN Replay Finished
Set CLEAR
Set LOAD
FINISH
Figure 2: Simplified state machine for a TheaterQ instance. , all entries in the
Trace File were processed, the Continue Mode (cont) will define how
TheaterQ proceeds:
• In the HOLD mode, the last Trace File values will be kept
applied, and the instance transitions to the FINISH stage. • In the CLEAN mode, the instance will behave transparently
again, also transitioning to the FINISH stage.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Dynamic Characteristics Emulation
TheaterQ handles various network characteristics through its configuration.<ref:2510.27057#pg4>. Specific features include:
-
Rate Limit: This can be selected in bits per second and can automatically segment Generic Segmentation Offload (GSO) packets. p. 2
<ref:2510.27057#pg4>.Where the paper says it
, PPPoE, a static packet overhead can be configured. When enabled, TheaterQ can automatically segment Generic Segmentation Offload (GSO) packets [9] into real Ethernet packets, which increases the accuracy and is also helpful for the accuracy of the other characteristics.
-
Packet Delay: Packets are delayed by a specific time, and the Earliest Deadline. p. 2
First Queue (EDFQ) is used to allow for arbitrary packet reordering. p. 2Where the paper says it
2 Packet Delay. Packets can be delayed by a specific time.
<ref:2510.27057#pg4>.Where the paper says it
When the link is available again, a watchdog will trigger the dequeue function, transmitting the packet from the queue with the earliest deadline while considering the stored transmission time. The EDFQ allows for arbitrary packet reordering, while leveraging the performance of the original red-black tree of NetEm’s tfifo.
-
Queue Limits: Each instance keeps track of the size of the EDFQ in bytes and packets. p. 2
<ref:2510.27057#pg4>.Where the paper says it
3 Queue Limits. Each TheaterQ instance keeps track of the size of the EDFQ in bytes and packets.
-
Packet Loss: A packet loss ratio is used pseudo-randomly drop packets before they are enqueued into the EDFQ. p. 2
<ref:2510.27057#pg4>.Where the paper says it
4 Packet Loss. A packet loss ratio is used pseudo-randomly drop packets before they are enqueued to the EDFQ.
-
Duplication: Pseudo-random duplications of packets can be performed using a duplication probability and a delay offset. p. 2
<ref:2510.27057#pg4>.Where the paper says it
TheaterQ can perform pseudo-random duplications of packets. For this, two values are used: The duplication probability, a scaled 32-bit value, and a delay offset.
Synchronization and Implementation Details
A SyncGroup feature is provided to synchronously start the Trace File replay across different TheaterQ instances on the same system.<ref:2510.27057#pg4>. This synchronization ensures that all members transition to RUN stage when one member starts. p. 1 Each qdisc instance can be a member of one SyncGroup. When one member of the SyncGroup is
set to the RUN stage, and the replay is started, all other members
will also transition to the RUN stage. TheaterQ: A Qdisc for Dynamic Network Emulation
use, and flexible integrable in different emulation testbeds. A timeline of varying link characteristics, referred to as Trace Files, is
ingested into TheaterQ instances via a character device in a CSV
format, eliminating the need for additional programs. When the LOOP continue mode is selected, complete list walks are
skipped whenever possible; this optimization is beneficial with
larger intervals between successive packets. Once the Trace File
replay has started, the userspace is no longer involved, as everything
is handled inside the kernel module.Where the paper says it
Where the paper says it
Where the paper says it
Evaluation and Performance
Evaluations demonstrate that TheaterQ's accuracy and performance are comparable to existing tools like NetEm.<ref:2510.27057#pg4>. The system successfully reproduced link characteristics from a handcrafted Trace File, achieving results that matched the expected outcomes for both bandwidth limitations and delay characteristics. p. 3 Figure 4: Comparison of the values from the Trace Files and actual Layer 2-throughput using UDP traffic and ICMP ping
RTT measurements in the emulation environment. Only bandwidth limitations and delay characteristics were applied on the
forward path, e. Figure 4a compares the results from the
measurements with the values from the Trace File. Apart from the
minor expected deviations, both measurements achieve exactly the
expected results. This simulation yields very dynamic path
characteristics with updated values in the Trace Files every 10 ms. Even with such frequent changes, TheaterQ can reproduce the
characteristics contained in the Trace Files. This simulation yields very dynamic path
characteristics with updated values in the Trace Files every 10 ms. Even with such frequent changes, TheaterQ can reproduce the
characteristics contained in the Trace Files. , with changes in the characteristics, with NetEm: Both qdiscs
perform identically. The accuracy of NetEm is limited by the kernel’s scheduler, timer resolutions, and system load, both of this is
also the case for TheaterQ. , with changes in the characteristics, with NetEm: Both qdiscs
perform identically. The accuracy of NetEm is limited by the kernel’s scheduler, timer resolutions, and system load, both of this is
also the case for TheaterQ.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Conclusion
TheaterQ is presented as a flexible tool for protocol development because it allows for the ingestion of Trace Files in CSV format.<ref:2510.27057#pg5, "A timeline of varying link characteristics, referred to as Trace Files, is ingested into TheaterQ instances via a character device in a CSV format">. p. 4 TheaterQ: A Qdisc for Dynamic Network Emulation
use, and flexible integrable in different emulation testbeds. A timeline of varying link characteristics, referred to as Trace Files, is
ingested into TheaterQ instances via a character device in a CSV
format, eliminating the need for additional programs. After initial
configuration and Trace File ingestion, TheaterQ handles the replay
without involving the userspace. The SyncGroup feature allows
synchronous starting of Trace File replays in different TheaterQ instances on the same system, which is helpful for complex emulation
setups that involve multiple network interfaces. Evaluations show TheaterQ’s accuracy and
its comparable performance to existing tools, offering a flexible solution for modern communication protocol development. TheaterQ
is available as open-source software under the GPLv2 license. Evaluations show TheaterQ’s accuracy and
its comparable performance to existing tools, offering a flexible solution for modern communication protocol development. TheaterQ
is available as open-source software under the GPLv2 license.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
--- Page 1 ---
TheaterQ: A Qdisc for Dynamic Network Emulation.<ref:2510.27057#pg1, "TheaterQ: A Qdisc for Dynamic Network Emulation">
Martin Ottens.<ref:2510.27057#pg1>
Friedrich-Alexander-Universität.<ref:2510.27057#pg1>
Erlangen-Nürnberg, Germany.<ref:2510.27057#pg1>
martin.ottens@fau. p. 0 TheaterQ: A Qdisc for Dynamic Network Emulation
Martin Ottens
Friedrich-Alexander-Universität
Erlangen-Nürnberg, Germany
martin. ottens@fau.Where the paper says it
Kai-Steffen Hielscher.<ref:2510.27057#pg1>
Friedrich-Alexander-Universität.<ref:2510.27057#pg1>
Erlangen-Nürnberg, Germany.<ref:2510.27057#pg1>
kai-steffen.hielscher@fau. p. 0 ottens@fau. de
Kai-Steffen Hielscher
Friedrich-Alexander-Universität
Erlangen-Nürnberg, Germany
kai-steffen. ottens@fau. de
Kai-Steffen Hielscher
Friedrich-Alexander-Universität
Erlangen-Nürnberg, Germany
kai-steffen. ottens@fau. de
Kai-Steffen Hielscher
Friedrich-Alexander-Universität
Erlangen-Nürnberg, Germany
kai-steffen.Where the paper says it
Where the paper says it
Where the paper says it
Reinhard German.<ref:2510.27057#pg1>
Friedrich-Alexander-Universität.<ref:2510.27057#pg1>
Erlangen-Nürnberg, Germany.<ref:2510.27057#pg1>
reinhard.german@fau.de.<ref:2510.27057#pg1>
Abstract.<ref:2510.27057#pg1>
TheaterQ is a Linux queuing discipline (qdisc) designed for dynamic network emulation, addressing the limitations of static parameters in traditional tools like NetEm.<ref:2510.27057#pg1, "TheaterQ is a Linux queuing discipline (qdisc) designed for dynamic network emulation, addressing the limitations of static parameters in traditional tools like NetEm">. By utilizing Trace Files containing timelines with network characteristics, TheaterQ achieves highaccuracy emulation of dynamic networks without involving the userspace and allows for resolutions of characteristic updates of up to 1 µs. p. 0 de
Abstract
TheaterQ is a Linux queuing discipline (qdisc) designed for dynamic
network emulation, addressing the limitations of static parameters
in traditional tools like NetEm. By utilizing Trace Files containing
timelines with network characteristics, TheaterQ achieves highaccuracy emulation of dynamic networks without involving the
userspace and allows for resolutions of characteristic updates of
up to 1 µs. de
Abstract
TheaterQ is a Linux queuing discipline (qdisc) designed for dynamic
network emulation, addressing the limitations of static parameters
in traditional tools like NetEm. By utilizing Trace Files containing
timelines with network characteristics, TheaterQ achieves highaccuracy emulation of dynamic networks without involving the
userspace and allows for resolutions of characteristic updates of
up to 1 µs. By utilizing Trace Files containing
timelines with network characteristics, TheaterQ achieves highaccuracy emulation of dynamic networks without involving the
userspace and allows for resolutions of characteristic updates of
up to 1 µs. Features include synchronization across mutliple qdisc
instances and handling of delays, bandwidth, packet loss, duplication, and reordering. By utilizing Trace Files containing
timelines with network characteristics, TheaterQ achieves highaccuracy emulation of dynamic networks without involving the
userspace and allows for resolutions of characteristic updates of
up to 1 µs. Features include synchronization across mutliple qdisc
instances and handling of delays, bandwidth, packet loss, duplication, and reordering. By utilizing Trace Files containing
timelines with network characteristics, TheaterQ achieves highaccuracy emulation of dynamic networks without involving the
userspace and allows for resolutions of characteristic updates of
up to 1 µs. Features include synchronization across mutliple qdisc
instances and handling of delays, bandwidth, packet loss, duplication, and reordering. Features include synchronization across mutliple qdisc
instances and handling of delays, bandwidth, packet loss, duplication, and reordering. Evaluations show TheaterQ’s accuracy and
its comparable performance to existing tools, offering a flexible solution for modern communication protocol development. Features include synchronization across mutliple qdisc
instances and handling of delays, bandwidth, packet loss, duplication, and reordering. Evaluations show TheaterQ’s accuracy and
its comparable performance to existing tools, offering a flexible solution for modern communication protocol development.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Keywords.<ref:2510.27057#pg1>
Emulation, Networks, Queueing Discipline, Linux, Testbed.<ref:2510.27057#pg1, "Emulation, Networks, Queueing Discipline, Linux, Testbed">
--- Page 2 ---
SyncGroup Control.<ref:2510.27057#pg2>
TheaterQ Qdisc Instance.<ref:2510.27057#pg3>
TheaterQ LKM.<ref:2510.27057#pg3>
Linux Kernel.<ref:2510.27057#pg3>
Userspace.<ref:2510.27057#pg3>
TheaterQ.<ref:2510.27057#pg3>
tc Module iproute2 tc CLI.<ref:2510.27057#pg3>
Ingest.<ref:2510.27057#pg3>
CharDev.<ref:2510.27057#pg3>
enqueue: Delay, Duplication, Loss, Reorder.<ref:2510.27057#pg3>
Earliest Deadline. First (EDF) Queue. p. 0 Comparable
1https://github. com/cs7org/TheaterQ
SyncGroup Control
TheaterQ Qdisc Instance
TheaterQ LKM
Linux Kernel
Userspace
TheaterQ
tc Module iproute2 tc CLI
Ingest
CharDev
enqueue:
Delay, Duplication,
Loss, Reorder
Earliest
Deadline First
(EDF) Queue
Child Qdisc
(if attached)
Trace File
Linked List
Ingest
CharDev
Trace
File
User Interaction
dequeue:
Rate Limitation
Queue
Watchdog
Netlink Interface
Ingest + State
Controller
Figure 1: Architecture of the TheaterQ LKM.Where the paper says it
Child Qdisc (if attached).<ref:2510.27057#pg3>
Trace File.<ref:2510.27057#pg4>
Linked List.<ref:2510.27057#pg4>
Ingest.<ref:2510.27057#pg4>
CharDev.<ref:2510.27057#pg4>
Trace File.<ref:2510.27057#pg4>
User Interaction.<ref:2510.27057#pg4>
dequeue: Rate Limitation.<ref:2510.27057#pg4>
Queue.<ref:2510.27057#pg4>
Watchdog.<ref:2510.27057#pg4>
Netlink Interface.<ref:2510.27057#pg4>
Ingest + State.<ref:2510.27057#pg4>
Controller.<ref:2510.27057#pg4>
Figure 1: Architecture of the TheaterQ LKM。<ref:2510.27057#pg3>
Ingest.<ref:2510.27057#pg3>
CharDev.<ref:2510.27057#pg4>
Trace File.<ref:2510.27057#pg4>
--- Page 3 ---
to the other approaches, FlowEmu can only be used for emulating links with static characteristics or to replay packet-accurate traces.<ref:2510.27057#pg1, "FlowEmu can only be used for emulating links with static characteristics or to replay packet-accurate traces">. p. 0 com/cs7org/TheaterQ
SyncGroup Control
TheaterQ Qdisc Instance
TheaterQ LKM
Linux Kernel
Userspace
TheaterQ
tc Module iproute2 tc CLI
Ingest
CharDev
enqueue:
Delay, Duplication,
Loss, Reorder
Earliest
Deadline First
(EDF) Queue
Child Qdisc
(if attached)
Trace File
Linked List
Ingest
CharDev
Trace
File
User Interaction
dequeue:
Rate Limitation
Queue
Watchdog
Netlink Interface
Ingest + State
Controller
Figure 1: Architecture of the TheaterQ LKM. to the other approaches, FlowEmu can only be used for emulating links with static characteristics or to replay packet-accurate
traces. To solve these challenges, we developed TheaterQ, a Linux queuing discipline for dynamic link emulation. TheaterQ conducts link
emulation as if directing a play, applying scripted changes provided
in the Trace Files just in time. By utilizing Trace Files containing
timelines with network characteristics, TheaterQ achieves highaccuracy emulation of dynamic networks without involving the
userspace and allows for resolutions of characteristic updates of
up to 1 µs. Features include synchronization across mutliple qdisc
instances and handling of delays, bandwidth, packet loss, duplication, and reordering.Where the paper says it
Where the paper says it
Where the paper says it
Trace File Replay Mechanism
Each TheaterQ instance opens a character device used to ingest Trace Files in a specific CSV format.<ref:2510.27057#pg4>. When transitioning into the RUN stage, the first entry of the Trace File is activated. p. 1 Trace File entries are
stored in a linked list within the qdisc instance. When an instance transitions into the RUN stage, the first entry of
the Trace File is activated. Each Trace File entry has a keep_us (cf. Listing 2) value, that defines the time after which it switches to the
subsequent entry. On arrival of a new packet, TheaterQ checks if
current entry has expired, and performs a list walk to find the next
Trace File value that should be active during this time. This allows
to have the correct characteristics applied for each packet by its
time of arrival, without any time drifts.Where the paper says it
Where the paper says it
Where the paper says it
Feature Implementation
TheaterQ implements specific queue behaviors like Earliest Deadline. First Queue (EDFQ) to handle jitter and potential reordering. p. 4 The SyncGroup feature allows
synchronous starting of Trace File replays in different TheaterQ instances on the same system, which is helpful for complex emulation
setups that involve multiple network interfaces. TheaterQ is currently able to emulate delays with jitter, bandwidth limits, packet drops and duplications, queue size limits, as
well as packet reordering. 4 Packet Loss. A packet loss ratio is used pseudo-randomly
drop packets before they are enqueued to the EDFQ. The delay offset
describes how long the duplicate is additionally delayed before
transmission. This can be useful to reorder duplicated packets inside a flow. 6 Route Identifiers. In some cases, implicit packet reordering
due to delay changes or a high jitter are unwanted, e.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
System Integration
The system supports integration into various emulation testbeds, including Virtual Machines and Docker containers.<ref:2510.27057#pg3, "Due to TheaterQ’s flexibility, various setups are possible">. p. 2 Subsequently, an emulation
environment must be chosen. Due to TheaterQ’s flexibility, various
setups are possible. After initial
configuration and Trace File ingestion, TheaterQ handles the replay
without involving the userspace. The SyncGroup feature allows
synchronous starting of Trace File replays in different TheaterQ instances on the same system, which is helpful for complex emulation
setups that involve multiple network interfaces. In an evaluation, we demonstrated the performance of TheaterQ
to reproduce the link characteristics from a Trace File accurately. It
performs as well as NetEm does when used with a comparable set
of features, even if TheaterQ has some significant implementation
differences, e. We have compared the steady-state performance of TheaterQ,
e. , with changes in the characteristics, with NetEm: Both qdiscs
perform identically. , to allow correct packet reordering. TheaterQ is
available under a GPLv2 license as open-source software1
, and we
believe it can become a valuable tool in future protocol development
and performance evaluation.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
--- Page 4 ---
In the case of Figure 4b, a Trace File from a complex satellite simulation was used.<ref:2510.27057#pg3>. Even with such frequent changes, TheaterQ can reproduce the characteristics contained in the Trace Files. p. 3 This simulation yields very dynamic path
characteristics with updated values in the Trace Files every 10 ms. Even with such frequent changes, TheaterQ can reproduce the
characteristics contained in the Trace Files. This simulation yields very dynamic path
characteristics with updated values in the Trace Files every 10 ms. Even with such frequent changes, TheaterQ can reproduce the
characteristics contained in the Trace Files. , with changes in the characteristics, with NetEm: Both qdiscs
perform identically. The accuracy of NetEm is limited by the kernel’s scheduler, timer resolutions, and system load, both of this is
also the case for TheaterQ. , with changes in the characteristics, with NetEm: Both qdiscs
perform identically. The accuracy of NetEm is limited by the kernel’s scheduler, timer resolutions, and system load, both of this is
also the case for TheaterQ.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
--- Page 5 ---
In an evaluation, we demonstrated the performance of TheaterQ to reproduce the link characteristics from a Trace File accurately.<ref:2510.27057#pg4>. The accuracy is limited by NetEm when used with a comparable set of features. p. 4 In an evaluation, we demonstrated the performance of TheaterQ
to reproduce the link characteristics from a Trace File accurately. It
performs as well as NetEm does when used with a comparable set
of features, even if TheaterQ has some significant implementation
differences, e. , to allow correct packet reordering. TheaterQ is
available under a GPLv2 license as open-source software1
, and we
believe it can become a valuable tool in future protocol development
and performance evaluation.Where the paper says it
Where the paper says it
Green — the paper says it, and the page is printed. Red — no passage carries it, so treat that sentence as unverified. The same check runs on your own text: check a summary against its source, $5.
Improvements for AI systems
-
Improved Network Emulation Capability: TheaterQ allows for highaccuracy emulation of dynamic networks by utilizing Trace Files containing timelines with network characteristics, enabling resolutions of characteristic updates of up to 1 microsecond.
-
Improved Dynamic Characteristic Handling: The system can handle delays, bandwidth, packet loss, duplication, and reordering by applying scripted changes provided in the Trace Files
just in time,
allowing for emulation of dynamic link characteristics. -
Improved Synchronization Across Testbeds: The SyncGroup feature enables synchronous starting of Trace File replays across different qdisc instances on the same system, which is helpful for complex emulation setups involving multiple network interfaces.
-
Improved Packet Ordering Control: TheaterQ can control implicit packet reordering by specifying a route identifier for each Trace File entry, allowing packets transmitted while the same route identifier is active to be strictly ordered.
-
Improved Queue Management with Jitter: The Earliest Deadline First Queue (EDFQ) modification tracks the earliest time a packet can be sent alongside its transmission duration, accounting for delay and rate limit, which allows for arbitrary packet reordering while leveraging NetEm's performance.
Abstract
TheaterQ is a Linux qdisc designed for dynamic network emulation, addressing the limitations of static parameters in traditional tools like NetEm. By utilizing Trace Files containing timelines with network characteristics, TheaterQ achieves high-accuracy emulation of dynamic networks without involving the userspace and allows for resolutions of characteristic updates of up to 1 microsecond. Features include synchronization across mutliple qdisc instances and handling of delays, bandwidth, packet loss, duplication, and reordering. Evaluations show TheaterQ's accuracy and its comparable performance to existing tools, offering a flexible solution for modern communication protocol development. TheaterQ is available as open-source software under the GPLv2 license.
Related papers
- Minimizing Optical Circuit Reconfigurations for Concurrent Collectives
- Beyond the Next Hop: Measuring Data-Plane Forwarding for RPKI-Invalid Prefixes in the Wild
- Predicting Networks Before They Happen: Experimentation on a Real-Time V2X Digital Twin
- Cyber Resilience in Next-Generation Networks: Threat Landscape, Theoretical Foundations, and Design Paradigms
- MultiMoQ: Multi-Access Media-Over-QUIC for Robust Immersive Video Streaming
- AoA Services in 5G Networks: A Framework for Real-World Implementation and Systematic Testing