TheaterQ: A Qdisc for Dynamic Network Emulation

arXiv:2510.27057 · cs.NI · Submitted 2025-10-30 · Read on arXiv

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

Where the paper says it

german@fau. p. 0

Where the paper says it

hielscher@fau. de Reinhard German Friedrich-Alexander-Universität Erlangen-Nürnberg, Germany reinhard.

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.

<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">. p. 0
Where the paper says it

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.

p. 0
Where the paper says it

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.

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

Where the paper says it

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.

Traditional testbeds often utilize static parameters for network emulation. p. 0
Where the paper says it

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.

<ref:2510.27057#pg1, "Testbeds currently used in research often only utilize static parameters for network emulation">. p. 0
Where the paper says it

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.

This limitation becomes problematic when facing emerging communication technologies with dynamic characteristics. p. 0
Where the paper says it

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.

<ref:2510.27057#pg1, "However, when faced with emerging communication technologies, such as satellite mega constellations, networks have very dynamic characteristics">. p. 0
Where the paper says it

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.

Approaches like eBPF programs can reach high precision but cannot be used with arbitrary traffic because they contain delay and losses for each individual packet. p. 0
Where the paper says it

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.

<ref:2510.27057#pg1, "They demonstrated that their approach can reach high precision; however, since their traces contain delay and losses for each individual packet">. p. 0
Where the paper says it

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.

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

Where the paper says it

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.

It can provide multiple qdisc instances, each located in the egress path of a network interface. p. 1
Where the paper says it

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.

<ref:2510.27057#pg2, "The LKM can provide multiple qdisc instances, each instance is located in the egress path of a network interface">. p. 1
Where the paper says it

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.

Operational stages include LOAD, ARM, RUN, and FINISH. p. 1
Where the paper says it

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.

<ref:2510.27057#pg4>. The system supports various continue modes such as HOLD, CLEAN, and LOOP for managing replay behavior. p. 1
Where the paper says it

, 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.

<ref:2510.27057#pg4>.

Dynamic Characteristics Emulation

TheaterQ handles various network characteristics through its configuration.<ref:2510.27057#pg4>. Specific features include:

  1. Rate Limit: This can be selected in bits per second and can automatically segment Generic Segmentation Offload (GSO) packets. p. 2

    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.

    <ref:2510.27057#pg4>.

  2. Packet Delay: Packets are delayed by a specific time, and the Earliest Deadline. p. 2

    Where the paper says it

    2 Packet Delay. Packets can be delayed by a specific time.

    First Queue (EDFQ) is used to allow for arbitrary packet reordering. p. 2
    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.

    <ref:2510.27057#pg4>.

  3. Queue Limits: Each instance keeps track of the size of the EDFQ in bytes and packets. p. 2

    Where the paper says it

    3 Queue Limits. Each TheaterQ instance keeps track of the size of the EDFQ in bytes and packets.

    <ref:2510.27057#pg4>.

  4. Packet Loss: A packet loss ratio is used pseudo-randomly drop packets before they are enqueued into the EDFQ. p. 2

    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.

    <ref:2510.27057#pg4>.

  5. Duplication: Pseudo-random duplications of packets can be performed using a duplication probability and a delay offset. p. 2

    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.

    <ref:2510.27057#pg4>.

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

Where the paper says it

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.

<ref:2510.27057#pg4>. Trace Files are ingested via a character device in a CSV format. p. 4
Where the paper says it

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.

<ref:2510.27057#pg4>. The process is designed to be transparent, as the userspace is no longer involved after configuration. p. 1
Where the paper says it

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.

<ref:2510.27057#pg4>.

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

Where the paper says it

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.

<ref:2510.27057#pg4, "Apart from the minor expected deviations, both measurements achieve exactly the expected results">. p. 3
Where the paper says it

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.

Even with frequent updates of link characteristics every 10 ms in a complex satellite simulation, TheaterQ can reproduce these dynamic values accurately. p. 3
Where the paper says it

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.

<ref:2510.27057#pg4, "Even with such frequent changes, TheaterQ can reproduce the characteristics contained in the Trace Files accurately">. p. 3
Where the paper says it

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.

The accuracy is limited by the kernel’s scheduler and timer resolutions, similar to NetEm. p. 3
Where the paper says it

, 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.

<ref:2510.27057#pg4, "The accuracy of NetEm is limited by the kernel’s scheduler, timer resolutions, and system load">. p. 3
Where the paper says it

, 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.

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

Where the paper says it

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.

It enables synchronous starting of replays across multiple interfaces using SyncGroup. p. 4
Where the paper says it

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.

<ref:2510.27057#pg4>. <ref:2510.27057#pg5, "TheaterQ is available under a GPLv2 license as open-source software">. p. 0
Where the paper says it

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.

p. 0
Where the paper says it

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.

--- 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

Where the paper says it

TheaterQ: A Qdisc for Dynamic Network Emulation Martin Ottens Friedrich-Alexander-Universität Erlangen-Nürnberg, Germany martin. ottens@fau.

de.<ref:2510.27057#pg1>

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

Where the paper says it

ottens@fau. de Kai-Steffen Hielscher Friedrich-Alexander-Universität Erlangen-Nürnberg, Germany kai-steffen.

p. 0
Where the paper says it

ottens@fau. de Kai-Steffen Hielscher Friedrich-Alexander-Universität Erlangen-Nürnberg, Germany kai-steffen.

de.<ref:2510.27057#pg1, "kai-steffen. p. 0
Where the paper says it

ottens@fau. de Kai-Steffen Hielscher Friedrich-Alexander-Universität Erlangen-Nürnberg, Germany kai-steffen.

hielscher@fau.de">

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

Where the paper says it

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.

<ref:2510.27057#pg1, "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
Where the paper says it

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.

Features include synchronization across mutliple qdisc instances and handling of delays, bandwidth, packet loss, duplication, and reordering. p. 0
Where the paper says it

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.

<ref:2510.27057#pg1, "Features include synchronization across mutliple qdisc instances and handling of delays, bandwidth, packet loss, duplication, and reordering">. p. 0
Where the paper says it

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.

p. 0
Where the paper says it

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.

Evaluations show TheaterQ’s accuracy and its comparable performance to existing tools. p. 0
Where the paper says it

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.

<ref:2510.27057#pg1, "Evaluations show TheaterQ’s accuracy and its comparable performance to existing tools">. p. 0
Where the paper says it

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.

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

Where the paper says it

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.

<ref:2510.27057#pg3>

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

Where the paper says it

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.

TheaterQ conducts link emulation as if directing a play, applying scripted changes provided in the Trace Files just in time. p. 1
Where the paper says it

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.

<ref:2510.27057#pg4>. Synchronization across mutliple qdisc instances and handling of delays, bandwidth, packet loss, duplication, and reordering is a feature. p. 0
Where the paper says it

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.

<ref:2510.27057#pg1, "Features include synchronization across mutliple qdisc instances and handling of delays, bandwidth, packet loss, duplication, and reordering">.

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

Where the paper says it

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.

<ref:2510.27057#pg4>. Each entry has a keep us value that defines when it switches to the subsequent entry. p. 1
Where the paper says it

Each Trace File entry has a keep_us (cf. Listing 2) value, that defines the time after which it switches to the subsequent entry.

<ref:2510.27057#pg4>. A list walk is performed upon packet arrival to find the next active Trace File value without time drifts. p. 1
Where the paper says it

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.

<ref:2510.27057#pg4>.

Feature Implementation

TheaterQ implements specific queue behaviors like Earliest Deadline. First Queue (EDFQ) to handle jitter and potential reordering. p. 4

Where the paper says it

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.

<ref:2510.27057#pg4>. Packet loss is handled pseudo-randomly by dropping packets before enqueuing. p. 2
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.

<ref:2510.27057#pg4>. Duplication involves a delay offset for duplicated packets. p. 2
Where the paper says it

The delay offset describes how long the duplicate is additionally delayed before transmission. This can be useful to reorder duplicated packets inside a flow.

<ref:2510.27057#pg4>. Route identifiers can be specified to control implicit packet reordering based on route ID. p. 2
Where the paper says it

6 Route Identifiers. In some cases, implicit packet reordering due to delay changes or a high jitter are unwanted, e.

<ref:2510.27057#pg4>.

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

Where the paper says it

Subsequently, an emulation environment must be chosen. Due to TheaterQ’s flexibility, various setups are possible.

The SyncGroup feature facilitates the setup of multiple interfaces on the same system by synchronizing replays. p. 4
Where the paper says it

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.

<ref:2510.27057#pg4>. The evaluation showed that TheaterQ performs identically to NetEm when used with a comparable set of features. p. 4
Where the paper says it

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.

<ref:2510.27057#pg4, "Both qdiscs perform identically"). p. 3
Where the paper says it

We have compared the steady-state performance of TheaterQ, e. , with changes in the characteristics, with NetEm: Both qdiscs perform identically.

The software is available under the GPLv2 license as open-source software and can become a valuable tool in future protocol development and performance evaluation >. p. 4
Where the paper says it

, 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.

<ref:2510.27057#pg5, "TheaterQ is available under a GPLv2 license as open-source software">.

--- 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

Where the paper says it

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.

<ref:2510.27057#pg4, "Even with such frequent changes, TheaterQ can reproduce the characteristics contained in the Trace Files">. p. 3
Where the paper says it

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.

The accuracy of NetEm is limited by the kernel’s scheduler and timer resolutions. p. 3
Where the paper says it

, 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.

<ref:2510.27057#pg4, "The accuracy of NetEm is limited by the kernel’s scheduler, timer resolutions">. p. 3
Where the paper says it

, 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.

--- 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

Where the paper says it

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.

<ref:2510.27057#pg4>. TheaterQ is available under a GPLv2 license as open-source software and we believe it can become a valuable tool in future protocol development and performance evaluation. p. 4
Where the paper says it

, 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.

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

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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