P4-TAS: P4-Based Time-Aware Shaper for Time-Sensitive Networking
Fabian Ihle {}^{\hrefhttps://orcid.org/0009-0005-3917-2402} , Moritz Flüchter {}^{\hrefhttps://orcid.org/0009-0006-6047-5827} , and Michael Menth {}^{\hrefhttps://orcid.org/0000-0002-3216-1015} · 2025
Read P4-TAS: P4-Based Time-Aware Shaper for Time-Sensitive Networking by Fabian Ihle {}^{\hrefhttps://orcid.org/0009-0005-3917-2402} , Moritz Flüchter {}^{\hrefhttps://orcid.org/0009-0006-6047-5827} , and Michael Menth {}^{\hrefhttps://orcid.org/0000-0002-3216-1015} (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2511-10249.txt.
Introduction
Fabian Ihle, Moritz Flüchter, and Michael Menth implement the time-aware shaper of time-sensitive networking on a programmable switch chip. The shaper opens and closes output queues on a schedule to protect time-critical traffic, but commercial switches hide the internal delays of that mechanism, which quietly degrade scheduling precision. Their P4-TAS runs on an Intel Tofino 2 processor and adds per-stream filtering, policing, and precision time synchronization.
A stream of internally generated control frames drives the periodic queue updates. This enables the shaper on a P4 device for the first time, at line rates up to four hundred gigabits per port. The team measured three internal delay sources, totaling a worst case of eighty-six nanoseconds between slices, well below commercial reports, and proposed measurement methods plus guard intervals for designers.
Catalog record
| CREATOR | Fabian Ihle {}^{\hrefhttps://orcid.org/0009-0005-3917-2402} , Moritz Flüchter {}^{\hrefhttps://orcid.org/0009-0006-6047-5827} , and Michael Menth {}^{\hrefhttps://orcid.org/0000-0002-3216-1015} |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 69 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2511-10249
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
P4-TAS: P4-Based Time-Aware Shaper for Time-Sensitive Networking Thanks: This work was supported in part by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) under Grant 544468983, and in part by the Open Access Publishing Fund of the University of Tübingen. Fabian Ihle {}^{\hrefhttps://orcid.org/0009-0005-3917-2402} , Moritz Flüchter {}^{\hrefhttps://orcid.org/0009-0006-6047-5827} , and Michael Menth {}^{\hrefhttps://orcid.org/0000-0002-3216-1015} Abstract Time-Sensitive Networking (TSN) is a set of IEEE standards that extends Ethernet with real-time capabilities. Among its mechanisms, TSN can coordinate transmission times network-wide to minimize queueing, ensuring low latency and bounded delay. This coordination is computed offline and yields a network-wide schedule. The Time-Aware Shaper (TAS), implemented in TSN bridges, protects high-priority scheduled traffic from lower-priority (best-effort) flows by periodically opening and closing priority queues according to this schedule. Deterministic Networking (DetNet), standardized by the IETF, provides similar guarantees at Layer 3 and can leverage TSN mechanisms such as TAS for that purpose. Commercially available TSN-capable switches typically implement TAS in hardware but rarely disclose internal processing delays such as queue opening latency. Such information is essential for precise scheduling but largely unavailable to system designers. In this work, we present P4-TAS, a P4-based implementation of the TAS on a hardware switching ASIC. Our design introduces a novel approach for periodic queue control using a continuous stream of internally generated TAS control frames. We identify and quantify three sources of internal delay on a nanosecond scale which also exist in other implementations that directly affect the precision of executed schedules, providing transparency for future implementations and scheduling algorithms. Moreover, we provide an MPLS/TSN translation layer that enables P4-TAS to operate within DetNet environments, allowing TSN time-based traffic shaping to be carried over high-speed 400 Gb / s 400\text{\,}\mathrm{Gb/s} forwarding. Finally, we evaluate the scalability of P4-TAS and compare it to available TAS implementations. I Introduction Time-critical applications in industrial automation and automotive systems rely on networks that provide deterministic guarantees such as low latency, minimal jitter, and virtually zero packet loss. To meet these stringent requirements, two complementary technologies have emerged: TSN ( TSN ) and DetNet ( DetNet ). TSN is a suite of IEEE 802.1 standards that enhances Ethernet to support real-time communication by introducing mechanisms for traffic shaping [ 1 , 2 , 3 ] and reliability [ 4 ] . In contrast, DetNet is a Layer 3 technology standardized by the IETF that extends these capabilities to routed networks by enabling bounded latency and high reliability across multiple IP hops [ 5 ] . Scheduled traffic is a concept in TSN where transmission times of talkers are coordinated to avoid queuing in intermediate nodes so that frames traverse the network with minimal delay. This coordination is called scheduling and yields a network-wide schedule that ensures deterministic forwarding. Various traffic shaping mechanisms, such as CBS ( CBS ), ATS ( ATS ), and the TAS ( TAS ) exist in TSN . Among them, the TAS stands out by leveraging a TDMA ( TDMA )-like approach to protect scheduled traffic from interference, e.g., by best-effort flows, thereby ensuring low latency and bounded delay. This is achieved through transmission gates which periodically open and close queues. Further, PSFP ( PSFP ) is a TSN mechanism that combines rate and time-based policing to drop out-of-schedule frames. DetNet leverages TSN concepts in combination with technologies such as MPLS or IP. In DetNet deployments, TSN can be employed as a sub layer to provide deterministic forwarding in sub networks. In practice, TSN implementations are typically hardware-based and optimized for bandwidths up to 1\text{\,}\mathrm{Gb/s} . However, DetNet targets broader use cases, including high-throughput applications and data center backbones. This hierarchical composition allows for scalable designs that combine the high-speed capabilities of DetNet with the precise timing mechanisms of TSN . The integration of both technologies enables sophisticated traffic shaping and reliability mechanisms across backbone infrastructure. The contribution of this paper is manifold. We present P4-TAS, a P4-based implementation of the TAS on the Intel Tofino™ 2 switching ASIC that enables TSN-compliant shaping and policing in the data plane. Our design introduces a novel mechanism for periodic queue control using a continuous stream of internally generated TAS control frames. It builds upon a mechanism from our prior P4-PSFP work [ 6 ] which uses the internal packet generator as a clock source. P4-TAS also incorporates PSFP and includes an MPLS/TSN translation layer [ 7 ] , enabling TSN traffic shaping to be applied to DetNet flows at line rates up to 400 Gb/s. A key contribution of this work is the identification and quantification of internal processing delays that affect scheduling precision. Such delays are typically undocumented in commercial TSN-capable switches but are crucial for accurate traffic scheduling [ 8 , 9 ] . Our implementation reveals multiple delay sources within the data plane and provides corresponding measurements on a nanosecond scale. We demonstrate that our approach achieves internal delays orders of magnitude smaller than those reported for some commercial platforms [ 9 ] , offering transparency. Finally, we evaluate the scalability of P4-TAS and compare it to available TAS implementations. The rest of the paper is structured as follows. In Section II , we provide background information on TSN , DetNet , and the P4 programming language. In Section III , we review related work on combining TSN and DetNet systems, and on simulations and hardware implementations of those technologies. Section IV introduces the P4 implementation, including our system architecture and the P4-TAS mechanism. In Section V , we evaluate internal delays, measure the transmission gate accuracy externally, analyze the scalability, and compare P4-TAS to other implementations. Finally, in Section VI , we conclude the paper. II Technical Background In this section, we provide technical background on TSN , DetNet , and the P4 programming language. II-A Time-Sensitive Networking (TSN) We first give a brief overview of TSN , explain scheduled traffic, and then summarize the concepts of the TAS and PSFP . II-A 1 Overview TSN is a suite of IEEE 802.1 standards that augment traditional Ethernet to support deterministic communication with strict QoS ( QoS ) guarantees. TSN networks are built from interconnected bridges and end stations. A data flow, referred to as a TSN stream, originates from a talker (sending station) and is directed to one or more listeners (receiving stations). A TSN stream is identified based on its VLAN tag, its Layer 2 destination address, and optionally other header fields [ 4 ] . Before a stream is allowed to transmit, it has to undergo admission control [ 4 ] . This process involves the talker advertising its traffic characteristics, e.g., latency requirements, through a stream descriptor. The network then decides whether to admit the stream by evaluating resource availability and making reservations accordingly. II-A 2 Protecting Scheduled Traffic In TSN , streams can be scheduled, i.e., their sending times at talkers are coordinated such that frames experience minimal delay at intermediate bridges. This coordination is computed offline and yields a network-wide schedule. The calculation of such schedules is outside the scope of this work. More information on scheduling in TSN can be found in a survey by Stüber et al. [ 10 ] . Time synchronization on a sub-microsecond scale is critical for scheduling