Towards Memory-Efficient Traffic Policing in Time-Sensitive Networking

Xuyan Jiang, Xiangrui Yang, Tongqing Zhou, Wenwen Fu, Wei Quan, Yihao Jiao, Yinhan Sun, Zhigang SunarXiv 2024 · DOI

Abstract

Time-Sensitive Networking (TSN) is critical for real-time Ethernet applications in aerospace, automotive, and industrial sectors. However, standard Per-Stream Filtering and Policing (PSFP) mechanisms face a "memory wall," where Gate Control List (GCL) storage requirements scale linearly with the number of frames, exhausting on-chip resources. This paper introduces FooDog, a lightweight policing mechanism that utilizes period-wise and stream-wise GCL structures to reduce memory overhead by up to 96% while maintaining deterministic performance and sub-microsecond jitter.

Introduction

Time-Sensitive Networking (TSN) ensures deterministic communication through two primary mechanisms: Time-Aware Shapers (TAS) for precise scheduling and Per-Stream Filtering and Policing (PSFP) for traffic enforcement. PSFP acts as a gatekeeper, dropping abnormal traffic that arrives outside its scheduled window to protect the network's integrity from faults or malicious actors.

Overview of PSFP and TAS gates in a TSN switch for aerospace control data.

A significant challenge in scaling TSN is the memory consumption of GCLs. Traditional designs store an entry for every frame in a cycle. In complex environments like modern spacecraft or autonomous vehicles, this requirement can exceed the Block RAM (BRAM) capacity of high-end FPGAs, creating a hardware bottleneck that forces engineers to limit stream counts or use more expensive hardware.

The FooDog Architecture

FooDog addresses the memory bottleneck by rethinking GCL storage. Instead of a frame-wise approach, it employs a two-tiered strategy:

  1. Period-wise GCLs: Exploiting the periodic nature of TSN traffic, FooDog only stores the arrival window for the first frame of a stream within a cycle. Subsequent windows are calculated mathematically, significantly compressing the required storage.
  2. Stream-wise GCLs: This structure maintains the real-time open/closed state of all gates on the switch data plane, allowing for constant-time lookups.
The FooDog architecture featuring Period-wise and Stream-wise GCLs and specialized engines.

The system is driven by three specialized engines:

  • GateUpdate Engine: Periodically refreshes the Stream-wise GCL based on timing rules from the Period-wise GCL.
  • GateSwitch Engine: Performs $O(1)$ constant-time policing by checking incoming frames against the Stream-wise GCL.
  • Offline Traffic Planner: A modified SMT-based algorithm ensures that all frames of a stream adhere to the strict periodicity required by the compressed hardware structure.

Evaluation and Key Results

FooDog was evaluated using topologies from aerospace (e.g., NASA’s Orion Crew Exploration Vehicle), automotive, and industrial sectors.

  • Memory Efficiency: FooDog achieved over 90% reduction in on-chip memory overhead compared to unoptimized PSFP, reaching 96% in specific aerospace cases. This allows for scaling up to 500 streams on hardware that would otherwise be exhausted.
  • Deterministic Performance: The system maintained end-to-end jitter below 150 nanoseconds, even under abnormal traffic conditions, ensuring that policing does not compromise timing guarantees.
  • Hardware Utilization: A prototype on a Xilinx Kintex-7 FPGA used only 0.81% of available Look-up Tables (LUTs), demonstrating its lightweight nature.

Conclusion

FooDog effectively removes the memory bottleneck for PSFP in TSN switches. By decoupling timing from state and enforcing periodicity through offline planning, it enables the deployment of large-scale, high-reliability networks on cost-effective hardware. Future work will explore heuristic-based planners for even larger networks and adaptation for dynamic "plug-and-play" environments.

Summary updated

BibTeX
@misc{jiang2024towards,
  author = {Xuyan Jiang and Xiangrui Yang and Tongqing Zhou and Wenwen Fu and Wei Quan and Yihao Jiao and Yinhan Sun and Zhigang Sun},
  title = {{Towards Memory-Efficient Traffic Policing in Time-Sensitive Networking}},
  year = {2024},
  eprint = {2403.01652},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.01652},
}
Figure