TL;DR
Running a factory remotely over the internet—like controlling a robotic arm from miles away—requires packets to arrive with clockwork precision. A promising network mechanism called Cycle Specified Queuing and Forwarding (CSQF) can guarantee this over long distances, but until now, nobody had a practical way to actually schedule thousands of competing data streams using it. This paper introduces Cycle Tags Planning (CTP), the first mathematical model for global CSQF scheduling, along with fast heuristic algorithms (FO-CS and Tabu FO-CS) that boost the number of successfully scheduled flows by over 31%.
What Problem Does This Paper Address?
In local factory networks, Time-Sensitive Networking (TSN) mechanisms like Cyclic Queuing and Forwarding (CQF) keep traffic punctual by having switches alternate between two queues in lockstep. That works great when all switches are within a few hops, clocks are strictly synchronized, and cable delays are basically zero.
Stretch that network across cities, however, and things break down. Propagation delays over long-distance fiber are significant, and keeping every router’s clock strictly synchronized is notoriously hard.
To solve this, the IETF DetNet working group proposed CSQF. Instead of strict time synchronization, CSQF only requires frequency synchronization (clocks tick at the same rate, even if they don't start at the exact same time) and expands the two queues to three or more. Packets carry a stack of "cycle tags" (Segment Routing Identifiers, or SIDs) that tell each router along the path exactly which cycle and queue to use.
The catch? CSQF only defines the router-level hardware behavior. Computing those cycle tags globally for thousands of periodic flows—without missing deadlines or overflowing router queues—is an NP-hard bin-packing problem. Prior work either ignored link delays or couldn't adaptively adjust cycle tags.
Methods
The authors tackle this in two stages:
-
The Cycle Tags Planning (CTP) Model: The authors formulate the first integer programming model for global CSQF scheduling. To handle irregular, long-distance link delays, CTP decouples link delay from the router's cycle time ($T_{cycle}$) by dividing the link delay by $T_{cycle}$ and rounding up. It then discretizes network buffers into "queue resource blocks" across a global hyper-cycle (the least common multiple of all flow periods) and enforces constraints on deadlines, offsets, and bounded queue lengths.
-
Heuristic Scheduling Algorithms: Since solving an integer program for thousands of flows takes hours, the authors split the problem into scheduling and sequencing:
-
FO-CS (Flow Offset and Cycle Shift): A fast algorithm for online, incremental scheduling. If a packet hits a full queue, FO-CS tries two tricks: Cycle Shift (CS), which defers the packet to a different receiving queue at that router, and Flow Offset (FO), which delays when the flow enters the very first switch (useful when the access gateway can negotiate with the sender).
- Tabu FO-CS: An offline optimization algorithm that uses Tabu search to find the best order in which to feed flows into FO-CS, maximizing the total number of scheduled flows.
Datasets
Because this is a network scheduling problem, the authors evaluate their algorithms on synthetic periodic traffic running over several network topologies:
- INTERNET2 Backbone: An 8-node segment of the 2016 Internet2 Layer-3 backbone, with link delays calculated from real geographical distances.
- Erdős–Rényi (ER) Random Graphs: 15-node directed weighted graphs with 15 to 24 links and random delays (0.1–2 ms) to test how link connectivity affects scheduling.
- Linear and Ring Topologies: 8-node topologies for baseline comparisons.
The synthetic flows are modeled after real industrial standards (IEC 61850 and DetNet use cases), with sending periods chosen from $\{4, 8, 16, 32\}$ ms, 1–3 packets per period, deadlines of 30–50 ms, and 1 Gbps links.
Key Insights and Ideas
- Smaller queues actually schedule more flows: Intuitively, you might think bigger queues hold more packets and therefore schedule more flows. The authors prove the opposite (Theorem 1): when total on-chip buffer memory is fixed, shrinking the queue length $L$ allows a smaller cycle time $T_{cycle}$. This creates finer-grained time slots, increasing overall schedulability ($\propto 1/L$)—though at the cost of higher computation time.
- First-hop timing matters most: Adjusting the initial flow offset at the access switch has a much bigger impact on schedulability than shifting queues at intermediate hops, because it searches across the entire sending period rather than just the available queues. Combining both in FO-CS gives the best of both worlds.
Key Results
- More Scheduled Flows: On the Internet2 topology with 4,000 flows, FO-CS schedules 31.2% more flows than a naive "send-as-produced" approach, and 9.2% more than Cycle Shift alone.
- Near-Optimal Offline Packing: At 2,000 flows on Internet2, Tabu FO-CS successfully schedules 94.45% of all flows.
- Speed vs. Optimality Trade-off: FO-CS is built for real-time use—90% of per-flow calculations finish in under 6 ms (totaling ~20 seconds for 4,000 flows). Tabu FO-CS takes around 10,000 seconds (~2.8 hours), making it strictly an offline planning tool.
- Connectivity Helps: Increasing the number of links in the 15-node ER topology from 15 to 24 boosts Tabu FO-CS schedulability by 11.75% and cuts its execution time by 36.68%.
Limitations and Future Work
- Idealized Assumptions: The model assumes periodic unicast flows with known parameters, jitter-free source terminals, and frequency-synchronized switches with zero phase deviation.
- Simple Routing: The authors use basic Dijkstra shortest-path routing weighted by link delay. Incorporating load-balanced routing to avoid congestion hotspots is left for future work.
- Offline Speed: Tabu FO-CS is too slow for dynamic networks; the authors plan to explore deep reinforcement learning and multi-objective optimization to speed up global scheduling.
Summary updated